Class BoundingPoly.Builder (2.1.4)

public static final class BoundingPoly.Builder extends GeneratedMessageV3.Builder<BoundingPoly.Builder> implements BoundingPolyOrBuilder

A bounding polygon for the detected image annotation.

Protobuf type google.cloud.vision.v1p1beta1.BoundingPoly

Static Methods

getDescriptor()

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

Methods

addAllVertices(Iterable<? extends Vertex> values)

public BoundingPoly.Builder addAllVertices(Iterable<? extends Vertex> values)

The bounding polygon vertices.

repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p1beta1.Vertex>
Returns
TypeDescription
BoundingPoly.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVertices(Vertex value)

public BoundingPoly.Builder addVertices(Vertex value)

The bounding polygon vertices.

repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;

Parameter
NameDescription
valueVertex
Returns
TypeDescription
BoundingPoly.Builder

addVertices(Vertex.Builder builderForValue)

public BoundingPoly.Builder addVertices(Vertex.Builder builderForValue)

The bounding polygon vertices.

repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;

Parameter
NameDescription
builderForValueVertex.Builder
Returns
TypeDescription
BoundingPoly.Builder

addVertices(int index, Vertex value)

public BoundingPoly.Builder addVertices(int index, Vertex value)

The bounding polygon vertices.

repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;

Parameters
NameDescription
indexint
value