public static final class ComputeTokensRequest.Builder extends GeneratedMessageV3.Builder<ComputeTokensRequest.Builder> implements ComputeTokensRequestOrBuilder
Request message for ComputeTokens RPC call.
Protobuf type google.cloud.vertexai.v1.ComputeTokensRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllInstances(Iterable<? extends Value> values)
public ComputeTokensRequest.Builder addAllInstances(Iterable<? extends Value> values)
Required. 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) = REQUIRED];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.protobuf.Value>
|
addInstances(Value value)
public ComputeTokensRequest.Builder addInstances(Value value)
Required. 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) = REQUIRED];
Parameter |
Name |
Description |
value |
Value
|
addInstances(Value.Builder builderForValue)
public ComputeTokensRequest.Builder addInstances(Value.Builder builderForValue)
Required. 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) = REQUIRED];
Parameter |
Name |
Description |
builderForValue |
Builder
|
addInstances(int index, Value value)
public ComputeTokensRequest.Builder addInstances(int index, Value value)
Required. 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) = REQUIRED];
Parameters |
Name |
Description |
index |
int
|
value |
Value
|
addInstances(int index, Value.Builder builderForValue)
public ComputeTokensRequest.Builder addInstances(int index, Value.Builder builderForValue)
Required. 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) = REQUIRED];
Parameters |
Name |
Description |
index |
int
|
builderForValue |
Builder
|
addInstancesBuilder()
public Value.Builder addInstancesBuilder()
Required. 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) = REQUIRED];
addInstancesBuilder(int index)
public Value.Builder addInstancesBuilder(int index)
Required. 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) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComputeTokensRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ComputeTokensRequest build()
buildPartial()
public ComputeTokensRequest buildPartial()
clear()
public ComputeTokensRequest.Builder clear()
Overrides
clearEndpoint()
public ComputeTokensRequest.Builder 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) = { ... }
clearField(Descriptors.FieldDescriptor field)
public ComputeTokensRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearInstances()
public ComputeTokensRequest.Builder clearInstances()
Required. 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) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public ComputeTokensRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ComputeTokensRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public ComputeTokensRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEndpoint()
public String 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) = { ... }
Returns |
Type |
Description |
String |
The endpoint.
|
getEndpointBytes()
public 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) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for endpoint.
|
getInstances(int index)
public Value getInstances(int index)
Required. 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) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
Value |
|
getInstancesBuilder(int index)
public Value.Builder getInstancesBuilder(int index)
Required. 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) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
getInstancesBuilderList()
public List<Value.Builder> getInstancesBuilderList()
Required. 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) = REQUIRED];
getInstancesCount()
public int getInstancesCount()
Required. 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) = REQUIRED];
Returns |
Type |
Description |
int |
|
getInstancesList()
public List<Value> getInstancesList()
Required. 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) = REQUIRED];
getInstancesOrBuilder(int index)
public ValueOrBuilder getInstancesOrBuilder(int index)
Required. 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) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
getInstancesOrBuilderList()
public List<? extends ValueOrBuilder> getInstancesOrBuilderList()
Required. 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) = REQUIRED];
Returns |
Type |
Description |
List<? extends com.google.protobuf.ValueOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ComputeTokensRequest other)
public ComputeTokensRequest.Builder mergeFrom(ComputeTokensRequest other)
public ComputeTokensRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ComputeTokensRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComputeTokensRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeInstances(int index)
public ComputeTokensRequest.Builder removeInstances(int index)
Required. 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) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
setEndpoint(String value)
public ComputeTokensRequest.Builder setEndpoint(String value)
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) = { ... }
Parameter |
Name |
Description |
value |
String
The endpoint to set.
|
setEndpointBytes(ByteString value)
public ComputeTokensRequest.Builder setEndpointBytes(ByteString value)
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) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for endpoint to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ComputeTokensRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setInstances(int index, Value value)
public ComputeTokensRequest.Builder setInstances(int index, Value value)
Required. 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) = REQUIRED];
Parameters |
Name |
Description |
index |
int
|
value |
Value
|
setInstances(int index, Value.Builder builderForValue)
public ComputeTokensRequest.Builder setInstances(int index, Value.Builder builderForValue)
Required. 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) = REQUIRED];
Parameters |
Name |
Description |
index |
int
|
builderForValue |
Builder
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComputeTokensRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ComputeTokensRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides