Class TabularClassificationPredictionResult (3.53.0)

public final class TabularClassificationPredictionResult extends GeneratedMessageV3 implements TabularClassificationPredictionResultOrBuilder

Prediction output format for Tabular Classification.

Protobuf type google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TabularClassificationPredictionResult

Static Fields

CLASSES_FIELD_NUMBER

public static final int CLASSES_FIELD_NUMBER
Field Value
Type Description
int

SCORES_FIELD_NUMBER

public static final int SCORES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TabularClassificationPredictionResult getDefaultInstance()
Returns
Type Description
TabularClassificationPredictionResult

getDescriptor()

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

newBuilder()

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

newBuilder(TabularClassificationPredictionResult prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getClasses(int index)

public String getClasses(int index)

The name of the classes being classified, contains all possible values of the target column.

repeated string classes = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The classes at the given index.

getClassesBytes(int index)

public ByteString getClassesBytes(int index)

The name of the classes being classified, contains all possible values of the target column.

repeated string classes = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the classes at the given index.

getClassesCount()

public int getClassesCount()

The name of the classes being classified, contains all possible values of the target column.

repeated string classes = 1;

Returns
Type Description
int

The count of classes.

getClassesList()

public ProtocolStringList getClassesList()

The name of the classes being classified, contains all possible values of the target column.

repeated string classes = 1;

Returns
Type Description
ProtocolStringList

A list containing the classes.

getDefaultInstanceForType()

public TabularClassificationPredictionResult getDefaultInstanceForType()
Returns
Type Description
TabularClassificationPredictionResult

getParserForType()

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

getScores(int index)

public float getScores(int index)

The model's confidence in each class being correct, higher value means higher confidence. The N-th score corresponds to the N-th class in classes.

repeated float scores = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
float

The scores at the given index.

getScoresCount()

public int getScoresCount()

The model's confidence in each class being correct, higher value means higher confidence. The N-th score corresponds to the N-th class in classes.

repeated float scores = 2;

Returns
Type Description
int

The count of scores.

getScoresList()

public List<Float> getScoresList()

The model's confidence in each class being correct, higher value means higher confidence. The N-th score corresponds to the N-th class in classes.

repeated float scores = 2;

Returns
Type Description
List<Float>

A list containing the scores.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 TabularClassificationPredictionResult.Builder newBuilderForType()
Returns
Type Description
TabularClassificationPredictionResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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