Class Position.Builder (3.30.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Position build()
Returns
TypeDescription
Position

buildPartial()

public Position buildPartial()
Returns
TypeDescription
Position

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearX()

public Position.Builder clearX()

X coordinate.

float x = 1;

Returns
TypeDescription
Position.Builder

This builder for chaining.

clearY()

public Position.Builder clearY()

Y coordinate.

float y = 2;

Returns
TypeDescription
Position.Builder

This builder for chaining.

clearZ()

public Position.Builder clearZ()

Z coordinate (or depth).

float z = 3;

Returns
TypeDescription
Position.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Position getDefaultInstanceForType()
Returns
TypeDescription
Position

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Position other)

public Position.Builder mergeFrom(Position other)
Parameter
NameDescription
otherPosition
Returns
TypeDescription
Position.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setX(float value)

public Position.Builder setX(float value)

X coordinate.

float x = 1;

Parameter
NameDescription
valuefloat

The x to set.

Returns
TypeDescription
Position.Builder

This builder for chaining.

setY(float value)

public Position.Builder setY(float value)

Y coordinate.

float y = 2;

Parameter
NameDescription
valuefloat

The y to set.

Returns
TypeDescription
Position.Builder

This builder for chaining.

setZ(float value)

public Position.Builder setZ(float value)

Z coordinate (or depth).

float z = 3;

Parameter
NameDescription
valuefloat

The z to set.

Returns
TypeDescription
Position.Builder

This builder for chaining.