Class FaceAnnotation.Landmark.Builder (3.31.0)

public static final class FaceAnnotation.Landmark.Builder extends GeneratedMessageV3.Builder<FaceAnnotation.Landmark.Builder> implements FaceAnnotation.LandmarkOrBuilder

A face-specific landmark (for example, a face feature).

Protobuf type google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FaceAnnotation.Landmark build()
Returns
TypeDescription
FaceAnnotation.Landmark

buildPartial()

public FaceAnnotation.Landmark buildPartial()
Returns
TypeDescription
FaceAnnotation.Landmark

clear()

public FaceAnnotation.Landmark.Builder clear()
Returns
TypeDescription
FaceAnnotation.Landmark.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPosition()

public FaceAnnotation.Landmark.Builder clearPosition()

Face landmark position.

.google.cloud.vision.v1p1beta1.Position position = 4;

Returns
TypeDescription
FaceAnnotation.Landmark.Builder

clearType()

public FaceAnnotation.Landmark.Builder clearType()

Face landmark type.

.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3;

Returns
TypeDescription
FaceAnnotation.Landmark.Builder

This builder for chaining.

clone()

public FaceAnnotation.Landmark.Builder clone()
Returns
TypeDescription
FaceAnnotation.Landmark.Builder
Overrides

getDefaultInstanceForType()

public FaceAnnotation.Landmark getDefaultInstanceForType()
Returns
TypeDescription
FaceAnnotation.Landmark

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPosition()

public Position getPosition()

Face landmark position.

.google.cloud.vision.v1p1beta1.Position position = 4;

Returns
TypeDescription
Position

The position.

getPositionBuilder()

public Position.Builder getPositionBuilder()

Face landmark position.

.google.cloud.vision.v1p1beta1.Position position = 4;

Returns
TypeDescription
Position.Builder

getPositionOrBuilder()

public PositionOrBuilder getPositionOrBuilder()

Face landmark position.

.google.cloud.vision.v1p1beta1.Position position = 4;

Returns
TypeDescription
PositionOrBuilder

getType()

public FaceAnnotation.Landmark.Type getType()

Face landmark type.

.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3;

Returns
TypeDescription
FaceAnnotation.Landmark.Type

The type.

getTypeValue()

public int getTypeValue()

Face landmark type.

.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

hasPosition()

public boolean hasPosition()

Face landmark position.

.google.cloud.vision.v1p1beta1.Position position = 4;

Returns
TypeDescription
boolean

Whether the position field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FaceAnnotation.Landmark other)

public FaceAnnotation.Landmark.Builder mergeFrom(FaceAnnotation.Landmark other)
Parameter
NameDescription
otherFaceAnnotation.Landmark
Returns
TypeDescription
FaceAnnotation.Landmark.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePosition(Position value)

public FaceAnnotation.Landmark.Builder mergePosition(Position value)

Face landmark position.

.google.cloud.vision.v1p1beta1.Position position = 4;

Parameter
NameDescription
valuePosition
Returns
TypeDescription
FaceAnnotation.Landmark.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPosition(Position value)

public FaceAnnotation.Landmark.Builder setPosition(Position value)

Face landmark position.

.google.cloud.vision.v1p1beta1.Position position = 4;

Parameter
NameDescription
valuePosition
Returns
TypeDescription
FaceAnnotation.Landmark.Builder

setPosition(Position.Builder builderForValue)

public FaceAnnotation.Landmark.Builder setPosition(Position.Builder builderForValue)

Face landmark position.

.google.cloud.vision.v1p1beta1.Position position = 4;

Parameter
NameDescription
builderForValuePosition.Builder
Returns
TypeDescription
FaceAnnotation.Landmark.Builder

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

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

setType(FaceAnnotation.Landmark.Type value)

public FaceAnnotation.Landmark.Builder setType(FaceAnnotation.Landmark.Type value)

Face landmark type.

.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3;

Parameter
NameDescription
valueFaceAnnotation.Landmark.Type

The type to set.

Returns
TypeDescription
FaceAnnotation.Landmark.Builder

This builder for chaining.

setTypeValue(int value)

public FaceAnnotation.Landmark.Builder setTypeValue(int value)

Face landmark type.

.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type type = 3;

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
FaceAnnotation.Landmark.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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