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.documentai.v1beta3.BoundingPoly
Methods
addAllNormalizedVertices(Iterable<? extends NormalizedVertex> values)
public BoundingPoly.Builder addAllNormalizedVertices(Iterable<? extends NormalizedVertex> values)
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.documentai.v1beta3.NormalizedVertex>
|
Returns
addAllVertices(Iterable<? extends Vertex> values)
public BoundingPoly.Builder addAllVertices(Iterable<? extends Vertex> values)
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.documentai.v1beta3.Vertex>
|
Returns
addNormalizedVertices(NormalizedVertex value)
public BoundingPoly.Builder addNormalizedVertices(NormalizedVertex value)
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Parameter
Returns
addNormalizedVertices(NormalizedVertex.Builder builderForValue)
public BoundingPoly.Builder addNormalizedVertices(NormalizedVertex.Builder builderForValue)
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Parameter
Returns
addNormalizedVertices(int index, NormalizedVertex value)
public BoundingPoly.Builder addNormalizedVertices(int index, NormalizedVertex value)
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Parameters
Returns
addNormalizedVertices(int index, NormalizedVertex.Builder builderForValue)
public BoundingPoly.Builder addNormalizedVertices(int index, NormalizedVertex.Builder builderForValue)
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Parameters
Returns
addNormalizedVerticesBuilder()
public NormalizedVertex.Builder addNormalizedVerticesBuilder()
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Returns
addNormalizedVerticesBuilder(int index)
public NormalizedVertex.Builder addNormalizedVerticesBuilder(int index)
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BoundingPoly.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addVertices(Vertex value)
public BoundingPoly.Builder addVertices(Vertex value)
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Parameter
Returns
addVertices(Vertex.Builder builderForValue)
public BoundingPoly.Builder addVertices(Vertex.Builder builderForValue)
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Parameter
Returns
addVertices(int index, Vertex value)
public BoundingPoly.Builder addVertices(int index, Vertex value)
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Parameters
Returns
addVertices(int index, Vertex.Builder builderForValue)
public BoundingPoly.Builder addVertices(int index, Vertex.Builder builderForValue)
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Parameters
Returns
addVerticesBuilder()
public Vertex.Builder addVerticesBuilder()
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Returns
addVerticesBuilder(int index)
public Vertex.Builder addVerticesBuilder(int index)
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Parameter
Returns
build()
public BoundingPoly build()
Returns
buildPartial()
public BoundingPoly buildPartial()
Returns
clear()
public BoundingPoly.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public BoundingPoly.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNormalizedVertices()
public BoundingPoly.Builder clearNormalizedVertices()
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public BoundingPoly.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearVertices()
public BoundingPoly.Builder clearVertices()
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Returns
clone()
public BoundingPoly.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public BoundingPoly getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNormalizedVertices(int index)
public NormalizedVertex getNormalizedVertices(int index)
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Parameter
Returns
getNormalizedVerticesBuilder(int index)
public NormalizedVertex.Builder getNormalizedVerticesBuilder(int index)
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Parameter
Returns
getNormalizedVerticesBuilderList()
public List<NormalizedVertex.Builder> getNormalizedVerticesBuilderList()
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Returns
getNormalizedVerticesCount()
public int getNormalizedVerticesCount()
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Returns
getNormalizedVerticesList()
public List<NormalizedVertex> getNormalizedVerticesList()
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Returns
getNormalizedVerticesOrBuilder(int index)
public NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder(int index)
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Parameter
Returns
getNormalizedVerticesOrBuilderList()
public List<? extends NormalizedVertexOrBuilder> getNormalizedVerticesOrBuilderList()
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Returns
Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.NormalizedVertexOrBuilder> | |
getVertices(int index)
public Vertex getVertices(int index)
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Parameter
Returns
getVerticesBuilder(int index)
public Vertex.Builder getVerticesBuilder(int index)
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Parameter
Returns
getVerticesBuilderList()
public List<Vertex.Builder> getVerticesBuilderList()
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Returns
getVerticesCount()
public int getVerticesCount()
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Returns
getVerticesList()
public List<Vertex> getVerticesList()
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Returns
getVerticesOrBuilder(int index)
public VertexOrBuilder getVerticesOrBuilder(int index)
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Parameter
Returns
getVerticesOrBuilderList()
public List<? extends VertexOrBuilder> getVerticesOrBuilderList()
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Returns
Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.VertexOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(BoundingPoly other)
public BoundingPoly.Builder mergeFrom(BoundingPoly other)
Parameter
Returns
public BoundingPoly.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BoundingPoly.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BoundingPoly.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeNormalizedVertices(int index)
public BoundingPoly.Builder removeNormalizedVertices(int index)
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Parameter
Returns
removeVertices(int index)
public BoundingPoly.Builder removeVertices(int index)
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BoundingPoly.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNormalizedVertices(int index, NormalizedVertex value)
public BoundingPoly.Builder setNormalizedVertices(int index, NormalizedVertex value)
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Parameters
Returns
setNormalizedVertices(int index, NormalizedVertex.Builder builderForValue)
public BoundingPoly.Builder setNormalizedVertices(int index, NormalizedVertex.Builder builderForValue)
The bounding polygon normalized vertices.
repeated .google.cloud.documentai.v1beta3.NormalizedVertex normalized_vertices = 2;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BoundingPoly.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BoundingPoly.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setVertices(int index, Vertex value)
public BoundingPoly.Builder setVertices(int index, Vertex value)
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Parameters
Returns
setVertices(int index, Vertex.Builder builderForValue)
public BoundingPoly.Builder setVertices(int index, Vertex.Builder builderForValue)
The bounding polygon vertices.
repeated .google.cloud.documentai.v1beta3.Vertex vertices = 1;
Parameters
Returns