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.v2.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.v2.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
    • getSourceCase

      public ToolCall.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface ToolCallOrBuilder
    • clearSource

      public ToolCall.Builder clearSource()
    • hasTool

      public boolean hasTool()
       Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
       this call. Format:
       `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
       
      string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      hasTool in interface ToolCallOrBuilder
      Returns:
      Whether the tool field is set.
    • getTool

      public String getTool()
       Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
       this call. Format:
       `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
       
      string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getTool in interface ToolCallOrBuilder
      Returns:
      The tool.
    • getToolBytes

      public com.google.protobuf.ByteString getToolBytes()
       Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
       this call. Format:
       `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
       
      string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getToolBytes in interface ToolCallOrBuilder
      Returns:
      The bytes for tool.
    • setTool

      public ToolCall.Builder setTool(String value)
       Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
       this call. Format:
       `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
       
      string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The tool to set.
      Returns:
      This builder for chaining.
    • clearTool

      public ToolCall.Builder clearTool()
       Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
       this call. Format:
       `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
       
      string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setToolBytes

      public ToolCall.Builder setToolBytes(com.google.protobuf.ByteString value)
       Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
       this call. Format:
       `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
       
      string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for tool to set.
      Returns:
      This builder for chaining.
    • hasCesTool

      public boolean hasCesTool()
       Optional. CES tool name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
       
      string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      hasCesTool in interface ToolCallOrBuilder
      Returns:
      Whether the cesTool field is set.
    • getCesTool

      public String getCesTool()
       Optional. CES tool name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
       
      string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCesTool in interface ToolCallOrBuilder
      Returns:
      The cesTool.
    • getCesToolBytes

      public com.google.protobuf.ByteString getCesToolBytes()
       Optional. CES tool name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
       
      string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCesToolBytes in interface ToolCallOrBuilder
      Returns:
      The bytes for cesTool.
    • setCesTool

      public ToolCall.Builder setCesTool(String value)
       Optional. CES tool name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
       
      string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The cesTool to set.
      Returns:
      This builder for chaining.
    • clearCesTool

      public ToolCall.Builder clearCesTool()
       Optional. CES tool name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
       
      string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCesToolBytes

      public ToolCall.Builder setCesToolBytes(com.google.protobuf.ByteString value)
       Optional. CES tool name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
       
      string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for cesTool to set.
      Returns:
      This builder for chaining.
    • hasCesToolset

      public boolean hasCesToolset()
       Optional. CES toolset name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
       
      string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      hasCesToolset in interface ToolCallOrBuilder
      Returns:
      Whether the cesToolset field is set.
    • getCesToolset

      public String getCesToolset()
       Optional. CES toolset name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
       
      string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCesToolset in interface ToolCallOrBuilder
      Returns:
      The cesToolset.
    • getCesToolsetBytes

      public com.google.protobuf.ByteString getCesToolsetBytes()
       Optional. CES toolset name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
       
      string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCesToolsetBytes in interface ToolCallOrBuilder
      Returns:
      The bytes for cesToolset.
    • setCesToolset

      public ToolCall.Builder setCesToolset(String value)
       Optional. CES toolset name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
       
      string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The cesToolset to set.
      Returns:
      This builder for chaining.
    • clearCesToolset

      public ToolCall.Builder clearCesToolset()
       Optional. CES toolset name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
       
      string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCesToolsetBytes

      public ToolCall.Builder setCesToolsetBytes(com.google.protobuf.ByteString value)
       Optional. CES toolset name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
       
      string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for cesToolset to set.
      Returns:
      This builder for chaining.
    • hasCesApp

      public boolean hasCesApp()
       Optional. CES app name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
       
      string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      hasCesApp in interface ToolCallOrBuilder
      Returns:
      Whether the cesApp field is set.
    • getCesApp

      public String getCesApp()
       Optional. CES app name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
       
      string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCesApp in interface ToolCallOrBuilder
      Returns:
      The cesApp.
    • getCesAppBytes

      public com.google.protobuf.ByteString getCesAppBytes()
       Optional. CES app name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
       
      string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCesAppBytes in interface ToolCallOrBuilder
      Returns:
      The bytes for cesApp.
    • setCesApp

      public ToolCall.Builder setCesApp(String value)
       Optional. CES app name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
       
      string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The cesApp to set.
      Returns:
      This builder for chaining.
    • clearCesApp

      public ToolCall.Builder clearCesApp()
       Optional. CES app name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
       
      string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCesAppBytes

      public ToolCall.Builder setCesAppBytes(com.google.protobuf.ByteString value)
       Optional. CES app name for this call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
       
      string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for cesApp to set.
      Returns:
      This builder for chaining.
    • getToolDisplayName

      public String getToolDisplayName()
       Optional. A human readable short name of the tool, to be shown on the UI.
       
      string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolDisplayName in interface ToolCallOrBuilder
      Returns:
      The toolDisplayName.
    • getToolDisplayNameBytes

      public com.google.protobuf.ByteString getToolDisplayNameBytes()
       Optional. A human readable short name of the tool, to be shown on the UI.
       
      string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolDisplayNameBytes in interface ToolCallOrBuilder
      Returns:
      The bytes for toolDisplayName.
    • setToolDisplayName

      public ToolCall.Builder setToolDisplayName(String value)
       Optional. A human readable short name of the tool, to be shown on the UI.
       
      string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The toolDisplayName to set.
      Returns:
      This builder for chaining.
    • clearToolDisplayName

      public ToolCall.Builder clearToolDisplayName()
       Optional. A human readable short name of the tool, to be shown on the UI.
       
      string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setToolDisplayNameBytes

      public ToolCall.Builder setToolDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. A human readable short name of the tool, to be shown on the UI.
       
      string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for toolDisplayName to set.
      Returns:
      This builder for chaining.
    • getToolDisplayDetails

      public String getToolDisplayDetails()
       Optional. A human readable description of the tool.
       
      string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolDisplayDetails in interface ToolCallOrBuilder
      Returns:
      The toolDisplayDetails.
    • getToolDisplayDetailsBytes

      public com.google.protobuf.ByteString getToolDisplayDetailsBytes()
       Optional. A human readable description of the tool.
       
      string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolDisplayDetailsBytes in interface ToolCallOrBuilder
      Returns:
      The bytes for toolDisplayDetails.
    • setToolDisplayDetails

      public ToolCall.Builder setToolDisplayDetails(String value)
       Optional. A human readable description of the tool.
       
      string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The toolDisplayDetails to set.
      Returns:
      This builder for chaining.
    • clearToolDisplayDetails

      public ToolCall.Builder clearToolDisplayDetails()
       Optional. A human readable description of the tool.
       
      string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setToolDisplayDetailsBytes

      public ToolCall.Builder setToolDisplayDetailsBytes(com.google.protobuf.ByteString value)
       Optional. A human readable description of the tool.
       
      string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for toolDisplayDetails to set.
      Returns:
      This builder for chaining.
    • getAction

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

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

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

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

      public ToolCall.Builder setActionBytes(com.google.protobuf.ByteString value)
       Optional. The name of the tool's action associated with this call.
       
      string action = 2 [(.google.api.field_behavior) = OPTIONAL];
      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
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Create time of the tool call.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ToolCallOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Create time of the tool call.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ToolCallOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public ToolCall.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time of the tool call.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public ToolCall.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Create time of the tool call.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public ToolCall.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time of the tool call.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public ToolCall.Builder clearCreateTime()
       Output only. Create time of the tool call.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Create time of the tool call.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Create time of the tool call.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ToolCallOrBuilder
    • getAnswerRecord

      public String getAnswerRecord()
       Optional. The answer record associated with this tool call.
       
      string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnswerRecord in interface ToolCallOrBuilder
      Returns:
      The answerRecord.
    • getAnswerRecordBytes

      public com.google.protobuf.ByteString getAnswerRecordBytes()
       Optional. The answer record associated with this tool call.
       
      string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnswerRecordBytes in interface ToolCallOrBuilder
      Returns:
      The bytes for answerRecord.
    • setAnswerRecord

      public ToolCall.Builder setAnswerRecord(String value)
       Optional. The answer record associated with this tool call.
       
      string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The answerRecord to set.
      Returns:
      This builder for chaining.
    • clearAnswerRecord

      public ToolCall.Builder clearAnswerRecord()
       Optional. The answer record associated with this tool call.
       
      string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAnswerRecordBytes

      public ToolCall.Builder setAnswerRecordBytes(com.google.protobuf.ByteString value)
       Optional. The answer record associated with this tool call.
       
      string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for answerRecord to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. State of the tool call.
       
      .google.cloud.dialogflow.v2.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ToolCallOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public ToolCall.Builder setStateValue(int value)
       Output only. State of the tool call.
       
      .google.cloud.dialogflow.v2.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public ToolCall.State getState()
       Output only. State of the tool call.
       
      .google.cloud.dialogflow.v2.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ToolCallOrBuilder
      Returns:
      The state.
    • setState

      public ToolCall.Builder setState(ToolCall.State value)
       Output only. State of the tool call.
       
      .google.cloud.dialogflow.v2.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public ToolCall.Builder clearState()
       Output only. State of the tool call.
       
      .google.cloud.dialogflow.v2.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.