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 Type
    Method
    Description
    float
    The candidate's log probability.
    The candidate’s token string value.
    com.google.protobuf.ByteString
    The candidate’s token string value.
    int
    The candidate’s token id value.
    boolean
    The candidate's log probability.
    boolean
    The candidate’s token string value.
    boolean
    The candidate’s token id value.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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.