## Resource: Table

A collection of user data indexed by row, column, and timestamp. Each table is served using the resources of its parent cluster.

| JSON representation |
|---|
| ``` { "name": string, "clusterStates": { string: { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#ClusterState`) }, ... }, "columnFamilies": { string: { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#ColumnFamily`) }, ... }, "granularity": enum (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#TimestampGranularity`), "restoreInfo": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#RestoreInfo`) }, "changeStreamConfig": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#ChangeStreamConfig`) }, "deletionProtection": boolean, "stats": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#TableStats`) }, "tieredStorageConfig": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#TieredStorageConfig`) }, "rowKeySchema": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Struct`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "automatedBackupPolicy": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#AutomatedBackupPolicy`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `name` | `string` The unique name of the table. Values are of the form `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `STATS_VIEW`, `FULL` |
| `clusterStates` | ``map (key: string, value: object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#ClusterState`))`` Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `columnFamilies` | ``map (key: string, value: object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#ColumnFamily`))`` The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `granularity` | ``enum (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#TimestampGranularity`)`` Immutable. The granularity at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`. |
| `restoreInfo` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#RestoreInfo`)`` Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore. |
| `changeStreamConfig` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#ChangeStreamConfig`)`` If specified, enable the change stream on this table. Otherwise, the change stream is disabled and the change stream is not retained. |
| `deletionProtection` | `boolean` Set to true to make the table protected against data loss. i.e. deleting the following resources through Admin APIs are prohibited: - The table. - The column families in the table. - The instance containing the table. Note one can still delete the data stored in the table through Data APIs. |
| `stats` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#TableStats`)`` Output only. Only available with STATS_VIEW, this includes summary statistics about the entire table contents. For statistics about a specific column family, see ColumnFamilyStats in the mapped ColumnFamily collection above. |
| `tieredStorageConfig` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#TieredStorageConfig`)`` Rules to specify what data is stored in each storage tier. Different tiers store data differently, providing different trade-offs between cost and performance. Different parts of a table can be stored separately on different tiers. If a config is specified, tiered storage is enabled for this table. Otherwise, tiered storage is disabled. Only SSD instances can configure tiered storage. |
| `rowKeySchema` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Struct`)`` The row key schema for this table. The schema is used to decode the raw row key bytes into a structured format. The order of field declarations in this schema is important, as it reflects how the raw row key bytes are structured. Currently, this only affects how the key is read via a GoogleSQL query from the ExecuteQuery API. For a SQL query, the _key column is still read as raw bytes. But queries can reference the key fields by name, which will be decoded from _key using provided type and encoding. Queries that reference key fields will fail if they encounter an invalid row key. For example, if _key = "some_id#2024-04-30#\\x00\\x13\\x00\\xf3" with the following schema: { fields { fieldName: "id" type { string { encoding: utf8Bytes {} } } } fields { fieldName: "date" type { string { encoding: utf8Bytes {} } } } fields { fieldName: "product_code" type { int64 { encoding: bigEndianBytes {} } } } encoding { delimitedBytes { delimiter: "#" } } } The decoded key parts would be: id = "some_id", date = "2024-04-30", product_code = 1245427 The query "SELECT _key, product_code FROM table" will return two columns: /---\\ \| _key \| product_code \| \| ---\|---\| \| "some_id#2024-04-30#\\x00\\x13\\x00\\xf3" \| 1245427 \| ---/ The schema has the following invariants: (1) The decoded field values are order-preserved. For read, the field values will be decoded in sorted mode from the raw bytes. (2) Every field in the schema must specify a non-empty name. (3) Every field must specify a type with an associated encoding. The type is limited to scalar types only: Array, Map, Aggregate, and Struct are not allowed. (4) The field names must not collide with existing column family names and reserved keywords "_key" and "_timestamp". The following update operations are allowed for rowKeySchema: - Update from an empty schema to a new schema. - Remove the existing schema. This operation requires setting the `ignoreWarnings` flag to `true`, since it might be a backward incompatible change. Without the flag, the update request will fail with an INVALID_ARGUMENT error. Any other row key schema update operation (e.g. update existing schema columns names or types) is currently unsupported. |
| The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `automatedBackupPolicy` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#AutomatedBackupPolicy`)`` If specified, automated backups are enabled for this table. Otherwise, automated backups are disabled. |
| End of mutually exclusive fields. ||

## ClusterState

The state of a table's data in a particular cluster.

| JSON representation |
|---|
| ``` { "replicationState": enum (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#ReplicationState`), "encryptionInfo": [ { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/EncryptionInfo`) } ] } ``` |

| Fields ||
|---|---|
| `replicationState` | ``enum (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#ReplicationState`)`` Output only. The state of replication for the table in this cluster. |
| `encryptionInfo[]` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/EncryptionInfo`)`` Output only. The encryption information for the table in this cluster. If the encryption key protecting this resource is customer managed, then its version can be rotated in Cloud Key Management Service (Cloud KMS). The primary version of the key and its status will be reflected here when changes propagate from Cloud KMS. |

## ReplicationState

Table replication states.

| Enums ||
|---|---|
| `STATE_NOT_KNOWN` | The replication state of the table is unknown in this cluster. |
| `INITIALIZING` | The cluster was recently created, and the table must finish copying over pre-existing data from other clusters before it can begin receiving live replication updates and serving Data API requests. |
| `PLANNED_MAINTENANCE` | The table is temporarily unable to serve Data API requests from this cluster due to planned internal maintenance. |
| `UNPLANNED_MAINTENANCE` | The table is temporarily unable to serve Data API requests from this cluster due to unplanned or emergency maintenance. |
| `READY` | The table can serve Data API requests from this cluster. Depending on replication delay, reads may not immediately reflect the state of the table in other clusters. |
| `READY_OPTIMIZING` | The table is fully created and ready for use after a restore, and is being optimized for performance. When optimizations are complete, the table will transition to `READY` state. |

## ColumnFamily

A set of columns within a table which share a common configuration.

| JSON representation |
|---|
| ``` { "gcRule": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#GcRule`) }, "stats": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#ColumnFamilyStats`) }, "valueType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`) } } ``` |

| Fields ||
|---|---|
| `gcRule` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#GcRule`)`` Garbage collection rule specified as a protobuf. Must serialize to at most 500 bytes. NOTE: Garbage collection executes opportunistically in the background, and so it's possible for reads to return a cell even if it matches the active GC expression for its family. |
| `stats` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#ColumnFamilyStats`)`` Output only. Only available with STATS_VIEW, this includes summary statistics about column family contents. For statistics over an entire table, see TableStats above. |
| `valueType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`)`` The type of data stored in each of this family's cell values, including its full encoding. If omitted, the family only serves raw untyped bytes. For now, only the `Aggregate` type is supported. `Aggregate` can only be set at family creation and is immutable afterwards. This field is mutually exclusive with `sqlType`. If `valueType` is `Aggregate`, written data must be compatible with: \* `valueType.input_type` for `AddInput` mutations |

## GcRule

Rule for determining which cells to delete during garbage collection.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "maxNumVersions": integer, "maxAge": string, "intersection": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Intersection`) }, "union": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Union`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Garbage collection rules. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `maxNumVersions` | `integer` Delete all cells in a column except the most recent N. |
| `maxAge` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `intersection` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Intersection`)`` Delete cells that would be deleted by every nested rule. |
| `union` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Union`)`` Delete cells that would be deleted by any nested rule. |
| End of mutually exclusive fields. ||

## Intersection

A GcRule which deletes cells matching all of the given rules.

| JSON representation |
|---|
| ``` { "rules": [ { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#GcRule`) } ] } ``` |

| Fields ||
|---|---|
| `rules[]` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#GcRule`)`` Only delete cells which would be deleted by every element of `rules`. |

## Union

A GcRule which deletes cells matching any of the given rules.

| JSON representation |
|---|
| ``` { "rules": [ { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#GcRule`) } ] } ``` |

| Fields ||
|---|---|
| `rules[]` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#GcRule`)`` Delete cells which would be deleted by any element of `rules`. |

## ColumnFamilyStats

Approximate statistics related to a single column family within a table. This information may change rapidly, interpreting these values at a point in time may already preset out-of-date information.

Everything below is approximate, unless otherwise specified.

| JSON representation |
|---|
| ``` { "averageColumnsPerRow": number, "averageCellsPerColumn": number, "logicalDataBytes": string } ``` |

| Fields ||
|---|---|
| `averageColumnsPerRow` | `number` How many column qualifiers are present in this column family, averaged over all rows in the table. e.g. For column family "family" in a table with 3 rows: - A row with cells in "family:col" and "other:col" (1 column in "family") - A row with cells in "family:col", "family:other_col", and "other:data" (2 columns in "family") - A row with cells in "other:col" (0 columns in "family", "family" not present) would report (1 + 2 + 0)/3 = 1.5 in this field. |
| `averageCellsPerColumn` | `number` How many cells are present per column qualifier in this column family, averaged over all rows containing any column in the column family. e.g. For column family "family" in a table with 3 rows: - A row with 3 cells in "family:col" and 1 cell in "other:col" (3 cells / 1 column in "family") - A row with 1 cell in "family:col", 7 cells in "family:other_col", and 7 cells in "other:data" (8 cells / 2 columns in "family") - A row with 3 cells in "other:col" (0 columns in "family", "family" not present) would report (3 + 8 + 0)/(1 + 2 + 0) = 3.66 in this field. |
| `logicalDataBytes` | `string (https://developers.google.com/discovery/v1/type-format format)` How much space the data in the column family occupies. This is roughly how many bytes would be needed to read the contents of the entire column family (e.g. by streaming all contents out). |

## Type

`Type` represents the type of data that is written to, read from, or stored in Bigtable. It is heavily based on the GoogleSQL standard to help maintain familiarity and consistency across products and features.

For compatibility with Bigtable's existing untyped APIs, each `Type` includes an `Encoding` which describes how to convert to or from the underlying data.

Each encoding can operate in one of two modes:

- Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` if and only if `X <= Y`. This is useful anywhere sort order is important, for example when encoding keys.
- Distinct: In this mode, Bigtable guarantees that if `X != Y` then `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For example, both `{'foo': '1', 'bar': '2'}` and `{'bar': '2', 'foo': '1'}` are valid encodings of the same JSON value.

The API clearly documents which mode is used wherever an encoding can be configured. Each encoding also documents which values are supported in which modes. For example, when encoding INT64 as a numeric STRING, negative numbers cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but `STRING("-00001") > STRING("00001")`.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "bytesType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Bytes`) }, "stringType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#String`) }, "int64Type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Int64`) }, "float32Type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Float32`) }, "float64Type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Float64`) }, "boolType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Bool`) }, "timestampType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Timestamp`) }, "dateType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Date`) }, "aggregateType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Aggregate`) }, "structType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Struct`) }, "arrayType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Array`) }, "mapType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Map`) }, "protoType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Proto`) }, "enumType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Enum`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The kind of type that this represents. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `bytesType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Bytes`)`` Bytes |
| `stringType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#String`)`` String |
| `int64Type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Int64`)`` Int64 |
| `float32Type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Float32`)`` Float32 |
| `float64Type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Float64`)`` Float64 |
| `boolType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Bool`)`` Bool |
| `timestampType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Timestamp`)`` Timestamp |
| `dateType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Date`)`` Date |
| `aggregateType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Aggregate`)`` Aggregate |
| `structType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Struct`)`` Struct |
| `arrayType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Array`)`` Array |
| `mapType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Map`)`` Map |
| `protoType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Proto`)`` Proto |
| `enumType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Enum`)`` Enum |
| End of mutually exclusive fields. ||

## Bytes

Bytes Values of type `Bytes` are stored in `Value.bytes_value`.

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Encoding`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Encoding`)`` The encoding to use when converting to or from lower level types. |

## Encoding

Rules used to convert to or from lower level types.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "raw": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Raw`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Specifies which encoding to use. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `raw` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Raw`)`` Use `Raw` encoding. |
| End of mutually exclusive fields. ||

## Raw

Leaves the value as-is.

Sorted mode: all values are supported.

Distinct mode: all values are supported.

| JSON representation |
|---|
| ``` { "escapeNulls": boolean } ``` |

| Fields ||
|---|---|
| `escapeNulls` | `boolean` If set, allows NULL values to be encoded as the empty string "". The actual empty string, or any value which only contains the null byte `0x00`, has one more null byte appended. |

## String

String Values of type `String` are stored in `Value.string_value`.

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Encoding_1`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Encoding_1`)`` The encoding to use when converting to or from lower level types. |

## Encoding

Rules used to convert to or from lower level types.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "utf8Raw": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Utf8Raw`) }, "utf8Bytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Utf8Bytes`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Specifies which encoding to use. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `utf8Raw (deprecated)` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Utf8Raw`)`` > [!WARNING] > This item is deprecated! Deprecated: if set, converts to an empty `utf8Bytes`. |
| `utf8Bytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Utf8Bytes`)`` Use `Utf8Bytes` encoding. |
| End of mutually exclusive fields. ||

## Utf8Raw

This type has no fields.

> [!WARNING]
> This item is deprecated!

Deprecated: prefer the equivalent `Utf8Bytes`.

## Utf8Bytes

UTF-8 encoding.

Sorted mode: - All values are supported. - Code point order is preserved.

Distinct mode: all values are supported.

Compatible with:

- BigQuery `TEXT` encoding
- HBase `Bytes.toBytes`
- Java `String#getBytes(StandardCharsets.UTF_8)`

| JSON representation |
|---|
| ``` { "nullEscapeChar": string } ``` |

| Fields ||
|---|---|
| `nullEscapeChar` | `string` Single-character escape sequence used to support NULL values. If set, allows NULL values to be encoded as the empty string "". The actual empty string, or any value where every character equals `nullEscapeChar`, has one more `nullEscapeChar` appended. If `nullEscapeChar` is set and does not equal the ASCII null character `0x00`, then the encoding will not support sorted mode. . |

## Int64

Int64 Values of type `Int64` are stored in `Value.int_value`.

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Encoding_2`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Encoding_2`)`` The encoding to use when converting to or from lower level types. |

## Encoding

Rules used to convert to or from lower level types.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "bigEndianBytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#BigEndianBytes`) }, "orderedCodeBytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#OrderedCodeBytes`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Specifies which encoding to use. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `bigEndianBytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#BigEndianBytes`)`` Use `BigEndianBytes` encoding. |
| `orderedCodeBytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#OrderedCodeBytes`)`` Use `OrderedCodeBytes` encoding. |
| End of mutually exclusive fields. ||

## BigEndianBytes

Encodes the value as an 8-byte big-endian two's complement value.

Sorted mode: non-negative values are supported.

Distinct mode: all values are supported.

Compatible with:

- BigQuery `BINARY` encoding
- HBase `Bytes.toBytes`
- Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN`

| JSON representation |
|---|
| ``` { "bytesType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Bytes`) } } ``` |

| Fields ||
|---|---|
| `bytesType (deprecated)` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Bytes`)`` > [!WARNING] > This item is deprecated! Deprecated: ignored if set. |

## OrderedCodeBytes

This type has no fields.
Encodes the value in a variable length binary format of up to 10 bytes. Values that are closer to zero use fewer bytes.

Sorted mode: all values are supported.

Distinct mode: all values are supported.

## Float32

This type has no fields.
Float32 Values of type `Float32` are stored in `Value.float_value`.

## Float64

This type has no fields.
Float64 Values of type `Float64` are stored in `Value.float_value`.

## Bool

This type has no fields.
bool Values of type `Bool` are stored in `Value.bool_value`.

## Timestamp

Timestamp Values of type `Timestamp` are stored in `Value.timestamp_value`.

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Encoding_3`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Encoding_3`)`` The encoding to use when converting to or from lower level types. |

## Encoding

Rules used to convert to or from lower level types.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "unixMicrosInt64": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Encoding_2`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Specifies which encoding to use. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `unixMicrosInt64` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Encoding_2`)`` Encodes the number of microseconds since the Unix epoch using the given `Int64` encoding. Values must be microsecond-aligned. Compatible with: - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` |
| End of mutually exclusive fields. ||

## Date

This type has no fields.
Date Values of type `Date` are stored in `Value.date_value`.

## Aggregate

A value that combines incremental updates into a summarized value.

Data is never directly written or read using type `Aggregate`. Writes provide either the `inputType` or `stateType`, and reads always return the `stateType` .

| JSON representation |
|---|
| ``` { "inputType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`) }, "stateType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "sum": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Sum`) }, "hllppUniqueCount": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#HyperLogLogPlusPlusUniqueCount`) }, "max": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Max`) }, "min": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Min`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `inputType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`)`` Type of the inputs that are accumulated by this `Aggregate`. Use `AddInput` mutations to accumulate new inputs. |
| `stateType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`)`` Output only. Type that holds the internal accumulator state for the `Aggregate`. This is a function of the `inputType` and `aggregator` chosen. |
| Which aggregator function to use. The configured types must match. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `sum` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Sum`)`` Sum aggregator. |
| `hllppUniqueCount` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#HyperLogLogPlusPlusUniqueCount`)`` HyperLogLogPlusPlusUniqueCount aggregator. |
| `max` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Max`)`` Max aggregator. |
| `min` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Min`)`` Min aggregator. |
| End of mutually exclusive fields. ||

## Sum

This type has no fields.
Computes the sum of the input values. Allowed input: `Int64` State: same as input

## HyperLogLogPlusPlusUniqueCount

This type has no fields.
Computes an approximate unique count over the input values. When using raw data as input, be careful to use a consistent encoding. Otherwise the same value encoded differently could count more than once, or two distinct values could count as identical. Input: Any, or omit for Raw State: TBD Special state conversions: `Int64` (the unique count estimate)

## Max

This type has no fields.
Computes the max of the input values. Allowed input: `Int64` State: same as input

## Min

This type has no fields.
Computes the min of the input values. Allowed input: `Int64` State: same as input

## Struct

A structured data value, consisting of fields which map to dynamically typed values. Values of type `Struct` are stored in `Value.array_value` where entries are in the same order and number as `field_types`.

| JSON representation |
|---|
| ``` { "fields": [ { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Field`) } ], "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Encoding_4`) } } ``` |

| Fields ||
|---|---|
| `fields[]` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Field`)`` The names and types of the fields in this struct. |
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Encoding_4`)`` The encoding to use when converting to or from lower level types. |

## Field

A struct field and its type.

| JSON representation |
|---|
| ``` { "fieldName": string, "type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`) } } ``` |

| Fields ||
|---|---|
| `fieldName` | `string` The field name (optional). Fields without a `fieldName` are considered anonymous and cannot be referenced by name. |
| `type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`)`` The type of values in this field. |

## Encoding

Rules used to convert to or from lower level types.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "singleton": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Singleton`) }, "delimitedBytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#DelimitedBytes`) }, "orderedCodeBytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#OrderedCodeBytes_1`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Specifies which encoding to use. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `singleton` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Singleton`)`` Use `Singleton` encoding. |
| `delimitedBytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#DelimitedBytes`)`` Use `DelimitedBytes` encoding. |
| `orderedCodeBytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#OrderedCodeBytes_1`)`` User `OrderedCodeBytes` encoding. |
| End of mutually exclusive fields. ||

## Singleton

This type has no fields.
Uses the encoding of `fields[0].type` as-is. Only valid if `fields.size == 1`. This encoding does not support `DESC` field ordering.

## DelimitedBytes

Fields are encoded independently and concatenated with a configurable `delimiter` in between.

A struct with no fields defined is encoded as a single `delimiter`.

Sorted mode:

- Fields are encoded in sorted mode.
- Encoded field values must not contain any bytes \<= `delimiter[0]`
- Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first.
- This encoding does not support `DESC` field ordering.

Distinct mode:

- Fields are encoded in distinct mode.
- Encoded field values must not contain `delimiter[0]`.

| JSON representation |
|---|
| ``` { "delimiter": string } ``` |

| Fields ||
|---|---|
| `delimiter` | `string (https://developers.google.com/discovery/v1/type-format format)` Byte sequence used to delimit concatenated fields. The delimiter must contain at least 1 character and at most 50 characters. A base64-encoded string. |

## OrderedCodeBytes

This type has no fields.
Fields are encoded independently, then escaped and delimited by appling the following rules in order: - While the last remaining field is `ASC` or `UNSPECIFIED`, and encodes to the empty string "", remove it. - In each remaining field, replace all null bytes `0x00` with the fixed byte pair `{0x00, 0xFF}`. - If any remaining field encodes to the empty string "", replace it with the fixed byte pair `{0x00, 0x00}`. - Append the fixed byte pair `{0x00, 0x01}` to each remaining field, except for the last remaining field if it is `ASC`. - Bitwise negate all `DESC` fields. - Concatenate the results, or emit the fixed byte pair `{0x00, 0x00}` if there are no remaining fields to concatenate.

Examples:

     - STRUCT()             -> "\00\00"
     - STRUCT("")           -> "\00\00"
     - STRUCT("", "")       -> "\00\00"
     - STRUCT("", "B")      -> "\00\00" + "\00\01" + "B"
     - STRUCT("A", "")      -> "A"
     - STRUCT("", "B", "")  -> "\00\00" + "\00\01" + "B"
     - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C"

Examples for struct with `DESC` fields:

     - STRUCT("" DESC)          -> "\xFF\xFF" + "\xFF\xFE"
     - STRUCT("" DESC, "")      -> "\xFF\xFF" + "\xFF\xFE"
     - STRUCT("" DESC, "", "")  -> "\xFF\xFF" + "\xFF\xFE"
     - STRUCT("" DESC, "A")     -> "\xFF\xFF" + "\xFF\xFE" + "A"
     - STRUCT("A", "" DESC, "") -> "A" + "\00\01" + "\xFF\xFF" + "\xFF\xFE"
     - STRUCT("", "A" DESC)     -> "\x00\x00" + "\x00\x01" + "\xBE" +
                                   "\xFF\xFE"

Since null bytes are always escaped, this encoding can cause size blowup for encodings like `Int64.BigEndianBytes` that are likely to produce many such bytes.

Sorted mode:

- Fields are encoded in sorted mode.
- All values supported by the field encodings are allowed.
- Fields with unset or `UNSPECIFIED` order are treated as `ASC`.
- Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first.

Distinct mode:

- Fields are encoded in distinct mode.
- All values supported by the field encodings are allowed.

## Array

An ordered list of elements of a given type. Values of type `Array` are stored in `Value.array_value`.

| JSON representation |
|---|
| ``` { "elementType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`) } } ``` |

| Fields ||
|---|---|
| `elementType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`)`` The type of the elements in the array. This must not be `Array`. |

## Map

A mapping of keys to values of a given type. Values of type `Map` are stored in a `Value.array_value` where each entry is another `Value.array_value` with two elements (the key and the value, in that order). Normally encoded Map values won't have repeated keys, however, clients are expected to handle the case in which they do. If the same key appears multiple times, the *last* value takes precedence.

| JSON representation |
|---|
| ``` { "keyType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`) }, "valueType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`) } } ``` |

| Fields ||
|---|---|
| `keyType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`)`` The type of a map key. Only `Bytes`, `String`, and `Int64` are allowed as key types. |
| `valueType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#Type`)`` The type of the values in a map. |

## Proto

A protobuf message type. Values of type `Proto` are stored in `Value.bytes_value`.

| JSON representation |
|---|
| ``` { "schemaBundleId": string, "messageName": string } ``` |

| Fields ||
|---|---|
| `schemaBundleId` | `string` The ID of the schema bundle that this proto is defined in. |
| `messageName` | `string` The fully qualified name of the protobuf message, including package. In the format of "foo.bar.Message". |

## Enum

A protobuf enum type. Values of type `Enum` are stored in `Value.int_value`.

| JSON representation |
|---|
| ``` { "schemaBundleId": string, "enumName": string } ``` |

| Fields ||
|---|---|
| `schemaBundleId` | `string` The ID of the schema bundle that this enum is defined in. |
| `enumName` | `string` The fully qualified name of the protobuf enum message, including package. In the format of "foo.bar.EnumMessage". |

## TimestampGranularity

Possible timestamp granularities to use when keeping multiple versions of data in a table.

| Enums ||
|---|---|
| `TIMESTAMP_GRANULARITY_UNSPECIFIED` | The user did not specify a granularity. Should not be returned. When specified during table creation, MILLIS will be used. |
| `MILLIS` | The table keeps data versioned at a granularity of 1ms. |
| `MICROS` | The table keeps data versioned at a granularity of 1us. |

## RestoreInfo

Information about a table restore.

| JSON representation |
|---|
| ``` { "sourceType": enum (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#RestoreSourceType`), // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "backupInfo": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#BackupInfo`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `sourceType` | ``enum (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#RestoreSourceType`)`` The type of the restore source. |
| Information about the source used to restore the table. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `backupInfo` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#BackupInfo`)`` Information about the backup used to restore the table. The backup may no longer exist. |
| End of mutually exclusive fields. ||

## RestoreSourceType

Indicates the type of the restore source.

| Enums ||
|---|---|
| `RESTORE_SOURCE_TYPE_UNSPECIFIED` | No restore associated. |
| `BACKUP` | A backup was used as the source of the restore. |

## BackupInfo

Information about a backup.

| JSON representation |
|---|
| ``` { "backup": string, "startTime": string, "endTime": string, "sourceTable": string, "sourceBackup": string } ``` |

| Fields ||
|---|---|
| `backup` | `string` Output only. Name of the backup. |
| `startTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time that the backup was started. Row data in the backup will be no older than this timestamp. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `endTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. This time that the backup was finished. Row data in the backup will be no newer than this timestamp. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `sourceTable` | `string` Output only. Name of the table the backup was created from. |
| `sourceBackup` | `string` Output only. Name of the backup from which this backup was copied. If a backup is not created by copying a backup, this field will be empty. Values are of the form: projects//instances//clusters//backups/ |

## ChangeStreamConfig

Change stream configuration.

| JSON representation |
|---|
| ``` { "retentionPeriod": string } ``` |

| Fields ||
|---|---|
| `retentionPeriod` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` How long the change stream should be retained. Change stream data older than the retention period will not be returned when reading the change stream from the table. Values must be at least 1 day and at most 7 days, and will be truncated to microsecond granularity. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## TableStats

Approximate statistics related to a table.

These statistics are calculated infrequently, while simultaneously, data in the table can change rapidly. Thus the values reported here (e.g. row count) are very likely out-of date, even the instant they are received in this API. Thus, only treat these values as approximate.

IMPORTANT: Everything below is approximate, unless otherwise specified.

| JSON representation |
|---|
| ``` { "rowCount": string, "averageColumnsPerRow": number, "averageCellsPerColumn": number, "logicalDataBytes": string } ``` |

| Fields ||
|---|---|
| `rowCount` | `string (https://developers.google.com/discovery/v1/type-format format)` How many rows are in the table. |
| `averageColumnsPerRow` | `number` How many (column family, column qualifier) combinations are present per row in the table, averaged over all rows in the table. e.g. A table with 2 rows: - A row with cells in "family:col" and "other:col" (2 distinct columns) - A row with cells in "family:col", "family:other_col", and "other:data" (3 distinct columns) would report (2 + 3)/2 = 2.5 in this field. |
| `averageCellsPerColumn` | `number` How many cells are present per column (column family, column qualifier) combinations, averaged over all columns in all rows in the table. e.g. A table with 2 rows: - A row with 3 cells in "family:col" and 1 cell in "other:col" (4 cells / 2 columns) - A row with 1 cell in "family:col", 7 cells in "family:other_col", and 7 cells in "other:data" (15 cells / 3 columns) would report (4 + 15)/(2 + 3) = 3.8 in this field. |
| `logicalDataBytes` | `string (https://developers.google.com/discovery/v1/type-format format)` This is roughly how many bytes would be needed to read the entire table (e.g. by streaming all contents out). |

## AutomatedBackupPolicy

Defines an automated backup policy for a table

| JSON representation |
|---|
| ``` { "retentionPeriod": string, "frequency": string, "locations": [ string ], "keepHotDuration": string } ``` |

| Fields ||
|---|---|
| `retentionPeriod` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Required. How long the automated backups should be retained. Values must be at least 3 days and at most 90 days. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `frequency` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` How frequently automated backups should occur. The only supported value at this time is 24 hours. An undefined frequency is treated as 24 hours. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `locations[]` | `string` Optional. A list of Cloud Bigtable zones where automated backups are allowed to be created. If empty, automated backups will be created in all zones of the instance. Locations are in the format `projects/{project}/locations/{zone}`. You can set this field only for tables in Enterprise Plus instances. |
| `keepHotDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Optional. The amount of time that the automated backups remain hot. If specified, the backups created by this policy are `HOT` backups. If not specified, the backups are `STANDARD` backups. The value must be at least 24 hours and at most 10 days, and can't exceed the policy's `retentionPeriod`. Only SSD instances support `HOT` automated backups. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## TieredStorageConfig

Config for tiered storage. A valid config must have a valid TieredStorageRule. Otherwise the whole TieredStorageConfig must be unset. By default all data is stored in the SSD tier (only SSD instances can configure tiered storage).

| JSON representation |
|---|
| ``` { "infrequentAccess": { object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#TieredStorageRule`) } } ``` |

| Fields ||
|---|---|
| `infrequentAccess` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables#TieredStorageRule`)`` Rule to specify what data is stored in the infrequent access(IA) tier. The IA tier allows storing more data per node with reduced performance. |

## TieredStorageRule

Rule to specify what data is stored in a storage tier.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "includeIfOlderThan": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Rules to specify what data is stored in this tier. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `includeIfOlderThan` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Include cells older than the given age. For the infrequent access tier, this value must be at least 30 days. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| End of mutually exclusive fields. ||

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/checkConsistency` | Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/create` | Creates a new table in the specified instance. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/delete` | Permanently deletes a specified table and all of its data. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/dropRowRange` | Permanently drop/delete a row range from a specified table. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/generateConsistencyToken` | Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/get` | Gets metadata information about the specified table. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/getIamPolicy` | Gets the access control policy for a Bigtable resource. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/list` | Lists all tables served from a specified instance. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/modifyColumnFamilies` | Performs a series of column family modifications on the specified table. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/patch` | Updates a specified table. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/restore` | Create a new table by restoring from a completed backup. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/setIamPolicy` | Sets the access control policy on a Bigtable resource. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/testIamPermissions` | Returns permissions that the caller has on the specified Bigtable resource. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.tables/undelete` | Restores a specified table which was accidentally deleted. |