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.v3.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.v3.ToolCall
  • 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()
       Required. The [tool][google.cloud.dialogflow.cx.v3.Tool] associated with
       this call. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      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()
       Required. The [tool][google.cloud.dialogflow.cx.v3.Tool] associated with
       this call. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      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)
       Required. The [tool][google.cloud.dialogflow.cx.v3.Tool] associated with
       this call. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      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()
       Required. The [tool][google.cloud.dialogflow.cx.v3.Tool] associated with
       this call. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      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)
       Required. The [tool][google.cloud.dialogflow.cx.v3.Tool] associated with
       this call. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      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()
       Required. 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()
       Required. 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)
       Required. 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()
       Required. 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)
       Required. 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()
       Optional. 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()
       Optional. 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)
       Optional. 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)
       Optional. 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)
       Optional. The action's input parameters.
       
      .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearInputParameters

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

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

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