public final class Vertex extends GeneratedMessageV3 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.v1beta2.Vertex
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
X_FIELD_NUMBER
public static final int X_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Y_FIELD_NUMBER
public static final int Y_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Vertex getDefaultInstance()
Returns |
Type |
Description |
Vertex |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Vertex.Builder newBuilder()
newBuilder(Vertex prototype)
public static Vertex.Builder newBuilder(Vertex prototype)
Parameter |
Name |
Description |
prototype |
Vertex
|
public static Vertex parseDelimitedFrom(InputStream input)
Returns |
Type |
Description |
Vertex |
|
public static Vertex parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Vertex |
|
parseFrom(byte[] data)
public static Vertex parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
Returns |
Type |
Description |
Vertex |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Vertex parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Vertex |
|
parseFrom(ByteString data)
public static Vertex parseFrom(ByteString data)
Returns |
Type |
Description |
Vertex |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Vertex parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Vertex |
|
public static Vertex parseFrom(CodedInputStream input)
Returns |
Type |
Description |
Vertex |
|
public static Vertex parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Vertex |
|
public static Vertex parseFrom(InputStream input)
Returns |
Type |
Description |
Vertex |
|
public static Vertex parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Vertex |
|
parseFrom(ByteBuffer data)
public static Vertex parseFrom(ByteBuffer data)
Returns |
Type |
Description |
Vertex |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Vertex parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Vertex |
|
parser()
public static Parser<Vertex> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Vertex getDefaultInstanceForType()
Returns |
Type |
Description |
Vertex |
|
getParserForType()
public Parser<Vertex> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getX()
X coordinate.
int32 x = 1;
Returns |
Type |
Description |
int |
The x.
|
getY()
Y coordinate (starts from the top of the image).
int32 y = 2;
Returns |
Type |
Description |
int |
The y.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Vertex.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Vertex.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Vertex.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides