Class ToolsetTool.Builder

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

public static final class ToolsetTool.Builder extends com.google.protobuf.GeneratedMessage.Builder<ToolsetTool.Builder> implements ToolsetToolOrBuilder
 A tool that is created from a toolset.
 
Protobuf type google.cloud.dialogflow.v2.ToolsetTool
  • 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<ToolsetTool.Builder>
    • clear

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

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

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

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

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

      public ToolsetTool.Builder mergeFrom(ToolsetTool other)
    • isInitialized

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

      public ToolsetTool.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<ToolsetTool.Builder>
      Throws:
      IOException
    • getToolset

      public String getToolset()
       Required. The name of the toolset to retrieve the schema for.
       Format:
       `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
       
      string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getToolset in interface ToolsetToolOrBuilder
      Returns:
      The toolset.
    • getToolsetBytes

      public com.google.protobuf.ByteString getToolsetBytes()
       Required. The name of the toolset to retrieve the schema for.
       Format:
       `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
       
      string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getToolsetBytes in interface ToolsetToolOrBuilder
      Returns:
      The bytes for toolset.
    • setToolset

      public ToolsetTool.Builder setToolset(String value)
       Required. The name of the toolset to retrieve the schema for.
       Format:
       `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
       
      string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The toolset to set.
      Returns:
      This builder for chaining.
    • clearToolset

      public ToolsetTool.Builder clearToolset()
       Required. The name of the toolset to retrieve the schema for.
       Format:
       `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
       
      string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setToolsetBytes

      public ToolsetTool.Builder setToolsetBytes(com.google.protobuf.ByteString value)
       Required. The name of the toolset to retrieve the schema for.
       Format:
       `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
       
      string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for toolset to set.
      Returns:
      This builder for chaining.
    • getOperationId

      public String getOperationId()
       Optional. The operationId field of the OpenAPI endpoint. The operationId
       must be present in the toolset's definition.
       
      string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOperationId in interface ToolsetToolOrBuilder
      Returns:
      The operationId.
    • getOperationIdBytes

      public com.google.protobuf.ByteString getOperationIdBytes()
       Optional. The operationId field of the OpenAPI endpoint. The operationId
       must be present in the toolset's definition.
       
      string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOperationIdBytes in interface ToolsetToolOrBuilder
      Returns:
      The bytes for operationId.
    • setOperationId

      public ToolsetTool.Builder setOperationId(String value)
       Optional. The operationId field of the OpenAPI endpoint. The operationId
       must be present in the toolset's definition.
       
      string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The operationId to set.
      Returns:
      This builder for chaining.
    • clearOperationId

      public ToolsetTool.Builder clearOperationId()
       Optional. The operationId field of the OpenAPI endpoint. The operationId
       must be present in the toolset's definition.
       
      string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOperationIdBytes

      public ToolsetTool.Builder setOperationIdBytes(com.google.protobuf.ByteString value)
       Optional. The operationId field of the OpenAPI endpoint. The operationId
       must be present in the toolset's definition.
       
      string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for operationId 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConfirmationRequirementValue in interface ToolsetToolOrBuilder
      Returns:
      The enum numeric value on the wire for confirmationRequirement.
    • setConfirmationRequirementValue

      public ToolsetTool.Builder setConfirmationRequirementValue(int value)
       Optional. Indicates whether the tool requires human confirmation.
       
      .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConfirmationRequirement in interface ToolsetToolOrBuilder
      Returns:
      The confirmationRequirement.
    • setConfirmationRequirement

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

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