public static final class LogprobsResult.Builder extends GeneratedMessage.Builder<LogprobsResult.Builder> implements LogprobsResultOrBuilder
Logprobs Result
Protobuf type google.cloud.vertexai.v1.LogprobsResult
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllChosenCandidates(Iterable<? extends LogprobsResult.Candidate> values)
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.vertexai.api.LogprobsResult.Candidate>
|
addAllTopCandidates(Iterable<? extends LogprobsResult.TopCandidates> values)
public LogprobsResult.Builder addAllTopCandidates(Iterable<? extends LogprobsResult.TopCandidates> values)
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.vertexai.api.LogprobsResult.TopCandidates>
|
addChosenCandidates(LogprobsResult.Candidate value)
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
addChosenCandidates(LogprobsResult.Candidate.Builder builderForValue)
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
addChosenCandidates(int index, LogprobsResult.Candidate value)
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
addChosenCandidates(int index, LogprobsResult.Candidate.Builder builderForValue)
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
addChosenCandidatesBuilder(int index)
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
| Parameter |
| Name |
Description |
index |
int
|
addTopCandidates(LogprobsResult.TopCandidates value)
public LogprobsResult.Builder addTopCandidates(LogprobsResult.TopCandidates value)
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
addTopCandidates(LogprobsResult.TopCandidates.Builder builderForValue)
public LogprobsResult.Builder addTopCandidates(LogprobsResult.TopCandidates.Builder builderForValue)
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
addTopCandidates(int index, LogprobsResult.TopCandidates value)
public LogprobsResult.Builder addTopCandidates(int index, LogprobsResult.TopCandidates value)
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
addTopCandidates(int index, LogprobsResult.TopCandidates.Builder builderForValue)
public LogprobsResult.Builder addTopCandidates(int index, LogprobsResult.TopCandidates.Builder builderForValue)
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
addTopCandidatesBuilder()
public LogprobsResult.TopCandidates.Builder addTopCandidatesBuilder()
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
addTopCandidatesBuilder(int index)
public LogprobsResult.TopCandidates.Builder addTopCandidatesBuilder(int index)
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
| Parameter |
| Name |
Description |
index |
int
|
build()
public LogprobsResult build()
buildPartial()
public LogprobsResult buildPartial()
clear()
public LogprobsResult.Builder clear()
Overrides
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
clearTopCandidates()
public LogprobsResult.Builder clearTopCandidates()
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
getChosenCandidates(int index)
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
| Parameter |
| Name |
Description |
index |
int
|
getChosenCandidatesBuilder(int index)
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
| Parameter |
| Name |
Description |
index |
int
|
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
getChosenCandidatesCount()
public int getChosenCandidatesCount()
Length = total number of decoding steps.
The chosen candidates may or may not be in top_candidates.
repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
| Returns |
| Type |
Description |
int |
|
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
getChosenCandidatesOrBuilder(int index)
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
| Parameter |
| Name |
Description |
index |
int
|
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.vertexai.api.LogprobsResult.CandidateOrBuilder> |
|
getDefaultInstanceForType()
public LogprobsResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getTopCandidates(int index)
public LogprobsResult.TopCandidates getTopCandidates(int index)
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
| Parameter |
| Name |
Description |
index |
int
|
getTopCandidatesBuilder(int index)
public LogprobsResult.TopCandidates.Builder getTopCandidatesBuilder(int index)
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
| Parameter |
| Name |
Description |
index |
int
|
getTopCandidatesBuilderList()
public List<LogprobsResult.TopCandidates.Builder> getTopCandidatesBuilderList()
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
getTopCandidatesCount()
public int getTopCandidatesCount()
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
| Returns |
| Type |
Description |
int |
|
getTopCandidatesList()
public List<LogprobsResult.TopCandidates> getTopCandidatesList()
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
getTopCandidatesOrBuilder(int index)
public LogprobsResult.TopCandidatesOrBuilder getTopCandidatesOrBuilder(int index)
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
| Parameter |
| Name |
Description |
index |
int
|
getTopCandidatesOrBuilderList()
public List<? extends LogprobsResult.TopCandidatesOrBuilder> getTopCandidatesOrBuilderList()
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.vertexai.api.LogprobsResult.TopCandidatesOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(LogprobsResult other)
public LogprobsResult.Builder mergeFrom(LogprobsResult other)
public LogprobsResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LogprobsResult.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
removeChosenCandidates(int index)
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
| Parameter |
| Name |
Description |
index |
int
|
removeTopCandidates(int index)
public LogprobsResult.Builder removeTopCandidates(int index)
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
| Parameter |
| Name |
Description |
index |
int
|
setChosenCandidates(int index, LogprobsResult.Candidate value)
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
setChosenCandidates(int index, LogprobsResult.Candidate.Builder builderForValue)
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.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;
setTopCandidates(int index, LogprobsResult.TopCandidates value)
public LogprobsResult.Builder setTopCandidates(int index, LogprobsResult.TopCandidates value)
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;
setTopCandidates(int index, LogprobsResult.TopCandidates.Builder builderForValue)
public LogprobsResult.Builder setTopCandidates(int index, LogprobsResult.TopCandidates.Builder builderForValue)
Length = total number of decoding steps.
repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;