public final class ComputeTokensResponse extends GeneratedMessageV3 implements ComputeTokensResponseOrBuilder
Response message for ComputeTokens RPC call.
Protobuf type google.cloud.aiplatform.v1.ComputeTokensResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int TOKENS_INFO_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static ComputeTokensResponse getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ComputeTokensResponse.Builder newBuilder()
public static ComputeTokensResponse.Builder newBuilder(ComputeTokensResponse prototype)
public static ComputeTokensResponse parseDelimitedFrom(InputStream input)
public static ComputeTokensResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ComputeTokensResponse parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static ComputeTokensResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ComputeTokensResponse parseFrom(ByteString data)
public static ComputeTokensResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ComputeTokensResponse parseFrom(CodedInputStream input)
public static ComputeTokensResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ComputeTokensResponse parseFrom(InputStream input)
public static ComputeTokensResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ComputeTokensResponse parseFrom(ByteBuffer data)
public static ComputeTokensResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ComputeTokensResponse> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public ComputeTokensResponse getDefaultInstanceForType()
public Parser<ComputeTokensResponse> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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.v1.TokensInfo tokens_info = 1;
Parameter |
---|
Name | Description |
index | int
|
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.v1.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.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;
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.v1.TokensInfo tokens_info = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.aiplatform.v1.TokensInfoOrBuilder> | |
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ComputeTokensResponse.Builder newBuilderForType()
protected ComputeTokensResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public ComputeTokensResponse.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides