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

Service Description: Service for reading from and writing to existing Bigtable tables.

This class provides the ability to make remote calls to the backing service through method
calls that map to API methods.

Many parameters require resource names to be formatted in a particular way. To
assist with these names, this class includes a format method for each type of
name, and additionally a parseName method to extract the individual identifiers
contained within formatted names that are returned by the API.

## Namespace

Google \\ Cloud \\ Bigtable \\ V2 \\ Client

## Methods

### __construct

Constructor.

Setting the "BIGTABLE_EMULATOR_HOST" environment variable will automatically set
the API Endpoint to the value specified in the variable, as well as ensure that
empty credentials are used in the transport layer.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `options` | `array|https://docs.cloud.google.com/php/docs/reference/gax/latest/Options.ClientOptions.html` Optional. Options for configuring the service API wrapper. |
| `↳ apiEndpoint` | `string` The address of the API remote host. May optionally include the port, formatted as " |
| `↳ credentials` | `https://docs.cloud.google.com/php/docs/reference/auth/latest/FetchAuthTokenInterface.html|https://docs.cloud.google.com/php/docs/reference/gax/latest/CredentialsWrapper.html` This option should only be used with a pre-constructed [Google\\Auth\\FetchAuthTokenInterface](https://docs.cloud.google.com/php/docs/reference/auth/latest/FetchAuthTokenInterface.html) or [Google\\ApiCore\\CredentialsWrapper](https://docs.cloud.google.com/php/docs/reference/gax/latest/CredentialsWrapper.html) object. Note that when one of these objects are provided, any settings in $credentialsConfig will be ignored. **Important** : If you are providing a path to a credentials file, or a decoded credentials file as a PHP array, this usage is now DEPRECATED. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. It is recommended to create the credentials explicitly `use Google\Auth\Credentials\ServiceAccountCredentials; use Google\Cloud\Bigtable\V2\BigtableClient; $creds = new ServiceAccountCredentials($scopes, $json); $options = new BigtableClient(['credentials' => $creds]);` <https://cloud.google.com/docs/authentication/external/externally-sourced-credentials> |
| `↳ credentialsConfig` | `array` Options used to configure credentials, including auth token caching, for the client. For a full list of supporting configuration options, see [Google\\ApiCore\\CredentialsWrapper::build()](https://docs.cloud.google.com/php/docs/reference/gax/latest/CredentialsWrapper.html#_Google_ApiCore_CredentialsWrapper__build__) . |
| `↳ disableRetries` | `bool` Determines whether or not retries defined by the client configuration should be disabled. Defaults to `false`. |
| `↳ clientConfig` | `string|array` Client method configuration, including retry settings. This option can be either a path to a JSON file, or a PHP array containing the decoded JSON data. By default this settings points to the default client config file, which is provided in the resources folder. |
| `↳ transport` | `string|https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.TransportInterface.html` The transport used for executing network requests. May be either the string `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. *Advanced usage* : Additionally, it is possible to pass in an already instantiated [Google\\ApiCore\\Transport\\TransportInterface](https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.TransportInterface.html) object. Note that when this object is provided, any settings in $transportConfig, and any $apiEndpoint setting, will be ignored. |
| `↳ transportConfig` | `array` Configuration options that will be used to construct the transport. Options for each supported transport type should be passed in a key for that transport. For example: $transportConfig = \[ 'grpc' =\> \[...\], 'rest' =\> \[...\], \]; See the [Google\\ApiCore\\Transport\\GrpcTransport::build()](https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.GrpcTransport.html#_Google_ApiCore_Transport_GrpcTransport__build__) and [Google\\ApiCore\\Transport\\RestTransport::build()](https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.RestTransport.html#_Google_ApiCore_Transport_RestTransport__build__) methods for the supported options. |
| `↳ clientCertSource` | `callable` A callable which returns the client cert as a string. This can be used to provide a certificate and private key to the transport layer for mTLS. |
| `↳ logger` | `false|Psr\Log\LoggerInterface` A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the 'GOOGLE_SDK_PHP_LOGGING' environment flag |
| `↳ universeDomain` | `string` The service domain for the client. Defaults to 'googleapis.com'. |

### checkAndMutateRow

Mutates a row atomically based on the output of a predicate Reader filter.

The async variant is [BigtableClient::checkAndMutateRowAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.Client.BigtableClient#_Google_Cloud_Bigtable_V2_Client_BigtableClient__checkAndMutateRowAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.CheckAndMutateRowRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

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

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\Bigtable\V2\CheckAndMutateRowRequest;
    use Google\Cloud\Bigtable\V2\CheckAndMutateRowResponse;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;

    /**
     * @param string $formattedTableName Optional. The unique name of the table to which the conditional mutation
     *                                   should be applied.
     *
     *                                   Values are of the form
     *                                   `projects/<project>/instances/<instance>/tables/<table>`. Please see
     *                                   {@see BigtableClient::tableName()} for help formatting this field.
     * @param string $rowKey             The key of the row to which the conditional mutation should be
     *                                   applied.
     */
    function check_and_mutate_row_sample(string $formattedTableName, string $rowKey): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $request = (new CheckAndMutateRowRequest())
            ->setTableName($formattedTableName)
            ->setRowKey($rowKey);

        // Call the API and handle any network failures.
        try {
            /** @var CheckAndMutateRowResponse $response */
            $response = $bigtableClient->checkAndMutateRow($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]');
        $rowKey = '...';

        check_and_mutate_row_sample($formattedTableName, $rowKey);
    }

### executeQuery

Executes a SQL query against a particular Bigtable instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ExecuteQueryRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ timeoutMillis` | `int` Timeout to use for this call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/ServerStream.html<https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ExecuteQueryResponse>` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\ServerStream;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\ExecuteQueryRequest;
    use Google\Cloud\Bigtable\V2\ExecuteQueryResponse;

    /**
     * @param string $formattedInstanceName The unique name of the instance against which the query should be
     *                                      executed.
     *                                      Values are of the form `projects/<project>/instances/<instance>`
     *                                      Please see {@see BigtableClient::instanceName()} for help formatting this field.
     * @param string $query                 The query string.
     *
     *                                      Exactly one of `query` and `prepared_query` is required. Setting both
     *                                      or neither is an `INVALID_ARGUMENT`.
     */
    function execute_query_sample(string $formattedInstanceName, string $query): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $params = [];
        $request = (new ExecuteQueryRequest())
            ->setInstanceName($formattedInstanceName)
            ->setQuery($query)
            ->setParams($params);

        // Call the API and handle any network failures.
        try {
            /** @var ServerStream $stream */
            $stream = $bigtableClient->executeQuery($request);

            /** @var ExecuteQueryResponse $element */
            foreach ($stream->readAll() as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedInstanceName = BigtableClient::instanceName('[PROJECT]', '[INSTANCE]');
        $query = '[QUERY]';

        execute_query_sample($formattedInstanceName, $query);
    }

### generateInitialChangeStreamPartitions

Returns the current list of partitions that make up the table's
change stream. The union of partitions will cover the entire keyspace.

Partitions can be read with `ReadChangeStream`.
NOTE: This API is only intended to be used by Apache Beam BigtableIO.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.GenerateInitialChangeStreamPartitionsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ timeoutMillis` | `int` Timeout to use for this call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/ServerStream.html<https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.GenerateInitialChangeStreamPartitionsResponse>` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\ServerStream;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\GenerateInitialChangeStreamPartitionsRequest;
    use Google\Cloud\Bigtable\V2\GenerateInitialChangeStreamPartitionsResponse;

    /**
     * @param string $formattedTableName The unique name of the table from which to get change stream
     *                                   partitions. Values are of the form
     *                                   `projects/<project>/instances/<instance>/tables/<table>`.
     *                                   Change streaming must be enabled on the table. Please see
     *                                   {@see BigtableClient::tableName()} for help formatting this field.
     */
    function generate_initial_change_stream_partitions_sample(string $formattedTableName): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $request = (new GenerateInitialChangeStreamPartitionsRequest())
            ->setTableName($formattedTableName);

        // Call the API and handle any network failures.
        try {
            /** @var ServerStream $stream */
            $stream = $bigtableClient->generateInitialChangeStreamPartitions($request);

            /** @var GenerateInitialChangeStreamPartitionsResponse $element */
            foreach ($stream->readAll() as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]');

        generate_initial_change_stream_partitions_sample($formattedTableName);
    }

### getClientConfiguration

This RPC is only intended to be used by the official Cloud Bigtable client
libraries to implement the Bigtable Session based protocol. It is subject
to change without notice.

The async variant is [BigtableClient::getClientConfigurationAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.Client.BigtableClient#_Google_Cloud_Bigtable_V2_Client_BigtableClient__getClientConfigurationAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.GetClientConfigurationRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

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

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\Bigtable\V2\ClientConfiguration;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\GetClientConfigurationRequest;

    /**
     * @param string $formattedInstanceName The unique name of the instance for which the client will target
     *                                      with Data API requests.
     *
     *                                      Values are of the form `projects/<project>/instances/<instance>`
     *                                      Please see {@see BigtableClient::instanceName()} for help formatting this field.
     */
    function get_client_configuration_sample(string $formattedInstanceName): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $request = (new GetClientConfigurationRequest())
            ->setInstanceName($formattedInstanceName);

        // Call the API and handle any network failures.
        try {
            /** @var ClientConfiguration $response */
            $response = $bigtableClient->getClientConfiguration($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedInstanceName = BigtableClient::instanceName('[PROJECT]', '[INSTANCE]');

        get_client_configuration_sample($formattedInstanceName);
    }

### mutateRow

Mutates a row atomically. Cells already present in the row are left
unchanged unless explicitly changed by `mutation`.

The async variant is [BigtableClient::mutateRowAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.Client.BigtableClient#_Google_Cloud_Bigtable_V2_Client_BigtableClient__mutateRowAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.MutateRowRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

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

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\MutateRowRequest;
    use Google\Cloud\Bigtable\V2\MutateRowResponse;
    use Google\Cloud\Bigtable\V2\Mutation;

    /**
     * @param string $formattedTableName Optional. The unique name of the table to which the mutation should be
     *                                   applied.
     *
     *                                   Values are of the form
     *                                   `projects/<project>/instances/<instance>/tables/<table>`. Please see
     *                                   {@see BigtableClient::tableName()} for help formatting this field.
     * @param string $rowKey             The key of the row to which the mutation should be applied.
     */
    function mutate_row_sample(string $formattedTableName, string $rowKey): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $mutations = [new Mutation()];
        $request = (new MutateRowRequest())
            ->setTableName($formattedTableName)
            ->setRowKey($rowKey)
            ->setMutations($mutations);

        // Call the API and handle any network failures.
        try {
            /** @var MutateRowResponse $response */
            $response = $bigtableClient->mutateRow($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]');
        $rowKey = '...';

        mutate_row_sample($formattedTableName, $rowKey);
    }

### mutateRows

Mutates multiple rows in a batch. Each individual row is mutated
atomically as in MutateRow, but the entire batch is not executed
atomically.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.MutateRowsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ timeoutMillis` | `int` Timeout to use for this call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/ServerStream.html<https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.MutateRowsResponse>` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\ServerStream;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\MutateRowsRequest;
    use Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry;
    use Google\Cloud\Bigtable\V2\MutateRowsResponse;
    use Google\Cloud\Bigtable\V2\Mutation;

    /**
     * @param string $formattedTableName Optional. The unique name of the table to which the mutations should be
     *                                   applied.
     *
     *                                   Values are of the form
     *                                   `projects/<project>/instances/<instance>/tables/<table>`. Please see
     *                                   {@see BigtableClient::tableName()} for help formatting this field.
     */
    function mutate_rows_sample(string $formattedTableName): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $entriesMutations = [new Mutation()];
        $entry = (new Entry())
            ->setMutations($entriesMutations);
        $entries = [$entry,];
        $request = (new MutateRowsRequest())
            ->setTableName($formattedTableName)
            ->setEntries($entries);

        // Call the API and handle any network failures.
        try {
            /** @var ServerStream $stream */
            $stream = $bigtableClient->mutateRows($request);

            /** @var MutateRowsResponse $element */
            foreach ($stream->readAll() as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]');

        mutate_rows_sample($formattedTableName);
    }

### openAuthorizedView

This RPC is only intended to be used by the official Cloud Bigtable client
libraries to implement the Bigtable Session based protocol. It is subject
to change without notice.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `callOptions` | `array` Optional. |
| `↳ timeoutMillis` | `int` Timeout to use for this call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/BidiStream.html` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\BidiStream;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\SessionRequest;
    use Google\Cloud\Bigtable\V2\SessionResponse;

    /**
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function open_authorized_view_sample(): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $request = new SessionRequest();

        // Call the API and handle any network failures.
        try {
            /** @var BidiStream $stream */
            $stream = $bigtableClient->openAuthorizedView();
            $stream->writeAll([$request,]);

            /** @var SessionResponse $element */
            foreach ($stream->closeWriteAndReadAll() as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

### openMaterializedView

This RPC is only intended to be used by the official Cloud Bigtable client
libraries to implement the Bigtable Session based protocol. It is subject
to change without notice.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `callOptions` | `array` Optional. |
| `↳ timeoutMillis` | `int` Timeout to use for this call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/BidiStream.html` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\BidiStream;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\SessionRequest;
    use Google\Cloud\Bigtable\V2\SessionResponse;

    /**
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function open_materialized_view_sample(): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $request = new SessionRequest();

        // Call the API and handle any network failures.
        try {
            /** @var BidiStream $stream */
            $stream = $bigtableClient->openMaterializedView();
            $stream->writeAll([$request,]);

            /** @var SessionResponse $element */
            foreach ($stream->closeWriteAndReadAll() as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

### openTable

This RPC is only intended to be used by the official Cloud Bigtable client
libraries to implement the Bigtable Session based protocol. It is subject
to change without notice.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `callOptions` | `array` Optional. |
| `↳ timeoutMillis` | `int` Timeout to use for this call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/BidiStream.html` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\BidiStream;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\SessionRequest;
    use Google\Cloud\Bigtable\V2\SessionResponse;

    /**
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function open_table_sample(): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $request = new SessionRequest();

        // Call the API and handle any network failures.
        try {
            /** @var BidiStream $stream */
            $stream = $bigtableClient->openTable();
            $stream->writeAll([$request,]);

            /** @var SessionResponse $element */
            foreach ($stream->closeWriteAndReadAll() as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

### pingAndWarm

Warm up associated instance metadata for this connection.

This call is not required but may be useful for connection keep-alive.

The async variant is [BigtableClient::pingAndWarmAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.Client.BigtableClient#_Google_Cloud_Bigtable_V2_Client_BigtableClient__pingAndWarmAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.PingAndWarmRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

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

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\PingAndWarmRequest;
    use Google\Cloud\Bigtable\V2\PingAndWarmResponse;

    /**
     * @param string $formattedName The unique name of the instance to check permissions for as well
     *                              as respond. Values are of the form
     *                              `projects/<project>/instances/<instance>`. Please see
     *                              {@see BigtableClient::instanceName()} for help formatting this field.
     */
    function ping_and_warm_sample(string $formattedName): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $request = (new PingAndWarmRequest())
            ->setName($formattedName);

        // Call the API and handle any network failures.
        try {
            /** @var PingAndWarmResponse $response */
            $response = $bigtableClient->pingAndWarm($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedName = BigtableClient::instanceName('[PROJECT]', '[INSTANCE]');

        ping_and_warm_sample($formattedName);
    }

### prepareQuery

Prepares a GoogleSQL query for execution on a particular Bigtable instance.

The async variant is [BigtableClient::prepareQueryAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.Client.BigtableClient#_Google_Cloud_Bigtable_V2_Client_BigtableClient__prepareQueryAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.PrepareQueryRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

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

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\PrepareQueryRequest;
    use Google\Cloud\Bigtable\V2\PrepareQueryResponse;

    /**
     * @param string $formattedInstanceName The unique name of the instance against which the query should be
     *                                      executed.
     *                                      Values are of the form `projects/<project>/instances/<instance>`
     *                                      Please see {@see BigtableClient::instanceName()} for help formatting this field.
     * @param string $query                 The query string.
     */
    function prepare_query_sample(string $formattedInstanceName, string $query): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $paramTypes = [];
        $request = (new PrepareQueryRequest())
            ->setInstanceName($formattedInstanceName)
            ->setQuery($query)
            ->setParamTypes($paramTypes);

        // Call the API and handle any network failures.
        try {
            /** @var PrepareQueryResponse $response */
            $response = $bigtableClient->prepareQuery($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedInstanceName = BigtableClient::instanceName('[PROJECT]', '[INSTANCE]');
        $query = '[QUERY]';

        prepare_query_sample($formattedInstanceName, $query);
    }

### readChangeStream

Reads changes from a table's change stream. Changes will
reflect both user-initiated mutations and mutations that are caused by
garbage collection.

NOTE: This API is only intended to be used by Apache Beam BigtableIO.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ReadChangeStreamRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ timeoutMillis` | `int` Timeout to use for this call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/ServerStream.html<https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ReadChangeStreamResponse>` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\ServerStream;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\ReadChangeStreamRequest;
    use Google\Cloud\Bigtable\V2\ReadChangeStreamResponse;

    /**
     * @param string $formattedTableName The unique name of the table from which to read a change stream.
     *                                   Values are of the form
     *                                   `projects/<project>/instances/<instance>/tables/<table>`.
     *                                   Change streaming must be enabled on the table. Please see
     *                                   {@see BigtableClient::tableName()} for help formatting this field.
     */
    function read_change_stream_sample(string $formattedTableName): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $request = (new ReadChangeStreamRequest())
            ->setTableName($formattedTableName);

        // Call the API and handle any network failures.
        try {
            /** @var ServerStream $stream */
            $stream = $bigtableClient->readChangeStream($request);

            /** @var ReadChangeStreamResponse $element */
            foreach ($stream->readAll() as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]');

        read_change_stream_sample($formattedTableName);
    }

### readModifyWriteRow

Modifies a row atomically on the server. The method reads the latest
existing timestamp and value from the specified columns and writes a new
entry based on pre-defined read/modify/write rules. The new value for the
timestamp is the greater of the existing timestamp or the current server
time. The method returns the new contents of all modified cells.

The async variant is [BigtableClient::readModifyWriteRowAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.Client.BigtableClient#_Google_Cloud_Bigtable_V2_Client_BigtableClient__readModifyWriteRowAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ReadModifyWriteRowRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

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

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\ReadModifyWriteRowRequest;
    use Google\Cloud\Bigtable\V2\ReadModifyWriteRowResponse;
    use Google\Cloud\Bigtable\V2\ReadModifyWriteRule;

    /**
     * @param string $formattedTableName Optional. The unique name of the table to which the read/modify/write rules
     *                                   should be applied.
     *
     *                                   Values are of the form
     *                                   `projects/<project>/instances/<instance>/tables/<table>`. Please see
     *                                   {@see BigtableClient::tableName()} for help formatting this field.
     * @param string $rowKey             The key of the row to which the read/modify/write rules should be
     *                                   applied.
     */
    function read_modify_write_row_sample(string $formattedTableName, string $rowKey): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $rules = [new ReadModifyWriteRule()];
        $request = (new ReadModifyWriteRowRequest())
            ->setTableName($formattedTableName)
            ->setRowKey($rowKey)
            ->setRules($rules);

        // Call the API and handle any network failures.
        try {
            /** @var ReadModifyWriteRowResponse $response */
            $response = $bigtableClient->readModifyWriteRow($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]');
        $rowKey = '...';

        read_modify_write_row_sample($formattedTableName, $rowKey);
    }

### readRows

Streams back the contents of all requested rows in key order, optionally
applying the same Reader filter to each. Depending on their size,
rows and cells may be broken up across multiple responses, but
atomicity of each row will still be preserved. See the
ReadRowsResponse documentation for details.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ReadRowsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ timeoutMillis` | `int` Timeout to use for this call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/ServerStream.html<https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ReadRowsResponse>` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\ServerStream;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\ReadRowsRequest;
    use Google\Cloud\Bigtable\V2\ReadRowsResponse;

    /**
     * @param string $formattedTableName Optional. The unique name of the table from which to read.
     *
     *                                   Values are of the form
     *                                   `projects/<project>/instances/<instance>/tables/<table>`. Please see
     *                                   {@see BigtableClient::tableName()} for help formatting this field.
     */
    function read_rows_sample(string $formattedTableName): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $request = (new ReadRowsRequest())
            ->setTableName($formattedTableName);

        // Call the API and handle any network failures.
        try {
            /** @var ServerStream $stream */
            $stream = $bigtableClient->readRows($request);

            /** @var ReadRowsResponse $element */
            foreach ($stream->readAll() as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]');

        read_rows_sample($formattedTableName);
    }

### sampleRowKeys

Returns a sample of row keys in the table. The returned row keys will
delimit contiguous sections of the table of approximately equal size,
which can be used to break up the data for distributed tasks like
mapreduces.

If a `row_range` is provided in the request, the returned samples will be
restricted to the specified range.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.SampleRowKeysRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ timeoutMillis` | `int` Timeout to use for this call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/ServerStream.html<https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.SampleRowKeysResponse>` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\ServerStream;
    use Google\Cloud\Bigtable\V2\Client\BigtableClient;
    use Google\Cloud\Bigtable\V2\SampleRowKeysRequest;
    use Google\Cloud\Bigtable\V2\SampleRowKeysResponse;

    /**
     * @param string $formattedTableName Optional. The unique name of the table from which to sample row keys.
     *
     *                                   Values are of the form
     *                                   `projects/<project>/instances/<instance>/tables/<table>`. Please see
     *                                   {@see BigtableClient::tableName()} for help formatting this field.
     */
    function sample_row_keys_sample(string $formattedTableName): void
    {
        // Create a client.
        $bigtableClient = new BigtableClient();

        // Prepare the request message.
        $request = (new SampleRowKeysRequest())
            ->setTableName($formattedTableName);

        // Call the API and handle any network failures.
        try {
            /** @var ServerStream $stream */
            $stream = $bigtableClient->sampleRowKeys($request);

            /** @var SampleRowKeysResponse $element */
            foreach ($stream->readAll() as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]');

        sample_row_keys_sample($formattedTableName);
    }

### checkAndMutateRowAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.CheckAndMutateRowRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.CheckAndMutateRowResponse>` |   |

### getClientConfigurationAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.GetClientConfigurationRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ClientConfiguration>` |   |

### mutateRowAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.MutateRowRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.MutateRowResponse>` |   |

### pingAndWarmAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.PingAndWarmRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.PingAndWarmResponse>` |   |

### prepareQueryAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.PrepareQueryRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.PrepareQueryResponse>` |   |

### readModifyWriteRowAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ReadModifyWriteRowRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/cloud-bigtable/latest/V2.ReadModifyWriteRowResponse>` |   |

### static::authorizedViewName

Formats a string containing the fully-qualified path to represent a
authorized_view resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `string` |
| `instance` | `string` |
| `table` | `string` |
| `authorizedView` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted authorized_view resource. |

### static::instanceName

Formats a string containing the fully-qualified path to represent a instance
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `string` |
| `instance` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted instance resource. |

### static::materializedViewName

Formats a string containing the fully-qualified path to represent a
materialized_view resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `string` |
| `instance` | `string` |
| `materializedView` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted materialized_view resource. |

### static::tableName

Formats a string containing the fully-qualified path to represent a table
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `string` |
| `instance` | `string` |
| `table` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted table resource. |

### static::parseName

Parses a formatted name string and returns an associative array of the components in the name.

The following name formats are supported:
Template: Pattern

- authorizedView: projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}
- instance: projects/{project}/instances/{instance}
- materializedView: projects/{project}/instances/{instance}/materializedViews/{materialized_view}
- table: projects/{project}/instances/{instance}/tables/{table}

The optional $template argument can be supplied to specify a particular pattern,
and must match one of the templates listed above. If no $template argument is
provided, or if the $template argument does not match one of the templates
listed, then parseName will check each of the supported templates, and return
the first match.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `formattedName` | `string` The formatted name string |
| `template` | `?string` Optional name of template to match |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `array` | An associative array from name component IDs to component values. |