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.v1p1beta1.Position
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
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