Class Position (3.34.0)

public final class Position extends GeneratedMessageV3 implements PositionOrBuilder

A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image.

Protobuf type google.cloud.vision.v1p3beta1.Position

Implements

PositionOrBuilder

Static Fields

X_FIELD_NUMBER

public static final int X_FIELD_NUMBER
Field Value
TypeDescription
int

Y_FIELD_NUMBER

public static final int Y_FIELD_NUMBER
Field Value
TypeDescription
int

Z_FIELD_NUMBER

public static final int Z_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Position getDefaultInstance()
Returns
TypeDescription
Position

getDescriptor()

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

newBuilder()

public static Position.Builder newBuilder()
Returns
TypeDescription
Position.Builder

newBuilder(Position prototype)

public static Position.Builder newBuilder(Position prototype)
Parameter
NameDescription
prototypePosition
Returns
TypeDescription
Position.Builder

parseDelimitedFrom(InputStream input)

public static Position parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Position
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Position parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Position
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Position parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Position
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Position parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Position
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Position parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Position
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Position parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Position
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Position parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Position
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Position parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Position
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Position parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Position
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Position parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Position
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Position parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Position
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Position parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Position
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Position> parser()
Returns
TypeDescription
Parser<Position>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Position getDefaultInstanceForType()
Returns
TypeDescription
Position

getParserForType()

public Parser<Position> getParserForType()
Returns
TypeDescription
Parser<Position>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getX()

public float getX()

X coordinate.

float x = 1;

Returns
TypeDescription
float

The x.

getY()

public float getY()

Y coordinate.

float y = 2;

Returns
TypeDescription
float

The y.

getZ()

public float getZ()

Z coordinate (or depth).

float z = 3;

Returns
TypeDescription
float

The z.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Position.Builder newBuilderForType()
Returns
TypeDescription
Position.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Position.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Position.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Position.Builder toBuilder()
Returns
TypeDescription
Position.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException