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 {
600
600
Table table = 1 [(google.api.field_behavior ) = REQUIRED ];
601
601
602
602
// 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`
604
604
// field should be updated. This mask is relative to the `table` field, not to
605
605
// 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
+ //
608
612
// If `column_families` is set in `update_mask`, it will return an
609
613
// UNIMPLEMENTED error.
610
614
google.protobuf.FieldMask update_mask = 2
Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ message RestoreInfo {
48
48
}
49
49
}
50
50
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
+
51
61
// A collection of user data indexed by row, column, and timestamp.
52
62
// Each table is served using the resources of its parent cluster.
53
63
message Table {
@@ -157,6 +167,11 @@ message Table {
157
167
// field will be populated with information about the restore.
158
168
RestoreInfo restore_info = 6 [(google.api.field_behavior ) = OUTPUT_ONLY ];
159
169
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
+
160
175
// Set to true to make the table protected against data loss. i.e. deleting
161
176
// the following resources through Admin APIs are prohibited:
162
177
// - The table.
You can’t perform that action at this time.
0 commit comments