File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed
Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -600,11 +600,15 @@ message UpdateTableRequest {
600600 Table table = 1 [(google.api.field_behavior ) = REQUIRED ];
601601
602602 // Required. The list of fields to update.
603- // A mask specifying which fields (e.g. `deletion_protection `) in the `table`
603+ // A mask specifying which fields (e.g. `change_stream_config `) in the `table`
604604 // field should be updated. This mask is relative to the `table` field, not to
605605 // the request message. The wildcard (*) path is currently not supported.
606- // Currently UpdateTable is only supported for the following field:
607- // * `deletion_protection`
606+ // Currently UpdateTable is only supported for the following fields:
607+ //
608+ // * `change_stream_config`
609+ // * `change_stream_config.retention_period`
610+ // * `deletion_protection`
611+ //
608612 // If `column_families` is set in `update_mask`, it will return an
609613 // UNIMPLEMENTED error.
610614 google.protobuf.FieldMask update_mask = 2
Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ message RestoreInfo {
4848 }
4949}
5050
51+ // Change stream configuration.
52+ message ChangeStreamConfig {
53+ // How long the change stream should be retained. Change stream data older
54+ // than the retention period will not be returned when reading the change
55+ // stream from the table.
56+ // Values must be at least 1 day and at most 7 days, and will be truncated to
57+ // microsecond granularity.
58+ google.protobuf.Duration retention_period = 1 ;
59+ }
60+
5161// A collection of user data indexed by row, column, and timestamp.
5262// Each table is served using the resources of its parent cluster.
5363message Table {
@@ -157,6 +167,11 @@ message Table {
157167 // field will be populated with information about the restore.
158168 RestoreInfo restore_info = 6 [(google.api.field_behavior ) = OUTPUT_ONLY ];
159169
170+ // If specified, enable the change stream on this table.
171+ // Otherwise, the change stream is disabled and the change stream is not
172+ // retained.
173+ ChangeStreamConfig change_stream_config = 8 ;
174+
160175 // Set to true to make the table protected against data loss. i.e. deleting
161176 // the following resources through Admin APIs are prohibited:
162177 // - The table.
You can’t perform that action at this time.
0 commit comments