Class ToolCall.Builder

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

public static final class ToolCall.Builder extends com.google.protobuf.GeneratedMessage.Builder<ToolCall.Builder> implements ToolCallOrBuilder
 Represents a call of a specific tool's action with the specified inputs.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ToolCall
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The name of the tool's action associated with this call.
    The action's input parameters.
    The [tool][Tool] associated with this call.
    The name of the tool's action associated with this call.
    com.google.protobuf.ByteString
    The name of the tool's action associated with this call.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Struct
    The action's input parameters.
    com.google.protobuf.Struct.Builder
    The action's input parameters.
    com.google.protobuf.StructOrBuilder
    The action's input parameters.
    The [tool][Tool] associated with this call.
    com.google.protobuf.ByteString
    The [tool][Tool] associated with this call.
    boolean
    The action's input parameters.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeInputParameters(com.google.protobuf.Struct value)
    The action's input parameters.
    The name of the tool's action associated with this call.
    setActionBytes(com.google.protobuf.ByteString value)
    The name of the tool's action associated with this call.
    setInputParameters(com.google.protobuf.Struct value)
    The action's input parameters.
    setInputParameters(com.google.protobuf.Struct.Builder builderForValue)
    The action's input parameters.
    setTool(String value)
    The [tool][Tool] associated with this call.
    setToolBytes(com.google.protobuf.ByteString value)
    The [tool][Tool] associated with this call.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<ToolCall.Builder>
    • clear

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

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

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

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

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

      public ToolCall.Builder mergeFrom(ToolCall other)
    • isInitialized

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

      public ToolCall.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<ToolCall.Builder>
      Throws:
      IOException
    • getTool

      public String getTool()
       The [tool][Tool] associated with this call.
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>/tools/<Tool ID>`.
       
      string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getTool in interface ToolCallOrBuilder
      Returns:
      The tool.
    • getToolBytes

      public com.google.protobuf.ByteString getToolBytes()
       The [tool][Tool] associated with this call.
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>/tools/<Tool ID>`.
       
      string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getToolBytes in interface ToolCallOrBuilder
      Returns:
      The bytes for tool.
    • setTool

      public ToolCall.Builder setTool(String value)
       The [tool][Tool] associated with this call.
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>/tools/<Tool ID>`.
       
      string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The tool to set.
      Returns:
      This builder for chaining.
    • clearTool

      public ToolCall.Builder clearTool()
       The [tool][Tool] associated with this call.
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>/tools/<Tool ID>`.
       
      string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setToolBytes

      public ToolCall.Builder setToolBytes(com.google.protobuf.ByteString value)
       The [tool][Tool] associated with this call.
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>/tools/<Tool ID>`.
       
      string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for tool to set.
      Returns:
      This builder for chaining.
    • getAction

      public String getAction()
       The name of the tool's action associated with this call.
       
      string action = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAction in interface ToolCallOrBuilder
      Returns:
      The action.
    • getActionBytes

      public com.google.protobuf.ByteString getActionBytes()
       The name of the tool's action associated with this call.
       
      string action = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActionBytes in interface ToolCallOrBuilder
      Returns:
      The bytes for action.
    • setAction

      public ToolCall.Builder setAction(String value)
       The name of the tool's action associated with this call.
       
      string action = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The action to set.
      Returns:
      This builder for chaining.
    • clearAction

      public ToolCall.Builder clearAction()
       The name of the tool's action associated with this call.
       
      string action = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setActionBytes

      public ToolCall.Builder setActionBytes(com.google.protobuf.ByteString value)
       The name of the tool's action associated with this call.
       
      string action = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for action to set.
      Returns:
      This builder for chaining.
    • hasInputParameters

      public boolean hasInputParameters()
       The action's input parameters.
       
      .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasInputParameters in interface ToolCallOrBuilder
      Returns:
      Whether the inputParameters field is set.
    • getInputParameters

      public com.google.protobuf.Struct getInputParameters()
       The action's input parameters.
       
      .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInputParameters in interface ToolCallOrBuilder
      Returns:
      The inputParameters.
    • setInputParameters

      public ToolCall.Builder setInputParameters(com.google.protobuf.Struct value)
       The action's input parameters.
       
      .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setInputParameters

      public ToolCall.Builder setInputParameters(com.google.protobuf.Struct.Builder builderForValue)
       The action's input parameters.
       
      .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeInputParameters

      public ToolCall.Builder mergeInputParameters(com.google.protobuf.Struct value)
       The action's input parameters.
       
      .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearInputParameters

      public ToolCall.Builder clearInputParameters()
       The action's input parameters.
       
      .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getInputParametersBuilder

      public com.google.protobuf.Struct.Builder getInputParametersBuilder()
       The action's input parameters.
       
      .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getInputParametersOrBuilder

      public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder()
       The action's input parameters.
       
      .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInputParametersOrBuilder in interface ToolCallOrBuilder