Class ToolCallResult.Builder

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

public static final class ToolCallResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<ToolCallResult.Builder> implements ToolCallResultOrBuilder
 The result of calling a tool's action that has been executed by the client.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ToolCallResult
  • 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<ToolCallResult.Builder>
    • clear

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

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

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

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

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

      public ToolCallResult.Builder mergeFrom(ToolCallResult other)
    • isInitialized

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

      public ToolCallResult.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<ToolCallResult.Builder>
      Throws:
      IOException
    • getResultCase

      public ToolCallResult.ResultCase getResultCase()
      Specified by:
      getResultCase in interface ToolCallResultOrBuilder
    • clearResult

      public ToolCallResult.Builder clearResult()
    • 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 ToolCallResultOrBuilder
      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 ToolCallResultOrBuilder
      Returns:
      The bytes for tool.
    • setTool

      public ToolCallResult.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 ToolCallResult.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 ToolCallResult.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 ToolCallResultOrBuilder
      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 ToolCallResultOrBuilder
      Returns:
      The bytes for action.
    • setAction

      public ToolCallResult.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 ToolCallResult.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 ToolCallResult.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.
    • hasError

      public boolean hasError()
       The tool call's error.
       
      .google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;
      Specified by:
      hasError in interface ToolCallResultOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public ToolCallResult.Error getError()
       The tool call's error.
       
      .google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;
      Specified by:
      getError in interface ToolCallResultOrBuilder
      Returns:
      The error.
    • setError

       The tool call's error.
       
      .google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;
    • setError

      public ToolCallResult.Builder setError(ToolCallResult.Error.Builder builderForValue)
       The tool call's error.
       
      .google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;
    • mergeError

      public ToolCallResult.Builder mergeError(ToolCallResult.Error value)
       The tool call's error.
       
      .google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;
    • clearError

      public ToolCallResult.Builder clearError()
       The tool call's error.
       
      .google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;
    • getErrorBuilder

      public ToolCallResult.Error.Builder getErrorBuilder()
       The tool call's error.
       
      .google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;
    • getErrorOrBuilder

      public ToolCallResult.ErrorOrBuilder getErrorOrBuilder()
       The tool call's error.
       
      .google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;
      Specified by:
      getErrorOrBuilder in interface ToolCallResultOrBuilder
    • hasOutputParameters

      public boolean hasOutputParameters()
       The tool call's output parameters.
       
      .google.protobuf.Struct output_parameters = 4;
      Specified by:
      hasOutputParameters in interface ToolCallResultOrBuilder
      Returns:
      Whether the outputParameters field is set.
    • getOutputParameters

      public com.google.protobuf.Struct getOutputParameters()
       The tool call's output parameters.
       
      .google.protobuf.Struct output_parameters = 4;
      Specified by:
      getOutputParameters in interface ToolCallResultOrBuilder
      Returns:
      The outputParameters.
    • setOutputParameters

      public ToolCallResult.Builder setOutputParameters(com.google.protobuf.Struct value)
       The tool call's output parameters.
       
      .google.protobuf.Struct output_parameters = 4;
    • setOutputParameters

      public ToolCallResult.Builder setOutputParameters(com.google.protobuf.Struct.Builder builderForValue)
       The tool call's output parameters.
       
      .google.protobuf.Struct output_parameters = 4;
    • mergeOutputParameters

      public ToolCallResult.Builder mergeOutputParameters(com.google.protobuf.Struct value)
       The tool call's output parameters.
       
      .google.protobuf.Struct output_parameters = 4;
    • clearOutputParameters

      public ToolCallResult.Builder clearOutputParameters()
       The tool call's output parameters.
       
      .google.protobuf.Struct output_parameters = 4;
    • getOutputParametersBuilder

      public com.google.protobuf.Struct.Builder getOutputParametersBuilder()
       The tool call's output parameters.
       
      .google.protobuf.Struct output_parameters = 4;
    • getOutputParametersOrBuilder

      public com.google.protobuf.StructOrBuilder getOutputParametersOrBuilder()
       The tool call's output parameters.
       
      .google.protobuf.Struct output_parameters = 4;
      Specified by:
      getOutputParametersOrBuilder in interface ToolCallResultOrBuilder