Class CesToolSpec.Builder

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

public static final class CesToolSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<CesToolSpec.Builder> implements CesToolSpecOrBuilder
 Spec of CES tool that the generator can choose from.
 
Protobuf type google.cloud.dialogflow.v2.CesToolSpec
  • 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<CesToolSpec.Builder>
    • clear

      public CesToolSpec.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<CesToolSpec.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<CesToolSpec.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CesToolSpec.Builder mergeFrom(CesToolSpec other)
    • isInitialized

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

      public CesToolSpec.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<CesToolSpec.Builder>
      Throws:
      IOException
    • getCesTool

      public String getCesTool()
       Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
       ID>/tools/<tool ID>`.
       
      string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCesTool in interface CesToolSpecOrBuilder
      Returns:
      The cesTool.
    • getCesToolBytes

      public com.google.protobuf.ByteString getCesToolBytes()
       Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
       ID>/tools/<tool ID>`.
       
      string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCesToolBytes in interface CesToolSpecOrBuilder
      Returns:
      The bytes for cesTool.
    • setCesTool

      public CesToolSpec.Builder setCesTool(String value)
       Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
       ID>/tools/<tool ID>`.
       
      string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The cesTool to set.
      Returns:
      This builder for chaining.
    • clearCesTool

      public CesToolSpec.Builder clearCesTool()
       Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
       ID>/tools/<tool ID>`.
       
      string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCesToolBytes

      public CesToolSpec.Builder setCesToolBytes(com.google.protobuf.ByteString value)
       Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
       ID>/tools/<tool ID>`.
       
      string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for cesTool to set.
      Returns:
      This builder for chaining.
    • getConfirmationRequirementValue

      public int getConfirmationRequirementValue()
       Optional. Indicates whether the tool requires human confirmation.
       
      .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConfirmationRequirementValue in interface CesToolSpecOrBuilder
      Returns:
      The enum numeric value on the wire for confirmationRequirement.
    • setConfirmationRequirementValue

      public CesToolSpec.Builder setConfirmationRequirementValue(int value)
       Optional. Indicates whether the tool requires human confirmation.
       
      .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for confirmationRequirement to set.
      Returns:
      This builder for chaining.
    • getConfirmationRequirement

      public Tool.ConfirmationRequirement getConfirmationRequirement()
       Optional. Indicates whether the tool requires human confirmation.
       
      .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConfirmationRequirement in interface CesToolSpecOrBuilder
      Returns:
      The confirmationRequirement.
    • setConfirmationRequirement

      public CesToolSpec.Builder setConfirmationRequirement(Tool.ConfirmationRequirement value)
       Optional. Indicates whether the tool requires human confirmation.
       
      .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The confirmationRequirement to set.
      Returns:
      This builder for chaining.
    • clearConfirmationRequirement

      public CesToolSpec.Builder clearConfirmationRequirement()
       Optional. Indicates whether the tool requires human confirmation.
       
      .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.