Class ClassificationMetadata.Builder (0.174.0)

public static final class ClassificationMetadata.Builder extends GeneratedMessageV3.Builder<ClassificationMetadata.Builder> implements ClassificationMetadataOrBuilder

Metadata for classification annotations.

Protobuf type google.cloud.datalabeling.v1beta1.ClassificationMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ClassificationMetadata build()
Returns
Type Description
ClassificationMetadata

buildPartial()

public ClassificationMetadata buildPartial()
Returns
Type Description
ClassificationMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIsMultiLabel()

public ClassificationMetadata.Builder clearIsMultiLabel()

Whether the classification task is multi-label or not.

bool is_multi_label = 1;

Returns
Type Description
ClassificationMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ClassificationMetadata getDefaultInstanceForType()
Returns
Type Description
ClassificationMetadata

getDescriptorForType()

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

getIsMultiLabel()

public boolean getIsMultiLabel()

Whether the classification task is multi-label or not.

bool is_multi_label = 1;

Returns
Type Description
boolean

The isMultiLabel.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ClassificationMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIsMultiLabel(boolean value)

public ClassificationMetadata.Builder setIsMultiLabel(boolean value)

Whether the classification task is multi-label or not.

bool is_multi_label = 1;

Parameter
Name Description
value boolean

The isMultiLabel to set.

Returns
Type Description
ClassificationMetadata.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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