Package com.google.cloud.aiplatform.v1
Interface TokensInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TokensInfo,TokensInfo.Builder
@Generated
public interface TokensInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetRole()Optional.com.google.protobuf.ByteStringOptional.longgetTokenIds(int index) A list of token ids from the input.intA list of token ids from the input.A list of token ids from the input.com.google.protobuf.ByteStringgetTokens(int index) A list of tokens from the input.intA list of tokens from the input.List<com.google.protobuf.ByteString>A list of tokens from the input.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTokensList
List<com.google.protobuf.ByteString> getTokensList()A list of tokens from the input.
repeated bytes tokens = 1;- Returns:
- A list containing the tokens.
-
getTokensCount
int getTokensCount()A list of tokens from the input.
repeated bytes tokens = 1;- Returns:
- The count of tokens.
-
getTokens
com.google.protobuf.ByteString getTokens(int index) A list of tokens from the input.
repeated bytes tokens = 1;- Parameters:
index- The index of the element to return.- Returns:
- The tokens at the given index.
-
getTokenIdsList
A list of token ids from the input.
repeated int64 token_ids = 2;- Returns:
- A list containing the tokenIds.
-
getTokenIdsCount
int getTokenIdsCount()A list of token ids from the input.
repeated int64 token_ids = 2;- Returns:
- The count of tokenIds.
-
getTokenIds
long getTokenIds(int index) A list of token ids from the input.
repeated int64 token_ids = 2;- Parameters:
index- The index of the element to return.- Returns:
- The tokenIds at the given index.
-
getRole
String getRole()Optional. Optional fields for the role from the corresponding Content.
string role = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The role.
-
getRoleBytes
com.google.protobuf.ByteString getRoleBytes()Optional. Optional fields for the role from the corresponding Content.
string role = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for role.
-