public final class ComputeTokensResponse extends GeneratedMessageV3 implements ComputeTokensResponseOrBuilder
Response message for ComputeTokens RPC call.
Protobuf type google.cloud.vertexai.v1.ComputeTokensResponse
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ComputeTokensResponseImplements
ComputeTokensResponseOrBuilderStatic Fields
TOKENS_INFO_FIELD_NUMBER
public static final int TOKENS_INFO_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static ComputeTokensResponse getDefaultInstance()
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static ComputeTokensResponse.Builder newBuilder()
Returns | |
---|---|
Type | Description |
ComputeTokensResponse.Builder |
newBuilder(ComputeTokensResponse prototype)
public static ComputeTokensResponse.Builder newBuilder(ComputeTokensResponse prototype)
Parameter | |
---|---|
Name | Description |
prototype |
ComputeTokensResponse |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse.Builder |
parseDelimitedFrom(InputStream input)
public static ComputeTokensResponse parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ComputeTokensResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static ComputeTokensResponse parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ComputeTokensResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static ComputeTokensResponse parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ComputeTokensResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static ComputeTokensResponse parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ComputeTokensResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static ComputeTokensResponse parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ComputeTokensResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static ComputeTokensResponse parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ComputeTokensResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<ComputeTokensResponse> parser()
Returns | |
---|---|
Type | Description |
Parser<ComputeTokensResponse> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public ComputeTokensResponse getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ComputeTokensResponse |
getParserForType()
public Parser<ComputeTokensResponse> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<ComputeTokensResponse> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
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 |
Returns | |
---|---|
Type | Description |
TokensInfo |
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;
Returns | |
---|---|
Type | Description |
List<TokensInfo> |
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 |
Returns | |
---|---|
Type | Description |
TokensInfoOrBuilder |
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> |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public ComputeTokensResponse.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
ComputeTokensResponse.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ComputeTokensResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
ComputeTokensResponse.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public ComputeTokensResponse.Builder toBuilder()
Returns | |
---|---|
Type | Description |
ComputeTokensResponse.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |