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
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
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
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
|
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
|
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
|
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
|
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];
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
|
public ComputeTokensRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ComputeTokensRequest build()
public ComputeTokensRequest buildPartial()
public ComputeTokensRequest.Builder clear()
Overrides
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) = { ... }
public ComputeTokensRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
public ComputeTokensRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ComputeTokensRequest.Builder clone()
Overrides
public ComputeTokensRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
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 | |
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
|
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];
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 | |
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];
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
|
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> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ComputeTokensRequest.Builder mergeFrom(ComputeTokensRequest other)
public ComputeTokensRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ComputeTokensRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final ComputeTokensRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
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.
|
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.
|
public ComputeTokensRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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
|
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
|
public ComputeTokensRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ComputeTokensRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides