public static final class ComputeTokensResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ComputeTokensResponse.Builder> implements ComputeTokensResponseOrBuilder
Response message for ComputeTokens RPC call.Protobuf type
google.cloud.aiplatform.v1.ComputeTokensResponse| Modifier and Type | Method and Description |
|---|---|
ComputeTokensResponse.Builder |
addAllTokensInfo(Iterable<? extends TokensInfo> values)
Lists of tokens info from the input.
|
ComputeTokensResponse.Builder |
addTokensInfo(int index,
TokensInfo.Builder builderForValue)
Lists of tokens info from the input.
|
ComputeTokensResponse.Builder |
addTokensInfo(int index,
TokensInfo value)
Lists of tokens info from the input.
|
ComputeTokensResponse.Builder |
addTokensInfo(TokensInfo.Builder builderForValue)
Lists of tokens info from the input.
|
ComputeTokensResponse.Builder |
addTokensInfo(TokensInfo value)
Lists of tokens info from the input.
|
TokensInfo.Builder |
addTokensInfoBuilder()
Lists of tokens info from the input.
|
TokensInfo.Builder |
addTokensInfoBuilder(int index)
Lists of tokens info from the input.
|
ComputeTokensResponse |
build() |
ComputeTokensResponse |
buildPartial() |
ComputeTokensResponse.Builder |
clear() |
ComputeTokensResponse.Builder |
clearTokensInfo()
Lists of tokens info from the input.
|
ComputeTokensResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TokensInfo |
getTokensInfo(int index)
Lists of tokens info from the input.
|
TokensInfo.Builder |
getTokensInfoBuilder(int index)
Lists of tokens info from the input.
|
List<TokensInfo.Builder> |
getTokensInfoBuilderList()
Lists of tokens info from the input.
|
int |
getTokensInfoCount()
Lists of tokens info from the input.
|
List<TokensInfo> |
getTokensInfoList()
Lists of tokens info from the input.
|
TokensInfoOrBuilder |
getTokensInfoOrBuilder(int index)
Lists of tokens info from the input.
|
List<? extends TokensInfoOrBuilder> |
getTokensInfoOrBuilderList()
Lists of tokens info from the input.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ComputeTokensResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ComputeTokensResponse.Builder |
mergeFrom(ComputeTokensResponse other) |
ComputeTokensResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
ComputeTokensResponse.Builder |
removeTokensInfo(int index)
Lists of tokens info from the input.
|
ComputeTokensResponse.Builder |
setTokensInfo(int index,
TokensInfo.Builder builderForValue)
Lists of tokens info from the input.
|
ComputeTokensResponse.Builder |
setTokensInfo(int index,
TokensInfo value)
Lists of tokens info from the input.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ComputeTokensResponse.Builder>public ComputeTokensResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<ComputeTokensResponse.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.GeneratedMessage.Builder<ComputeTokensResponse.Builder>public ComputeTokensResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ComputeTokensResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ComputeTokensResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ComputeTokensResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ComputeTokensResponse.Builder>public ComputeTokensResponse.Builder mergeFrom(ComputeTokensResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<ComputeTokensResponse.Builder>public ComputeTokensResponse.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<ComputeTokensResponse.Builder>IOExceptionpublic List<TokensInfo> getTokensInfoList()
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;getTokensInfoList in interface ComputeTokensResponseOrBuilderpublic int getTokensInfoCount()
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;getTokensInfoCount in interface ComputeTokensResponseOrBuilderpublic TokensInfo getTokensInfo(int index)
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;getTokensInfo in interface ComputeTokensResponseOrBuilderpublic ComputeTokensResponse.Builder setTokensInfo(int index, TokensInfo value)
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;public ComputeTokensResponse.Builder setTokensInfo(int index, TokensInfo.Builder builderForValue)
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;public ComputeTokensResponse.Builder addTokensInfo(TokensInfo value)
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;public ComputeTokensResponse.Builder addTokensInfo(int index, TokensInfo value)
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;public ComputeTokensResponse.Builder addTokensInfo(TokensInfo.Builder builderForValue)
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;public ComputeTokensResponse.Builder addTokensInfo(int index, TokensInfo.Builder builderForValue)
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;public ComputeTokensResponse.Builder addAllTokensInfo(Iterable<? extends TokensInfo> values)
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;public ComputeTokensResponse.Builder clearTokensInfo()
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;public ComputeTokensResponse.Builder removeTokensInfo(int index)
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;public TokensInfo.Builder getTokensInfoBuilder(int index)
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;public TokensInfoOrBuilder getTokensInfoOrBuilder(int index)
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;getTokensInfoOrBuilder in interface ComputeTokensResponseOrBuilderpublic List<? extends TokensInfoOrBuilder> getTokensInfoOrBuilderList()
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;getTokensInfoOrBuilderList in interface ComputeTokensResponseOrBuilderpublic TokensInfo.Builder addTokensInfoBuilder()
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;public TokensInfo.Builder addTokensInfoBuilder(int index)
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;public List<TokensInfo.Builder> getTokensInfoBuilderList()
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;Copyright © 2026 Google LLC. All rights reserved.