1
- // Copyright 2019 Google LLC.
1
+ // Copyright 2019 Google LLC
2
2
//
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@ import "google/api/annotations.proto";
20
20
import "google/api/client.proto" ;
21
21
import "google/api/field_behavior.proto" ;
22
22
import "google/api/resource.proto" ;
23
+ import "google/api/routing.proto" ;
23
24
import "google/bigtable/v2/data.proto" ;
24
25
import "google/protobuf/wrappers.proto" ;
25
26
import "google/rpc/status.proto" ;
@@ -57,6 +58,15 @@ service Bigtable {
57
58
post : "/v2/{table_name=projects/*/instances/*/tables/*}:readRows"
58
59
body : "*"
59
60
};
61
+ option (google.api.routing ) = {
62
+ routing_parameters {
63
+ field : "table_name"
64
+ path_template : "{table_name=projects/*/instances/*/tables/*}"
65
+ }
66
+ routing_parameters {
67
+ field : "app_profile_id"
68
+ }
69
+ };
60
70
option (google.api.method_signature ) = "table_name" ;
61
71
option (google.api.method_signature ) = "table_name,app_profile_id" ;
62
72
}
@@ -69,6 +79,15 @@ service Bigtable {
69
79
option (google.api.http ) = {
70
80
get : "/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys"
71
81
};
82
+ option (google.api.routing ) = {
83
+ routing_parameters {
84
+ field : "table_name"
85
+ path_template : "{table_name=projects/*/instances/*/tables/*}"
86
+ }
87
+ routing_parameters {
88
+ field : "app_profile_id"
89
+ }
90
+ };
72
91
option (google.api.method_signature ) = "table_name" ;
73
92
option (google.api.method_signature ) = "table_name,app_profile_id" ;
74
93
}
@@ -80,6 +99,15 @@ service Bigtable {
80
99
post : "/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow"
81
100
body : "*"
82
101
};
102
+ option (google.api.routing ) = {
103
+ routing_parameters {
104
+ field : "table_name"
105
+ path_template : "{table_name=projects/*/instances/*/tables/*}"
106
+ }
107
+ routing_parameters {
108
+ field : "app_profile_id"
109
+ }
110
+ };
83
111
option (google.api.method_signature ) = "table_name,row_key,mutations" ;
84
112
option (google.api.method_signature ) = "table_name,row_key,mutations,app_profile_id" ;
85
113
}
@@ -92,6 +120,15 @@ service Bigtable {
92
120
post : "/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows"
93
121
body : "*"
94
122
};
123
+ option (google.api.routing ) = {
124
+ routing_parameters {
125
+ field : "table_name"
126
+ path_template : "{table_name=projects/*/instances/*/tables/*}"
127
+ }
128
+ routing_parameters {
129
+ field : "app_profile_id"
130
+ }
131
+ };
95
132
option (google.api.method_signature ) = "table_name,entries" ;
96
133
option (google.api.method_signature ) = "table_name,entries,app_profile_id" ;
97
134
}
@@ -102,6 +139,15 @@ service Bigtable {
102
139
post : "/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow"
103
140
body : "*"
104
141
};
142
+ option (google.api.routing ) = {
143
+ routing_parameters {
144
+ field : "table_name"
145
+ path_template : "{table_name=projects/*/instances/*/tables/*}"
146
+ }
147
+ routing_parameters {
148
+ field : "app_profile_id"
149
+ }
150
+ };
105
151
option (google.api.method_signature ) = "table_name,row_key,predicate_filter,true_mutations,false_mutations" ;
106
152
option (google.api.method_signature ) = "table_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id" ;
107
153
}
@@ -116,6 +162,15 @@ service Bigtable {
116
162
post : "/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow"
117
163
body : "*"
118
164
};
165
+ option (google.api.routing ) = {
166
+ routing_parameters {
167
+ field : "table_name"
168
+ path_template : "{table_name=projects/*/instances/*/tables/*}"
169
+ }
170
+ routing_parameters {
171
+ field : "app_profile_id"
172
+ }
173
+ };
119
174
option (google.api.method_signature ) = "table_name,row_key,rules" ;
120
175
option (google.api.method_signature ) = "table_name,row_key,rules,app_profile_id" ;
121
176
}
@@ -137,14 +192,15 @@ message ReadRowsRequest {
137
192
// "default" application profile will be used.
138
193
string app_profile_id = 5 ;
139
194
140
- // The row keys and/or ranges to read. If not specified, reads from all rows.
195
+ // The row keys and/or ranges to read sequentially. If not specified, reads
196
+ // from all rows.
141
197
RowSet rows = 2 ;
142
198
143
199
// The filter to apply to the contents of the specified row(s). If unset,
144
200
// reads the entirety of each row.
145
201
RowFilter filter = 3 ;
146
202
147
- // The read will terminate after committing to N rows' worth of results. The
203
+ // The read will stop after committing to N rows' worth of results. The
148
204
// default (zero) is to return all results.
149
205
int64 rows_limit = 4 ;
150
206
}
0 commit comments