# Cloud Bigtable V2 Client - Class AppProfile (2.25.0)

2.25.0 (latest) 2.24.0 2.23.0 2.22.0 2.21.1 2.20.2 2.19.2 2.18.0 2.17.1 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.1 2.9.1 2.8.0 2.7.0 2.6.3 2.5.0 2.4.0 2.3.0 2.2.1 2.1.0 2.0.1 1.32.1 1.31.1 1.30.0 1.29.2 1.28.3 1.27.0 1.26.2 1.25.0 1.24.1 1.23.0 1.22.2 1.21.1 1.20.3 Reference documentation and code samples for the Cloud Bigtable V2 Client class AppProfile.

A configuration object describing how Cloud Bigtable should treat traffic
from a particular end user application.

Generated from protobuf message `google.bigtable.admin.v2.AppProfile`

## Namespace

Google \\ Cloud \\ Bigtable \\ Admin \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The unique name of the app profile. Values are of the form `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. |
| `↳ etag` | `string` Strongly validated etag for optimistic concurrency control. Preserve the value returned from `GetAppProfile` when calling `UpdateAppProfile` to fail the request if there has been a modification in the mean time. The `update_mask` of the request need not include `etag` for this protection to apply. See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more details. |
| `↳ description` | `string` Long form description of the use case for this AppProfile. |
| `↳ multi_cluster_routing_use_any` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.MultiClusterRoutingUseAny` Use a multi-cluster routing policy. |
| `↳ single_cluster_routing` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.SingleClusterRouting` Use a single-cluster routing policy. |
| `↳ priority` | `int` This field has been deprecated in favor of `standard_isolation.priority`. If you set this field, `standard_isolation.priority` will be set instead. The priority of requests sent using this app profile. |
| `↳ standard_isolation` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.StandardIsolation` The standard options used for isolating this app profile's traffic from other use cases. |
| `↳ data_boost_isolation_read_only` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.DataBoostIsolationReadOnly` Specifies that this app profile is intended for read-only usage via the Data Boost feature. |

### getName

The unique name of the app profile. Values are of the form
`projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.

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

### setName

The unique name of the app profile. Values are of the form
`projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.

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

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

### getEtag

Strongly validated etag for optimistic concurrency control. Preserve the
value returned from `GetAppProfile` when calling `UpdateAppProfile` to
fail the request if there has been a modification in the mean time. The
`update_mask` of the request need not include `etag` for this protection
to apply.

See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and
[RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more
details.

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

### setEtag

Strongly validated etag for optimistic concurrency control. Preserve the
value returned from `GetAppProfile` when calling `UpdateAppProfile` to
fail the request if there has been a modification in the mean time. The
`update_mask` of the request need not include `etag` for this protection
to apply.

See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and
[RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more
details.

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

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

### getDescription

Long form description of the use case for this AppProfile.

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

### setDescription

Long form description of the use case for this AppProfile.

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

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

### getMultiClusterRoutingUseAny

Use a multi-cluster routing policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.MultiClusterRoutingUseAny|null` |   |

### hasMultiClusterRoutingUseAny

### setMultiClusterRoutingUseAny

Use a multi-cluster routing policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.MultiClusterRoutingUseAny` |

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

### getSingleClusterRouting

Use a single-cluster routing policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.SingleClusterRouting|null` |   |

### hasSingleClusterRouting

### setSingleClusterRouting

Use a single-cluster routing policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.SingleClusterRouting` |

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

### getPriority

This field has been deprecated in favor of `standard_isolation.priority`.

If you set this field, `standard_isolation.priority` will be set instead.
The priority of requests sent using this app profile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Priority](https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.Priority). |

### hasPriority

### setPriority

This field has been deprecated in favor of `standard_isolation.priority`.

If you set this field, `standard_isolation.priority` will be set instead.
The priority of requests sent using this app profile.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Priority](https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.Priority). |

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

### getStandardIsolation

The standard options used for isolating this app profile's traffic from
other use cases.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.StandardIsolation|null` |   |

### hasStandardIsolation

### setStandardIsolation

The standard options used for isolating this app profile's traffic from
other use cases.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.StandardIsolation` |

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

### getDataBoostIsolationReadOnly

Specifies that this app profile is intended for read-only usage via the
Data Boost feature.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.DataBoostIsolationReadOnly|null` |   |

### hasDataBoostIsolationReadOnly

### setDataBoostIsolationReadOnly

Specifies that this app profile is intended for read-only usage via the
Data Boost feature.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/Admin.V2.AppProfile.DataBoostIsolationReadOnly` |

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

### getRoutingPolicy

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

### getIsolation

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