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.v1.Position
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Position.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Position buildPartial()
clear()
public Position.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Position.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Position.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearX()
public Position.Builder clearX()
X coordinate.
float x = 1;
clearY()
public Position.Builder clearY()
Y coordinate.
float y = 2;
clearZ()
public Position.Builder clearZ()
Z coordinate (or depth).
float z = 3;
clone()
public Position.Builder clone()
Overrides
getDefaultInstanceForType()
public Position getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Position other)
public Position.Builder mergeFrom(Position other)
public Position.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Position.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Position.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Position.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Position.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Position.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setX(float value)
public Position.Builder setX(float value)
X coordinate.
float x = 1;
Parameter |
---|
Name | Description |
value | float
The x to set.
|
setY(float value)
public Position.Builder setY(float value)
Y coordinate.
float y = 2;
Parameter |
---|
Name | Description |
value | float
The y to set.
|
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.
|