Class NormalizedPolygon.Builder (0.14.1)

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

Normalized Polygon.

Protobuf type google.events.cloud.visionai.v1.NormalizedPolygon

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.events.cloud.visionai.v1.NormalizedVertex>
Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
NameDescription
valueNormalizedVertex
Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
NameDescription
builderForValueNormalizedVertex.Builder
Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameters
NameDescription
indexint
valueNormalizedVertex
Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameters
NameDescription
indexint
builderForValueNormalizedVertex.Builder
Returns
TypeDescription
NormalizedPolygon.Builder

addNormalizedVerticesBuilder()

public NormalizedVertex.Builder addNormalizedVerticesBuilder()

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

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

Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedVertex.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NormalizedPolygon.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NormalizedPolygon.Builder
Overrides

build()

public NormalizedPolygon build()
Returns
TypeDescription
NormalizedPolygon

buildPartial()

public NormalizedPolygon buildPartial()
Returns
TypeDescription
NormalizedPolygon

clear()

public NormalizedPolygon.Builder clear()
Returns
TypeDescription
NormalizedPolygon.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NormalizedPolygon.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Returns
TypeDescription
NormalizedPolygon.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public NormalizedPolygon.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NormalizedPolygon.Builder
Overrides

clone()

public NormalizedPolygon.Builder clone()
Returns
TypeDescription
NormalizedPolygon.Builder
Overrides

getDefaultInstanceForType()

public NormalizedPolygon getDefaultInstanceForType()
Returns
TypeDescription
NormalizedPolygon

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Returns
TypeDescription
List<Builder>

getNormalizedVerticesCount()

public int getNormalizedVerticesCount()

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

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

Returns
TypeDescription
int

getNormalizedVerticesList()

public List<NormalizedVertex> getNormalizedVerticesList()

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

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

Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedVertexOrBuilder

getNormalizedVerticesOrBuilderList()

public List<? extends NormalizedVertexOrBuilder> getNormalizedVerticesOrBuilderList()

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

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

Returns
TypeDescription
List<? extends com.google.events.cloud.visionai.v1.NormalizedVertexOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NormalizedPolygon other)

public NormalizedPolygon.Builder mergeFrom(NormalizedPolygon other)
Parameter
NameDescription
otherNormalizedPolygon
Returns
TypeDescription
NormalizedPolygon.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NormalizedPolygon.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NormalizedPolygon.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NormalizedPolygon.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NormalizedPolygon.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NormalizedPolygon.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedPolygon.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public NormalizedPolygon.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameters
NameDescription
indexint
valueNormalizedVertex
Returns
TypeDescription
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.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameters
NameDescription
indexint
builderForValueNormalizedVertex.Builder
Returns
TypeDescription
NormalizedPolygon.Builder

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

public NormalizedPolygon.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NormalizedPolygon.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NormalizedPolygon.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NormalizedPolygon.Builder
Overrides