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.vision.v1p1beta1.BoundingPoly
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
addAllVertices(Iterable<? extends Vertex> values)
public BoundingPoly.Builder addAllVertices(Iterable<? extends Vertex> values)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p1beta1.Vertex>
|
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.vision.v1p1beta1.Vertex vertices = 1;
Parameter
Returns
addVertices(Vertex.Builder builderForValue)
public BoundingPoly.Builder addVertices(Vertex.Builder builderForValue)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.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.vision.v1p1beta1.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.vision.v1p1beta1.Vertex vertices = 1;
Parameters
Returns
addVerticesBuilder()
public Vertex.Builder addVerticesBuilder()
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Returns
addVerticesBuilder(int index)
public Vertex.Builder addVerticesBuilder(int index)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.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
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.vision.v1p1beta1.Vertex vertices = 1;
Returns
clone()
public BoundingPoly.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public BoundingPoly getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getVertices(int index)
public Vertex getVertices(int index)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Parameter
Returns
getVerticesBuilder(int index)
public Vertex.Builder getVerticesBuilder(int index)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Parameter
Returns
getVerticesBuilderList()
public List<Vertex.Builder> getVerticesBuilderList()
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Returns
getVerticesCount()
public int getVerticesCount()
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Returns
getVerticesList()
public List<Vertex> getVerticesList()
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Returns
getVerticesOrBuilder(int index)
public VertexOrBuilder getVerticesOrBuilder(int index)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Parameter
Returns
getVerticesOrBuilderList()
public List<? extends VertexOrBuilder> getVerticesOrBuilderList()
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Returns
Type | Description |
List<? extends com.google.cloud.vision.v1p1beta1.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
removeVertices(int index)
public BoundingPoly.Builder removeVertices(int index)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BoundingPoly.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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.vision.v1p1beta1.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.vision.v1p1beta1.Vertex vertices = 1;
Parameters
Returns