Class ImagePolylineAnnotation.Builder (0.172.0)

public static final class ImagePolylineAnnotation.Builder extends GeneratedMessageV3.Builder<ImagePolylineAnnotation.Builder> implements ImagePolylineAnnotationOrBuilder

A polyline for the image annotation.

Protobuf type google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImagePolylineAnnotation build()
Returns
Type Description
ImagePolylineAnnotation

buildPartial()

public ImagePolylineAnnotation buildPartial()
Returns
Type Description
ImagePolylineAnnotation

clear()

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

clearAnnotationSpec()

public ImagePolylineAnnotation.Builder clearAnnotationSpec()

Label of this polyline.

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

Returns
Type Description
ImagePolylineAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNormalizedPolyline()

public ImagePolylineAnnotation.Builder clearNormalizedPolyline()

.google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3;

Returns
Type Description
ImagePolylineAnnotation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPoly()

public ImagePolylineAnnotation.Builder clearPoly()
Returns
Type Description
ImagePolylineAnnotation.Builder

clearPolyline()

public ImagePolylineAnnotation.Builder clearPolyline()

.google.cloud.datalabeling.v1beta1.Polyline polyline = 2;

Returns
Type Description
ImagePolylineAnnotation.Builder

clone()

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

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

Label of this polyline.

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

Returns
Type Description
AnnotationSpec

The annotationSpec.

getAnnotationSpecBuilder()

public AnnotationSpec.Builder getAnnotationSpecBuilder()

Label of this polyline.

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

Returns
Type Description
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

Label of this polyline.

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

Returns
Type Description
AnnotationSpecOrBuilder

getDefaultInstanceForType()

public ImagePolylineAnnotation getDefaultInstanceForType()
Returns
Type Description
ImagePolylineAnnotation

getDescriptorForType()

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

getNormalizedPolyline()

public NormalizedPolyline getNormalizedPolyline()

.google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3;

Returns
Type Description
NormalizedPolyline

The normalizedPolyline.

getNormalizedPolylineBuilder()

public NormalizedPolyline.Builder getNormalizedPolylineBuilder()

.google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3;

Returns
Type Description
NormalizedPolyline.Builder

getNormalizedPolylineOrBuilder()

public NormalizedPolylineOrBuilder getNormalizedPolylineOrBuilder()

.google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3;

Returns
Type Description
NormalizedPolylineOrBuilder

getPolyCase()

public ImagePolylineAnnotation.PolyCase getPolyCase()
Returns
Type Description
ImagePolylineAnnotation.PolyCase

getPolyline()

public Polyline getPolyline()

.google.cloud.datalabeling.v1beta1.Polyline polyline = 2;

Returns
Type Description
Polyline

The polyline.

getPolylineBuilder()

public Polyline.Builder getPolylineBuilder()

.google.cloud.datalabeling.v1beta1.Polyline polyline = 2;

Returns
Type Description
Polyline.Builder

getPolylineOrBuilder()

public PolylineOrBuilder getPolylineOrBuilder()

.google.cloud.datalabeling.v1beta1.Polyline polyline = 2;

Returns
Type Description
PolylineOrBuilder

hasAnnotationSpec()

public boolean hasAnnotationSpec()

Label of this polyline.

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

Returns
Type Description
boolean

Whether the annotationSpec field is set.

hasNormalizedPolyline()

public boolean hasNormalizedPolyline()

.google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3;

Returns
Type Description
boolean

Whether the normalizedPolyline field is set.

hasPolyline()

public boolean hasPolyline()

.google.cloud.datalabeling.v1beta1.Polyline polyline = 2;

Returns
Type Description
boolean

Whether the polyline 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 ImagePolylineAnnotation.Builder mergeAnnotationSpec(AnnotationSpec value)

Label of this polyline.

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

Parameter
Name Description
value AnnotationSpec
Returns
Type Description
ImagePolylineAnnotation.Builder

mergeFrom(ImagePolylineAnnotation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNormalizedPolyline(NormalizedPolyline value)

public ImagePolylineAnnotation.Builder mergeNormalizedPolyline(NormalizedPolyline value)

.google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3;

Parameter
Name Description
value NormalizedPolyline
Returns
Type Description
ImagePolylineAnnotation.Builder

mergePolyline(Polyline value)

public ImagePolylineAnnotation.Builder mergePolyline(Polyline value)

.google.cloud.datalabeling.v1beta1.Polyline polyline = 2;

Parameter
Name Description
value Polyline
Returns
Type Description
ImagePolylineAnnotation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAnnotationSpec(AnnotationSpec value)

public ImagePolylineAnnotation.Builder setAnnotationSpec(AnnotationSpec value)

Label of this polyline.

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

Parameter
Name Description
value AnnotationSpec
Returns
Type Description
ImagePolylineAnnotation.Builder

setAnnotationSpec(AnnotationSpec.Builder builderForValue)

public ImagePolylineAnnotation.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)

Label of this polyline.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNormalizedPolyline(NormalizedPolyline value)

public ImagePolylineAnnotation.Builder setNormalizedPolyline(NormalizedPolyline value)

.google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3;

Parameter
Name Description
value NormalizedPolyline
Returns
Type Description
ImagePolylineAnnotation.Builder

setNormalizedPolyline(NormalizedPolyline.Builder builderForValue)

public ImagePolylineAnnotation.Builder setNormalizedPolyline(NormalizedPolyline.Builder builderForValue)

.google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3;

Parameter
Name Description
builderForValue NormalizedPolyline.Builder
Returns
Type Description
ImagePolylineAnnotation.Builder

setPolyline(Polyline value)

public ImagePolylineAnnotation.Builder setPolyline(Polyline value)

.google.cloud.datalabeling.v1beta1.Polyline polyline = 2;

Parameter
Name Description
value Polyline
Returns
Type Description
ImagePolylineAnnotation.Builder

setPolyline(Polyline.Builder builderForValue)

public ImagePolylineAnnotation.Builder setPolyline(Polyline.Builder builderForValue)

.google.cloud.datalabeling.v1beta1.Polyline polyline = 2;

Parameter
Name Description
builderForValue Polyline.Builder
Returns
Type Description
ImagePolylineAnnotation.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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