Class LogprobsResult

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.LogprobsResult
All Implemented Interfaces:
LogprobsResultOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class LogprobsResult extends com.google.protobuf.GeneratedMessage implements LogprobsResultOrBuilder
 Logprobs Result
 
Protobuf type google.cloud.aiplatform.v1.LogprobsResult
See Also:
  • Field Details

    • TOP_CANDIDATES_FIELD_NUMBER

      public static final int TOP_CANDIDATES_FIELD_NUMBER
      See Also:
    • CHOSEN_CANDIDATES_FIELD_NUMBER

      public static final int CHOSEN_CANDIDATES_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTopCandidatesList

      public List<LogprobsResult.TopCandidates> getTopCandidatesList()
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
      Specified by:
      getTopCandidatesList in interface LogprobsResultOrBuilder
    • getTopCandidatesOrBuilderList

      public List<? extends LogprobsResult.TopCandidatesOrBuilder> getTopCandidatesOrBuilderList()
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
      Specified by:
      getTopCandidatesOrBuilderList in interface LogprobsResultOrBuilder
    • getTopCandidatesCount

      public int getTopCandidatesCount()
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
      Specified by:
      getTopCandidatesCount in interface LogprobsResultOrBuilder
    • getTopCandidates

      public LogprobsResult.TopCandidates getTopCandidates(int index)
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
      Specified by:
      getTopCandidates in interface LogprobsResultOrBuilder
    • getTopCandidatesOrBuilder

      public LogprobsResult.TopCandidatesOrBuilder getTopCandidatesOrBuilder(int index)
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
      Specified by:
      getTopCandidatesOrBuilder in interface LogprobsResultOrBuilder
    • getChosenCandidatesList

      public List<LogprobsResult.Candidate> getChosenCandidatesList()
       Length = total number of decoding steps.
       The chosen candidates may or may not be in top_candidates.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
      Specified by:
      getChosenCandidatesList in interface LogprobsResultOrBuilder
    • getChosenCandidatesOrBuilderList

      public List<? extends LogprobsResult.CandidateOrBuilder> getChosenCandidatesOrBuilderList()
       Length = total number of decoding steps.
       The chosen candidates may or may not be in top_candidates.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
      Specified by:
      getChosenCandidatesOrBuilderList in interface LogprobsResultOrBuilder
    • getChosenCandidatesCount

      public int getChosenCandidatesCount()
       Length = total number of decoding steps.
       The chosen candidates may or may not be in top_candidates.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
      Specified by:
      getChosenCandidatesCount in interface LogprobsResultOrBuilder
    • getChosenCandidates

      public LogprobsResult.Candidate getChosenCandidates(int index)
       Length = total number of decoding steps.
       The chosen candidates may or may not be in top_candidates.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
      Specified by:
      getChosenCandidates in interface LogprobsResultOrBuilder
    • getChosenCandidatesOrBuilder

      public LogprobsResult.CandidateOrBuilder getChosenCandidatesOrBuilder(int index)
       Length = total number of decoding steps.
       The chosen candidates may or may not be in top_candidates.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;
      Specified by:
      getChosenCandidatesOrBuilder in interface LogprobsResultOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static LogprobsResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LogprobsResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LogprobsResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LogprobsResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LogprobsResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LogprobsResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LogprobsResult parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LogprobsResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LogprobsResult parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LogprobsResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LogprobsResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LogprobsResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public LogprobsResult.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static LogprobsResult.Builder newBuilder()
    • newBuilder

      public static LogprobsResult.Builder newBuilder(LogprobsResult prototype)
    • toBuilder

      public LogprobsResult.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected LogprobsResult.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static LogprobsResult getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<LogprobsResult> parser()
    • getParserForType

      public com.google.protobuf.Parser<LogprobsResult> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public LogprobsResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder