public final class LabelStats extends GeneratedMessageV3 implements LabelStatsOrBuilder
Statistics about annotation specs.
Protobuf type google.cloud.datalabeling.v1beta1.LabelStats
Static Fields
EXAMPLE_COUNT_FIELD_NUMBER
public static final int EXAMPLE_COUNT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static LabelStats getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static LabelStats.Builder newBuilder()
Returns
newBuilder(LabelStats prototype)
public static LabelStats.Builder newBuilder(LabelStats prototype)
Parameter
Returns
public static LabelStats parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static LabelStats parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static LabelStats parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LabelStats parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static LabelStats parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LabelStats parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LabelStats parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static LabelStats parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LabelStats parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static LabelStats parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static LabelStats parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LabelStats parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<LabelStats> parser()
Returns
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
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public LabelStats getDefaultInstanceForType()
Returns
getExampleCount()
public Map<String,Long> getExampleCount()
Returns
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
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
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
Returns
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
Returns
getParserForType()
public Parser<LabelStats> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public LabelStats.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LabelStats.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public LabelStats.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions