Interface LogprobsResult.CandidateOrBuilder (3.55.0)

public static interface LogprobsResult.CandidateOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLogProbability()

public abstract float getLogProbability()

The candidate's log probability.

optional float log_probability = 2;

Returns
Type Description
float

The logProbability.

getToken()

public abstract String getToken()

The candidate’s token string value.

optional string token = 1;

Returns
Type Description
String

The token.

getTokenBytes()

public abstract ByteString getTokenBytes()

The candidate’s token string value.

optional string token = 1;

Returns
Type Description
ByteString

The bytes for token.

getTokenId()

public abstract int getTokenId()

The candidate’s token id value.

optional int32 token_id = 3;

Returns
Type Description
int

The tokenId.

hasLogProbability()

public abstract boolean hasLogProbability()

The candidate's log probability.

optional float log_probability = 2;

Returns
Type Description
boolean

Whether the logProbability field is set.

hasToken()

public abstract boolean hasToken()

The candidate’s token string value.

optional string token = 1;

Returns
Type Description
boolean

Whether the token field is set.

hasTokenId()

public abstract boolean hasTokenId()

The candidate’s token id value.

optional int32 token_id = 3;

Returns
Type Description
boolean

Whether the tokenId field is set.