Package com.google.cloud.aiplatform.v1
Interface LogprobsResult.CandidateOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
LogprobsResult.Candidate,LogprobsResult.Candidate.Builder
- Enclosing class:
- LogprobsResult
public static interface LogprobsResult.CandidateOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionfloatThe candidate's log probability.getToken()The candidate’s token string value.com.google.protobuf.ByteStringThe candidate’s token string value.intThe candidate’s token id value.booleanThe candidate's log probability.booleanhasToken()The candidate’s token string value.booleanThe candidate’s token id value.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
-
hasToken
boolean hasToken()The candidate’s token string value.
optional string token = 1;- Returns:
- Whether the token field is set.
-
getToken
String getToken()The candidate’s token string value.
optional string token = 1;- Returns:
- The token.
-
getTokenBytes
com.google.protobuf.ByteString getTokenBytes()The candidate’s token string value.
optional string token = 1;- Returns:
- The bytes for token.
-
hasTokenId
boolean hasTokenId()The candidate’s token id value.
optional int32 token_id = 3;- Returns:
- Whether the tokenId field is set.
-
getTokenId
int getTokenId()The candidate’s token id value.
optional int32 token_id = 3;- Returns:
- The tokenId.
-
hasLogProbability
boolean hasLogProbability()The candidate's log probability.
optional float log_probability = 2;- Returns:
- Whether the logProbability field is set.
-
getLogProbability
float getLogProbability()The candidate's log probability.
optional float log_probability = 2;- Returns:
- The logProbability.
-