Class Vertex.Builder (2.2.1)

public static final class Vertex.Builder extends GeneratedMessageV3.Builder<Vertex.Builder> implements VertexOrBuilder

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

Protobuf type google.cloud.documentai.v1beta3.Vertex

Implements

VertexOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Vertex build()
Returns
TypeDescription
Vertex

buildPartial()

public Vertex buildPartial()
Returns
TypeDescription
Vertex

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearX()

public Vertex.Builder clearX()

X coordinate.

int32 x = 1;

Returns
TypeDescription
Vertex.Builder

This builder for chaining.

clearY()

public Vertex.Builder clearY()

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

int32 y = 2;

Returns
TypeDescription
Vertex.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Vertex getDefaultInstanceForType()
Returns
TypeDescription
Vertex

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getX()

public int getX()

X coordinate.

int32 x = 1;

Returns
TypeDescription
int

The x.

getY()

public int getY()

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

int32 y = 2;

Returns
TypeDescription
int

The y.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Vertex other)

public Vertex.Builder mergeFrom(Vertex other)
Parameter
NameDescription
otherVertex
Returns
TypeDescription
Vertex.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setX(int value)

public Vertex.Builder setX(int value)

X coordinate.

int32 x = 1;

Parameter
NameDescription
valueint

The x to set.

Returns
TypeDescription
Vertex.Builder

This builder for chaining.

setY(int value)

public Vertex.Builder setY(int value)

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

int32 y = 2;

Parameter
NameDescription
valueint

The y to set.

Returns
TypeDescription
Vertex.Builder

This builder for chaining.