Class NormalizedPolygon.Builder (0.5.0)

public static final class NormalizedPolygon.Builder extends GeneratedMessageV3.Builder<NormalizedPolygon.Builder> implements NormalizedPolygonOrBuilder

Normalized Polygon.

Protobuf type google.cloud.visionai.v1.NormalizedPolygon

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNormalizedVertices(Iterable<? extends NormalizedVertex> values)

public NormalizedPolygon.Builder addAllNormalizedVertices(Iterable<? extends NormalizedVertex> values)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.NormalizedVertex>
Returns
Type Description
NormalizedPolygon.Builder

addNormalizedVertices(NormalizedVertex value)

public NormalizedPolygon.Builder addNormalizedVertices(NormalizedVertex value)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
Name Description
value NormalizedVertex
Returns
Type Description
NormalizedPolygon.Builder

addNormalizedVertices(NormalizedVertex.Builder builderForValue)

public NormalizedPolygon.Builder addNormalizedVertices(NormalizedVertex.Builder builderForValue)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
Name Description
builderForValue NormalizedVertex.Builder
Returns
Type Description
NormalizedPolygon.Builder

addNormalizedVertices(int index, NormalizedVertex value)

public NormalizedPolygon.Builder addNormalizedVertices(int index, NormalizedVertex value)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameters
Name Description
index int
value NormalizedVertex
Returns
Type Description
NormalizedPolygon.Builder

addNormalizedVertices(int index, NormalizedVertex.Builder builderForValue)

public NormalizedPolygon.Builder addNormalizedVertices(int index, NormalizedVertex.Builder builderForValue)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameters
Name Description
index int
builderForValue NormalizedVertex.Builder
Returns
Type Description
NormalizedPolygon.Builder

addNormalizedVerticesBuilder()

public NormalizedVertex.Builder addNormalizedVerticesBuilder()

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Returns
Type Description
NormalizedVertex.Builder

addNormalizedVerticesBuilder(int index)

public NormalizedVertex.Builder addNormalizedVerticesBuilder(int index)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedVertex.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NormalizedPolygon.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NormalizedPolygon.Builder
Overrides

build()

public NormalizedPolygon build()
Returns
Type Description
NormalizedPolygon

buildPartial()

public NormalizedPolygon buildPartial()
Returns
Type Description
NormalizedPolygon

clear()

public NormalizedPolygon.Builder clear()
Returns
Type Description
NormalizedPolygon.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NormalizedPolygon.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NormalizedPolygon.Builder
Overrides

clearNormalizedVertices()

public NormalizedPolygon.Builder clearNormalizedVertices()

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Returns
Type Description
NormalizedPolygon.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public NormalizedPolygon.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NormalizedPolygon.Builder
Overrides

clone()

public NormalizedPolygon.Builder clone()
Returns
Type Description
NormalizedPolygon.Builder
Overrides

getDefaultInstanceForType()

public NormalizedPolygon getDefaultInstanceForType()
Returns
Type Description
NormalizedPolygon

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNormalizedVertices(int index)

public NormalizedVertex getNormalizedVertices(int index)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedVertex

getNormalizedVerticesBuilder(int index)

public NormalizedVertex.Builder getNormalizedVerticesBuilder(int index)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedVertex.Builder

getNormalizedVerticesBuilderList()

public List<NormalizedVertex.Builder> getNormalizedVerticesBuilderList()

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Returns
Type Description
List<Builder>

getNormalizedVerticesCount()

public int getNormalizedVerticesCount()

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Returns
Type Description
int

getNormalizedVerticesList()

public List<NormalizedVertex> getNormalizedVerticesList()

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Returns
Type Description
List<NormalizedVertex>

getNormalizedVerticesOrBuilder(int index)

public NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder(int index)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedVertexOrBuilder

getNormalizedVerticesOrBuilderList()

public List<? extends NormalizedVertexOrBuilder> getNormalizedVerticesOrBuilderList()

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.NormalizedVertexOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NormalizedPolygon other)

public NormalizedPolygon.Builder mergeFrom(NormalizedPolygon other)
Parameter
Name Description
other NormalizedPolygon
Returns
Type Description
NormalizedPolygon.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NormalizedPolygon.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NormalizedPolygon.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NormalizedPolygon.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NormalizedPolygon.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NormalizedPolygon.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NormalizedPolygon.Builder
Overrides

removeNormalizedVertices(int index)

public NormalizedPolygon.Builder removeNormalizedVertices(int index)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedPolygon.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public NormalizedPolygon.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NormalizedPolygon.Builder
Overrides

setNormalizedVertices(int index, NormalizedVertex value)

public NormalizedPolygon.Builder setNormalizedVertices(int index, NormalizedVertex value)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameters
Name Description
index int
value NormalizedVertex
Returns
Type Description
NormalizedPolygon.Builder

setNormalizedVertices(int index, NormalizedVertex.Builder builderForValue)

public NormalizedPolygon.Builder setNormalizedVertices(int index, NormalizedVertex.Builder builderForValue)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameters
Name Description
index int
builderForValue NormalizedVertex.Builder
Returns
Type Description
NormalizedPolygon.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NormalizedPolygon.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NormalizedPolygon.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NormalizedPolygon.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NormalizedPolygon.Builder
Overrides