# Cloud Bigtable Admin V2 API - Class Google::Cloud::Bigtable::Admin::V2::CreateTableRequest (v1.17.0)

1.17.0 (latest) 1.16.0 1.15.1 1.14.0 1.13.0 1.12.0 1.11.1 1.10.0 1.9.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.3 0.20.0 0.19.0 0.18.0 0.17.0 0.16.3 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 0.8.1 Reference documentation and code samples for the Cloud Bigtable Admin V2 API class Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.

Request message for
[google.bigtable.admin.v2.BigtableTableAdmin.CreateTable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-BigtableTableAdmin-Client#Google__Cloud__Bigtable__Admin__V2__BigtableTableAdmin__Client_create_table_instance_ "Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table (method)")

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #initial_splits

    def initial_splits() -> ::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split>

**Returns**

- ([::Array](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-Array)\<[::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-CreateTableRequest-Split)\>) ---

  The optional list of row keys that will be used to initially split the
  table into several tablets (tablets are similar to HBase regions).
  Given two split keys, `s1` and `s2`, three tablets will be created,
  spanning the key ranges: `[, s1), [s1, s2), [s2, )`.

  Example:
  - Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` `"other", "zz"]`
  - initial_split_keys := `["apple", "customer_1", "customer_2", "other"]`
  - Key assignment:
    - Tablet 1 `[, apple) => {"a"}.`
    - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.`
    - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.`
    - Tablet 4 `[customer_2, other) => {"customer_2"}.`
    - Tablet 5 `[other, ) => {"other", "zz"}.`

### #initial_splits=

    def initial_splits=(value) -> ::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split>

**Parameter**

- **value** ([::Array](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-Array)\<[::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-CreateTableRequest-Split)\>) ---

  The optional list of row keys that will be used to initially split the
  table into several tablets (tablets are similar to HBase regions).
  Given two split keys, `s1` and `s2`, three tablets will be created,
  spanning the key ranges: `[, s1), [s1, s2), [s2, )`.

  Example:
  - Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` `"other", "zz"]`
  - initial_split_keys := `["apple", "customer_1", "customer_2", "other"]`
  - Key assignment:
    - Tablet 1 `[, apple) => {"a"}.`
    - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.`
    - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.`
    - Tablet 4 `[customer_2, other) => {"customer_2"}.`
    - Tablet 5 `[other, ) => {"other", "zz"}.`
**Returns**

- ([::Array](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-Array)\<[::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-CreateTableRequest-Split)\>) ---

  The optional list of row keys that will be used to initially split the
  table into several tablets (tablets are similar to HBase regions).
  Given two split keys, `s1` and `s2`, three tablets will be created,
  spanning the key ranges: `[, s1), [s1, s2), [s2, )`.

  Example:
  - Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` `"other", "zz"]`
  - initial_split_keys := `["apple", "customer_1", "customer_2", "other"]`
  - Key assignment:
    - Tablet 1 `[, apple) => {"a"}.`
    - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.`
    - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.`
    - Tablet 4 `[customer_2, other) => {"customer_2"}.`
    - Tablet 5 `[other, ) => {"other", "zz"}.`

### #parent

    def parent() -> ::String

**Returns**

- ([::String](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-String)) --- Required. The unique name of the instance in which to create the table. Values are of the form `projects/{project}/instances/{instance}`.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** ([::String](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-String)) --- Required. The unique name of the instance in which to create the table. Values are of the form `projects/{project}/instances/{instance}`.
**Returns**

- ([::String](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-String)) --- Required. The unique name of the instance in which to create the table. Values are of the form `projects/{project}/instances/{instance}`.

### #table

    def table() -> ::Google::Cloud::Bigtable::Admin::V2::Table

**Returns**

- ([::Google::Cloud::Bigtable::Admin::V2::Table](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Table)) --- Required. The Table to create.

### #table=

    def table=(value) -> ::Google::Cloud::Bigtable::Admin::V2::Table

**Parameter**

- **value** ([::Google::Cloud::Bigtable::Admin::V2::Table](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Table)) --- Required. The Table to create.
**Returns**

- ([::Google::Cloud::Bigtable::Admin::V2::Table](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Table)) --- Required. The Table to create.

### #table_id

    def table_id() -> ::String

**Returns**

- ([::String](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-String)) --- Required. The name by which the new table should be referred to within the parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. Maximum 50 characters.

### #table_id=

    def table_id=(value) -> ::String

**Parameter**

- **value** ([::String](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-String)) --- Required. The name by which the new table should be referred to within the parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. Maximum 50 characters.
**Returns**

- ([::String](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest/Google-Cloud-Bigtable-Admin-V2-Type-String)) --- Required. The name by which the new table should be referred to within the parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. Maximum 50 characters.