- 3.52.0 (latest)
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.3.0
- 3.2.0
- 3.0.0
- 2.9.8
- 2.8.9
- 2.7.4
- 2.5.3
- 2.4.0
public static final class ComputeTokensRequest.Builder extends GeneratedMessageV3.Builder<ComputeTokensRequest.Builder> implements ComputeTokensRequestOrBuilder
Request message for ComputeTokens RPC call.
Protobuf type google.cloud.aiplatform.v1.ComputeTokensRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ComputeTokensRequest.BuilderImplements
ComputeTokensRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllContents(Iterable<? extends Content> values)
public ComputeTokensRequest.Builder addAllContents(Iterable<? extends Content> values)
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1.Content> |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
addAllInstances(Iterable<? extends Value> values)
public ComputeTokensRequest.Builder addAllInstances(Iterable<? extends 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];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.protobuf.Value> |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
addContents(Content value)
public ComputeTokensRequest.Builder addContents(Content value)
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Content |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
addContents(Content.Builder builderForValue)
public ComputeTokensRequest.Builder addContents(Content.Builder builderForValue)
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
Content.Builder |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
addContents(int index, Content value)
public ComputeTokensRequest.Builder addContents(int index, Content value)
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Content |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
addContents(int index, Content.Builder builderForValue)
public ComputeTokensRequest.Builder addContents(int index, Content.Builder builderForValue)
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Content.Builder |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
addContentsBuilder()
public Content.Builder addContentsBuilder()
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Content.Builder |
addContentsBuilder(int index)
public Content.Builder addContentsBuilder(int index)
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Content.Builder |
addInstances(Value value)
public ComputeTokensRequest.Builder addInstances(Value value)
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];
Parameter | |
---|---|
Name | Description |
value |
Value |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
addInstances(Value.Builder builderForValue)
public ComputeTokensRequest.Builder addInstances(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];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
addInstances(int index, Value value)
public ComputeTokensRequest.Builder addInstances(int index, Value value)
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];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Value |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
addInstances(int index, Value.Builder builderForValue)
public ComputeTokensRequest.Builder addInstances(int index, 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];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
addInstancesBuilder()
public 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];
Returns | |
---|---|
Type | Description |
Builder |
addInstancesBuilder(int index)
public 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];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComputeTokensRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
build()
public ComputeTokensRequest build()
Returns | |
---|---|
Type | Description |
ComputeTokensRequest |
buildPartial()
public ComputeTokensRequest buildPartial()
Returns | |
---|---|
Type | Description |
ComputeTokensRequest |
clear()
public ComputeTokensRequest.Builder clear()
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
clearContents()
public ComputeTokensRequest.Builder clearContents()
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
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) = { ... }
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ComputeTokensRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
clearInstances()
public ComputeTokensRequest.Builder 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];
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
clearModel()
public ComputeTokensRequest.Builder clearModel()
Optional. The name of the publisher model requested to serve the prediction. Format: projects/{project}/locations/{location}/publishers/*/models/*
string model = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ComputeTokensRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
clone()
public ComputeTokensRequest.Builder clone()
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
getContents(int index)
public Content getContents(int index)
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Content |
getContentsBuilder(int index)
public Content.Builder getContentsBuilder(int index)
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Content.Builder |
getContentsBuilderList()
public List<Content.Builder> getContentsBuilderList()
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getContentsCount()
public int getContentsCount()
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getContentsList()
public List<Content> getContentsList()
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Content> |
getContentsOrBuilder(int index)
public ContentOrBuilder getContentsOrBuilder(int index)
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ContentOrBuilder |
getContentsOrBuilderList()
public List<? extends ContentOrBuilder> getContentsOrBuilderList()
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.aiplatform.v1.ContentOrBuilder> |
getDefaultInstanceForType()
public ComputeTokensRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ComputeTokensRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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)
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];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Value |
getInstancesBuilder(int index)
public 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];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Builder |
getInstancesBuilderList()
public List<Value.Builder> 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];
Returns | |
---|---|
Type | Description |
List<Builder> |
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];
Returns | |
---|---|
Type | Description |
int |
getInstancesList()
public List<Value> 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];
Returns | |
---|---|
Type | Description |
List<Value> |
getInstancesOrBuilder(int index)
public 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];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ValueOrBuilder |
getInstancesOrBuilderList()
public List<? extends ValueOrBuilder> 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];
Returns | |
---|---|
Type | Description |
List<? extends com.google.protobuf.ValueOrBuilder> |
getModel()
public String getModel()
Optional. The name of the publisher model requested to serve the prediction. Format: projects/{project}/locations/{location}/publishers/*/models/*
string model = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The model. |
getModelBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for model. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ComputeTokensRequest other)
public ComputeTokensRequest.Builder mergeFrom(ComputeTokensRequest other)
Parameter | |
---|---|
Name | Description |
other |
ComputeTokensRequest |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ComputeTokensRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ComputeTokensRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComputeTokensRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
removeContents(int index)
public ComputeTokensRequest.Builder removeContents(int index)
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
removeInstances(int index)
public ComputeTokensRequest.Builder removeInstances(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];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
setContents(int index, Content value)
public ComputeTokensRequest.Builder setContents(int index, Content value)
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Content |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
setContents(int index, Content.Builder builderForValue)
public ComputeTokensRequest.Builder setContents(int index, Content.Builder builderForValue)
Optional. Input content.
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Content.Builder |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
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. |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
This builder for chaining. |
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. |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ComputeTokensRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
setInstances(int index, Value value)
public ComputeTokensRequest.Builder setInstances(int index, Value value)
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];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Value |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
setInstances(int index, Value.Builder builderForValue)
public ComputeTokensRequest.Builder setInstances(int index, 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];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
setModel(String value)
public ComputeTokensRequest.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];
Parameter | |
---|---|
Name | Description |
value |
String The model to set. |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
This builder for chaining. |
setModelBytes(ByteString value)
public ComputeTokensRequest.Builder setModelBytes(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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for model to set. |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComputeTokensRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ComputeTokensRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ComputeTokensRequest.Builder |