# Cloud Bigtable V2 Client - Class FeatureFlags (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 FeatureFlags.

Feature flags supported or enabled by a client.

This is intended to be sent as part of request metadata to assure the server
that certain behaviors are safe to enable. This proto is meant to be
serialized and websafe-base64 encoded under the `bigtable-features` metadata
key. The value will remain constant for the lifetime of a client and due to
HTTP2's HPACK compression, the request overhead will be tiny.
This is an internal implementation detail and should not be used by end users
directly.

Generated from protobuf message `google.bigtable.v2.FeatureFlags`

## Namespace

Google \\ Cloud \\ Bigtable \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ reverse_scans` | `bool` Notify the server that the client supports reverse scans. The server will reject ReadRowsRequests with the reverse bit set when this is absent. |
| `↳ mutate_rows_rate_limit` | `bool` Notify the server that the client enables batch write flow control by requesting RateLimitInfo from MutateRowsResponse. Due to technical reasons, this disables partial retries. |
| `↳ mutate_rows_rate_limit2` | `bool` Notify the server that the client enables batch write flow control by requesting RateLimitInfo from MutateRowsResponse. With partial retries enabled. |
| `↳ last_scanned_row_responses` | `bool` Notify the server that the client supports the last_scanned_row field in ReadRowsResponse for long-running scans. |
| `↳ routing_cookie` | `bool` Notify the server that the client supports using encoded routing cookie strings to retry requests with. |
| `↳ retry_info` | `bool` Notify the server that the client supports using retry info back off durations to retry requests with. |
| `↳ client_side_metrics_enabled` | `bool` Notify the server that the client has client side metrics enabled. |
| `↳ traffic_director_enabled` | `bool` Notify the server that the client using Traffic Director endpoint. |
| `↳ direct_access_requested` | `bool` Notify the server that the client explicitly opted in for Direct Access. |
| `↳ peer_info` | `bool` If the client can support using BigtablePeerInfo. |
| `↳ sessions_compatible` | `bool` Indicates whether the client supports the Bigtable Sessions API. |
| `↳ sessions_required` | `bool` Internal flag to force sessions for internal projects. |

### getReverseScans

Notify the server that the client supports reverse scans. The server will
reject ReadRowsRequests with the reverse bit set when this is absent.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setReverseScans

Notify the server that the client supports reverse scans. The server will
reject ReadRowsRequests with the reverse bit set when this is absent.

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

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

### getMutateRowsRateLimit

Notify the server that the client enables batch write flow control by
requesting RateLimitInfo from MutateRowsResponse. Due to technical reasons,
this disables partial retries.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setMutateRowsRateLimit

Notify the server that the client enables batch write flow control by
requesting RateLimitInfo from MutateRowsResponse. Due to technical reasons,
this disables partial retries.

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

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

### getMutateRowsRateLimit2

Notify the server that the client enables batch write flow control by
requesting RateLimitInfo from MutateRowsResponse. With partial retries
enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setMutateRowsRateLimit2

Notify the server that the client enables batch write flow control by
requesting RateLimitInfo from MutateRowsResponse. With partial retries
enabled.

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

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

### getLastScannedRowResponses

Notify the server that the client supports the last_scanned_row field
in ReadRowsResponse for long-running scans.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setLastScannedRowResponses

Notify the server that the client supports the last_scanned_row field
in ReadRowsResponse for long-running scans.

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

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

### getRoutingCookie

Notify the server that the client supports using encoded routing cookie
strings to retry requests with.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setRoutingCookie

Notify the server that the client supports using encoded routing cookie
strings to retry requests with.

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

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

### getRetryInfo

Notify the server that the client supports using retry info back off
durations to retry requests with.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setRetryInfo

Notify the server that the client supports using retry info back off
durations to retry requests with.

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

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

### getClientSideMetricsEnabled

Notify the server that the client has client side metrics enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setClientSideMetricsEnabled

Notify the server that the client has client side metrics enabled.

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

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

### getTrafficDirectorEnabled

Notify the server that the client using Traffic Director endpoint.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setTrafficDirectorEnabled

Notify the server that the client using Traffic Director endpoint.

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

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

### getDirectAccessRequested

Notify the server that the client explicitly opted in for Direct Access.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setDirectAccessRequested

Notify the server that the client explicitly opted in for Direct Access.

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

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

### getPeerInfo

If the client can support using BigtablePeerInfo.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setPeerInfo

If the client can support using BigtablePeerInfo.

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

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

### getSessionsCompatible

Indicates whether the client supports the Bigtable Sessions API.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSessionsCompatible

Indicates whether the client supports the Bigtable Sessions API.

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

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

### getSessionsRequired

Internal flag to force sessions for internal projects.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSessionsRequired

Internal flag to force sessions for internal projects.

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

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