Class ImageClassificationAnnotation.Builder (0.162.0)

public static final class ImageClassificationAnnotation.Builder extends GeneratedMessageV3.Builder<ImageClassificationAnnotation.Builder> implements ImageClassificationAnnotationOrBuilder

Image classification annotation definition.

Protobuf type google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImageClassificationAnnotation build()
Returns
Type Description
ImageClassificationAnnotation

buildPartial()

public ImageClassificationAnnotation buildPartial()
Returns
Type Description
ImageClassificationAnnotation

clear()

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

clearAnnotationSpec()

public ImageClassificationAnnotation.Builder clearAnnotationSpec()

Label of image.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
ImageClassificationAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

Label of image.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
AnnotationSpec

The annotationSpec.

getAnnotationSpecBuilder()

public AnnotationSpec.Builder getAnnotationSpecBuilder()

Label of image.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

Label of image.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
AnnotationSpecOrBuilder

getDefaultInstanceForType()

public ImageClassificationAnnotation getDefaultInstanceForType()
Returns
Type Description
ImageClassificationAnnotation

getDescriptorForType()

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

hasAnnotationSpec()

public boolean hasAnnotationSpec()

Label of image.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
boolean

Whether the annotationSpec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnnotationSpec(AnnotationSpec value)

public ImageClassificationAnnotation.Builder mergeAnnotationSpec(AnnotationSpec value)

Label of image.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Parameter
Name Description
value AnnotationSpec
Returns
Type Description
ImageClassificationAnnotation.Builder

mergeFrom(ImageClassificationAnnotation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAnnotationSpec(AnnotationSpec value)

public ImageClassificationAnnotation.Builder setAnnotationSpec(AnnotationSpec value)

Label of image.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Parameter
Name Description
value AnnotationSpec
Returns
Type Description
ImageClassificationAnnotation.Builder

setAnnotationSpec(AnnotationSpec.Builder builderForValue)

public ImageClassificationAnnotation.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)

Label of image.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Parameter
Name Description
builderForValue AnnotationSpec.Builder
Returns
Type Description
ImageClassificationAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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