Class LabelStats (0.137.0)

public final class LabelStats extends GeneratedMessageV3 implements LabelStatsOrBuilder

Statistics about annotation specs.

Protobuf type google.cloud.datalabeling.v1beta1.LabelStats

Implements

LabelStatsOrBuilder

Static Fields

EXAMPLE_COUNT_FIELD_NUMBER

public static final int EXAMPLE_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LabelStats getDefaultInstance()
Returns
TypeDescription
LabelStats

getDescriptor()

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

newBuilder()

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

newBuilder(LabelStats prototype)

public static LabelStats.Builder newBuilder(LabelStats prototype)
Parameter
NameDescription
prototypeLabelStats
Returns
TypeDescription
LabelStats.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsExampleCount(String key)

public boolean containsExampleCount(String key)

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

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

getDefaultInstanceForType()

public LabelStats getDefaultInstanceForType()
Returns
TypeDescription
LabelStats

getExampleCount()

public Map<String,Long> getExampleCount()

Use #getExampleCountMap() instead.

Returns
TypeDescription
Map<String,java.lang.Long>

getExampleCountCount()

public int getExampleCountCount()

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Returns
TypeDescription
int

getExampleCountMap()

public Map<String,Long> getExampleCountMap()

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Returns
TypeDescription
Map<String,java.lang.Long>

getExampleCountOrDefault(String key, long defaultValue)

public long getExampleCountOrDefault(String key, long defaultValue)

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Parameters
NameDescription
keyString
defaultValuelong
Returns
TypeDescription
long

getExampleCountOrThrow(String key)

public long getExampleCountOrThrow(String key)

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
long

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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