Class NormalizedBoundingPoly.Builder (2.20.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.v1p3beta1.NormalizedBoundingPoly

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1p3beta1.NormalizedVertex vertices = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex>
Returns
TypeDescription
NormalizedBoundingPoly.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVertices(NormalizedVertex value)

public NormalizedBoundingPoly.Builder addVertices(NormalizedVertex value)

Normalized vertices of the bounding polygon.

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

Parameter
NameDescription
valueNormalizedVertex
Returns
TypeDescription
NormalizedBoundingPoly.Builder

addVertices(NormalizedVertex.Builder builderForValue)

public NormalizedBoundingPoly.Builder addVertices(NormalizedVertex.Builder builderForValue)

Normalized vertices of the bounding polygon.

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

Parameter
NameDescription
builderForValueNormalizedVertex.Builder
Returns
TypeDescription
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.v1p3beta1.NormalizedVertex vertices = 1;

Parameters
NameDescription
indexint
valueNormalizedVertex
Returns
TypeDescription
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.v1p3beta1.NormalizedVertex vertices = 1;

Parameters
NameDescription
indexint
builderForValueNormalizedVertex.Builder
Returns
TypeDescription
NormalizedBoundingPoly.Builder

addVerticesBuilder()

public NormalizedVertex.Builder addVerticesBuilder()

Normalized vertices of the bounding polygon.

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

Returns
TypeDescription
NormalizedVertex.Builder

addVerticesBuilder(int index)

public NormalizedVertex.Builder addVerticesBuilder(int index)

Normalized vertices of the bounding polygon.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedVertex.Builder

build()

public NormalizedBoundingPoly build()
Returns
TypeDescription
NormalizedBoundingPoly

buildPartial()

public NormalizedBoundingPoly buildPartial()
Returns
TypeDescription
NormalizedBoundingPoly

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVertices()

public NormalizedBoundingPoly.Builder clearVertices()

Normalized vertices of the bounding polygon.

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

Returns
TypeDescription
NormalizedBoundingPoly.Builder

clone()

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

getDefaultInstanceForType()

public NormalizedBoundingPoly getDefaultInstanceForType()
Returns
TypeDescription
NormalizedBoundingPoly

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getVertices(int index)

public NormalizedVertex getVertices(int index)

Normalized vertices of the bounding polygon.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedVertex

getVerticesBuilder(int index)

public NormalizedVertex.Builder getVerticesBuilder(int index)

Normalized vertices of the bounding polygon.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedVertex.Builder

getVerticesBuilderList()

public List<NormalizedVertex.Builder> getVerticesBuilderList()

Normalized vertices of the bounding polygon.

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

Returns
TypeDescription
List<Builder>

getVerticesCount()

public int getVerticesCount()

Normalized vertices of the bounding polygon.

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

Returns
TypeDescription
int

getVerticesList()

public List<NormalizedVertex> getVerticesList()

Normalized vertices of the bounding polygon.

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

Returns
TypeDescription
List<NormalizedVertex>

getVerticesOrBuilder(int index)

public NormalizedVertexOrBuilder getVerticesOrBuilder(int index)

Normalized vertices of the bounding polygon.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedVertexOrBuilder

getVerticesOrBuilderList()

public List<? extends NormalizedVertexOrBuilder> getVerticesOrBuilderList()

Normalized vertices of the bounding polygon.

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

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NormalizedBoundingPoly other)

public NormalizedBoundingPoly.Builder mergeFrom(NormalizedBoundingPoly other)
Parameter
NameDescription
otherNormalizedBoundingPoly
Returns
TypeDescription
NormalizedBoundingPoly.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeVertices(int index)

public NormalizedBoundingPoly.Builder removeVertices(int index)

Normalized vertices of the bounding polygon.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedBoundingPoly.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final NormalizedBoundingPoly.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1p3beta1.NormalizedVertex vertices = 1;

Parameters
NameDescription
indexint
valueNormalizedVertex
Returns
TypeDescription
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.v1p3beta1.NormalizedVertex vertices = 1;

Parameters
NameDescription
indexint
builderForValueNormalizedVertex.Builder
Returns
TypeDescription
NormalizedBoundingPoly.Builder