Class NormalizedBoundingPoly.Builder (2.53.0)

public static final class NormalizedBoundingPoly.Builder extends GeneratedMessageV3.Builder<NormalizedBoundingPoly.Builder> implements NormalizedBoundingPolyOrBuilder

Normalized bounding polygon for text (that might not be aligned with axis). Contains list of the corner points in clockwise order starting from top-left corner. For example, for a rectangular bounding box: When the text is horizontal it might look like: 0----1 | | 3----2

When it's clockwise rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0

and the vertex order will still be (0, 1, 2, 3). Note that values can be less than 0, or greater than 1 due to trignometric calculations for location of the box.

Protobuf type google.cloud.videointelligence.v1.NormalizedBoundingPoly

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllVertices(Iterable<? extends NormalizedVertex> values)

public NormalizedBoundingPoly.Builder addAllVertices(Iterable<? extends NormalizedVertex> values)

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.NormalizedVertex>
Returns
Type Description
NormalizedBoundingPoly.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVertices(NormalizedVertex value)

public NormalizedBoundingPoly.Builder addVertices(NormalizedVertex value)

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Parameter
Name Description
value NormalizedVertex
Returns
Type Description
NormalizedBoundingPoly.Builder

addVertices(NormalizedVertex.Builder builderForValue)

public NormalizedBoundingPoly.Builder addVertices(NormalizedVertex.Builder builderForValue)

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Parameter
Name Description
builderForValue NormalizedVertex.Builder
Returns
Type Description
NormalizedBoundingPoly.Builder

addVertices(int index, NormalizedVertex value)

public NormalizedBoundingPoly.Builder addVertices(int index, NormalizedVertex value)

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Parameters
Name Description
index int
value NormalizedVertex
Returns
Type Description
NormalizedBoundingPoly.Builder

addVertices(int index, NormalizedVertex.Builder builderForValue)

public NormalizedBoundingPoly.Builder addVertices(int index, NormalizedVertex.Builder builderForValue)

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Parameters
Name Description
index int
builderForValue NormalizedVertex.Builder
Returns
Type Description
NormalizedBoundingPoly.Builder

addVerticesBuilder()

public NormalizedVertex.Builder addVerticesBuilder()

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Returns
Type Description
NormalizedVertex.Builder

addVerticesBuilder(int index)

public NormalizedVertex.Builder addVerticesBuilder(int index)

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedVertex.Builder

build()

public NormalizedBoundingPoly build()
Returns
Type Description
NormalizedBoundingPoly

buildPartial()

public NormalizedBoundingPoly buildPartial()
Returns
Type Description
NormalizedBoundingPoly

clear()

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

clearField(Descriptors.FieldDescriptor field)

public NormalizedBoundingPoly.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NormalizedBoundingPoly.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVertices()

public NormalizedBoundingPoly.Builder clearVertices()

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Returns
Type Description
NormalizedBoundingPoly.Builder

clone()

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

getDefaultInstanceForType()

public NormalizedBoundingPoly getDefaultInstanceForType()
Returns
Type Description
NormalizedBoundingPoly

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getVertices(int index)

public NormalizedVertex getVertices(int index)

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedVertex

getVerticesBuilder(int index)

public NormalizedVertex.Builder getVerticesBuilder(int index)

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedVertex.Builder

getVerticesBuilderList()

public List<NormalizedVertex.Builder> getVerticesBuilderList()

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Returns
Type Description
List<Builder>

getVerticesCount()

public int getVerticesCount()

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Returns
Type Description
int

getVerticesList()

public List<NormalizedVertex> getVerticesList()

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Returns
Type Description
List<NormalizedVertex>

getVerticesOrBuilder(int index)

public NormalizedVertexOrBuilder getVerticesOrBuilder(int index)

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedVertexOrBuilder

getVerticesOrBuilderList()

public List<? extends NormalizedVertexOrBuilder> getVerticesOrBuilderList()

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1.NormalizedVertexOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NormalizedBoundingPoly other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public NormalizedBoundingPoly.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NormalizedBoundingPoly.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NormalizedBoundingPoly.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NormalizedBoundingPoly.Builder
Overrides

removeVertices(int index)

public NormalizedBoundingPoly.Builder removeVertices(int index)

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedBoundingPoly.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public NormalizedBoundingPoly.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NormalizedBoundingPoly.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NormalizedBoundingPoly.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NormalizedBoundingPoly.Builder
Overrides

setVertices(int index, NormalizedVertex value)

public NormalizedBoundingPoly.Builder setVertices(int index, NormalizedVertex value)

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Parameters
Name Description
index int
value NormalizedVertex
Returns
Type Description
NormalizedBoundingPoly.Builder

setVertices(int index, NormalizedVertex.Builder builderForValue)

public NormalizedBoundingPoly.Builder setVertices(int index, NormalizedVertex.Builder builderForValue)

Normalized vertices of the bounding polygon.

repeated .google.cloud.videointelligence.v1.NormalizedVertex vertices = 1;

Parameters
Name Description
index int
builderForValue NormalizedVertex.Builder
Returns
Type Description
NormalizedBoundingPoly.Builder