Class CountTokensRequest.Builder

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

public static final class CountTokensRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CountTokensRequest.Builder> implements CountTokensRequestOrBuilder
 Request message for [PredictionService.CountTokens][].
 
Protobuf type google.cloud.aiplatform.v1.CountTokensRequest
  • 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<CountTokensRequest.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<CountTokensRequest.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<CountTokensRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public CountTokensRequest.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<CountTokensRequest.Builder>
      Throws:
      IOException
    • getEndpoint

      public String getEndpoint()
       Required. The name of the Endpoint requested to perform token counting.
       Format:
       `projects/{project}/locations/{location}/endpoints/{endpoint}`
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getEndpoint in interface CountTokensRequestOrBuilder
      Returns:
      The endpoint.
    • getEndpointBytes

      public com.google.protobuf.ByteString getEndpointBytes()
       Required. The name of the Endpoint requested to perform token counting.
       Format:
       `projects/{project}/locations/{location}/endpoints/{endpoint}`
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getEndpointBytes in interface CountTokensRequestOrBuilder
      Returns:
      The bytes for endpoint.
    • setEndpoint

      public CountTokensRequest.Builder setEndpoint(String value)
       Required. The name of the Endpoint requested to perform token counting.
       Format:
       `projects/{project}/locations/{location}/endpoints/{endpoint}`
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The endpoint to set.
      Returns:
      This builder for chaining.
    • clearEndpoint

      public CountTokensRequest.Builder clearEndpoint()
       Required. The name of the Endpoint requested to perform token counting.
       Format:
       `projects/{project}/locations/{location}/endpoints/{endpoint}`
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setEndpointBytes

      public CountTokensRequest.Builder setEndpointBytes(com.google.protobuf.ByteString value)
       Required. The name of the Endpoint requested to perform token counting.
       Format:
       `projects/{project}/locations/{location}/endpoints/{endpoint}`
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for endpoint to set.
      Returns:
      This builder for chaining.
    • getModel

      public String getModel()
       Optional. The name of the publisher model requested to serve the
       prediction. Format:
       `projects/{project}/locations/{location}/publishers/*/models/*`
       
      string model = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModel in interface CountTokensRequestOrBuilder
      Returns:
      The model.
    • getModelBytes

      public com.google.protobuf.ByteString getModelBytes()
       Optional. The name of the publisher model requested to serve the
       prediction. Format:
       `projects/{project}/locations/{location}/publishers/*/models/*`
       
      string model = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModelBytes in interface CountTokensRequestOrBuilder
      Returns:
      The bytes for model.
    • setModel

      public CountTokensRequest.Builder setModel(String value)
       Optional. The name of the publisher model requested to serve the
       prediction. Format:
       `projects/{project}/locations/{location}/publishers/*/models/*`
       
      string model = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The model to set.
      Returns:
      This builder for chaining.
    • clearModel

      public CountTokensRequest.Builder clearModel()
       Optional. The name of the publisher model requested to serve the
       prediction. Format:
       `projects/{project}/locations/{location}/publishers/*/models/*`
       
      string model = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setModelBytes

      public CountTokensRequest.Builder setModelBytes(com.google.protobuf.ByteString value)
       Optional. The name of the publisher model requested to serve the
       prediction. Format:
       `projects/{project}/locations/{location}/publishers/*/models/*`
       
      string model = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for model to set.
      Returns:
      This builder for chaining.
    • getInstancesList

      public List<com.google.protobuf.Value> getInstancesList()
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInstancesList in interface CountTokensRequestOrBuilder
    • getInstancesCount

      public int getInstancesCount()
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInstancesCount in interface CountTokensRequestOrBuilder
    • getInstances

      public com.google.protobuf.Value getInstances(int index)
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInstances in interface CountTokensRequestOrBuilder
    • setInstances

      public CountTokensRequest.Builder setInstances(int index, com.google.protobuf.Value value)
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setInstances

      public CountTokensRequest.Builder setInstances(int index, com.google.protobuf.Value.Builder builderForValue)
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addInstances

      public CountTokensRequest.Builder addInstances(com.google.protobuf.Value value)
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addInstances

      public CountTokensRequest.Builder addInstances(int index, com.google.protobuf.Value value)
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addInstances

      public CountTokensRequest.Builder addInstances(com.google.protobuf.Value.Builder builderForValue)
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addInstances

      public CountTokensRequest.Builder addInstances(int index, com.google.protobuf.Value.Builder builderForValue)
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllInstances

      public CountTokensRequest.Builder addAllInstances(Iterable<? extends com.google.protobuf.Value> values)
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearInstances

      public CountTokensRequest.Builder clearInstances()
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeInstances

      public CountTokensRequest.Builder removeInstances(int index)
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getInstancesBuilder

      public com.google.protobuf.Value.Builder getInstancesBuilder(int index)
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getInstancesOrBuilder

      public com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index)
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInstancesOrBuilder in interface CountTokensRequestOrBuilder
    • getInstancesOrBuilderList

      public List<? extends com.google.protobuf.ValueOrBuilder> getInstancesOrBuilderList()
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInstancesOrBuilderList in interface CountTokensRequestOrBuilder
    • addInstancesBuilder

      public com.google.protobuf.Value.Builder addInstancesBuilder()
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addInstancesBuilder

      public com.google.protobuf.Value.Builder addInstancesBuilder(int index)
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getInstancesBuilderList

      public List<com.google.protobuf.Value.Builder> getInstancesBuilderList()
       Optional. The instances that are the input to token counting call.
       Schema is identical to the prediction schema of the underlying model.
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getContentsList

      public List<Content> getContentsList()
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentsList in interface CountTokensRequestOrBuilder
    • getContentsCount

      public int getContentsCount()
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentsCount in interface CountTokensRequestOrBuilder
    • getContents

      public Content getContents(int index)
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContents in interface CountTokensRequestOrBuilder
    • setContents

      public CountTokensRequest.Builder setContents(int index, Content value)
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setContents

      public CountTokensRequest.Builder setContents(int index, Content.Builder builderForValue)
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addContents

      public CountTokensRequest.Builder addContents(Content value)
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addContents

      public CountTokensRequest.Builder addContents(int index, Content value)
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addContents

      public CountTokensRequest.Builder addContents(Content.Builder builderForValue)
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addContents

      public CountTokensRequest.Builder addContents(int index, Content.Builder builderForValue)
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addAllContents

      public CountTokensRequest.Builder addAllContents(Iterable<? extends Content> values)
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearContents

      public CountTokensRequest.Builder clearContents()
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • removeContents

      public CountTokensRequest.Builder removeContents(int index)
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getContentsBuilder

      public Content.Builder getContentsBuilder(int index)
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getContentsOrBuilder

      public ContentOrBuilder getContentsOrBuilder(int index)
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentsOrBuilder in interface CountTokensRequestOrBuilder
    • getContentsOrBuilderList

      public List<? extends ContentOrBuilder> getContentsOrBuilderList()
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentsOrBuilderList in interface CountTokensRequestOrBuilder
    • addContentsBuilder

      public Content.Builder addContentsBuilder()
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addContentsBuilder

      public Content.Builder addContentsBuilder(int index)
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getContentsBuilderList

      public List<Content.Builder> getContentsBuilderList()
       Optional. Input content.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
    • hasSystemInstruction

      public boolean hasSystemInstruction()
       Optional. The user provided system instructions for the model.
       Note: only text should be used in parts and content in each part will be in
       a separate paragraph.
       
      optional .google.cloud.aiplatform.v1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSystemInstruction in interface CountTokensRequestOrBuilder
      Returns:
      Whether the systemInstruction field is set.
    • getSystemInstruction

      public Content getSystemInstruction()
       Optional. The user provided system instructions for the model.
       Note: only text should be used in parts and content in each part will be in
       a separate paragraph.
       
      optional .google.cloud.aiplatform.v1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSystemInstruction in interface CountTokensRequestOrBuilder
      Returns:
      The systemInstruction.
    • setSystemInstruction

      public CountTokensRequest.Builder setSystemInstruction(Content value)
       Optional. The user provided system instructions for the model.
       Note: only text should be used in parts and content in each part will be in
       a separate paragraph.
       
      optional .google.cloud.aiplatform.v1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setSystemInstruction

      public CountTokensRequest.Builder setSystemInstruction(Content.Builder builderForValue)
       Optional. The user provided system instructions for the model.
       Note: only text should be used in parts and content in each part will be in
       a separate paragraph.
       
      optional .google.cloud.aiplatform.v1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeSystemInstruction

      public CountTokensRequest.Builder mergeSystemInstruction(Content value)
       Optional. The user provided system instructions for the model.
       Note: only text should be used in parts and content in each part will be in
       a separate paragraph.
       
      optional .google.cloud.aiplatform.v1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearSystemInstruction

      public CountTokensRequest.Builder clearSystemInstruction()
       Optional. The user provided system instructions for the model.
       Note: only text should be used in parts and content in each part will be in
       a separate paragraph.
       
      optional .google.cloud.aiplatform.v1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getSystemInstructionBuilder

      public Content.Builder getSystemInstructionBuilder()
       Optional. The user provided system instructions for the model.
       Note: only text should be used in parts and content in each part will be in
       a separate paragraph.
       
      optional .google.cloud.aiplatform.v1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getSystemInstructionOrBuilder

      public ContentOrBuilder getSystemInstructionOrBuilder()
       Optional. The user provided system instructions for the model.
       Note: only text should be used in parts and content in each part will be in
       a separate paragraph.
       
      optional .google.cloud.aiplatform.v1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSystemInstructionOrBuilder in interface CountTokensRequestOrBuilder
    • getToolsList

      public List<Tool> getToolsList()
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsList in interface CountTokensRequestOrBuilder
    • getToolsCount

      public int getToolsCount()
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsCount in interface CountTokensRequestOrBuilder
    • getTools

      public Tool getTools(int index)
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTools in interface CountTokensRequestOrBuilder
    • setTools

      public CountTokensRequest.Builder setTools(int index, Tool value)
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setTools

      public CountTokensRequest.Builder setTools(int index, Tool.Builder builderForValue)
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addTools

      public CountTokensRequest.Builder addTools(Tool value)
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addTools

      public CountTokensRequest.Builder addTools(int index, Tool value)
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addTools

      public CountTokensRequest.Builder addTools(Tool.Builder builderForValue)
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addTools

      public CountTokensRequest.Builder addTools(int index, Tool.Builder builderForValue)
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addAllTools

      public CountTokensRequest.Builder addAllTools(Iterable<? extends Tool> values)
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearTools

      public CountTokensRequest.Builder clearTools()
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • removeTools

      public CountTokensRequest.Builder removeTools(int index)
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getToolsBuilder

      public Tool.Builder getToolsBuilder(int index)
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getToolsOrBuilder

      public ToolOrBuilder getToolsOrBuilder(int index)
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsOrBuilder in interface CountTokensRequestOrBuilder
    • getToolsOrBuilderList

      public List<? extends ToolOrBuilder> getToolsOrBuilderList()
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsOrBuilderList in interface CountTokensRequestOrBuilder
    • addToolsBuilder

      public Tool.Builder addToolsBuilder()
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addToolsBuilder

      public Tool.Builder addToolsBuilder(int index)
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getToolsBuilderList

      public List<Tool.Builder> getToolsBuilderList()
       Optional. A list of `Tools` the model may use to generate the next
       response.
      
       A `Tool` is a piece of code that enables the system to interact with
       external systems to perform an action, or set of actions, outside of
       knowledge and scope of the model.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
    • hasGenerationConfig

      public boolean hasGenerationConfig()
       Optional. Generation config that the model will use to generate the
       response.
       
      optional .google.cloud.aiplatform.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasGenerationConfig in interface CountTokensRequestOrBuilder
      Returns:
      Whether the generationConfig field is set.
    • getGenerationConfig

      public GenerationConfig getGenerationConfig()
       Optional. Generation config that the model will use to generate the
       response.
       
      optional .google.cloud.aiplatform.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGenerationConfig in interface CountTokensRequestOrBuilder
      Returns:
      The generationConfig.
    • setGenerationConfig

      public CountTokensRequest.Builder setGenerationConfig(GenerationConfig value)
       Optional. Generation config that the model will use to generate the
       response.
       
      optional .google.cloud.aiplatform.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • setGenerationConfig

      public CountTokensRequest.Builder setGenerationConfig(GenerationConfig.Builder builderForValue)
       Optional. Generation config that the model will use to generate the
       response.
       
      optional .google.cloud.aiplatform.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • mergeGenerationConfig

      public CountTokensRequest.Builder mergeGenerationConfig(GenerationConfig value)
       Optional. Generation config that the model will use to generate the
       response.
       
      optional .google.cloud.aiplatform.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • clearGenerationConfig

      public CountTokensRequest.Builder clearGenerationConfig()
       Optional. Generation config that the model will use to generate the
       response.
       
      optional .google.cloud.aiplatform.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getGenerationConfigBuilder

      public GenerationConfig.Builder getGenerationConfigBuilder()
       Optional. Generation config that the model will use to generate the
       response.
       
      optional .google.cloud.aiplatform.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getGenerationConfigOrBuilder

      public GenerationConfigOrBuilder getGenerationConfigOrBuilder()
       Optional. Generation config that the model will use to generate the
       response.
       
      optional .google.cloud.aiplatform.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGenerationConfigOrBuilder in interface CountTokensRequestOrBuilder