Package com.google.cloud.aiplatform.v1
Class ComputeTokensRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ComputeTokensRequest.Builder>
com.google.cloud.aiplatform.v1.ComputeTokensRequest.Builder
- All Implemented Interfaces:
ComputeTokensRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ComputeTokensRequest
public static final class ComputeTokensRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ComputeTokensRequest.Builder>
implements ComputeTokensRequestOrBuilder
Request message for ComputeTokens RPC call.Protobuf type
google.cloud.aiplatform.v1.ComputeTokensRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllContents(Iterable<? extends Content> values) Optional.addAllInstances(Iterable<? extends com.google.protobuf.Value> 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.build()clear()Optional.Required.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.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ComputeTokensRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeContents(int index) Optional.removeInstances(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.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.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<ComputeTokensRequest.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<ComputeTokensRequest.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<ComputeTokensRequest.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<ComputeTokensRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ComputeTokensRequest.Builder>
-
mergeFrom
public ComputeTokensRequest.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<ComputeTokensRequest.Builder>- Throws:
IOException
-
getEndpoint
Required. The name of the Endpoint requested to get lists of tokens and token ids.
string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getEndpointin interfaceComputeTokensRequestOrBuilder- Returns:
- The endpoint.
-
getEndpointBytes
public com.google.protobuf.ByteString getEndpointBytes()Required. The name of the Endpoint requested to get lists of tokens and token ids.
string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getEndpointBytesin interfaceComputeTokensRequestOrBuilder- Returns:
- The bytes for endpoint.
-
setEndpoint
Required. The name of the Endpoint requested to get lists of tokens and token ids.
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 get lists of tokens and token ids.
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 get lists of tokens and token ids.
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.
-
getInstancesList
Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInstancesListin interfaceComputeTokensRequestOrBuilder
-
getInstancesCount
public int getInstancesCount()Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInstancesCountin interfaceComputeTokensRequestOrBuilder
-
getInstances
public com.google.protobuf.Value getInstances(int index) Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInstancesin interfaceComputeTokensRequestOrBuilder
-
setInstances
Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setInstances
public ComputeTokensRequest.Builder setInstances(int index, com.google.protobuf.Value.Builder builderForValue) Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addInstances
Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addInstances
Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addInstances
Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addInstances
public ComputeTokensRequest.Builder addInstances(int index, com.google.protobuf.Value.Builder builderForValue) Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addAllInstances
public ComputeTokensRequest.Builder addAllInstances(Iterable<? extends com.google.protobuf.Value> values) Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearInstances
Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL]; -
removeInstances
Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
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 computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
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 computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInstancesOrBuilderin interfaceComputeTokensRequestOrBuilder
-
getInstancesOrBuilderList
Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInstancesOrBuilderListin interfaceComputeTokensRequestOrBuilder
-
addInstancesBuilder
public com.google.protobuf.Value.Builder addInstancesBuilder()Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
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 computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getInstancesBuilderList
Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL]; -
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 interfaceComputeTokensRequestOrBuilder- 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 interfaceComputeTokensRequestOrBuilder- 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.
-
getContentsList
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentsListin interfaceComputeTokensRequestOrBuilder
-
getContentsCount
public int getContentsCount()Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentsCountin interfaceComputeTokensRequestOrBuilder
-
getContents
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentsin interfaceComputeTokensRequestOrBuilder
-
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 interfaceComputeTokensRequestOrBuilder
-
getContentsOrBuilderList
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentsOrBuilderListin interfaceComputeTokensRequestOrBuilder
-
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];
-