Class Fulfillment.GenericWebService.Builder

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

    public static final class Fulfillment.GenericWebService.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
    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.v2beta1.Fulfillment.GenericWebService
    • Method Detail

      • 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.Builder<Fulfillment.GenericWebService.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
      • getDefaultInstanceForType

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
      • mergeFrom

        public Fulfillment.GenericWebService.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Fulfillment.GenericWebService.Builder>
        Throws:
        IOException
      • 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.
      • setUri

        public Fulfillment.GenericWebService.Builder setUri​(String value)
         Required. The fulfillment URI for receiving POST requests.
         It must use https protocol.
         
        string uri = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The uri to set.
        Returns:
        This builder for chaining.
      • clearUri

        public Fulfillment.GenericWebService.Builder clearUri()
         Required. The fulfillment URI for receiving POST requests.
         It must use https protocol.
         
        string uri = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setUriBytes

        public Fulfillment.GenericWebService.Builder setUriBytes​(com.google.protobuf.ByteString value)
         Required. The fulfillment URI for receiving POST requests.
         It must use https protocol.
         
        string uri = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for uri to set.
        Returns:
        This builder for chaining.
      • setUsername

        public Fulfillment.GenericWebService.Builder setUsername​(String value)
         The user name for HTTP Basic authentication.
         
        string username = 2;
        Parameters:
        value - The username to set.
        Returns:
        This builder for chaining.
      • setUsernameBytes

        public Fulfillment.GenericWebService.Builder setUsernameBytes​(com.google.protobuf.ByteString value)
         The user name for HTTP Basic authentication.
         
        string username = 2;
        Parameters:
        value - The bytes for username to set.
        Returns:
        This builder for chaining.
      • setPassword

        public Fulfillment.GenericWebService.Builder setPassword​(String value)
         The password for HTTP Basic authentication.
         
        string password = 3;
        Parameters:
        value - The password to set.
        Returns:
        This builder for chaining.
      • setPasswordBytes

        public Fulfillment.GenericWebService.Builder setPasswordBytes​(com.google.protobuf.ByteString value)
         The password for HTTP Basic authentication.
         
        string password = 3;
        Parameters:
        value - The bytes for password to set.
        Returns:
        This builder for chaining.
      • removeRequestHeaders

        public Fulfillment.GenericWebService.Builder removeRequestHeaders​(String key)
         The HTTP request headers to send together with fulfillment requests.
         
        map<string, string> request_headers = 4;
      • getMutableRequestHeaders

        @Deprecated
        public Map<String,​String> getMutableRequestHeaders()
        Deprecated.
        Use alternate mutation accessors instead.
      • getIsCloudFunction

        @Deprecated
        public boolean getIsCloudFunction()
        Deprecated.
        google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService.is_cloud_function is deprecated. See google/cloud/dialogflow/v2beta1/fulfillment.proto;l=109
         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.
      • setIsCloudFunction

        @Deprecated
        public Fulfillment.GenericWebService.Builder setIsCloudFunction​(boolean value)
        Deprecated.
        google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService.is_cloud_function is deprecated. See google/cloud/dialogflow/v2beta1/fulfillment.proto;l=109
         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];
        Parameters:
        value - The isCloudFunction to set.
        Returns:
        This builder for chaining.
      • clearIsCloudFunction

        @Deprecated
        public Fulfillment.GenericWebService.Builder clearIsCloudFunction()
        Deprecated.
        google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService.is_cloud_function is deprecated. See google/cloud/dialogflow/v2beta1/fulfillment.proto;l=109
         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];
        Returns:
        This builder for chaining.