Class LogprobsResult.TopCandidates.Builder (1.38.0)
1.48.0 (latest)
1.47.0
1.45.0
1.43.0
1.42.0
1.40.0
1.38.0
1.36.0
1.35.0
1.34.0
1.33.0
1.32.0
1.30.0
1.28.0
1.27.0
1.24.0
1.23.0
1.22.0
1.20.1
1.19.0
1.18.0
1.17.0
1.16.0
1.15.0
1.14.0
1.13.0
1.12.0
1.11.0
1.9.0
1.8.0
1.7.0
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
0.8.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
public static final class LogprobsResult . TopCandidates . Builder extends GeneratedMessageV3 . Builder<LogprobsResult . TopCandidates . Builder > implements LogprobsResult . TopCandidatesOrBuilder
Candidates with top log probabilities at each decoding step.
Protobuf type google.cloud.vertexai.v1.LogprobsResult.TopCandidates
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addAllCandidates(Iterable<? extends LogprobsResult.Candidate> values)
public LogprobsResult . TopCandidates . Builder addAllCandidates ( Iterable <? extends LogprobsResult . Candidate > values )
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
Parameter
Name
Description
values
Iterable <? extends com.google.cloud.vertexai.api.LogprobsResult.Candidate >
addCandidates(LogprobsResult.Candidate value)
public LogprobsResult . TopCandidates . Builder addCandidates ( LogprobsResult . Candidate value )
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
addCandidates(LogprobsResult.Candidate.Builder builderForValue)
public LogprobsResult . TopCandidates . Builder addCandidates ( LogprobsResult . Candidate . Builder builderForValue )
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
addCandidates(int index, LogprobsResult.Candidate value)
public LogprobsResult . TopCandidates . Builder addCandidates ( int index , LogprobsResult . Candidate value )
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
addCandidates(int index, LogprobsResult.Candidate.Builder builderForValue)
public LogprobsResult . TopCandidates . Builder addCandidates ( int index , LogprobsResult . Candidate . Builder builderForValue )
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
addCandidatesBuilder()
public LogprobsResult . Candidate . Builder addCandidatesBuilder ()
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
addCandidatesBuilder(int index)
public LogprobsResult . Candidate . Builder addCandidatesBuilder ( int index )
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
Parameter
Name
Description
index
int
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LogprobsResult . TopCandidates . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public LogprobsResult . TopCandidates build ()
buildPartial()
public LogprobsResult . TopCandidates buildPartial ()
clear()
public LogprobsResult . TopCandidates . Builder clear ()
Overrides
clearCandidates()
public LogprobsResult . TopCandidates . Builder clearCandidates ()
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
clearField(Descriptors.FieldDescriptor field)
public LogprobsResult . TopCandidates . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LogprobsResult . TopCandidates . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public LogprobsResult . TopCandidates . Builder clone ()
Overrides
getCandidates(int index)
public LogprobsResult . Candidate getCandidates ( int index )
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
Parameter
Name
Description
index
int
getCandidatesBuilder(int index)
public LogprobsResult . Candidate . Builder getCandidatesBuilder ( int index )
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
Parameter
Name
Description
index
int
getCandidatesBuilderList()
public List<LogprobsResult . Candidate . Builder > getCandidatesBuilderList ()
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
getCandidatesCount()
public int getCandidatesCount ()
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
Returns
Type
Description
int
getCandidatesList()
public List<LogprobsResult . Candidate > getCandidatesList ()
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
getCandidatesOrBuilder(int index)
public LogprobsResult . CandidateOrBuilder getCandidatesOrBuilder ( int index )
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
Parameter
Name
Description
index
int
getCandidatesOrBuilderList()
public List <? extends LogprobsResult . CandidateOrBuilder > getCandidatesOrBuilderList ()
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
Returns
Type
Description
List <? extends com.google.cloud.vertexai.api.LogprobsResult.CandidateOrBuilder >
getDefaultInstanceForType()
public LogprobsResult . TopCandidates getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(LogprobsResult.TopCandidates other)
public LogprobsResult . TopCandidates . Builder mergeFrom ( LogprobsResult . TopCandidates other )
public LogprobsResult . TopCandidates . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public LogprobsResult . TopCandidates . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LogprobsResult . TopCandidates . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
removeCandidates(int index)
public LogprobsResult . TopCandidates . Builder removeCandidates ( int index )
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
Parameter
Name
Description
index
int
setCandidates(int index, LogprobsResult.Candidate value)
public LogprobsResult . TopCandidates . Builder setCandidates ( int index , LogprobsResult . Candidate value )
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
setCandidates(int index, LogprobsResult.Candidate.Builder builderForValue)
public LogprobsResult . TopCandidates . Builder setCandidates ( int index , LogprobsResult . Candidate . Builder builderForValue )
Sorted by log probability in descending order.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public LogprobsResult . TopCandidates . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LogprobsResult . TopCandidates . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LogprobsResult . TopCandidates . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-30 UTC."],[],[]]