Class LogprobsResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LogprobsResult.Builder>
com.google.cloud.aiplatform.v1.LogprobsResult.Builder
All Implemented Interfaces:
LogprobsResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LogprobsResult

public static final class LogprobsResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<LogprobsResult.Builder> implements LogprobsResultOrBuilder
 Logprobs Result
 
Protobuf type google.cloud.aiplatform.v1.LogprobsResult
  • 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.Builder<LogprobsResult.Builder>
    • clear

      public LogprobsResult.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<LogprobsResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<LogprobsResult.Builder>
    • getDefaultInstanceForType

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

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

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

      public LogprobsResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogprobsResult.Builder>
    • mergeFrom

      public LogprobsResult.Builder mergeFrom(LogprobsResult other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<LogprobsResult.Builder>
    • mergeFrom

      public LogprobsResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogprobsResult.Builder>
      Throws:
      IOException
    • 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
    • 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
    • setTopCandidates

      public LogprobsResult.Builder setTopCandidates(int index, LogprobsResult.TopCandidates value)
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • setTopCandidates

      public LogprobsResult.Builder setTopCandidates(int index, LogprobsResult.TopCandidates.Builder builderForValue)
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • addTopCandidates

      public LogprobsResult.Builder addTopCandidates(LogprobsResult.TopCandidates value)
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • addTopCandidates

      public LogprobsResult.Builder addTopCandidates(int index, LogprobsResult.TopCandidates value)
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • addTopCandidates

      public LogprobsResult.Builder addTopCandidates(LogprobsResult.TopCandidates.Builder builderForValue)
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • addTopCandidates

      public LogprobsResult.Builder addTopCandidates(int index, LogprobsResult.TopCandidates.Builder builderForValue)
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • addAllTopCandidates

      public LogprobsResult.Builder addAllTopCandidates(Iterable<? extends LogprobsResult.TopCandidates> values)
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • clearTopCandidates

      public LogprobsResult.Builder clearTopCandidates()
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • removeTopCandidates

      public LogprobsResult.Builder removeTopCandidates(int index)
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • getTopCandidatesBuilder

      public LogprobsResult.TopCandidates.Builder getTopCandidatesBuilder(int index)
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • 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
    • 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
    • addTopCandidatesBuilder

      public LogprobsResult.TopCandidates.Builder addTopCandidatesBuilder()
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • addTopCandidatesBuilder

      public LogprobsResult.TopCandidates.Builder addTopCandidatesBuilder(int index)
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • getTopCandidatesBuilderList

      public List<LogprobsResult.TopCandidates.Builder> getTopCandidatesBuilderList()
       Length = total number of decoding steps.
       
      repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
    • 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
    • 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
    • setChosenCandidates

      public LogprobsResult.Builder setChosenCandidates(int index, LogprobsResult.Candidate value)
       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;
    • setChosenCandidates

      public LogprobsResult.Builder setChosenCandidates(int index, LogprobsResult.Candidate.Builder builderForValue)
       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;
    • addChosenCandidates

      public LogprobsResult.Builder addChosenCandidates(LogprobsResult.Candidate value)
       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;
    • addChosenCandidates

      public LogprobsResult.Builder addChosenCandidates(int index, LogprobsResult.Candidate value)
       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;
    • addChosenCandidates

      public LogprobsResult.Builder addChosenCandidates(LogprobsResult.Candidate.Builder builderForValue)
       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;
    • addChosenCandidates

      public LogprobsResult.Builder addChosenCandidates(int index, LogprobsResult.Candidate.Builder builderForValue)
       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;
    • addAllChosenCandidates

      public LogprobsResult.Builder addAllChosenCandidates(Iterable<? extends LogprobsResult.Candidate> values)
       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;
    • clearChosenCandidates

      public LogprobsResult.Builder clearChosenCandidates()
       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;
    • removeChosenCandidates

      public LogprobsResult.Builder removeChosenCandidates(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;
    • getChosenCandidatesBuilder

      public LogprobsResult.Candidate.Builder getChosenCandidatesBuilder(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;
    • 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
    • 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
    • addChosenCandidatesBuilder

      public LogprobsResult.Candidate.Builder addChosenCandidatesBuilder()
       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;
    • addChosenCandidatesBuilder

      public LogprobsResult.Candidate.Builder addChosenCandidatesBuilder(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;
    • getChosenCandidatesBuilderList

      public List<LogprobsResult.Candidate.Builder> getChosenCandidatesBuilderList()
       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;