Class LabelStats.Builder (0.166.0)

public static final class LabelStats.Builder extends GeneratedMessageV3.Builder<LabelStats.Builder> implements LabelStatsOrBuilder

Statistics about annotation specs.

Protobuf type google.cloud.datalabeling.v1beta1.LabelStats

Implements

LabelStatsOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LabelStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LabelStats.Builder
Overrides

build()

public LabelStats build()
Returns
Type Description
LabelStats

buildPartial()

public LabelStats buildPartial()
Returns
Type Description
LabelStats

clear()

public LabelStats.Builder clear()
Returns
Type Description
LabelStats.Builder
Overrides

clearExampleCount()

public LabelStats.Builder clearExampleCount()
Returns
Type Description
LabelStats.Builder

clearField(Descriptors.FieldDescriptor field)

public LabelStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LabelStats.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LabelStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LabelStats.Builder
Overrides

clone()

public LabelStats.Builder clone()
Returns
Type Description
LabelStats.Builder
Overrides

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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public LabelStats getDefaultInstanceForType()
Returns
Type Description
LabelStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExampleCount() (deprecated)

public Map<String,Long> getExampleCount()

Use #getExampleCountMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue long
Returns
Type Description
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
Name Description
key String
Returns
Type Description
long

getMutableExampleCount() (deprecated)

public Map<String,Long> getMutableExampleCount()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,java.lang.Long>

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LabelStats other)

public LabelStats.Builder mergeFrom(LabelStats other)
Parameter
Name Description
other LabelStats
Returns
Type Description
LabelStats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LabelStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LabelStats.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LabelStats.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LabelStats.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LabelStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LabelStats.Builder
Overrides

putAllExampleCount(Map<String,Long> values)

public LabelStats.Builder putAllExampleCount(Map<String,Long> values)

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
Name Description
values Map<String,java.lang.Long>
Returns
Type Description
LabelStats.Builder

putExampleCount(String key, long value)

public LabelStats.Builder putExampleCount(String key, long value)

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
Name Description
key String
value long
Returns
Type Description
LabelStats.Builder

removeExampleCount(String key)

public LabelStats.Builder removeExampleCount(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
Name Description
key String
Returns
Type Description
LabelStats.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LabelStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LabelStats.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LabelStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LabelStats.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LabelStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LabelStats.Builder
Overrides