@@ -116,6 +116,12 @@ message LookupRequest {
116116 // Required. The ID of the project against which to make the request.
117117 string project_id = 8 [(google.api.field_behavior ) = REQUIRED ];
118118
119+ // The ID of the database against which to make the request.
120+ //
121+ // '(default)' is not allowed; please use empty string '' to refer the default
122+ // database.
123+ string database_id = 9 ;
124+
119125 // The options for this lookup request.
120126 ReadOptions read_options = 1 ;
121127
@@ -149,6 +155,12 @@ message RunQueryRequest {
149155 // Required. The ID of the project against which to make the request.
150156 string project_id = 8 [(google.api.field_behavior ) = REQUIRED ];
151157
158+ // The ID of the database against which to make the request.
159+ //
160+ // '(default)' is not allowed; please use empty string '' to refer the default
161+ // database.
162+ string database_id = 9 ;
163+
152164 // Entities are partitioned into subsets, identified by a partition ID.
153165 // Queries are scoped to a single partition.
154166 // This partition ID is normalized with the standard default context
@@ -163,7 +175,7 @@ message RunQueryRequest {
163175 // The query to run.
164176 Query query = 3 ;
165177
166- // The GQL query to run.
178+ // The GQL query to run. This query must be a non-aggregation query.
167179 GqlQuery gql_query = 7 ;
168180 }
169181}
@@ -182,6 +194,12 @@ message BeginTransactionRequest {
182194 // Required. The ID of the project against which to make the request.
183195 string project_id = 8 [(google.api.field_behavior ) = REQUIRED ];
184196
197+ // The ID of the database against which to make the request.
198+ //
199+ // '(default)' is not allowed; please use empty string '' to refer the default
200+ // database.
201+ string database_id = 9 ;
202+
185203 // Options for a new transaction.
186204 TransactionOptions transaction_options = 10 ;
187205}
@@ -197,6 +215,12 @@ message RollbackRequest {
197215 // Required. The ID of the project against which to make the request.
198216 string project_id = 8 [(google.api.field_behavior ) = REQUIRED ];
199217
218+ // The ID of the database against which to make the request.
219+ //
220+ // '(default)' is not allowed; please use empty string '' to refer the default
221+ // database.
222+ string database_id = 9 ;
223+
200224 // Required. The transaction identifier, returned by a call to
201225 // [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
202226 bytes transaction = 1 [(google.api.field_behavior ) = REQUIRED ];
@@ -227,6 +251,12 @@ message CommitRequest {
227251 // Required. The ID of the project against which to make the request.
228252 string project_id = 8 [(google.api.field_behavior ) = REQUIRED ];
229253
254+ // The ID of the database against which to make the request.
255+ //
256+ // '(default)' is not allowed; please use empty string '' to refer the default
257+ // database.
258+ string database_id = 9 ;
259+
230260 // The type of commit to perform. Defaults to `TRANSACTIONAL`.
231261 Mode mode = 5 ;
232262
@@ -273,6 +303,12 @@ message AllocateIdsRequest {
273303 // Required. The ID of the project against which to make the request.
274304 string project_id = 8 [(google.api.field_behavior ) = REQUIRED ];
275305
306+ // The ID of the database against which to make the request.
307+ //
308+ // '(default)' is not allowed; please use empty string '' to refer the default
309+ // database.
310+ string database_id = 9 ;
311+
276312 // Required. A list of keys with incomplete key paths for which to allocate IDs.
277313 // No key may be reserved/read-only.
278314 repeated Key keys = 1 [(google.api.field_behavior ) = REQUIRED ];
@@ -290,7 +326,10 @@ message ReserveIdsRequest {
290326 // Required. The ID of the project against which to make the request.
291327 string project_id = 8 [(google.api.field_behavior ) = REQUIRED ];
292328
293- // If not empty, the ID of the database against which to make the request.
329+ // The ID of the database against which to make the request.
330+ //
331+ // '(default)' is not allowed; please use empty string '' to refer the default
332+ // database.
294333 string database_id = 9 ;
295334
296335 // Required. A list of keys with complete key paths whose numeric IDs should not be
0 commit comments