# Cloud Vision V1 Client - Class Landmark (2.2.1)

2.2.1 (latest) 2.2.0 2.1.3 2.0.3 1.10.3 1.9.4 1.8.0 1.7.6 1.6.8 Reference documentation and code samples for the Cloud Vision V1 Client class Landmark.

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

Generated from protobuf message `google.cloud.vision.v1.FaceAnnotation.Landmark`

## Namespace

Google \\ Cloud \\ Vision \\ V1 \\ FaceAnnotation

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Face landmark type. |
| `↳ position` | `https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.Position` Face landmark position. |

### getType

Face landmark type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.FaceAnnotation.Landmark.Type). |

### setType

Face landmark type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.FaceAnnotation.Landmark.Type). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPosition

Face landmark position.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.Position|null` |   |

### hasPosition

### clearPosition

### setPosition

Face landmark position.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.Position` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |