Skip to content

Commit 47d236a

Browse files
Google APIscopybara-github
authored andcommitted
feat: add MaterializedViewName to ReadRows and SampleRowKeys
PiperOrigin-RevId: 735384675
1 parent 15f9d8b commit 47d236a

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

google/bigtable/v2/bigtable.proto

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ option (google.api.resource_definition) = {
4848
type: "bigtableadmin.googleapis.com/AuthorizedView"
4949
pattern: "projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}"
5050
};
51+
option (google.api.resource_definition) = {
52+
type: "bigtableadmin.googleapis.com/MaterializedView"
53+
pattern: "projects/{project}/instances/{instance}/materializedViews/{materialized_view}"
54+
};
5155

5256
// Service for reading from and writing to existing Bigtable tables.
5357
service Bigtable {
@@ -351,6 +355,17 @@ message ReadRowsRequest {
351355
}
352356
];
353357

358+
// Optional. The unique name of the MaterializedView from which to read.
359+
//
360+
// Values are of the form
361+
// `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
362+
string materialized_view_name = 11 [
363+
(google.api.field_behavior) = OPTIONAL,
364+
(google.api.resource_reference) = {
365+
type: "bigtableadmin.googleapis.com/MaterializedView"
366+
}
367+
];
368+
354369
// This value specifies routing for replication. If not specified, the
355370
// "default" application profile will be used.
356371
string app_profile_id = 5;
@@ -511,6 +526,17 @@ message SampleRowKeysRequest {
511526
}
512527
];
513528

529+
// Optional. The unique name of the MaterializedView from which to read.
530+
//
531+
// Values are of the form
532+
// `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
533+
string materialized_view_name = 5 [
534+
(google.api.field_behavior) = OPTIONAL,
535+
(google.api.resource_reference) = {
536+
type: "bigtableadmin.googleapis.com/MaterializedView"
537+
}
538+
];
539+
514540
// This value specifies routing for replication. If not specified, the
515541
// "default" application profile will be used.
516542
string app_profile_id = 2;

0 commit comments

Comments
 (0)