public static final class ComputeTokensResponse.Builder extends GeneratedMessage.Builder<ComputeTokensResponse.Builder> implements ComputeTokensResponseOrBuilder
Response message for ComputeTokens RPC call.
Protobuf type google.cloud.vertexai.v1.ComputeTokensResponse
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllTokensInfo(Iterable<? extends TokensInfo> values)
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.vertexai.v1.TokensInfo tokens_info = 1;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.vertexai.api.TokensInfo>
|
addTokensInfo(TokensInfo value)
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.vertexai.v1.TokensInfo tokens_info = 1;
addTokensInfo(TokensInfo.Builder builderForValue)
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.vertexai.v1.TokensInfo tokens_info = 1;
addTokensInfo(int index, TokensInfo value)
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.vertexai.v1.TokensInfo tokens_info = 1;
addTokensInfo(int index, TokensInfo.Builder builderForValue)
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.vertexai.v1.TokensInfo tokens_info = 1;
addTokensInfoBuilder()
public 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.vertexai.v1.TokensInfo tokens_info = 1;
addTokensInfoBuilder(int index)
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.vertexai.v1.TokensInfo tokens_info = 1;
| Parameter |
| Name |
Description |
index |
int
|
build()
public ComputeTokensResponse build()
buildPartial()
public ComputeTokensResponse buildPartial()
clear()
public ComputeTokensResponse.Builder clear()
Overrides
clearTokensInfo()
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.vertexai.v1.TokensInfo tokens_info = 1;
getDefaultInstanceForType()
public ComputeTokensResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getTokensInfo(int index)
public 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.vertexai.v1.TokensInfo tokens_info = 1;
| Parameter |
| Name |
Description |
index |
int
|
getTokensInfoBuilder(int index)
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.vertexai.v1.TokensInfo tokens_info = 1;
| Parameter |
| Name |
Description |
index |
int
|
getTokensInfoBuilderList()
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.vertexai.v1.TokensInfo tokens_info = 1;
getTokensInfoCount()
public 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.vertexai.v1.TokensInfo tokens_info = 1;
| Returns |
| Type |
Description |
int |
|
getTokensInfoList()
public 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.vertexai.v1.TokensInfo tokens_info = 1;
getTokensInfoOrBuilder(int index)
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.vertexai.v1.TokensInfo tokens_info = 1;
| Parameter |
| Name |
Description |
index |
int
|
getTokensInfoOrBuilderList()
public 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.vertexai.v1.TokensInfo tokens_info = 1;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.vertexai.api.TokensInfoOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ComputeTokensResponse other)
public ComputeTokensResponse.Builder mergeFrom(ComputeTokensResponse other)
public ComputeTokensResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ComputeTokensResponse.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
removeTokensInfo(int index)
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.vertexai.v1.TokensInfo tokens_info = 1;
| Parameter |
| Name |
Description |
index |
int
|
setTokensInfo(int index, TokensInfo value)
public 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.vertexai.v1.TokensInfo tokens_info = 1;
setTokensInfo(int index, TokensInfo.Builder builderForValue)
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.vertexai.v1.TokensInfo tokens_info = 1;