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()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BoundingPoly.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addVertices(Vertex value)
public BoundingPoly.Builder addVertices(Vertex value)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Parameter |
---|
Name | Description |
value | Vertex
|
addVertices(Vertex.Builder builderForValue)
public BoundingPoly.Builder addVertices(Vertex.Builder builderForValue)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
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;
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;
addVerticesBuilder()
public Vertex.Builder addVerticesBuilder()
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
addVerticesBuilder(int index)
public Vertex.Builder addVerticesBuilder(int index)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Parameter |
---|
Name | Description |
index | int
|
build()
public BoundingPoly build()
buildPartial()
public BoundingPoly buildPartial()
clear()
public BoundingPoly.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public BoundingPoly.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BoundingPoly.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearVertices()
public BoundingPoly.Builder clearVertices()
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
clone()
public BoundingPoly.Builder clone()
Overrides
getDefaultInstanceForType()
public BoundingPoly getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getVertices(int index)
public Vertex getVertices(int index)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Parameter |
---|
Name | Description |
index | int
|
getVerticesBuilder(int index)
public Vertex.Builder getVerticesBuilder(int index)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Parameter |
---|
Name | Description |
index | int
|
getVerticesBuilderList()
public List<Vertex.Builder> getVerticesBuilderList()
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
getVerticesCount()
public int getVerticesCount()
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Returns |
---|
Type | Description |
int | |
getVerticesList()
public List<Vertex> getVerticesList()
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
getVerticesOrBuilder(int index)
public VertexOrBuilder getVerticesOrBuilder(int index)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Parameter |
---|
Name | Description |
index | int
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(BoundingPoly other)
public BoundingPoly.Builder mergeFrom(BoundingPoly other)
public BoundingPoly.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BoundingPoly.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BoundingPoly.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeVertices(int index)
public BoundingPoly.Builder removeVertices(int index)
The bounding polygon vertices.
repeated .google.cloud.vision.v1p1beta1.Vertex vertices = 1;
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public BoundingPoly.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BoundingPoly.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BoundingPoly.Builder setUnknownFields(UnknownFieldSet unknownFields)
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;
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;