Class ConfusionMatrix (0.141.0)

public final class ConfusionMatrix extends GeneratedMessageV3 implements ConfusionMatrixOrBuilder

Confusion matrix of the model running the classification. Only applicable when the metrics entry aggregates multiple labels. Not applicable when the entry is for a single label.

Protobuf type google.cloud.datalabeling.v1beta1.ConfusionMatrix

Static Fields

ROW_FIELD_NUMBER

public static final int ROW_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConfusionMatrix getDefaultInstance()
Returns
TypeDescription
ConfusionMatrix

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ConfusionMatrix.Builder newBuilder()
Returns
TypeDescription
ConfusionMatrix.Builder

newBuilder(ConfusionMatrix prototype)

public static ConfusionMatrix.Builder newBuilder(ConfusionMatrix prototype)
Parameter
NameDescription
prototypeConfusionMatrix
Returns
TypeDescription
ConfusionMatrix.Builder

parseDelimitedFrom(InputStream input)

public static ConfusionMatrix parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConfusionMatrix
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConfusionMatrix parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfusionMatrix
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConfusionMatrix parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConfusionMatrix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConfusionMatrix parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfusionMatrix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConfusionMatrix parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConfusionMatrix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConfusionMatrix parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfusionMatrix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConfusionMatrix parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConfusionMatrix
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConfusionMatrix parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfusionMatrix
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConfusionMatrix parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConfusionMatrix
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConfusionMatrix parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfusionMatrix
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConfusionMatrix parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConfusionMatrix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConfusionMatrix parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfusionMatrix
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConfusionMatrix> parser()
Returns
TypeDescription
Parser<ConfusionMatrix>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ConfusionMatrix getDefaultInstanceForType()
Returns
TypeDescription
ConfusionMatrix

getParserForType()

public Parser<ConfusionMatrix> getParserForType()
Returns
TypeDescription
Parser<ConfusionMatrix>
Overrides

getRow(int index)

public ConfusionMatrix.Row getRow(int index)

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ConfusionMatrix.Row

getRowCount()

public int getRowCount()

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Returns
TypeDescription
int

getRowList()

public List<ConfusionMatrix.Row> getRowList()

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Returns
TypeDescription
List<Row>

getRowOrBuilder(int index)

public ConfusionMatrix.RowOrBuilder getRowOrBuilder(int index)

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ConfusionMatrix.RowOrBuilder

getRowOrBuilderList()

public List<? extends ConfusionMatrix.RowOrBuilder> getRowOrBuilderList()

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Returns
TypeDescription
List<? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ConfusionMatrix.Builder newBuilderForType()
Returns
TypeDescription
ConfusionMatrix.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConfusionMatrix.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConfusionMatrix.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ConfusionMatrix.Builder toBuilder()
Returns
TypeDescription
ConfusionMatrix.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException