Class Position.Builder (3.47.0)

public static final class Position.Builder extends GeneratedMessageV3.Builder<Position.Builder> 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.v1p4beta1.Position

Implements

PositionOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Position.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Position.Builder
Overrides

build()

public Position build()
Returns
Type Description
Position

buildPartial()

public Position buildPartial()
Returns
Type Description
Position

clear()

public Position.Builder clear()
Returns
Type Description
Position.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Position.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Position.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Position.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Position.Builder
Overrides

clearX()

public Position.Builder clearX()

X coordinate.

float x = 1;

Returns
Type Description
Position.Builder

This builder for chaining.

clearY()

public Position.Builder clearY()

Y coordinate.

float y = 2;

Returns
Type Description
Position.Builder

This builder for chaining.

clearZ()

public Position.Builder clearZ()

Z coordinate (or depth).

float z = 3;

Returns
Type Description
Position.Builder

This builder for chaining.

clone()

public Position.Builder clone()
Returns
Type Description
Position.Builder
Overrides

getDefaultInstanceForType()

public Position getDefaultInstanceForType()
Returns
Type Description
Position

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getX()

public float getX()

X coordinate.

float x = 1;

Returns
Type Description
float

The x.

getY()

public float getY()

Y coordinate.

float y = 2;

Returns
Type Description
float

The y.

getZ()

public float getZ()

Z coordinate (or depth).

float z = 3;

Returns
Type Description
float

The z.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Position other)

public Position.Builder mergeFrom(Position other)
Parameter
Name Description
other Position
Returns
Type Description
Position.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Position.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Position.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Position.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Position.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Position.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Position.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Position.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Position.Builder
Overrides

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

public Position.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Position.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Position.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Position.Builder
Overrides

setX(float value)

public Position.Builder setX(float value)

X coordinate.

float x = 1;

Parameter
Name Description
value float

The x to set.

Returns
Type Description
Position.Builder

This builder for chaining.

setY(float value)

public Position.Builder setY(float value)

Y coordinate.

float y = 2;

Parameter
Name Description
value float

The y to set.

Returns
Type Description
Position.Builder

This builder for chaining.

setZ(float value)

public Position.Builder setZ(float value)

Z coordinate (or depth).

float z = 3;

Parameter
Name Description
value float

The z to set.

Returns
Type Description
Position.Builder

This builder for chaining.