public static final class LogprobsResult.Builder extends GeneratedMessageV3.Builder<LogprobsResult.Builder> implements LogprobsResultOrBuilder
Logprobs Result
Protobuf type google.cloud.aiplatform.v1beta1.LogprobsResult
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
public static final Descriptors.Descriptor getDescriptor()
Methods
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.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate>
|
public LogprobsResult.Builder addAllTopCandidates(Iterable<? extends LogprobsResult.TopCandidates> values)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates>
|
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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
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.v1beta1.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.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
Parameter |
Name |
Description |
index |
int
|
public LogprobsResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public LogprobsResult.Builder addTopCandidates(LogprobsResult.TopCandidates value)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
public LogprobsResult.Builder addTopCandidates(LogprobsResult.TopCandidates.Builder builderForValue)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
public LogprobsResult.Builder addTopCandidates(int index, LogprobsResult.TopCandidates value)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
public LogprobsResult.TopCandidates.Builder addTopCandidatesBuilder()
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
public LogprobsResult.TopCandidates.Builder addTopCandidatesBuilder(int index)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
Parameter |
Name |
Description |
index |
int
|
public LogprobsResult build()
public LogprobsResult buildPartial()
public LogprobsResult.Builder clear()
Overrides
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.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
public LogprobsResult.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public LogprobsResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public LogprobsResult.Builder clearTopCandidates()
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
public LogprobsResult.Builder clone()
Overrides
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.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
Parameter |
Name |
Description |
index |
int
|
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.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
Parameter |
Name |
Description |
index |
int
|
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.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
public int getChosenCandidatesCount()
Length = total number of decoding steps.
The chosen candidates may or may not be in top_candidates.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
Returns |
Type |
Description |
int |
|
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.v1beta1.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.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
Parameter |
Name |
Description |
index |
int
|
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.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
Returns |
Type |
Description |
List<? extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.CandidateOrBuilder> |
|
public LogprobsResult getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public LogprobsResult.TopCandidates getTopCandidates(int index)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
Parameter |
Name |
Description |
index |
int
|
public LogprobsResult.TopCandidates.Builder getTopCandidatesBuilder(int index)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
Parameter |
Name |
Description |
index |
int
|
public List<LogprobsResult.TopCandidates.Builder> getTopCandidatesBuilderList()
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
public int getTopCandidatesCount()
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
Returns |
Type |
Description |
int |
|
public List<LogprobsResult.TopCandidates> getTopCandidatesList()
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
public LogprobsResult.TopCandidatesOrBuilder getTopCandidatesOrBuilder(int index)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
Parameter |
Name |
Description |
index |
int
|
public List<? extends LogprobsResult.TopCandidatesOrBuilder> getTopCandidatesOrBuilderList()
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidatesOrBuilder> |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public LogprobsResult.Builder mergeFrom(LogprobsResult other)
public LogprobsResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public LogprobsResult.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final LogprobsResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
Parameter |
Name |
Description |
index |
int
|
public LogprobsResult.Builder removeTopCandidates(int index)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
Parameter |
Name |
Description |
index |
int
|
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.v1beta1.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.v1beta1.LogprobsResult.Candidate chosen_candidates = 2;
public LogprobsResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public LogprobsResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public LogprobsResult.Builder setTopCandidates(int index, LogprobsResult.TopCandidates value)
Length = total number of decoding steps.
repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.LogprobsResult.TopCandidates top_candidates = 1;
public final LogprobsResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides