Class LogprobsResult (3.55.0)

public final class LogprobsResult extends GeneratedMessageV3 implements LogprobsResultOrBuilder

Logprobs Result

Protobuf type google.cloud.aiplatform.v1.LogprobsResult

Static Fields

CHOSEN_CANDIDATES_FIELD_NUMBER

public static final int CHOSEN_CANDIDATES_FIELD_NUMBER
Field Value
Type Description
int

TOP_CANDIDATES_FIELD_NUMBER

public static final int TOP_CANDIDATES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LogprobsResult getDefaultInstance()
Returns
Type Description
LogprobsResult

getDescriptor()

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

newBuilder()

public static LogprobsResult.Builder newBuilder()
Returns
Type Description
LogprobsResult.Builder

newBuilder(LogprobsResult prototype)

public static LogprobsResult.Builder newBuilder(LogprobsResult prototype)
Parameter
Name Description
prototype LogprobsResult
Returns
Type Description
LogprobsResult.Builder

parseDelimitedFrom(InputStream input)

public static LogprobsResult parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LogprobsResult
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogprobsResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogprobsResult
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LogprobsResult parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LogprobsResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LogprobsResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogprobsResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LogprobsResult parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LogprobsResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LogprobsResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogprobsResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LogprobsResult parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LogprobsResult
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LogprobsResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogprobsResult
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LogprobsResult parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LogprobsResult
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogprobsResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogprobsResult
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LogprobsResult parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LogprobsResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LogprobsResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogprobsResult
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LogprobsResult> parser()
Returns
Type Description
Parser<LogprobsResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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

getParserForType()

public Parser<LogprobsResult> getParserForType()
Returns
Type Description
Parser<LogprobsResult>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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

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>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LogprobsResult.Builder newBuilderForType()
Returns
Type Description
LogprobsResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LogprobsResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LogprobsResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LogprobsResult.Builder toBuilder()
Returns
Type Description
LogprobsResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException