Send feedback
Class Position.Builder (2.1.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.1.2 keyboard_arrow_down
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.v1p3beta1.Position
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Position . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Position buildPartial ()
Returns
clear()
public Position . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Position . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Position . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearX()
public Position . Builder clearX ()
X coordinate.
float x = 1;
Returns
clearY()
public Position . Builder clearY ()
Y coordinate.
float y = 2;
Returns
clearZ()
public Position . Builder clearZ ()
Z coordinate (or depth).
float z = 3;
Returns
clone()
public Position . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public Position getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getX()
X coordinate.
float x = 1;
Returns
Type Description float The x.
getY()
Y coordinate.
float y = 2;
Returns
Type Description float The y.
getZ()
Z coordinate (or depth).
float z = 3;
Returns
Type Description float The z.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(Position other)
public Position . Builder mergeFrom ( Position other )
Parameter
Returns
public Position . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Position . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Position . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Position . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Position . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Position . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
setY(float value)
public Position . Builder setY ( float value )
Y coordinate.
float y = 2;
Parameter
Name Description value float
The y to set.
Returns
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]