# tf.contrib.cloud.BigtableClient

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/bigtable/python/ops/bigtable_api.py#L47-L110) |

BigtableClient is the entrypoint for interacting with Cloud Bigtable in TF.

    tf.contrib.cloud.BigtableClient(
        project_id, instance_id, connection_pool_size=None,
        max_receive_message_size=None
    )

BigtableClient encapsulates a connection to Cloud Bigtable, and exposes the
`table` method to open a Bigtable table.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `project_id` | A string representing the GCP project id to connect to. |
| `instance_id` | A string representing the Bigtable instance to connect to. |
| `connection_pool_size` | (Optional.) A number representing the number of concurrent connections to the Cloud Bigtable service to make. |
| `max_receive_message_size` | (Optional.) The maximum bytes received in a single gRPC response. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | if the arguments are invalid (e.g. wrong type, or out of expected ranges (e.g. negative).) |

<br />

## Methods

### `table`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/bigtable/python/ops/bigtable_api.py#L96-L110)

    table(
        name, snapshot=None
    )

Opens a table and returns a `tf.contrib.bigtable.BigtableTable` object.

<br />

<br />

<br />

| Args ||
|---|---|
| `name` | A [`tf.string`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#string) [`tf.Tensor`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Tensor) name of the table to open. |
| `snapshot` | Either a [`tf.string`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#string) [`tf.Tensor`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Tensor) snapshot id, or `True` to request the creation of a snapshot. (Note: currently unimplemented.) |

<br />

<br />

<br />

<br />

| Returns ||
|---|---|
| A `tf.contrib.bigtable.BigtableTable` Python object representing the operations available on the table. ||

<br />