public final class CreateTableRequest extends Object
CreateTableRequest
Allows for creating table with:
GCRules.GCRule
| Modifier and Type | Method and Description |
|---|---|
CreateTableRequest |
addChangeStreamRetention(org.threeten.bp.Duration retention)
Add change stream retention period between 1 day and 7 days.
|
CreateTableRequest |
addFamily(String familyId)
Adds a new columnFamily to the configuration
|
CreateTableRequest |
addFamily(String familyId,
GCRules.GCRule gcRule)
Adds a new columnFamily with
GCRules.GCRule to the configuration. |
CreateTableRequest |
addFamily(String familyId,
GCRules.GCRule gcRule,
Type valueType)
Adds a new columnFamily with a
GCRules.GCRule and Type to the configuration. |
CreateTableRequest |
addFamily(String familyId,
Type valueType)
Adds a new columnFamily with a
Type to the configuration. |
CreateTableRequest |
addSplit(com.google.protobuf.ByteString key)
Adds split at the specified key to the configuration.
|
boolean |
equals(Object o) |
int |
hashCode() |
static CreateTableRequest |
of(String tableId) |
CreateTableRequest |
setAutomatedBackup(org.threeten.bp.Duration retentionPeriod,
org.threeten.bp.Duration frequency)
Set an automated backup policy for the table.
|
CreateTableRequest |
setDeletionProtection(boolean deletionProtection)
Configures if the table is deletion protected.
|
CreateTableRequest |
toProto(String projectId,
String instanceId) |
public static CreateTableRequest of(String tableId)
public CreateTableRequest addFamily(String familyId)
public CreateTableRequest addFamily(@Nonnull String familyId, @Nonnull GCRules.GCRule gcRule)
GCRules.GCRule to the configuration. Please note that calling this
method with the same familyId will overwrite the previous family.for available options.public CreateTableRequest addFamily(@Nonnull String familyId, @Nonnull Type valueType)
Type to the configuration. Please note that calling this
method with the same familyId will overwrite the previous family.for available options.public CreateTableRequest addFamily(@Nonnull String familyId, @Nonnull GCRules.GCRule gcRule, @Nonnull Type valueType)
GCRules.GCRule and Type to the configuration. Please
note that calling this method with the same familyId will overwrite the previous family.for available options.,
for available options.public CreateTableRequest addSplit(com.google.protobuf.ByteString key)
public CreateTableRequest addChangeStreamRetention(org.threeten.bp.Duration retention)
public CreateTableRequest setDeletionProtection(boolean deletionProtection)
public CreateTableRequest setAutomatedBackup(org.threeten.bp.Duration retentionPeriod, org.threeten.bp.Duration frequency)
@InternalApi public CreateTableRequest toProto(@Nonnull String projectId, @Nonnull String instanceId)
Copyright © 2026 Google LLC. All rights reserved.