Class LogprobsResult.Builder (3.56.0)

public static final class LogprobsResult.Builder extends GeneratedMessageV3.Builder<LogprobsResult.Builder> implements LogprobsResultOrBuilder

Logprobs Result

Protobuf type google.cloud.aiplatform.v1.LogprobsResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1.LogprobsResult.Candidate>
Returns
Type Description
LogprobsResult.Builder

addAllTopCandidates(Iterable<? extends LogprobsResult.TopCandidates> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates>
Returns
Type Description
LogprobsResult.Builder

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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Parameter
Name Description
value LogprobsResult.Candidate
Returns
Type Description
LogprobsResult.Builder

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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Parameter
Name Description
builderForValue LogprobsResult.Candidate.Builder
Returns
Type Description
LogprobsResult.Builder

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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Parameters
Name Description
index int
value LogprobsResult.Candidate
Returns
Type Description
LogprobsResult.Builder

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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Parameters
Name Description
index int
builderForValue LogprobsResult.Candidate.Builder
Returns
Type Description
LogprobsResult.Builder

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;

Returns
Type Description
LogprobsResult.Candidate.Builder

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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Parameter
Name Description
index int
Returns
Type Description
LogprobsResult.Candidate.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LogprobsResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LogprobsResult.Builder
Overrides

addTopCandidates(LogprobsResult.TopCandidates value)

public LogprobsResult.Builder addTopCandidates(LogprobsResult.TopCandidates value)

Length = total number of decoding steps.

repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Parameter
Name Description
value LogprobsResult.TopCandidates
Returns
Type Description
LogprobsResult.Builder

addTopCandidates(LogprobsResult.TopCandidates.Builder builderForValue)

public LogprobsResult.Builder addTopCandidates(LogprobsResult.TopCandidates.Builder builderForValue)

Length = total number of decoding steps.

repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Parameter
Name Description
builderForValue LogprobsResult.TopCandidates.Builder
Returns
Type Description
LogprobsResult.Builder

addTopCandidates(int index, LogprobsResult.TopCandidates value)

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;

Parameters
Name Description
index int
value LogprobsResult.TopCandidates
Returns
Type Description
LogprobsResult.Builder

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.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Parameters
Name Description
index int
builderForValue LogprobsResult.TopCandidates.Builder
Returns
Type Description
LogprobsResult.Builder

addTopCandidatesBuilder()

public LogprobsResult.TopCandidates.Builder addTopCandidatesBuilder()

Length = total number of decoding steps.

repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Returns
Type Description
LogprobsResult.TopCandidates.Builder

addTopCandidatesBuilder(int index)

public LogprobsResult.TopCandidates.Builder addTopCandidatesBuilder(int index)

Length = total number of decoding steps.

repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Parameter
Name Description
index int
Returns
Type Description
LogprobsResult.TopCandidates.Builder

build()

public LogprobsResult build()
Returns
Type Description
LogprobsResult

buildPartial()

public LogprobsResult buildPartial()
Returns
Type Description
LogprobsResult

clear()

public LogprobsResult.Builder clear()
Returns
Type Description
LogprobsResult.Builder
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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Returns
Type Description
LogprobsResult.Builder

clearField(Descriptors.FieldDescriptor field)

public LogprobsResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LogprobsResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LogprobsResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LogprobsResult.Builder
Overrides

clearTopCandidates()

public LogprobsResult.Builder clearTopCandidates()

Length = total number of decoding steps.

repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Returns
Type Description
LogprobsResult.Builder

clone()

public LogprobsResult.Builder clone()
Returns
Type Description
LogprobsResult.Builder
Overrides

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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Parameter
Name Description
index int
Returns
Type Description
LogprobsResult.Candidate

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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Parameter
Name Description
index int
Returns
Type Description
LogprobsResult.Candidate.Builder

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;

Returns
Type Description
List<Builder>

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;

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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Returns
Type Description
List<Candidate>

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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Parameter
Name Description
index int
Returns
Type Description
LogprobsResult.CandidateOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1.LogprobsResult.CandidateOrBuilder>

getDefaultInstanceForType()

public LogprobsResult getDefaultInstanceForType()
Returns
Type Description
LogprobsResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTopCandidates(int index)

public LogprobsResult.TopCandidates getTopCandidates(int index)

Length = total number of decoding steps.

repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Parameter
Name Description
index int
Returns
Type Description
LogprobsResult.TopCandidates

getTopCandidatesBuilder(int index)

public LogprobsResult.TopCandidates.Builder getTopCandidatesBuilder(int index)

Length = total number of decoding steps.

repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Parameter
Name Description
index int
Returns
Type Description
LogprobsResult.TopCandidates.Builder

getTopCandidatesBuilderList()

public List<LogprobsResult.TopCandidates.Builder> getTopCandidatesBuilderList()

Length = total number of decoding steps.

repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Returns
Type Description
List<Builder>

getTopCandidatesCount()

public int getTopCandidatesCount()

Length = total number of decoding steps.

repeated .google.cloud.aiplatform.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.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Returns
Type Description
List<TopCandidates>

getTopCandidatesOrBuilder(int index)

public LogprobsResult.TopCandidatesOrBuilder getTopCandidatesOrBuilder(int index)

Length = total number of decoding steps.

repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Parameter
Name Description
index int
Returns
Type Description
LogprobsResult.TopCandidatesOrBuilder

getTopCandidatesOrBuilderList()

public List<? extends LogprobsResult.TopCandidatesOrBuilder> getTopCandidatesOrBuilderList()

Length = total number of decoding steps.

repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1.LogprobsResult.TopCandidatesOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LogprobsResult other)

public LogprobsResult.Builder mergeFrom(LogprobsResult other)
Parameter
Name Description
other LogprobsResult
Returns
Type Description
LogprobsResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LogprobsResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogprobsResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LogprobsResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LogprobsResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LogprobsResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LogprobsResult.Builder
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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Parameter
Name Description
index int
Returns
Type Description
LogprobsResult.Builder

removeTopCandidates(int index)

public LogprobsResult.Builder removeTopCandidates(int index)

Length = total number of decoding steps.

repeated .google.cloud.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Parameter
Name Description
index int
Returns
Type Description
LogprobsResult.Builder

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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Parameters
Name Description
index int
value LogprobsResult.Candidate
Returns
Type Description
LogprobsResult.Builder

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.aiplatform.v1.LogprobsResult.Candidate chosen_candidates = 2;

Parameters
Name Description
index int
builderForValue LogprobsResult.Candidate.Builder
Returns
Type Description
LogprobsResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LogprobsResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LogprobsResult.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LogprobsResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LogprobsResult.Builder
Overrides

setTopCandidates(int index, LogprobsResult.TopCandidates value)

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;

Parameters
Name Description
index int
value LogprobsResult.TopCandidates
Returns
Type Description
LogprobsResult.Builder

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.aiplatform.v1.LogprobsResult.TopCandidates top_candidates = 1;

Parameters
Name Description
index int
builderForValue LogprobsResult.TopCandidates.Builder
Returns
Type Description
LogprobsResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final LogprobsResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LogprobsResult.Builder
Overrides