Class AnnotationValue.Builder (0.139.0)

public static final class AnnotationValue.Builder extends GeneratedMessageV3.Builder<AnnotationValue.Builder> implements AnnotationValueOrBuilder

Annotation value for an example.

Protobuf type google.cloud.datalabeling.v1beta1.AnnotationValue

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnnotationValue build()
Returns
TypeDescription
AnnotationValue

buildPartial()

public AnnotationValue buildPartial()
Returns
TypeDescription
AnnotationValue

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearImageBoundingPolyAnnotation()

public AnnotationValue.Builder clearImageBoundingPolyAnnotation()

Annotation value for image bounding box, oriented bounding box and polygon cases.

.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2;

Returns
TypeDescription
AnnotationValue.Builder

clearImageClassificationAnnotation()

public AnnotationValue.Builder clearImageClassificationAnnotation()

Annotation value for image classification case.

.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;

Returns
TypeDescription
AnnotationValue.Builder

clearImagePolylineAnnotation()

public AnnotationValue.Builder clearImagePolylineAnnotation()

Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.

.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8;

Returns
TypeDescription
AnnotationValue.Builder

clearImageSegmentationAnnotation()

public AnnotationValue.Builder clearImageSegmentationAnnotation()

Annotation value for image segmentation.

.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;

Returns
TypeDescription
AnnotationValue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTextClassificationAnnotation()

public AnnotationValue.Builder clearTextClassificationAnnotation()

Annotation value for text classification case.

.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;

Returns
TypeDescription
AnnotationValue.Builder

clearTextEntityExtractionAnnotation()

public AnnotationValue.Builder clearTextEntityExtractionAnnotation()

Annotation value for text entity extraction case.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;

Returns
TypeDescription
AnnotationValue.Builder

clearValueType()

public AnnotationValue.Builder clearValueType()
Returns
TypeDescription
AnnotationValue.Builder

clearVideoClassificationAnnotation()

public AnnotationValue.Builder clearVideoClassificationAnnotation()

Annotation value for video classification case.

.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;

Returns
TypeDescription
AnnotationValue.Builder

clearVideoEventAnnotation()

public AnnotationValue.Builder clearVideoEventAnnotation()

Annotation value for video event case.

.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;

Returns
TypeDescription
AnnotationValue.Builder

clearVideoObjectTrackingAnnotation()

public AnnotationValue.Builder clearVideoObjectTrackingAnnotation()

Annotation value for video object detection and tracking case.

.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;

Returns
TypeDescription
AnnotationValue.Builder

clone()

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

getDefaultInstanceForType()

public AnnotationValue getDefaultInstanceForType()
Returns
TypeDescription
AnnotationValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImageBoundingPolyAnnotation()

public ImageBoundingPolyAnnotation getImageBoundingPolyAnnotation()

Annotation value for image bounding box, oriented bounding box and polygon cases.

.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2;

Returns
TypeDescription
ImageBoundingPolyAnnotation

The imageBoundingPolyAnnotation.

getImageBoundingPolyAnnotationBuilder()

public ImageBoundingPolyAnnotation.Builder getImageBoundingPolyAnnotationBuilder()

Annotation value for image bounding box, oriented bounding box and polygon cases.

.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2;

Returns
TypeDescription
ImageBoundingPolyAnnotation.Builder

getImageBoundingPolyAnnotationOrBuilder()

public ImageBoundingPolyAnnotationOrBuilder getImageBoundingPolyAnnotationOrBuilder()

Annotation value for image bounding box, oriented bounding box and polygon cases.

.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2;

Returns
TypeDescription
ImageBoundingPolyAnnotationOrBuilder

getImageClassificationAnnotation()

public ImageClassificationAnnotation getImageClassificationAnnotation()

Annotation value for image classification case.

.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;

Returns
TypeDescription
ImageClassificationAnnotation

The imageClassificationAnnotation.

getImageClassificationAnnotationBuilder()

public ImageClassificationAnnotation.Builder getImageClassificationAnnotationBuilder()

Annotation value for image classification case.

.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;

Returns
TypeDescription
ImageClassificationAnnotation.Builder

getImageClassificationAnnotationOrBuilder()

public ImageClassificationAnnotationOrBuilder getImageClassificationAnnotationOrBuilder()

Annotation value for image classification case.

.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;

Returns
TypeDescription
ImageClassificationAnnotationOrBuilder

getImagePolylineAnnotation()

public ImagePolylineAnnotation getImagePolylineAnnotation()

Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.

.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8;

Returns
TypeDescription
ImagePolylineAnnotation

The imagePolylineAnnotation.

getImagePolylineAnnotationBuilder()

public ImagePolylineAnnotation.Builder getImagePolylineAnnotationBuilder()

Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.

.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8;

Returns
TypeDescription
ImagePolylineAnnotation.Builder

getImagePolylineAnnotationOrBuilder()

public ImagePolylineAnnotationOrBuilder getImagePolylineAnnotationOrBuilder()

Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.

.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8;

Returns
TypeDescription
ImagePolylineAnnotationOrBuilder

getImageSegmentationAnnotation()

public ImageSegmentationAnnotation getImageSegmentationAnnotation()

Annotation value for image segmentation.

.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;

Returns
TypeDescription
ImageSegmentationAnnotation

The imageSegmentationAnnotation.

getImageSegmentationAnnotationBuilder()

public ImageSegmentationAnnotation.Builder getImageSegmentationAnnotationBuilder()

Annotation value for image segmentation.

.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;

Returns
TypeDescription
ImageSegmentationAnnotation.Builder

getImageSegmentationAnnotationOrBuilder()

public ImageSegmentationAnnotationOrBuilder getImageSegmentationAnnotationOrBuilder()

Annotation value for image segmentation.

.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;

Returns
TypeDescription
ImageSegmentationAnnotationOrBuilder

getTextClassificationAnnotation()

public TextClassificationAnnotation getTextClassificationAnnotation()

Annotation value for text classification case.

.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;

Returns
TypeDescription
TextClassificationAnnotation

The textClassificationAnnotation.

getTextClassificationAnnotationBuilder()

public TextClassificationAnnotation.Builder getTextClassificationAnnotationBuilder()

Annotation value for text classification case.

.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;

Returns
TypeDescription
TextClassificationAnnotation.Builder

getTextClassificationAnnotationOrBuilder()

public TextClassificationAnnotationOrBuilder getTextClassificationAnnotationOrBuilder()

Annotation value for text classification case.

.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;

Returns
TypeDescription
TextClassificationAnnotationOrBuilder

getTextEntityExtractionAnnotation()

public TextEntityExtractionAnnotation getTextEntityExtractionAnnotation()

Annotation value for text entity extraction case.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;

Returns
TypeDescription
TextEntityExtractionAnnotation

The textEntityExtractionAnnotation.

getTextEntityExtractionAnnotationBuilder()

public TextEntityExtractionAnnotation.Builder getTextEntityExtractionAnnotationBuilder()

Annotation value for text entity extraction case.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;

Returns
TypeDescription
TextEntityExtractionAnnotation.Builder

getTextEntityExtractionAnnotationOrBuilder()

public TextEntityExtractionAnnotationOrBuilder getTextEntityExtractionAnnotationOrBuilder()

Annotation value for text entity extraction case.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;

Returns
TypeDescription
TextEntityExtractionAnnotationOrBuilder

getValueTypeCase()

public AnnotationValue.ValueTypeCase getValueTypeCase()
Returns
TypeDescription
AnnotationValue.ValueTypeCase

getVideoClassificationAnnotation()

public VideoClassificationAnnotation getVideoClassificationAnnotation()

Annotation value for video classification case.

.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;

Returns
TypeDescription
VideoClassificationAnnotation

The videoClassificationAnnotation.

getVideoClassificationAnnotationBuilder()

public VideoClassificationAnnotation.Builder getVideoClassificationAnnotationBuilder()

Annotation value for video classification case.

.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;

Returns
TypeDescription
VideoClassificationAnnotation.Builder

getVideoClassificationAnnotationOrBuilder()

public VideoClassificationAnnotationOrBuilder getVideoClassificationAnnotationOrBuilder()

Annotation value for video classification case.

.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;

Returns
TypeDescription
VideoClassificationAnnotationOrBuilder

getVideoEventAnnotation()

public VideoEventAnnotation getVideoEventAnnotation()

Annotation value for video event case.

.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;

Returns
TypeDescription
VideoEventAnnotation

The videoEventAnnotation.

getVideoEventAnnotationBuilder()

public VideoEventAnnotation.Builder getVideoEventAnnotationBuilder()

Annotation value for video event case.

.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;

Returns
TypeDescription
VideoEventAnnotation.Builder

getVideoEventAnnotationOrBuilder()

public VideoEventAnnotationOrBuilder getVideoEventAnnotationOrBuilder()

Annotation value for video event case.

.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;

Returns
TypeDescription
VideoEventAnnotationOrBuilder

getVideoObjectTrackingAnnotation()

public VideoObjectTrackingAnnotation getVideoObjectTrackingAnnotation()

Annotation value for video object detection and tracking case.

.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;

Returns
TypeDescription
VideoObjectTrackingAnnotation

The videoObjectTrackingAnnotation.

getVideoObjectTrackingAnnotationBuilder()

public VideoObjectTrackingAnnotation.Builder getVideoObjectTrackingAnnotationBuilder()

Annotation value for video object detection and tracking case.

.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;

Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

getVideoObjectTrackingAnnotationOrBuilder()

public VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingAnnotationOrBuilder()

Annotation value for video object detection and tracking case.

.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;

Returns
TypeDescription
VideoObjectTrackingAnnotationOrBuilder

hasImageBoundingPolyAnnotation()

public boolean hasImageBoundingPolyAnnotation()

Annotation value for image bounding box, oriented bounding box and polygon cases.

.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2;

Returns
TypeDescription
boolean

Whether the imageBoundingPolyAnnotation field is set.

hasImageClassificationAnnotation()

public boolean hasImageClassificationAnnotation()

Annotation value for image classification case.

.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;

Returns
TypeDescription
boolean

Whether the imageClassificationAnnotation field is set.

hasImagePolylineAnnotation()

public boolean hasImagePolylineAnnotation()

Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.

.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8;

Returns
TypeDescription
boolean

Whether the imagePolylineAnnotation field is set.

hasImageSegmentationAnnotation()

public boolean hasImageSegmentationAnnotation()

Annotation value for image segmentation.

.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;

Returns
TypeDescription
boolean

Whether the imageSegmentationAnnotation field is set.

hasTextClassificationAnnotation()

public boolean hasTextClassificationAnnotation()

Annotation value for text classification case.

.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;

Returns
TypeDescription
boolean

Whether the textClassificationAnnotation field is set.

hasTextEntityExtractionAnnotation()

public boolean hasTextEntityExtractionAnnotation()

Annotation value for text entity extraction case.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;

Returns
TypeDescription
boolean

Whether the textEntityExtractionAnnotation field is set.

hasVideoClassificationAnnotation()

public boolean hasVideoClassificationAnnotation()

Annotation value for video classification case.

.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;

Returns
TypeDescription
boolean

Whether the videoClassificationAnnotation field is set.

hasVideoEventAnnotation()

public boolean hasVideoEventAnnotation()

Annotation value for video event case.

.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;

Returns
TypeDescription
boolean

Whether the videoEventAnnotation field is set.

hasVideoObjectTrackingAnnotation()

public boolean hasVideoObjectTrackingAnnotation()

Annotation value for video object detection and tracking case.

.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;

Returns
TypeDescription
boolean

Whether the videoObjectTrackingAnnotation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AnnotationValue other)

public AnnotationValue.Builder mergeFrom(AnnotationValue other)
Parameter
NameDescription
otherAnnotationValue
Returns
TypeDescription
AnnotationValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeImageBoundingPolyAnnotation(ImageBoundingPolyAnnotation value)

public AnnotationValue.Builder mergeImageBoundingPolyAnnotation(ImageBoundingPolyAnnotation value)

Annotation value for image bounding box, oriented bounding box and polygon cases.

.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2;

Parameter
NameDescription
valueImageBoundingPolyAnnotation
Returns
TypeDescription
AnnotationValue.Builder

mergeImageClassificationAnnotation(ImageClassificationAnnotation value)

public AnnotationValue.Builder mergeImageClassificationAnnotation(ImageClassificationAnnotation value)

Annotation value for image classification case.

.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;

Parameter
NameDescription
valueImageClassificationAnnotation
Returns
TypeDescription
AnnotationValue.Builder

mergeImagePolylineAnnotation(ImagePolylineAnnotation value)

public AnnotationValue.Builder mergeImagePolylineAnnotation(ImagePolylineAnnotation value)

Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.

.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8;

Parameter
NameDescription
valueImagePolylineAnnotation
Returns
TypeDescription
AnnotationValue.Builder

mergeImageSegmentationAnnotation(ImageSegmentationAnnotation value)

public AnnotationValue.Builder mergeImageSegmentationAnnotation(ImageSegmentationAnnotation value)

Annotation value for image segmentation.

.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;

Parameter
NameDescription
valueImageSegmentationAnnotation
Returns
TypeDescription
AnnotationValue.Builder

mergeTextClassificationAnnotation(TextClassificationAnnotation value)

public AnnotationValue.Builder mergeTextClassificationAnnotation(TextClassificationAnnotation value)

Annotation value for text classification case.

.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;

Parameter
NameDescription
valueTextClassificationAnnotation
Returns
TypeDescription
AnnotationValue.Builder

mergeTextEntityExtractionAnnotation(TextEntityExtractionAnnotation value)

public AnnotationValue.Builder mergeTextEntityExtractionAnnotation(TextEntityExtractionAnnotation value)

Annotation value for text entity extraction case.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;

Parameter
NameDescription
valueTextEntityExtractionAnnotation
Returns
TypeDescription
AnnotationValue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVideoClassificationAnnotation(VideoClassificationAnnotation value)

public AnnotationValue.Builder mergeVideoClassificationAnnotation(VideoClassificationAnnotation value)

Annotation value for video classification case.

.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;

Parameter
NameDescription
valueVideoClassificationAnnotation
Returns
TypeDescription
AnnotationValue.Builder

mergeVideoEventAnnotation(VideoEventAnnotation value)

public AnnotationValue.Builder mergeVideoEventAnnotation(VideoEventAnnotation value)

Annotation value for video event case.

.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;

Parameter
NameDescription
valueVideoEventAnnotation
Returns
TypeDescription
AnnotationValue.Builder

mergeVideoObjectTrackingAnnotation(VideoObjectTrackingAnnotation value)

public AnnotationValue.Builder mergeVideoObjectTrackingAnnotation(VideoObjectTrackingAnnotation value)

Annotation value for video object detection and tracking case.

.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;

Parameter
NameDescription
valueVideoObjectTrackingAnnotation
Returns
TypeDescription
AnnotationValue.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setImageBoundingPolyAnnotation(ImageBoundingPolyAnnotation value)

public AnnotationValue.Builder setImageBoundingPolyAnnotation(ImageBoundingPolyAnnotation value)

Annotation value for image bounding box, oriented bounding box and polygon cases.

.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2;

Parameter
NameDescription
valueImageBoundingPolyAnnotation
Returns
TypeDescription
AnnotationValue.Builder

setImageBoundingPolyAnnotation(ImageBoundingPolyAnnotation.Builder builderForValue)

public AnnotationValue.Builder setImageBoundingPolyAnnotation(ImageBoundingPolyAnnotation.Builder builderForValue)

Annotation value for image bounding box, oriented bounding box and polygon cases.

.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2;

Parameter
NameDescription
builderForValueImageBoundingPolyAnnotation.Builder
Returns
TypeDescription
AnnotationValue.Builder

setImageClassificationAnnotation(ImageClassificationAnnotation value)

public AnnotationValue.Builder setImageClassificationAnnotation(ImageClassificationAnnotation value)

Annotation value for image classification case.

.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;

Parameter
NameDescription
valueImageClassificationAnnotation
Returns
TypeDescription
AnnotationValue.Builder

setImageClassificationAnnotation(ImageClassificationAnnotation.Builder builderForValue)

public AnnotationValue.Builder setImageClassificationAnnotation(ImageClassificationAnnotation.Builder builderForValue)

Annotation value for image classification case.

.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;

Parameter
NameDescription
builderForValueImageClassificationAnnotation.Builder
Returns
TypeDescription
AnnotationValue.Builder

setImagePolylineAnnotation(ImagePolylineAnnotation value)

public AnnotationValue.Builder setImagePolylineAnnotation(ImagePolylineAnnotation value)

Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.

.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8;

Parameter
NameDescription
valueImagePolylineAnnotation
Returns
TypeDescription
AnnotationValue.Builder

setImagePolylineAnnotation(ImagePolylineAnnotation.Builder builderForValue)

public AnnotationValue.Builder setImagePolylineAnnotation(ImagePolylineAnnotation.Builder builderForValue)

Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.

.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8;

Parameter
NameDescription
builderForValueImagePolylineAnnotation.Builder
Returns
TypeDescription
AnnotationValue.Builder

setImageSegmentationAnnotation(ImageSegmentationAnnotation value)

public AnnotationValue.Builder setImageSegmentationAnnotation(ImageSegmentationAnnotation value)

Annotation value for image segmentation.

.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;

Parameter
NameDescription
valueImageSegmentationAnnotation
Returns
TypeDescription
AnnotationValue.Builder

setImageSegmentationAnnotation(ImageSegmentationAnnotation.Builder builderForValue)

public AnnotationValue.Builder setImageSegmentationAnnotation(ImageSegmentationAnnotation.Builder builderForValue)

Annotation value for image segmentation.

.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;

Parameter
NameDescription
builderForValueImageSegmentationAnnotation.Builder
Returns
TypeDescription
AnnotationValue.Builder

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

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

setTextClassificationAnnotation(TextClassificationAnnotation value)

public AnnotationValue.Builder setTextClassificationAnnotation(TextClassificationAnnotation value)

Annotation value for text classification case.

.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;

Parameter
NameDescription
valueTextClassificationAnnotation
Returns
TypeDescription
AnnotationValue.Builder

setTextClassificationAnnotation(TextClassificationAnnotation.Builder builderForValue)

public AnnotationValue.Builder setTextClassificationAnnotation(TextClassificationAnnotation.Builder builderForValue)

Annotation value for text classification case.

.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;

Parameter
NameDescription
builderForValueTextClassificationAnnotation.Builder
Returns
TypeDescription
AnnotationValue.Builder

setTextEntityExtractionAnnotation(TextEntityExtractionAnnotation value)

public AnnotationValue.Builder setTextEntityExtractionAnnotation(TextEntityExtractionAnnotation value)

Annotation value for text entity extraction case.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;

Parameter
NameDescription
valueTextEntityExtractionAnnotation
Returns
TypeDescription
AnnotationValue.Builder

setTextEntityExtractionAnnotation(TextEntityExtractionAnnotation.Builder builderForValue)

public AnnotationValue.Builder setTextEntityExtractionAnnotation(TextEntityExtractionAnnotation.Builder builderForValue)

Annotation value for text entity extraction case.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;

Parameter
NameDescription
builderForValueTextEntityExtractionAnnotation.Builder
Returns
TypeDescription
AnnotationValue.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setVideoClassificationAnnotation(VideoClassificationAnnotation value)

public AnnotationValue.Builder setVideoClassificationAnnotation(VideoClassificationAnnotation value)

Annotation value for video classification case.

.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;

Parameter
NameDescription
valueVideoClassificationAnnotation
Returns
TypeDescription
AnnotationValue.Builder

setVideoClassificationAnnotation(VideoClassificationAnnotation.Builder builderForValue)

public AnnotationValue.Builder setVideoClassificationAnnotation(VideoClassificationAnnotation.Builder builderForValue)

Annotation value for video classification case.

.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;

Parameter
NameDescription
builderForValueVideoClassificationAnnotation.Builder
Returns
TypeDescription
AnnotationValue.Builder

setVideoEventAnnotation(VideoEventAnnotation value)

public AnnotationValue.Builder setVideoEventAnnotation(VideoEventAnnotation value)

Annotation value for video event case.

.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;

Parameter
NameDescription
valueVideoEventAnnotation
Returns
TypeDescription
AnnotationValue.Builder

setVideoEventAnnotation(VideoEventAnnotation.Builder builderForValue)

public AnnotationValue.Builder setVideoEventAnnotation(VideoEventAnnotation.Builder builderForValue)

Annotation value for video event case.

.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;

Parameter
NameDescription
builderForValueVideoEventAnnotation.Builder
Returns
TypeDescription
AnnotationValue.Builder

setVideoObjectTrackingAnnotation(VideoObjectTrackingAnnotation value)

public AnnotationValue.Builder setVideoObjectTrackingAnnotation(VideoObjectTrackingAnnotation value)

Annotation value for video object detection and tracking case.

.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;

Parameter
NameDescription
valueVideoObjectTrackingAnnotation
Returns
TypeDescription
AnnotationValue.Builder

setVideoObjectTrackingAnnotation(VideoObjectTrackingAnnotation.Builder builderForValue)

public AnnotationValue.Builder setVideoObjectTrackingAnnotation(VideoObjectTrackingAnnotation.Builder builderForValue)

Annotation value for video object detection and tracking case.

.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;

Parameter
NameDescription
builderForValueVideoObjectTrackingAnnotation.Builder
Returns
TypeDescription
AnnotationValue.Builder