# Google Cloud Document Ai V1 Client - Class Property (2.7.0)

2.7.0 (latest) 2.6.1 2.5.1 2.4.1 2.3.0 2.2.2 2.1.3 2.0.0 1.14.0 1.13.1 1.12.2 1.9.0 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Property.

Defines properties that can be part of the entity type.

Generated from protobuf message `google.cloud.documentai.v1.DocumentSchema.EntityType.Property`

## Namespace

Google \\ Cloud \\ DocumentAI \\ V1 \\ DocumentSchema \\ EntityType

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the property. Follows the same guidelines as the EntityType name. |
| `↳ display_name` | `string` User defined name for the property. |
| `↳ value_type` | `string` A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field. |
| `↳ occurrence_type` | `int` Occurrence type limits the number of instances an entity type appears in the document. |
| `↳ method` | `int` Specifies how the entity's value is obtained. |

### getName

The name of the property. Follows the same guidelines as the
EntityType name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

The name of the property. Follows the same guidelines as the
EntityType name.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getDisplayName

User defined name for the property.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

User defined name for the property.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getValueType

A reference to the value type of the property. This type is subject
to the same conventions as the `Entity.base_types` field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setValueType

A reference to the value type of the property. This type is subject
to the same conventions as the `Entity.base_types` field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getOccurrenceType

Occurrence type limits the number of instances an entity type appears
in the document.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [OccurrenceType](https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.DocumentSchema.EntityType.Property.OccurrenceType). |

### setOccurrenceType

Occurrence type limits the number of instances an entity type appears
in the document.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [OccurrenceType](https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.DocumentSchema.EntityType.Property.OccurrenceType). |

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

### getMethod

Specifies how the entity's value is obtained.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Method](https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.DocumentSchema.EntityType.Property.Method). |

### setMethod

Specifies how the entity's value is obtained.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Method](https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.DocumentSchema.EntityType.Property.Method). |

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