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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NormalizedBoundingPoly.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addVertices(NormalizedVertex value)
public NormalizedBoundingPoly.Builder addVertices(NormalizedVertex value)
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
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;
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;
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;
addVerticesBuilder()
public NormalizedVertex.Builder addVerticesBuilder()
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
addVerticesBuilder(int index)
public NormalizedVertex.Builder addVerticesBuilder(int index)
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Parameter |
---|
Name | Description |
index | int
|
build()
public NormalizedBoundingPoly build()
buildPartial()
public NormalizedBoundingPoly buildPartial()
clear()
public NormalizedBoundingPoly.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public NormalizedBoundingPoly.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public NormalizedBoundingPoly.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearVertices()
public NormalizedBoundingPoly.Builder clearVertices()
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
clone()
public NormalizedBoundingPoly.Builder clone()
Overrides
getDefaultInstanceForType()
public NormalizedBoundingPoly getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getVertices(int index)
public NormalizedVertex getVertices(int index)
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Parameter |
---|
Name | Description |
index | int
|
getVerticesBuilder(int index)
public NormalizedVertex.Builder getVerticesBuilder(int index)
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Parameter |
---|
Name | Description |
index | int
|
getVerticesBuilderList()
public List<NormalizedVertex.Builder> getVerticesBuilderList()
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
getVerticesCount()
public int getVerticesCount()
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Returns |
---|
Type | Description |
int | |
getVerticesList()
public List<NormalizedVertex> getVerticesList()
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
getVerticesOrBuilder(int index)
public NormalizedVertexOrBuilder getVerticesOrBuilder(int index)
Normalized vertices of the bounding polygon.
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
Parameter |
---|
Name | Description |
index | int
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(NormalizedBoundingPoly other)
public NormalizedBoundingPoly.Builder mergeFrom(NormalizedBoundingPoly other)
public NormalizedBoundingPoly.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public NormalizedBoundingPoly.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NormalizedBoundingPoly.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public NormalizedBoundingPoly.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NormalizedBoundingPoly.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final NormalizedBoundingPoly.Builder setUnknownFields(UnknownFieldSet unknownFields)
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;
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;