@@ -27,7 +27,6 @@ option java_outer_classname = "DatastoreProto";
2727option java_package = "com.google.datastore.v1" ;
2828option php_namespace = "Google\\Cloud\\Datastore\\V1" ;
2929
30-
3130// Each RPC normalizes the partition IDs of the keys in its input entities,
3231// and always returns entities with keys with normalized partition IDs.
3332// This applies to all keys and entities, including those in values, except keys
@@ -53,7 +52,8 @@ service Datastore {
5352 }
5453
5554 // Begins a new transaction.
56- rpc BeginTransaction (BeginTransactionRequest ) returns (BeginTransactionResponse ) {
55+ rpc BeginTransaction (BeginTransactionRequest )
56+ returns (BeginTransactionResponse ) {
5757 option (google.api.http ) = {
5858 post : "/v1/projects/{project_id}:beginTransaction"
5959 body : "*"
@@ -150,7 +150,8 @@ message RunQueryRequest {
150150 }
151151}
152152
153- // The response for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
153+ // The response for
154+ // [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
154155message RunQueryResponse {
155156 // A batch of query results (always present).
156157 QueryResultBatch batch = 1 ;
@@ -159,7 +160,8 @@ message RunQueryResponse {
159160 Query query = 2 ;
160161}
161162
162- // The request for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
163+ // The request for
164+ // [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
163165message BeginTransactionRequest {
164166 // The ID of the project against which to make the request.
165167 string project_id = 8 ;
@@ -168,7 +170,8 @@ message BeginTransactionRequest {
168170 TransactionOptions transaction_options = 10 ;
169171}
170172
171- // The response for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
173+ // The response for
174+ // [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
172175message BeginTransactionResponse {
173176 // The transaction identifier (always present).
174177 bytes transaction = 1 ;
@@ -184,11 +187,10 @@ message RollbackRequest {
184187 bytes transaction = 1 ;
185188}
186189
187- // The response for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback].
188- // (an empty message).
189- message RollbackResponse {
190-
191- }
190+ // The response for
191+ // [Datastore.Rollback][google.datastore.v1.Datastore.Rollback]. (an empty
192+ // message).
193+ message RollbackResponse {}
192194
193195// The request for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
194196message CommitRequest {
@@ -198,7 +200,8 @@ message CommitRequest {
198200 MODE_UNSPECIFIED = 0 ;
199201
200202 // Transactional: The mutations are either all applied, or none are applied.
201- // Learn about transactions [here](https://cloud.google.com/datastore/docs/concepts/transactions).
203+ // Learn about transactions
204+ // [here](https://cloud.google.com/datastore/docs/concepts/transactions).
202205 TRANSACTIONAL = 1 ;
203206
204207 // Non-transactional: The mutations may not apply as all or none.
@@ -246,7 +249,8 @@ message CommitResponse {
246249 int32 index_updates = 4 ;
247250}
248251
249- // The request for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
252+ // The request for
253+ // [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
250254message AllocateIdsRequest {
251255 // The ID of the project against which to make the request.
252256 string project_id = 8 ;
@@ -256,14 +260,16 @@ message AllocateIdsRequest {
256260 repeated Key keys = 1 ;
257261}
258262
259- // The response for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
263+ // The response for
264+ // [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
260265message AllocateIdsResponse {
261266 // The keys specified in the request (in the same order), each with
262267 // its key path completed with a newly allocated ID.
263268 repeated Key keys = 1 ;
264269}
265270
266- // The request for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
271+ // The request for
272+ // [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
267273message ReserveIdsRequest {
268274 // The ID of the project against which to make the request.
269275 string project_id = 8 ;
@@ -276,10 +282,9 @@ message ReserveIdsRequest {
276282 repeated Key keys = 1 ;
277283}
278284
279- // The response for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
280- message ReserveIdsResponse {
281-
282- }
285+ // The response for
286+ // [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
287+ message ReserveIdsResponse {}
283288
284289// A mutation to apply to an entity.
285290message Mutation {
@@ -369,8 +374,10 @@ message ReadOptions {
369374// Options for beginning a new transaction.
370375//
371376// Transactions can be created explicitly with calls to
372- // [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction] or implicitly by setting
373- // [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] in read requests.
377+ // [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]
378+ // or implicitly by setting
379+ // [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction]
380+ // in read requests.
374381message TransactionOptions {
375382 // Options specific to read / write transactions.
376383 message ReadWrite {
@@ -379,9 +386,7 @@ message TransactionOptions {
379386 }
380387
381388 // Options specific to read-only transactions.
382- message ReadOnly {
383-
384- }
389+ message ReadOnly {}
385390
386391 // The `mode` of the transaction, indicating whether write operations are
387392 // supported.
0 commit comments