public static final class LogprobsResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<LogprobsResult.Builder> implements LogprobsResultOrBuilder
Logprobs ResultProtobuf type
google.cloud.aiplatform.v1.LogprobsResultaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<LogprobsResult.Builder>public LogprobsResult.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<LogprobsResult.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<LogprobsResult.Builder>public LogprobsResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LogprobsResult build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LogprobsResult buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LogprobsResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogprobsResult.Builder>public LogprobsResult.Builder mergeFrom(LogprobsResult other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<LogprobsResult.Builder>public LogprobsResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogprobsResult.Builder>IOExceptionpublic List<LogprobsResult.TopCandidates> getTopCandidatesList()
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
getTopCandidatesList in interface LogprobsResultOrBuilderpublic int getTopCandidatesCount()
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
getTopCandidatesCount in interface LogprobsResultOrBuilderpublic LogprobsResult.TopCandidates getTopCandidates(int index)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
getTopCandidates in interface LogprobsResultOrBuilderpublic LogprobsResult.Builder setTopCandidates(int index, LogprobsResult.TopCandidates value)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
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;
public LogprobsResult.Builder addTopCandidates(LogprobsResult.TopCandidates value)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
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;
public LogprobsResult.Builder addTopCandidates(LogprobsResult.TopCandidates.Builder builderForValue)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
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;
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;
public LogprobsResult.Builder clearTopCandidates()
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
public LogprobsResult.Builder removeTopCandidates(int index)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
public LogprobsResult.TopCandidates.Builder getTopCandidatesBuilder(int index)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
public LogprobsResult.TopCandidatesOrBuilder getTopCandidatesOrBuilder(int index)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
getTopCandidatesOrBuilder in interface LogprobsResultOrBuilderpublic List<? extends LogprobsResult.TopCandidatesOrBuilder> getTopCandidatesOrBuilderList()
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
getTopCandidatesOrBuilderList in interface LogprobsResultOrBuilderpublic LogprobsResult.TopCandidates.Builder addTopCandidatesBuilder()
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
public LogprobsResult.TopCandidates.Builder addTopCandidatesBuilder(int index)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
public List<LogprobsResult.TopCandidates.Builder> getTopCandidatesBuilderList()
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;
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;
getChosenCandidatesList in interface LogprobsResultOrBuilderpublic 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;
getChosenCandidatesCount in interface LogprobsResultOrBuilderpublic 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;
getChosenCandidates in interface LogprobsResultOrBuilderpublic 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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
getChosenCandidatesOrBuilder in interface LogprobsResultOrBuilderpublic 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;
getChosenCandidatesOrBuilderList in interface LogprobsResultOrBuilderpublic 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;
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;
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;
Copyright © 2026 Google LLC. All rights reserved.