public static final class CountTokensRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder> implements CountTokensRequestOrBuilder
Request message for [PredictionService.CountTokens][google.cloud.aiplatform.v1beta1.PredictionService.CountTokens].Protobuf type
google.cloud.aiplatform.v1beta1.CountTokensRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>public CountTokensRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>public CountTokensRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CountTokensRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CountTokensRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CountTokensRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>public CountTokensRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>public CountTokensRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>public CountTokensRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>public CountTokensRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>public CountTokensRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>public CountTokensRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CountTokensRequest.Builder>public CountTokensRequest.Builder mergeFrom(CountTokensRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>public CountTokensRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CountTokensRequest.Builder>IOExceptionpublic 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) = { ... }
getEndpoint in interface CountTokensRequestOrBuilderpublic 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) = { ... }
getEndpointBytes in interface CountTokensRequestOrBuilderpublic 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) = { ... }
value - The endpoint to set.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) = { ... }
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) = { ... }
value - The bytes for endpoint to set.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];getModel in interface CountTokensRequestOrBuilderpublic 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];getModelBytes in interface CountTokensRequestOrBuilderpublic 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];value - The model to set.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];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];value - The bytes for model to set.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];
getInstancesList in interface CountTokensRequestOrBuilderpublic 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];
getInstancesCount in interface CountTokensRequestOrBuilderpublic 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];
getInstances in interface CountTokensRequestOrBuilderpublic 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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
getInstancesOrBuilder in interface CountTokensRequestOrBuilderpublic 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];
getInstancesOrBuilderList in interface CountTokensRequestOrBuilderpublic 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];
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];
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];
public List<Content> getContentsList()
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
getContentsList in interface CountTokensRequestOrBuilderpublic int getContentsCount()
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
getContentsCount in interface CountTokensRequestOrBuilderpublic Content getContents(int index)
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
getContents in interface CountTokensRequestOrBuilderpublic CountTokensRequest.Builder setContents(int index, Content value)
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
public CountTokensRequest.Builder setContents(int index, Content.Builder builderForValue)
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
public CountTokensRequest.Builder addContents(Content value)
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
public CountTokensRequest.Builder addContents(int index, Content value)
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
public CountTokensRequest.Builder addContents(Content.Builder builderForValue)
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
public CountTokensRequest.Builder addContents(int index, Content.Builder builderForValue)
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
public CountTokensRequest.Builder addAllContents(Iterable<? extends Content> values)
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
public CountTokensRequest.Builder clearContents()
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
public CountTokensRequest.Builder removeContents(int index)
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
public Content.Builder getContentsBuilder(int index)
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
public ContentOrBuilder getContentsOrBuilder(int index)
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
getContentsOrBuilder in interface CountTokensRequestOrBuilderpublic List<? extends ContentOrBuilder> getContentsOrBuilderList()
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
getContentsOrBuilderList in interface CountTokensRequestOrBuilderpublic Content.Builder addContentsBuilder()
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
public Content.Builder addContentsBuilder(int index)
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
public List<Content.Builder> getContentsBuilderList()
Optional. Input content.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
hasSystemInstruction in interface CountTokensRequestOrBuilderpublic 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
getSystemInstruction in interface CountTokensRequestOrBuilderpublic 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
getSystemInstructionOrBuilder in interface CountTokensRequestOrBuilderpublic 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
getToolsList in interface CountTokensRequestOrBuilderpublic 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
getToolsCount in interface CountTokensRequestOrBuilderpublic 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
getTools in interface CountTokensRequestOrBuilderpublic 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
getToolsOrBuilder in interface CountTokensRequestOrBuilderpublic 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
getToolsOrBuilderList in interface CountTokensRequestOrBuilderpublic 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
public boolean hasGenerationConfig()
Optional. Generation config that the model will use to generate the response.
optional .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
hasGenerationConfig in interface CountTokensRequestOrBuilderpublic GenerationConfig getGenerationConfig()
Optional. Generation config that the model will use to generate the response.
optional .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
getGenerationConfig in interface CountTokensRequestOrBuilderpublic CountTokensRequest.Builder setGenerationConfig(GenerationConfig value)
Optional. Generation config that the model will use to generate the response.
optional .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
public CountTokensRequest.Builder setGenerationConfig(GenerationConfig.Builder builderForValue)
Optional. Generation config that the model will use to generate the response.
optional .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
public CountTokensRequest.Builder mergeGenerationConfig(GenerationConfig value)
Optional. Generation config that the model will use to generate the response.
optional .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
public CountTokensRequest.Builder clearGenerationConfig()
Optional. Generation config that the model will use to generate the response.
optional .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
public GenerationConfig.Builder getGenerationConfigBuilder()
Optional. Generation config that the model will use to generate the response.
optional .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
public GenerationConfigOrBuilder getGenerationConfigOrBuilder()
Optional. Generation config that the model will use to generate the response.
optional .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
getGenerationConfigOrBuilder in interface CountTokensRequestOrBuilderpublic final CountTokensRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>public final CountTokensRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>Copyright © 2024 Google LLC. All rights reserved.