Class AnnotationValue.Builder (0.165.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnnotationValue build()
Returns
Type Description
AnnotationValue

buildPartial()

public AnnotationValue buildPartial()
Returns
Type Description
AnnotationValue

clear()

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

clearField(Descriptors.FieldDescriptor field)

public AnnotationValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
AnnotationValue.Builder

clearImageClassificationAnnotation()

public AnnotationValue.Builder clearImageClassificationAnnotation()

Annotation value for image classification case.

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

Returns
Type Description
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
Type Description
AnnotationValue.Builder

clearImageSegmentationAnnotation()

public AnnotationValue.Builder clearImageSegmentationAnnotation()

Annotation value for image segmentation.

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

Returns
Type Description
AnnotationValue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTextClassificationAnnotation()

public AnnotationValue.Builder clearTextClassificationAnnotation()

Annotation value for text classification case.

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

Returns
Type Description
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
Type Description
AnnotationValue.Builder

clearValueType()

public AnnotationValue.Builder clearValueType()
Returns
Type Description
AnnotationValue.Builder

clearVideoClassificationAnnotation()

public AnnotationValue.Builder clearVideoClassificationAnnotation()

Annotation value for video classification case.

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

Returns
Type Description
AnnotationValue.Builder

clearVideoEventAnnotation()

public AnnotationValue.Builder clearVideoEventAnnotation()

Annotation value for video event case.

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

Returns
Type Description
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
Type Description
AnnotationValue.Builder

clone()

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

getDefaultInstanceForType()

public AnnotationValue getDefaultInstanceForType()
Returns
Type Description
AnnotationValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ImageBoundingPolyAnnotationOrBuilder

getImageClassificationAnnotation()

public ImageClassificationAnnotation getImageClassificationAnnotation()

Annotation value for image classification case.

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

Returns
Type Description
ImageClassificationAnnotation

The imageClassificationAnnotation.

getImageClassificationAnnotationBuilder()

public ImageClassificationAnnotation.Builder getImageClassificationAnnotationBuilder()

Annotation value for image classification case.

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

Returns
Type Description
ImageClassificationAnnotation.Builder

getImageClassificationAnnotationOrBuilder()

public ImageClassificationAnnotationOrBuilder getImageClassificationAnnotationOrBuilder()

Annotation value for image classification case.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ImagePolylineAnnotationOrBuilder

getImageSegmentationAnnotation()

public ImageSegmentationAnnotation getImageSegmentationAnnotation()

Annotation value for image segmentation.

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

Returns
Type Description
ImageSegmentationAnnotation

The imageSegmentationAnnotation.

getImageSegmentationAnnotationBuilder()

public ImageSegmentationAnnotation.Builder getImageSegmentationAnnotationBuilder()

Annotation value for image segmentation.

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

Returns
Type Description
ImageSegmentationAnnotation.Builder

getImageSegmentationAnnotationOrBuilder()

public ImageSegmentationAnnotationOrBuilder getImageSegmentationAnnotationOrBuilder()

Annotation value for image segmentation.

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

Returns
Type Description
ImageSegmentationAnnotationOrBuilder

getTextClassificationAnnotation()

public TextClassificationAnnotation getTextClassificationAnnotation()

Annotation value for text classification case.

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

Returns
Type Description
TextClassificationAnnotation

The textClassificationAnnotation.

getTextClassificationAnnotationBuilder()

public TextClassificationAnnotation.Builder getTextClassificationAnnotationBuilder()

Annotation value for text classification case.

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

Returns
Type Description
TextClassificationAnnotation.Builder

getTextClassificationAnnotationOrBuilder()

public TextClassificationAnnotationOrBuilder getTextClassificationAnnotationOrBuilder()

Annotation value for text classification case.

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

Returns
Type Description
TextClassificationAnnotationOrBuilder

getTextEntityExtractionAnnotation()

public TextEntityExtractionAnnotation getTextEntityExtractionAnnotation()

Annotation value for text entity extraction case.

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

Returns
Type Description
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
Type Description
TextEntityExtractionAnnotation.Builder

getTextEntityExtractionAnnotationOrBuilder()

public TextEntityExtractionAnnotationOrBuilder getTextEntityExtractionAnnotationOrBuilder()

Annotation value for text entity extraction case.

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

Returns
Type Description
TextEntityExtractionAnnotationOrBuilder

getValueTypeCase()

public AnnotationValue.ValueTypeCase getValueTypeCase()
Returns
Type Description
AnnotationValue.ValueTypeCase

getVideoClassificationAnnotation()

public VideoClassificationAnnotation getVideoClassificationAnnotation()

Annotation value for video classification case.

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

Returns
Type Description
VideoClassificationAnnotation

The videoClassificationAnnotation.

getVideoClassificationAnnotationBuilder()

public VideoClassificationAnnotation.Builder getVideoClassificationAnnotationBuilder()

Annotation value for video classification case.

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

Returns
Type Description
VideoClassificationAnnotation.Builder

getVideoClassificationAnnotationOrBuilder()

public VideoClassificationAnnotationOrBuilder getVideoClassificationAnnotationOrBuilder()

Annotation value for video classification case.

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

Returns
Type Description
VideoClassificationAnnotationOrBuilder

getVideoEventAnnotation()

public VideoEventAnnotation getVideoEventAnnotation()

Annotation value for video event case.

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

Returns
Type Description
VideoEventAnnotation

The videoEventAnnotation.

getVideoEventAnnotationBuilder()

public VideoEventAnnotation.Builder getVideoEventAnnotationBuilder()

Annotation value for video event case.

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

Returns
Type Description
VideoEventAnnotation.Builder

getVideoEventAnnotationOrBuilder()

public VideoEventAnnotationOrBuilder getVideoEventAnnotationOrBuilder()

Annotation value for video event case.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the videoObjectTrackingAnnotation field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnnotationValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AnnotationValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value ImageBoundingPolyAnnotation
Returns
Type Description
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
Name Description
value ImageClassificationAnnotation
Returns
Type Description
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
Name Description
value ImagePolylineAnnotation
Returns
Type Description
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
Name Description
value ImageSegmentationAnnotation
Returns
Type Description
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
Name Description
value TextClassificationAnnotation
Returns
Type Description
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
Name Description
value TextEntityExtractionAnnotation
Returns
Type Description
AnnotationValue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnnotationValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value VideoClassificationAnnotation
Returns
Type Description
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
Name Description
value VideoEventAnnotation
Returns
Type Description
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
Name Description
value VideoObjectTrackingAnnotation
Returns
Type Description
AnnotationValue.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AnnotationValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value ImageBoundingPolyAnnotation
Returns
Type Description
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
Name Description
builderForValue ImageBoundingPolyAnnotation.Builder
Returns
Type Description
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
Name Description
value ImageClassificationAnnotation
Returns
Type Description
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
Name Description
builderForValue ImageClassificationAnnotation.Builder
Returns
Type Description
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
Name Description
value ImagePolylineAnnotation
Returns
Type Description
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
Name Description
builderForValue ImagePolylineAnnotation.Builder
Returns
Type Description
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
Name Description
value ImageSegmentationAnnotation
Returns
Type Description
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
Name Description
builderForValue ImageSegmentationAnnotation.Builder
Returns
Type Description
AnnotationValue.Builder

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

public AnnotationValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value TextClassificationAnnotation
Returns
Type Description
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
Name Description
builderForValue TextClassificationAnnotation.Builder
Returns
Type Description
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
Name Description
value TextEntityExtractionAnnotation
Returns
Type Description
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
Name Description
builderForValue TextEntityExtractionAnnotation.Builder
Returns
Type Description
AnnotationValue.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AnnotationValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value VideoClassificationAnnotation
Returns
Type Description
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
Name Description
builderForValue VideoClassificationAnnotation.Builder
Returns
Type Description
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
Name Description
value VideoEventAnnotation
Returns
Type Description
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
Name Description
builderForValue VideoEventAnnotation.Builder
Returns
Type Description
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
Name Description
value VideoObjectTrackingAnnotation
Returns
Type Description
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
Name Description
builderForValue VideoObjectTrackingAnnotation.Builder
Returns
Type Description
AnnotationValue.Builder