public static final class ClassificationMetadata.Builder extends GeneratedMessageV3.Builder<ClassificationMetadata.Builder> implements ClassificationMetadataOrBuilder
Metadata for classification annotations.
Protobuf type google.cloud.datalabeling.v1beta1.ClassificationMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public ClassificationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ClassificationMetadata build()
Returns
public ClassificationMetadata buildPartial()
Returns
public ClassificationMetadata.Builder clear()
Returns
Overrides
public ClassificationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public ClassificationMetadata.Builder clearIsMultiLabel()
Whether the classification task is multi-label or not.
bool is_multi_label = 1;
Returns
public ClassificationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public ClassificationMetadata.Builder clone()
Returns
Overrides
public ClassificationMetadata getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public boolean getIsMultiLabel()
Whether the classification task is multi-label or not.
bool is_multi_label = 1;
Returns
Type | Description |
boolean | The isMultiLabel.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ClassificationMetadata.Builder mergeFrom(ClassificationMetadata other)
Parameter
Returns
public ClassificationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public ClassificationMetadata.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final ClassificationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public ClassificationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
public ClassificationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final ClassificationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides