public static final class ComputeTokensRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder> implements ComputeTokensRequestOrBuilder
Request message for ComputeTokens RPC call.Protobuf type
google.cloud.aiplatform.v1.ComputeTokensRequest| Modifier and Type | Method and Description |
|---|---|
ComputeTokensRequest.Builder |
addAllInstances(Iterable<? extends com.google.protobuf.Value> values)
Required.
|
ComputeTokensRequest.Builder |
addInstances(int index,
com.google.protobuf.Value.Builder builderForValue)
Required.
|
ComputeTokensRequest.Builder |
addInstances(int index,
com.google.protobuf.Value value)
Required.
|
ComputeTokensRequest.Builder |
addInstances(com.google.protobuf.Value.Builder builderForValue)
Required.
|
ComputeTokensRequest.Builder |
addInstances(com.google.protobuf.Value value)
Required.
|
com.google.protobuf.Value.Builder |
addInstancesBuilder()
Required.
|
com.google.protobuf.Value.Builder |
addInstancesBuilder(int index)
Required.
|
ComputeTokensRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ComputeTokensRequest |
build() |
ComputeTokensRequest |
buildPartial() |
ComputeTokensRequest.Builder |
clear() |
ComputeTokensRequest.Builder |
clearEndpoint()
Required.
|
ComputeTokensRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ComputeTokensRequest.Builder |
clearInstances()
Required.
|
ComputeTokensRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ComputeTokensRequest.Builder |
clone() |
ComputeTokensRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEndpoint()
Required.
|
com.google.protobuf.ByteString |
getEndpointBytes()
Required.
|
com.google.protobuf.Value |
getInstances(int index)
Required.
|
com.google.protobuf.Value.Builder |
getInstancesBuilder(int index)
Required.
|
List<com.google.protobuf.Value.Builder> |
getInstancesBuilderList()
Required.
|
int |
getInstancesCount()
Required.
|
List<com.google.protobuf.Value> |
getInstancesList()
Required.
|
com.google.protobuf.ValueOrBuilder |
getInstancesOrBuilder(int index)
Required.
|
List<? extends com.google.protobuf.ValueOrBuilder> |
getInstancesOrBuilderList()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ComputeTokensRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ComputeTokensRequest.Builder |
mergeFrom(ComputeTokensRequest other) |
ComputeTokensRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
ComputeTokensRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ComputeTokensRequest.Builder |
removeInstances(int index)
Required.
|
ComputeTokensRequest.Builder |
setEndpoint(String value)
Required.
|
ComputeTokensRequest.Builder |
setEndpointBytes(com.google.protobuf.ByteString value)
Required.
|
ComputeTokensRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ComputeTokensRequest.Builder |
setInstances(int index,
com.google.protobuf.Value.Builder builderForValue)
Required.
|
ComputeTokensRequest.Builder |
setInstances(int index,
com.google.protobuf.Value value)
Required.
|
ComputeTokensRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ComputeTokensRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder>public ComputeTokensRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder>public ComputeTokensRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ComputeTokensRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ComputeTokensRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ComputeTokensRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder>public ComputeTokensRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder>public ComputeTokensRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder>public ComputeTokensRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder>public ComputeTokensRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder>public ComputeTokensRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder>public ComputeTokensRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ComputeTokensRequest.Builder>public ComputeTokensRequest.Builder mergeFrom(ComputeTokensRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder>public ComputeTokensRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ComputeTokensRequest.Builder>IOExceptionpublic 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) = { ... }
getEndpoint in interface ComputeTokensRequestOrBuilderpublic 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) = { ... }
getEndpointBytes in interface ComputeTokensRequestOrBuilderpublic 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) = { ... }
value - The endpoint to set.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 setEndpointBytes(com.google.protobuf.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) = { ... }
value - The bytes for endpoint to set.public List<com.google.protobuf.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];
getInstancesList in interface ComputeTokensRequestOrBuilderpublic 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];
getInstancesCount in interface ComputeTokensRequestOrBuilderpublic com.google.protobuf.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];
getInstances in interface ComputeTokensRequestOrBuilderpublic ComputeTokensRequest.Builder setInstances(int index, com.google.protobuf.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];
public ComputeTokensRequest.Builder setInstances(int index, com.google.protobuf.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];
public ComputeTokensRequest.Builder addInstances(com.google.protobuf.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];
public ComputeTokensRequest.Builder addInstances(int index, com.google.protobuf.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];
public ComputeTokensRequest.Builder addInstances(com.google.protobuf.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];
public ComputeTokensRequest.Builder addInstances(int index, com.google.protobuf.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];
public ComputeTokensRequest.Builder addAllInstances(Iterable<? extends com.google.protobuf.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];
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 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];
public com.google.protobuf.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];
public com.google.protobuf.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];
getInstancesOrBuilder in interface ComputeTokensRequestOrBuilderpublic List<? extends com.google.protobuf.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];
getInstancesOrBuilderList in interface ComputeTokensRequestOrBuilderpublic com.google.protobuf.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 com.google.protobuf.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];
public List<com.google.protobuf.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 final ComputeTokensRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder>public final ComputeTokensRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensRequest.Builder>Copyright © 2024 Google LLC. All rights reserved.