Class Webhook.ServiceDirectoryConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Webhook.ServiceDirectoryConfig.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.Builder
All Implemented Interfaces:
Webhook.ServiceDirectoryConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Webhook.ServiceDirectoryConfig

public static final class Webhook.ServiceDirectoryConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Webhook.ServiceDirectoryConfig.Builder> implements Webhook.ServiceDirectoryConfigOrBuilder
 Represents configuration for a [Service
 Directory](https://cloud.google.com/service-directory) service.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Webhook.ServiceDirectoryConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Webhook.ServiceDirectoryConfig.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.GeneratedMessage.Builder<Webhook.ServiceDirectoryConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Webhook.ServiceDirectoryConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Webhook.ServiceDirectoryConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Webhook.ServiceDirectoryConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Webhook.ServiceDirectoryConfig.Builder>
    • mergeFrom

      public Webhook.ServiceDirectoryConfig.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<Webhook.ServiceDirectoryConfig.Builder>
      Throws:
      IOException
    • getService

      public String getService()
       Required. The name of [Service
       Directory](https://cloud.google.com/service-directory) service.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
       `Location ID` of the service directory must be the same as the location
       of the agent.
       
      string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getService in interface Webhook.ServiceDirectoryConfigOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       Required. The name of [Service
       Directory](https://cloud.google.com/service-directory) service.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
       `Location ID` of the service directory must be the same as the location
       of the agent.
       
      string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getServiceBytes in interface Webhook.ServiceDirectoryConfigOrBuilder
      Returns:
      The bytes for service.
    • setService

       Required. The name of [Service
       Directory](https://cloud.google.com/service-directory) service.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
       `Location ID` of the service directory must be the same as the location
       of the agent.
       
      string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

       Required. The name of [Service
       Directory](https://cloud.google.com/service-directory) service.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
       `Location ID` of the service directory must be the same as the location
       of the agent.
       
      string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setServiceBytes

      public Webhook.ServiceDirectoryConfig.Builder setServiceBytes(com.google.protobuf.ByteString value)
       Required. The name of [Service
       Directory](https://cloud.google.com/service-directory) service.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
       `Location ID` of the service directory must be the same as the location
       of the agent.
       
      string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for service to set.
      Returns:
      This builder for chaining.
    • hasGenericWebService

      public boolean hasGenericWebService()
       Generic Service configuration of this webhook.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;
      Specified by:
      hasGenericWebService in interface Webhook.ServiceDirectoryConfigOrBuilder
      Returns:
      Whether the genericWebService field is set.
    • getGenericWebService

      public Webhook.GenericWebService getGenericWebService()
       Generic Service configuration of this webhook.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;
      Specified by:
      getGenericWebService in interface Webhook.ServiceDirectoryConfigOrBuilder
      Returns:
      The genericWebService.
    • setGenericWebService

       Generic Service configuration of this webhook.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;
    • setGenericWebService

      public Webhook.ServiceDirectoryConfig.Builder setGenericWebService(Webhook.GenericWebService.Builder builderForValue)
       Generic Service configuration of this webhook.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;
    • mergeGenericWebService

       Generic Service configuration of this webhook.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;
    • clearGenericWebService

      public Webhook.ServiceDirectoryConfig.Builder clearGenericWebService()
       Generic Service configuration of this webhook.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;
    • getGenericWebServiceBuilder

      public Webhook.GenericWebService.Builder getGenericWebServiceBuilder()
       Generic Service configuration of this webhook.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;
    • getGenericWebServiceOrBuilder

      public Webhook.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder()
       Generic Service configuration of this webhook.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;
      Specified by:
      getGenericWebServiceOrBuilder in interface Webhook.ServiceDirectoryConfigOrBuilder