Send feedback
Class NormalizedBoundingPoly.Builder (2.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.2.0 keyboard_arrow_down
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
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
Name Description values Iterable <? extends com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex >
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NormalizedBoundingPoly . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
addVerticesBuilder()
public NormalizedVertex . Builder addVerticesBuilder ()
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Returns
addVerticesBuilder(int index)
public NormalizedVertex . Builder addVerticesBuilder ( int index )
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Parameter
Returns
build()
public NormalizedBoundingPoly build ()
Returns
buildPartial()
public NormalizedBoundingPoly buildPartial ()
Returns
clear()
public NormalizedBoundingPoly . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public NormalizedBoundingPoly . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public NormalizedBoundingPoly . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearVertices()
public NormalizedBoundingPoly . Builder clearVertices ()
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Returns
clone()
public NormalizedBoundingPoly . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public NormalizedBoundingPoly getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getVertices(int index)
public NormalizedVertex getVertices ( int index )
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Parameter
Returns
getVerticesBuilder(int index)
public NormalizedVertex . Builder getVerticesBuilder ( int index )
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Parameter
Returns
getVerticesBuilderList()
public List<NormalizedVertex . Builder > getVerticesBuilderList ()
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Returns
getVerticesCount()
public int getVerticesCount ()
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Returns
getVerticesList()
public List<NormalizedVertex> getVerticesList ()
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Returns
getVerticesOrBuilder(int index)
public NormalizedVertexOrBuilder getVerticesOrBuilder ( int index )
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Parameter
Returns
getVerticesOrBuilderList()
public List <? extends NormalizedVertexOrBuilder > getVerticesOrBuilderList ()
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Returns
Type Description List <? extends com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder >
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(NormalizedBoundingPoly other)
public NormalizedBoundingPoly . Builder mergeFrom ( NormalizedBoundingPoly other )
Parameter
Returns
public NormalizedBoundingPoly . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public NormalizedBoundingPoly . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NormalizedBoundingPoly . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public NormalizedBoundingPoly . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NormalizedBoundingPoly . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final NormalizedBoundingPoly . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Returns
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
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]