Class Tool.ServiceDirectoryConfig.Builder

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

public static final class Tool.ServiceDirectoryConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Tool.ServiceDirectoryConfig.Builder> implements Tool.ServiceDirectoryConfigOrBuilder
 Configuration for tools using Service Directory.
 
Protobuf type google.cloud.dialogflow.v2.Tool.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<Tool.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<Tool.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<Tool.ServiceDirectoryConfig.Builder>
    • getDefaultInstanceForType

      public Tool.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 Tool.ServiceDirectoryConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Tool.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<Tool.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<Tool.ServiceDirectoryConfig.Builder>
    • mergeFrom

      public Tool.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<Tool.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>`.
       `LocationID` of the service directory must be the same as the location
       of the tool.
       
      string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getService in interface Tool.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>`.
       `LocationID` of the service directory must be the same as the location
       of the tool.
       
      string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getServiceBytes in interface Tool.ServiceDirectoryConfigOrBuilder
      Returns:
      The bytes for service.
    • setService

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

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

      public Tool.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>`.
       `LocationID` of the service directory must be the same as the location
       of the tool.
       
      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.