public static final class Position.Builder extends GeneratedMessage.Builder<Position.Builder> implements PositionOrBuilderA 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Position.BuilderImplements
PositionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
getDefaultInstanceForType()
public Position getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Position |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Position.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Position.Builder |
|
setX(float value)
public Position.Builder setX(float value)X coordinate.
float x = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
floatThe 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 |
floatThe 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 |
floatThe z to set. |
| Returns | |
|---|---|
| Type | Description |
Position.Builder |
This builder for chaining. |