public static final class ComputeTokensResponse.Builder extends com.google.protobuf.GeneratedMessageV3.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 |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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 |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ComputeTokensResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ComputeTokensResponse.Builder |
clearTokensInfo()
Lists of tokens info from the input.
|
ComputeTokensResponse.Builder |
clone() |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ComputeTokensResponse.Builder |
removeTokensInfo(int index)
Lists of tokens info from the input.
|
ComputeTokensResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ComputeTokensResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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.
|
ComputeTokensResponse.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<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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensResponse.Builder>public ComputeTokensResponse.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<ComputeTokensResponse.Builder>public ComputeTokensResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensResponse.Builder>public ComputeTokensResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensResponse.Builder>public ComputeTokensResponse.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<ComputeTokensResponse.Builder>public ComputeTokensResponse.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<ComputeTokensResponse.Builder>public 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.GeneratedMessageV3.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;public final ComputeTokensResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensResponse.Builder>public final ComputeTokensResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeTokensResponse.Builder>Copyright © 2025 Google LLC. All rights reserved.