Class Fulfillment.GenericWebService

  • All Implemented Interfaces:
    Fulfillment.GenericWebServiceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    Fulfillment

    public static final class Fulfillment.GenericWebService
    extends com.google.protobuf.GeneratedMessageV3
    implements Fulfillment.GenericWebServiceOrBuilder
     Represents configuration for a generic web service.
     Dialogflow supports two mechanisms for authentications:
    
     - Basic authentication with username and password.
     - Authentication with additional authentication headers.
    
     More information could be found at:
     https://cloud.google.com/dialogflow/docs/fulfillment-configure.
     
    Protobuf type google.cloud.dialogflow.v2.Fulfillment.GenericWebService
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getUri

        public String getUri()
         Required. The fulfillment URI for receiving POST requests.
         It must use https protocol.
         
        string uri = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getUri in interface Fulfillment.GenericWebServiceOrBuilder
        Returns:
        The uri.
      • getUriBytes

        public com.google.protobuf.ByteString getUriBytes()
         Required. The fulfillment URI for receiving POST requests.
         It must use https protocol.
         
        string uri = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getUriBytes in interface Fulfillment.GenericWebServiceOrBuilder
        Returns:
        The bytes for uri.
      • getUsernameBytes

        public com.google.protobuf.ByteString getUsernameBytes()
         Optional. The user name for HTTP Basic authentication.
         
        string username = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getUsernameBytes in interface Fulfillment.GenericWebServiceOrBuilder
        Returns:
        The bytes for username.
      • getPasswordBytes

        public com.google.protobuf.ByteString getPasswordBytes()
         Optional. The password for HTTP Basic authentication.
         
        string password = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPasswordBytes in interface Fulfillment.GenericWebServiceOrBuilder
        Returns:
        The bytes for password.
      • containsRequestHeaders

        public boolean containsRequestHeaders​(String key)
         Optional. The HTTP request headers to send together with fulfillment
         requests.
         
        map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsRequestHeaders in interface Fulfillment.GenericWebServiceOrBuilder
      • getIsCloudFunction

        @Deprecated
        public boolean getIsCloudFunction()
        Deprecated.
        google.cloud.dialogflow.v2.Fulfillment.GenericWebService.is_cloud_function is deprecated. See google/cloud/dialogflow/v2/fulfillment.proto;l=110
         Optional. Indicates if generic web service is created through Cloud
         Functions integration. Defaults to false.
        
         is_cloud_function is deprecated. Cloud functions can be configured by
         its uri as a regular web service now.
         
        bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getIsCloudFunction in interface Fulfillment.GenericWebServiceOrBuilder
        Returns:
        The isCloudFunction.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Fulfillment.GenericWebService parseFrom​(ByteBuffer data)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Fulfillment.GenericWebService parseFrom​(ByteBuffer data,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Fulfillment.GenericWebService parseFrom​(com.google.protobuf.ByteString data)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Fulfillment.GenericWebService parseFrom​(com.google.protobuf.ByteString data,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Fulfillment.GenericWebService parseFrom​(byte[] data)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Fulfillment.GenericWebService parseFrom​(byte[] data,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public Fulfillment.GenericWebService.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Fulfillment.GenericWebService.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Fulfillment.GenericWebService.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Fulfillment.GenericWebService> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Fulfillment.GenericWebService getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder