Class NormalizedVertex.Builder (2.41.0)

public static final class NormalizedVertex.Builder extends GeneratedMessageV3.Builder<NormalizedVertex.Builder> implements NormalizedVertexOrBuilder

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

Protobuf type google.cloud.documentai.v1beta3.NormalizedVertex

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NormalizedVertex build()
Returns
TypeDescription
NormalizedVertex

buildPartial()

public NormalizedVertex buildPartial()
Returns
TypeDescription
NormalizedVertex

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearX()

public NormalizedVertex.Builder clearX()

X coordinate.

float x = 1;

Returns
TypeDescription
NormalizedVertex.Builder

This builder for chaining.

clearY()

public NormalizedVertex.Builder clearY()

Y coordinate (starts from the top of the image).

float y = 2;

Returns
TypeDescription
NormalizedVertex.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public NormalizedVertex getDefaultInstanceForType()
Returns
TypeDescription
NormalizedVertex

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getX()

public float getX()

X coordinate.

float x = 1;

Returns
TypeDescription
float

The x.

getY()

public float getY()

Y coordinate (starts from the top of the image).

float y = 2;

Returns
TypeDescription
float

The y.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NormalizedVertex other)

public NormalizedVertex.Builder mergeFrom(NormalizedVertex other)
Parameter
NameDescription
otherNormalizedVertex
Returns
TypeDescription
NormalizedVertex.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setX(float value)

public NormalizedVertex.Builder setX(float value)

X coordinate.

float x = 1;

Parameter
NameDescription
valuefloat

The x to set.

Returns
TypeDescription
NormalizedVertex.Builder

This builder for chaining.

setY(float value)

public NormalizedVertex.Builder setY(float value)

Y coordinate (starts from the top of the image).

float y = 2;

Parameter
NameDescription
valuefloat

The y to set.

Returns
TypeDescription
NormalizedVertex.Builder

This builder for chaining.