Class ClassificationMetadata.Builder (0.140.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ClassificationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ClassificationMetadata.Builder
Overrides

build()

public ClassificationMetadata build()
Returns
TypeDescription
ClassificationMetadata

buildPartial()

public ClassificationMetadata buildPartial()
Returns
TypeDescription
ClassificationMetadata

clear()

public ClassificationMetadata.Builder clear()
Returns
TypeDescription
ClassificationMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ClassificationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ClassificationMetadata.Builder
Overrides

clearIsMultiLabel()

public ClassificationMetadata.Builder clearIsMultiLabel()

Whether the classification task is multi-label or not.

bool is_multi_label = 1;

Returns
TypeDescription
ClassificationMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ClassificationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ClassificationMetadata.Builder
Overrides

clone()

public ClassificationMetadata.Builder clone()
Returns
TypeDescription
ClassificationMetadata.Builder
Overrides

getDefaultInstanceForType()

public ClassificationMetadata getDefaultInstanceForType()
Returns
TypeDescription
ClassificationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIsMultiLabel()

public boolean getIsMultiLabel()

Whether the classification task is multi-label or not.

bool is_multi_label = 1;

Returns
TypeDescription
boolean

The isMultiLabel.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ClassificationMetadata other)

public ClassificationMetadata.Builder mergeFrom(ClassificationMetadata other)
Parameter
NameDescription
otherClassificationMetadata
Returns
TypeDescription
ClassificationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClassificationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ClassificationMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ClassificationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ClassificationMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ClassificationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The isMultiLabel to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ClassificationMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ClassificationMetadata.Builder
Overrides