Class ImagePolylineAnnotation.Builder (0.139.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImagePolylineAnnotation build()
Returns
TypeDescription
ImagePolylineAnnotation

buildPartial()

public ImagePolylineAnnotation buildPartial()
Returns
TypeDescription
ImagePolylineAnnotation

clear()

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

clearAnnotationSpec()

public ImagePolylineAnnotation.Builder clearAnnotationSpec()

Label of this polyline.

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

Returns
TypeDescription
ImagePolylineAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNormalizedPolyline()

public ImagePolylineAnnotation.Builder clearNormalizedPolyline()

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

Returns
TypeDescription
ImagePolylineAnnotation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPoly()

public ImagePolylineAnnotation.Builder clearPoly()
Returns
TypeDescription
ImagePolylineAnnotation.Builder

clearPolyline()

public ImagePolylineAnnotation.Builder clearPolyline()

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

Returns
TypeDescription
ImagePolylineAnnotation.Builder

clone()

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

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

Label of this polyline.

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

Returns
TypeDescription
AnnotationSpec

The annotationSpec.

getAnnotationSpecBuilder()

public AnnotationSpec.Builder getAnnotationSpecBuilder()

Label of this polyline.

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

Returns
TypeDescription
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

Label of this polyline.

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

Returns
TypeDescription
AnnotationSpecOrBuilder

getDefaultInstanceForType()

public ImagePolylineAnnotation getDefaultInstanceForType()
Returns
TypeDescription
ImagePolylineAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNormalizedPolyline()

public NormalizedPolyline getNormalizedPolyline()

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

Returns
TypeDescription
NormalizedPolyline

The normalizedPolyline.

getNormalizedPolylineBuilder()

public NormalizedPolyline.Builder getNormalizedPolylineBuilder()

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

Returns
TypeDescription
NormalizedPolyline.Builder

getNormalizedPolylineOrBuilder()

public NormalizedPolylineOrBuilder getNormalizedPolylineOrBuilder()

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

Returns
TypeDescription
NormalizedPolylineOrBuilder

getPolyCase()

public ImagePolylineAnnotation.PolyCase getPolyCase()
Returns
TypeDescription
ImagePolylineAnnotation.PolyCase

getPolyline()

public Polyline getPolyline()

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

Returns
TypeDescription
Polyline

The polyline.

getPolylineBuilder()

public Polyline.Builder getPolylineBuilder()

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

Returns
TypeDescription
Polyline.Builder

getPolylineOrBuilder()

public PolylineOrBuilder getPolylineOrBuilder()

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

Returns
TypeDescription
PolylineOrBuilder

hasAnnotationSpec()

public boolean hasAnnotationSpec()

Label of this polyline.

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

Returns
TypeDescription
boolean

Whether the annotationSpec field is set.

hasNormalizedPolyline()

public boolean hasNormalizedPolyline()

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

Returns
TypeDescription
boolean

Whether the normalizedPolyline field is set.

hasPolyline()

public boolean hasPolyline()

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

Returns
TypeDescription
boolean

Whether the polyline field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAnnotationSpec(AnnotationSpec value)

public ImagePolylineAnnotation.Builder mergeAnnotationSpec(AnnotationSpec value)

Label of this polyline.

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

Parameter
NameDescription
valueAnnotationSpec
Returns
TypeDescription
ImagePolylineAnnotation.Builder

mergeFrom(ImagePolylineAnnotation other)

public ImagePolylineAnnotation.Builder mergeFrom(ImagePolylineAnnotation other)
Parameter
NameDescription
otherImagePolylineAnnotation
Returns
TypeDescription
ImagePolylineAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNormalizedPolyline(NormalizedPolyline value)

public ImagePolylineAnnotation.Builder mergeNormalizedPolyline(NormalizedPolyline value)

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

Parameter
NameDescription
valueNormalizedPolyline
Returns
TypeDescription
ImagePolylineAnnotation.Builder

mergePolyline(Polyline value)

public ImagePolylineAnnotation.Builder mergePolyline(Polyline value)

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

Parameter
NameDescription
valuePolyline
Returns
TypeDescription
ImagePolylineAnnotation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImagePolylineAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAnnotationSpec
Returns
TypeDescription
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
NameDescription
builderForValueAnnotationSpec.Builder
Returns
TypeDescription
ImagePolylineAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNormalizedPolyline(NormalizedPolyline value)

public ImagePolylineAnnotation.Builder setNormalizedPolyline(NormalizedPolyline value)

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

Parameter
NameDescription
valueNormalizedPolyline
Returns
TypeDescription
ImagePolylineAnnotation.Builder

setNormalizedPolyline(NormalizedPolyline.Builder builderForValue)

public ImagePolylineAnnotation.Builder setNormalizedPolyline(NormalizedPolyline.Builder builderForValue)

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

Parameter
NameDescription
builderForValueNormalizedPolyline.Builder
Returns
TypeDescription
ImagePolylineAnnotation.Builder

setPolyline(Polyline value)

public ImagePolylineAnnotation.Builder setPolyline(Polyline value)

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

Parameter
NameDescription
valuePolyline
Returns
TypeDescription
ImagePolylineAnnotation.Builder

setPolyline(Polyline.Builder builderForValue)

public ImagePolylineAnnotation.Builder setPolyline(Polyline.Builder builderForValue)

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

Parameter
NameDescription
builderForValuePolyline.Builder
Returns
TypeDescription
ImagePolylineAnnotation.Builder

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

public ImagePolylineAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImagePolylineAnnotation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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