Class ToolUseExample.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ToolUseExample.Builder>
com.google.cloud.aiplatform.v1beta1.ToolUseExample.Builder
All Implemented Interfaces:
ToolUseExampleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ToolUseExample

public static final class ToolUseExample.Builder extends com.google.protobuf.GeneratedMessage.Builder<ToolUseExample.Builder> implements ToolUseExampleOrBuilder
 A single example of the tool usage.
 
Protobuf type google.cloud.aiplatform.v1beta1.ToolUseExample
  • 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<ToolUseExample.Builder>
    • clear

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

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

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

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

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

      public ToolUseExample.Builder mergeFrom(ToolUseExample other)
    • isInitialized

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

      public ToolUseExample.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<ToolUseExample.Builder>
      Throws:
      IOException
    • getTargetCase

      public ToolUseExample.TargetCase getTargetCase()
      Specified by:
      getTargetCase in interface ToolUseExampleOrBuilder
    • clearTarget

      public ToolUseExample.Builder clearTarget()
    • hasExtensionOperation

      public boolean hasExtensionOperation()
       Extension operation to call.
       
      .google.cloud.aiplatform.v1beta1.ToolUseExample.ExtensionOperation extension_operation = 10;
      Specified by:
      hasExtensionOperation in interface ToolUseExampleOrBuilder
      Returns:
      Whether the extensionOperation field is set.
    • getExtensionOperation

      public ToolUseExample.ExtensionOperation getExtensionOperation()
       Extension operation to call.
       
      .google.cloud.aiplatform.v1beta1.ToolUseExample.ExtensionOperation extension_operation = 10;
      Specified by:
      getExtensionOperation in interface ToolUseExampleOrBuilder
      Returns:
      The extensionOperation.
    • setExtensionOperation

      public ToolUseExample.Builder setExtensionOperation(ToolUseExample.ExtensionOperation value)
       Extension operation to call.
       
      .google.cloud.aiplatform.v1beta1.ToolUseExample.ExtensionOperation extension_operation = 10;
    • setExtensionOperation

      public ToolUseExample.Builder setExtensionOperation(ToolUseExample.ExtensionOperation.Builder builderForValue)
       Extension operation to call.
       
      .google.cloud.aiplatform.v1beta1.ToolUseExample.ExtensionOperation extension_operation = 10;
    • mergeExtensionOperation

      public ToolUseExample.Builder mergeExtensionOperation(ToolUseExample.ExtensionOperation value)
       Extension operation to call.
       
      .google.cloud.aiplatform.v1beta1.ToolUseExample.ExtensionOperation extension_operation = 10;
    • clearExtensionOperation

      public ToolUseExample.Builder clearExtensionOperation()
       Extension operation to call.
       
      .google.cloud.aiplatform.v1beta1.ToolUseExample.ExtensionOperation extension_operation = 10;
    • getExtensionOperationBuilder

      public ToolUseExample.ExtensionOperation.Builder getExtensionOperationBuilder()
       Extension operation to call.
       
      .google.cloud.aiplatform.v1beta1.ToolUseExample.ExtensionOperation extension_operation = 10;
    • getExtensionOperationOrBuilder

      public ToolUseExample.ExtensionOperationOrBuilder getExtensionOperationOrBuilder()
       Extension operation to call.
       
      .google.cloud.aiplatform.v1beta1.ToolUseExample.ExtensionOperation extension_operation = 10;
      Specified by:
      getExtensionOperationOrBuilder in interface ToolUseExampleOrBuilder
    • hasFunctionName

      public boolean hasFunctionName()
       Function name to call.
       
      string function_name = 11;
      Specified by:
      hasFunctionName in interface ToolUseExampleOrBuilder
      Returns:
      Whether the functionName field is set.
    • getFunctionName

      public String getFunctionName()
       Function name to call.
       
      string function_name = 11;
      Specified by:
      getFunctionName in interface ToolUseExampleOrBuilder
      Returns:
      The functionName.
    • getFunctionNameBytes

      public com.google.protobuf.ByteString getFunctionNameBytes()
       Function name to call.
       
      string function_name = 11;
      Specified by:
      getFunctionNameBytes in interface ToolUseExampleOrBuilder
      Returns:
      The bytes for functionName.
    • setFunctionName

      public ToolUseExample.Builder setFunctionName(String value)
       Function name to call.
       
      string function_name = 11;
      Parameters:
      value - The functionName to set.
      Returns:
      This builder for chaining.
    • clearFunctionName

      public ToolUseExample.Builder clearFunctionName()
       Function name to call.
       
      string function_name = 11;
      Returns:
      This builder for chaining.
    • setFunctionNameBytes

      public ToolUseExample.Builder setFunctionNameBytes(com.google.protobuf.ByteString value)
       Function name to call.
       
      string function_name = 11;
      Parameters:
      value - The bytes for functionName to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. The display name for example.
       
      string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface ToolUseExampleOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The display name for example.
       
      string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface ToolUseExampleOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public ToolUseExample.Builder setDisplayName(String value)
       Required. The display name for example.
       
      string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public ToolUseExample.Builder clearDisplayName()
       Required. The display name for example.
       
      string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public ToolUseExample.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. The display name for example.
       
      string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getQuery

      public String getQuery()
       Required. Query that should be routed to this tool.
       
      string query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuery in interface ToolUseExampleOrBuilder
      Returns:
      The query.
    • getQueryBytes

      public com.google.protobuf.ByteString getQueryBytes()
       Required. Query that should be routed to this tool.
       
      string query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQueryBytes in interface ToolUseExampleOrBuilder
      Returns:
      The bytes for query.
    • setQuery

      public ToolUseExample.Builder setQuery(String value)
       Required. Query that should be routed to this tool.
       
      string query = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The query to set.
      Returns:
      This builder for chaining.
    • clearQuery

      public ToolUseExample.Builder clearQuery()
       Required. Query that should be routed to this tool.
       
      string query = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setQueryBytes

      public ToolUseExample.Builder setQueryBytes(com.google.protobuf.ByteString value)
       Required. Query that should be routed to this tool.
       
      string query = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for query to set.
      Returns:
      This builder for chaining.
    • hasRequestParams

      public boolean hasRequestParams()
       Request parameters used for executing this tool.
       
      .google.protobuf.Struct request_params = 3;
      Specified by:
      hasRequestParams in interface ToolUseExampleOrBuilder
      Returns:
      Whether the requestParams field is set.
    • getRequestParams

      public com.google.protobuf.Struct getRequestParams()
       Request parameters used for executing this tool.
       
      .google.protobuf.Struct request_params = 3;
      Specified by:
      getRequestParams in interface ToolUseExampleOrBuilder
      Returns:
      The requestParams.
    • setRequestParams

      public ToolUseExample.Builder setRequestParams(com.google.protobuf.Struct value)
       Request parameters used for executing this tool.
       
      .google.protobuf.Struct request_params = 3;
    • setRequestParams

      public ToolUseExample.Builder setRequestParams(com.google.protobuf.Struct.Builder builderForValue)
       Request parameters used for executing this tool.
       
      .google.protobuf.Struct request_params = 3;
    • mergeRequestParams

      public ToolUseExample.Builder mergeRequestParams(com.google.protobuf.Struct value)
       Request parameters used for executing this tool.
       
      .google.protobuf.Struct request_params = 3;
    • clearRequestParams

      public ToolUseExample.Builder clearRequestParams()
       Request parameters used for executing this tool.
       
      .google.protobuf.Struct request_params = 3;
    • getRequestParamsBuilder

      public com.google.protobuf.Struct.Builder getRequestParamsBuilder()
       Request parameters used for executing this tool.
       
      .google.protobuf.Struct request_params = 3;
    • getRequestParamsOrBuilder

      public com.google.protobuf.StructOrBuilder getRequestParamsOrBuilder()
       Request parameters used for executing this tool.
       
      .google.protobuf.Struct request_params = 3;
      Specified by:
      getRequestParamsOrBuilder in interface ToolUseExampleOrBuilder
    • hasResponseParams

      public boolean hasResponseParams()
       Response parameters generated by this tool.
       
      .google.protobuf.Struct response_params = 4;
      Specified by:
      hasResponseParams in interface ToolUseExampleOrBuilder
      Returns:
      Whether the responseParams field is set.
    • getResponseParams

      public com.google.protobuf.Struct getResponseParams()
       Response parameters generated by this tool.
       
      .google.protobuf.Struct response_params = 4;
      Specified by:
      getResponseParams in interface ToolUseExampleOrBuilder
      Returns:
      The responseParams.
    • setResponseParams

      public ToolUseExample.Builder setResponseParams(com.google.protobuf.Struct value)
       Response parameters generated by this tool.
       
      .google.protobuf.Struct response_params = 4;
    • setResponseParams

      public ToolUseExample.Builder setResponseParams(com.google.protobuf.Struct.Builder builderForValue)
       Response parameters generated by this tool.
       
      .google.protobuf.Struct response_params = 4;
    • mergeResponseParams

      public ToolUseExample.Builder mergeResponseParams(com.google.protobuf.Struct value)
       Response parameters generated by this tool.
       
      .google.protobuf.Struct response_params = 4;
    • clearResponseParams

      public ToolUseExample.Builder clearResponseParams()
       Response parameters generated by this tool.
       
      .google.protobuf.Struct response_params = 4;
    • getResponseParamsBuilder

      public com.google.protobuf.Struct.Builder getResponseParamsBuilder()
       Response parameters generated by this tool.
       
      .google.protobuf.Struct response_params = 4;
    • getResponseParamsOrBuilder

      public com.google.protobuf.StructOrBuilder getResponseParamsOrBuilder()
       Response parameters generated by this tool.
       
      .google.protobuf.Struct response_params = 4;
      Specified by:
      getResponseParamsOrBuilder in interface ToolUseExampleOrBuilder
    • getResponseSummary

      public String getResponseSummary()
       Summary of the tool response to the user query.
       
      string response_summary = 5;
      Specified by:
      getResponseSummary in interface ToolUseExampleOrBuilder
      Returns:
      The responseSummary.
    • getResponseSummaryBytes

      public com.google.protobuf.ByteString getResponseSummaryBytes()
       Summary of the tool response to the user query.
       
      string response_summary = 5;
      Specified by:
      getResponseSummaryBytes in interface ToolUseExampleOrBuilder
      Returns:
      The bytes for responseSummary.
    • setResponseSummary

      public ToolUseExample.Builder setResponseSummary(String value)
       Summary of the tool response to the user query.
       
      string response_summary = 5;
      Parameters:
      value - The responseSummary to set.
      Returns:
      This builder for chaining.
    • clearResponseSummary

      public ToolUseExample.Builder clearResponseSummary()
       Summary of the tool response to the user query.
       
      string response_summary = 5;
      Returns:
      This builder for chaining.
    • setResponseSummaryBytes

      public ToolUseExample.Builder setResponseSummaryBytes(com.google.protobuf.ByteString value)
       Summary of the tool response to the user query.
       
      string response_summary = 5;
      Parameters:
      value - The bytes for responseSummary to set.
      Returns:
      This builder for chaining.