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.vision.v1.Vertex
Static Fields
X_FIELD_NUMBER
public static final int X_FIELD_NUMBER
Field Value
Y_FIELD_NUMBER
public static final int Y_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Vertex getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Vertex.Builder newBuilder()
Returns
newBuilder(Vertex prototype)
public static Vertex.Builder newBuilder(Vertex prototype)
Parameter
Name | Description |
prototype | Vertex
|
Returns
public static Vertex parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Vertex parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Vertex parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Vertex parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Vertex parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Vertex parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Vertex parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Vertex parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Vertex parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Vertex parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Vertex parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Vertex parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Vertex> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Vertex getDefaultInstanceForType()
Returns
getParserForType()
public Parser<Vertex> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getX()
X coordinate.
int32 x = 1;
Returns
getY()
Y coordinate.
int32 y = 2;
Returns
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Vertex.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Vertex.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Vertex.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions