Class LocalizedObjectAnnotation.Builder (2.1.4)

public static final class LocalizedObjectAnnotation.Builder extends GeneratedMessageV3.Builder<LocalizedObjectAnnotation.Builder> implements LocalizedObjectAnnotationOrBuilder

Set of detected objects with bounding boxes.

Protobuf type google.cloud.vision.v1.LocalizedObjectAnnotation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LocalizedObjectAnnotation build()
Returns
TypeDescription
LocalizedObjectAnnotation

buildPartial()

public LocalizedObjectAnnotation buildPartial()
Returns
TypeDescription
LocalizedObjectAnnotation

clear()

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

clearBoundingPoly()

public LocalizedObjectAnnotation.Builder clearBoundingPoly()

Image region to which this object belongs. This must be populated.

.google.cloud.vision.v1.BoundingPoly bounding_poly = 5;

Returns
TypeDescription
LocalizedObjectAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLanguageCode()

public LocalizedObjectAnnotation.Builder clearLanguageCode()

The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see <