Class NormalizedBoundingPoly.Builder (2.1.1)

public static final class NormalizedBoundingPoly.Builder extends GeneratedMessageV3.Builder<NormalizedBoundingPoly.Builder> implements NormalizedBoundingPolyOrBuilder

A normalized bounding polygon around a portion of an image.

Protobuf type google.cloud.vision.v1p3beta1.NormalizedBoundingPoly

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllVertices(Iterable<? extends NormalizedVertex> values)

public NormalizedBoundingPoly.Builder addAllVertices(Iterable<? extends NormalizedVertex> values)

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p3beta1.NormalizedVertex>
Returns
TypeDescription
NormalizedBoundingPoly.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVertices(NormalizedVertex value)

public NormalizedBoundingPoly.Builder addVertices(NormalizedVertex value)

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Parameter
NameDescription
valueNormalizedVertex
Returns
TypeDescription
NormalizedBoundingPoly.Builder

addVertices(NormalizedVertex.Builder builderForValue)

public NormalizedBoundingPoly.Builder addVertices(NormalizedVertex.Builder builderForValue)

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Parameter
NameDescription
builderForValueNormalizedVertex.Builder
Returns
TypeDescription
NormalizedBoundingPoly.Builder

addVertices(int index, NormalizedVertex value)

public NormalizedBoundingPoly.Builder addVertices(int index, NormalizedVertex value)

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Parameters
NameDescription
indexint
valueNormalizedVertex
Returns
TypeDescription
NormalizedBoundingPoly.Builder

addVertices(int index, NormalizedVertex.Builder builderForValue)

public NormalizedBoundingPoly.Builder addVertices(int index, NormalizedVertex.Builder builderForValue)

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Parameters
NameDescription
indexint
builderForValueNormalizedVertex.Builder
Returns
TypeDescription
NormalizedBoundingPoly.Builder

addVerticesBuilder()

public NormalizedVertex.Builder addVerticesBuilder()

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Returns
TypeDescription
NormalizedVertex.Builder

addVerticesBuilder(int index)

public NormalizedVertex.Builder addVerticesBuilder(int index)

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedVertex.Builder

build()

public NormalizedBoundingPoly build()
Returns
TypeDescription
NormalizedBoundingPoly

buildPartial()

public NormalizedBoundingPoly buildPartial()
Returns
TypeDescription
NormalizedBoundingPoly

clear()

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

clearField(Descriptors.FieldDescriptor field)

public NormalizedBoundingPoly.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NormalizedBoundingPoly.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVertices()

public NormalizedBoundingPoly.Builder clearVertices()

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Returns
TypeDescription
NormalizedBoundingPoly.Builder

clone()

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

getDefaultInstanceForType()

public NormalizedBoundingPoly getDefaultInstanceForType()
Returns
TypeDescription
NormalizedBoundingPoly

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getVertices(int index)

public NormalizedVertex getVertices(int index)

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedVertex

getVerticesBuilder(int index)

public NormalizedVertex.Builder getVerticesBuilder(int index)

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedVertex.Builder

getVerticesBuilderList()

public List<NormalizedVertex.Builder> getVerticesBuilderList()

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Returns
TypeDescription
List<Builder>

getVerticesCount()

public int getVerticesCount()

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Returns
TypeDescription
int

getVerticesList()

public List<NormalizedVertex> getVerticesList()

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Returns
TypeDescription
List<NormalizedVertex>

getVerticesOrBuilder(int index)

public NormalizedVertexOrBuilder getVerticesOrBuilder(int index)

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedVertexOrBuilder

getVerticesOrBuilderList()

public List<? extends NormalizedVertexOrBuilder> getVerticesOrBuilderList()

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p3beta1.NormalizedVertexOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NormalizedBoundingPoly other)

public NormalizedBoundingPoly.Builder mergeFrom(NormalizedBoundingPoly other)
Parameter
NameDescription
otherNormalizedBoundingPoly
Returns
TypeDescription
NormalizedBoundingPoly.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NormalizedBoundingPoly.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NormalizedBoundingPoly.Builder
Overrides

removeVertices(int index)

public NormalizedBoundingPoly.Builder removeVertices(int index)

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedBoundingPoly.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVertices(int index, NormalizedVertex value)

public NormalizedBoundingPoly.Builder setVertices(int index, NormalizedVertex value)

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Parameters
NameDescription
indexint
valueNormalizedVertex
Returns
TypeDescription
NormalizedBoundingPoly.Builder

setVertices(int index, NormalizedVertex.Builder builderForValue)

public NormalizedBoundingPoly.Builder setVertices(int index, NormalizedVertex.Builder builderForValue)

Normalized vertices of the bounding polygon.

repeated .google.cloud.vision.v1p3beta1.NormalizedVertex vertices = 1;

Parameters
NameDescription
indexint
builderForValueNormalizedVertex.Builder
Returns
TypeDescription
NormalizedBoundingPoly.Builder