Package com.google.cloud.aiplatform.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllContents(Iterable<? extends Content> values) Optional.addAllInstances(Iterable<? extends com.google.protobuf.Value> values) Optional.addAllTools(Iterable<? extends Tool> values) Optional.addContents(int index, Content value) Optional.addContents(int index, Content.Builder builderForValue) Optional.addContents(Content value) Optional.addContents(Content.Builder builderForValue) Optional.Optional.addContentsBuilder(int index) Optional.addInstances(int index, com.google.protobuf.Value value) Optional.addInstances(int index, com.google.protobuf.Value.Builder builderForValue) Optional.addInstances(com.google.protobuf.Value value) Optional.addInstances(com.google.protobuf.Value.Builder builderForValue) Optional.com.google.protobuf.Value.BuilderOptional.com.google.protobuf.Value.BuilderaddInstancesBuilder(int index) Optional.Optional.addTools(int index, Tool.Builder builderForValue) Optional.Optional.addTools(Tool.Builder builderForValue) Optional.Optional.addToolsBuilder(int index) Optional.build()clear()Optional.Required.Optional.Optional.Optional.Optional.Optional.getContents(int index) Optional.getContentsBuilder(int index) Optional.Optional.intOptional.Optional.getContentsOrBuilder(int index) Optional.List<? extends ContentOrBuilder>Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Optional.Optional.Optional.com.google.protobuf.ValuegetInstances(int index) Optional.com.google.protobuf.Value.BuildergetInstancesBuilder(int index) Optional.List<com.google.protobuf.Value.Builder>Optional.intOptional.List<com.google.protobuf.Value>Optional.com.google.protobuf.ValueOrBuildergetInstancesOrBuilder(int index) Optional.List<? extends com.google.protobuf.ValueOrBuilder>Optional.getModel()Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.Optional.getTools(int index) Optional.getToolsBuilder(int index) Optional.Optional.intOptional.Optional.getToolsOrBuilder(int index) Optional.List<? extends ToolOrBuilder>Optional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CountTokensRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.mergeSystemInstruction(Content value) Optional.removeContents(int index) Optional.removeInstances(int index) Optional.removeTools(int index) Optional.setContents(int index, Content value) Optional.setContents(int index, Content.Builder builderForValue) Optional.setEndpoint(String value) Required.setEndpointBytes(com.google.protobuf.ByteString value) Required.Optional.setGenerationConfig(GenerationConfig.Builder builderForValue) Optional.setInstances(int index, com.google.protobuf.Value value) Optional.setInstances(int index, com.google.protobuf.Value.Builder builderForValue) Optional.Optional.setModelBytes(com.google.protobuf.ByteString value) Optional.setSystemInstruction(Content value) Optional.setSystemInstruction(Content.Builder builderForValue) Optional.Optional.setTools(int index, Tool.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CountTokensRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CountTokensRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CountTokensRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CountTokensRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CountTokensRequest.Builder>- Throws:
IOException
-
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:
getEndpointin interfaceCountTokensRequestOrBuilder- 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:
getEndpointBytesin interfaceCountTokensRequestOrBuilder- Returns:
- The bytes for endpoint.
-
setEndpoint
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
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
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
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:
getModelin interfaceCountTokensRequestOrBuilder- 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:
getModelBytesin interfaceCountTokensRequestOrBuilder- Returns:
- The bytes for model.
-
setModel
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
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
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
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:
getInstancesListin interfaceCountTokensRequestOrBuilder
-
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:
getInstancesCountin interfaceCountTokensRequestOrBuilder
-
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:
getInstancesin interfaceCountTokensRequestOrBuilder
-
setInstances
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
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
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
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
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
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:
getInstancesOrBuilderin interfaceCountTokensRequestOrBuilder
-
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:
getInstancesOrBuilderListin interfaceCountTokensRequestOrBuilder
-
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
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
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentsListin interfaceCountTokensRequestOrBuilder
-
getContentsCount
public int getContentsCount()Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentsCountin interfaceCountTokensRequestOrBuilder
-
getContents
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentsin interfaceCountTokensRequestOrBuilder
-
setContents
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setContents
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addContents
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addContents
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addContents
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addContents
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addAllContents
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearContents
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; -
removeContents
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getContentsBuilder
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getContentsOrBuilder
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentsOrBuilderin interfaceCountTokensRequestOrBuilder
-
getContentsOrBuilderList
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentsOrBuilderListin interfaceCountTokensRequestOrBuilder
-
addContentsBuilder
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addContentsBuilder
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; -
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:
hasSystemInstructionin interfaceCountTokensRequestOrBuilder- Returns:
- Whether the systemInstruction field is set.
-
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:
getSystemInstructionin interfaceCountTokensRequestOrBuilder- Returns:
- The systemInstruction.
-
setSystemInstruction
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
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
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
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
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
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:
getSystemInstructionOrBuilderin interfaceCountTokensRequestOrBuilder
-
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:
getToolsListin interfaceCountTokensRequestOrBuilder
-
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:
getToolsCountin interfaceCountTokensRequestOrBuilder
-
getTools
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:
getToolsin interfaceCountTokensRequestOrBuilder
-
setTools
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
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
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
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
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
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
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
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
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
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
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:
getToolsOrBuilderin interfaceCountTokensRequestOrBuilder
-
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:
getToolsOrBuilderListin interfaceCountTokensRequestOrBuilder
-
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
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
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:
hasGenerationConfigin interfaceCountTokensRequestOrBuilder- Returns:
- Whether the generationConfig field is set.
-
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:
getGenerationConfigin interfaceCountTokensRequestOrBuilder- Returns:
- The generationConfig.
-
setGenerationConfig
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
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
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
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
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
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:
getGenerationConfigOrBuilderin interfaceCountTokensRequestOrBuilder
-