# Google Analytics Admin V1alpha Client - Class Property (0.32.0)

0.32.0 (latest) 0.31.3 0.30.0 0.29.1 0.28.1 0.27.0 0.26.0 0.25.2 0.24.2 0.23.0 0.22.5 0.20.0 0.19.0 0.18.1 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.2

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Analytics Admin V1alpha Client class Property.

A resource message representing a Google Analytics property.

Generated from protobuf message `google.analytics.admin.v1alpha.Property`

## Namespace

Google \\ Analytics \\ Admin \\ V1alpha

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" |
| `↳ property_type` | `int` Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the entity was originally created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when entity payload fields were last updated. |
| `↳ parent` | `string` Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" |
| `↳ display_name` | `string` Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. |
| `↳ industry_category` | `int` Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK |
| `↳ time_zone` | `string` Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: <https://www.iana.org/time-zones> Example: "America/Los_Angeles" |
| `↳ currency_code` | `string` The currency type used in reports involving monetary values. Format: <https://en.wikipedia.org/wiki/ISO_4217> Examples: "USD", "EUR", "JPY" |
| `↳ service_level` | `int` Output only. The Google Analytics service level that applies to this property. |
| `↳ delete_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. |
| `↳ expire_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. |
| `↳ account` | `string` Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" |

### getName

Identifier. Resource name of this property.

Format: properties/{property_id}
Example: "properties/1000"

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

### setName

Identifier. Resource name of this property.

Format: properties/{property_id}
Example: "properties/1000"

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

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

### getPropertyType

Immutable. The property type for this Property resource. When creating a
property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
"ORDINARY_PROPERTY" will be implied.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [PropertyType](https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.PropertyType). |

### setPropertyType

Immutable. The property type for this Property resource. When creating a
property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
"ORDINARY_PROPERTY" will be implied.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [PropertyType](https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.PropertyType). |

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

### getCreateTime

Output only. Time when the entity was originally created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time when the entity was originally created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. Time when entity payload fields were last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Time when entity payload fields were last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getParent

Immutable. Resource name of this property's logical parent.

Note: The Property-Moving UI can be used to change the parent.
Format: accounts/{account}, properties/{property}
Example: "accounts/100", "properties/101"

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

### setParent

Immutable. Resource name of this property's logical parent.

Note: The Property-Moving UI can be used to change the parent.
Format: accounts/{account}, properties/{property}
Example: "accounts/100", "properties/101"

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

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

### getDisplayName

Required. Human-readable display name for this property.

The max allowed display name length is 100 UTF-16 code units.

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

### setDisplayName

Required. Human-readable display name for this property.

The max allowed display name length is 100 UTF-16 code units.

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

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

### getIndustryCategory

Industry associated with this property
Example: AUTOMOTIVE, FOOD_AND_DRINK

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [IndustryCategory](https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.IndustryCategory). |

### setIndustryCategory

Industry associated with this property
Example: AUTOMOTIVE, FOOD_AND_DRINK

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [IndustryCategory](https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.IndustryCategory). |

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

### getTimeZone

Required. Reporting Time Zone, used as the day boundary for reports,
regardless of where the data originates. If the time zone honors DST,
Analytics will automatically adjust for the changes.

NOTE: Changing the time zone only affects data going forward, and is not
applied retroactively.
Format: <https://www.iana.org/time-zones>
Example: "America/Los_Angeles"

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

### setTimeZone

Required. Reporting Time Zone, used as the day boundary for reports,
regardless of where the data originates. If the time zone honors DST,
Analytics will automatically adjust for the changes.

NOTE: Changing the time zone only affects data going forward, and is not
applied retroactively.
Format: <https://www.iana.org/time-zones>
Example: "America/Los_Angeles"

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

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

### getCurrencyCode

The currency type used in reports involving monetary values.

Format: <https://en.wikipedia.org/wiki/ISO_4217>
Examples: "USD", "EUR", "JPY"

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

### setCurrencyCode

The currency type used in reports involving monetary values.

Format: <https://en.wikipedia.org/wiki/ISO_4217>
Examples: "USD", "EUR", "JPY"

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

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

### getServiceLevel

Output only. The Google Analytics service level that applies to this
property.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ServiceLevel](https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.ServiceLevel). |

### setServiceLevel

Output only. The Google Analytics service level that applies to this
property.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ServiceLevel](https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.ServiceLevel). |

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

### getDeleteTime

Output only. If set, the time at which this property was trashed. If not
set, then this property is not currently in the trash can.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasDeleteTime

### clearDeleteTime

### setDeleteTime

Output only. If set, the time at which this property was trashed. If not
set, then this property is not currently in the trash can.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getExpireTime

Output only. If set, the time at which this trashed property will be
permanently deleted. If not set, then this property is not currently in the
trash can and is not slated to be deleted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasExpireTime

### clearExpireTime

### setExpireTime

Output only. If set, the time at which this trashed property will be
permanently deleted. If not set, then this property is not currently in the
trash can and is not slated to be deleted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getAccount

Immutable. The resource name of the parent account
Format: accounts/{account_id}
Example: "accounts/123"

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

### setAccount

Immutable. The resource name of the parent account
Format: accounts/{account_id}
Example: "accounts/123"

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

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