public static final class ComputeTokensResponse.Builder extends GeneratedMessageV3.Builder<ComputeTokensResponse.Builder> implements ComputeTokensResponseOrBuilder
Response message for ComputeTokens RPC call.
Protobuf type google.cloud.aiplatform.v1beta1.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
public static final Descriptors.Descriptor getDescriptor()
Methods
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.v1beta1.TokensInfo tokens_info = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.aiplatform.v1beta1.TokensInfo>
|
public ComputeTokensResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.TokensInfo tokens_info = 1;
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.aiplatform.v1beta1.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.v1beta1.TokensInfo tokens_info = 1;
Parameter |
---|
Name | Description |
index | int
|
public ComputeTokensResponse build()
public ComputeTokensResponse buildPartial()
public ComputeTokensResponse.Builder clear()
Overrides
public ComputeTokensResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ComputeTokensResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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.v1beta1.TokensInfo tokens_info = 1;
public ComputeTokensResponse.Builder clone()
Overrides
public ComputeTokensResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.aiplatform.v1beta1.TokensInfo tokens_info = 1;
Parameter |
---|
Name | Description |
index | int
|
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.v1beta1.TokensInfo tokens_info = 1;
Parameter |
---|
Name | Description |
index | int
|
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.v1beta1.TokensInfo tokens_info = 1;
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.aiplatform.v1beta1.TokensInfo tokens_info = 1;
Returns |
---|
Type | Description |
int | |
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.aiplatform.v1beta1.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.v1beta1.TokensInfo tokens_info = 1;
Parameter |
---|
Name | Description |
index | int
|
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.aiplatform.v1beta1.TokensInfo tokens_info = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.TokensInfoOrBuilder> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ComputeTokensResponse.Builder mergeFrom(ComputeTokensResponse other)
public ComputeTokensResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ComputeTokensResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final ComputeTokensResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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.v1beta1.TokensInfo tokens_info = 1;
Parameter |
---|
Name | Description |
index | int
|
public ComputeTokensResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ComputeTokensResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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.aiplatform.v1beta1.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.v1beta1.TokensInfo tokens_info = 1;
public final ComputeTokensResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides