public static final class ComputeTokensResponse.Builder extends GeneratedMessageV3.Builder<ComputeTokensResponse.Builder> implements ComputeTokensResponseOrBuilder
Response message for ComputeTokens RPC call.
Protobuf type google.cloud.vertexai.v1.ComputeTokensResponse
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
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComputeTokensResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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
clearField(Descriptors.FieldDescriptor field)
public ComputeTokensResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ComputeTokensResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public ComputeTokensResponse.Builder clone()
Overrides
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 GeneratedMessageV3.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
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComputeTokensResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public ComputeTokensResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComputeTokensResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final ComputeTokensResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides