Synchronize new proto changes.

This commit is contained in:
Google APIs 2017-08-09 14:03:03 -07:00
parent 4d66df3cd0
commit 8c51a7ebb5
7 changed files with 63 additions and 8 deletions

View File

@ -0,0 +1 @@

View File

@ -1,4 +1,4 @@
// Copyright 2016 Google Inc.
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -135,6 +135,9 @@ message RunQueryResponse {
message BeginTransactionRequest {
// The ID of the project against which to make the request.
string project_id = 8;
// Options for a new transaction.
TransactionOptions transaction_options = 10;
}
// The response for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
@ -316,3 +319,27 @@ message ReadOptions {
bytes transaction = 2;
}
}
// Options for beginning a new transaction.
message TransactionOptions {
// Options specific to read / write transactions.
message ReadWrite {
// The transaction identifier of the transaction being retried.
bytes previous_transaction = 1;
}
// Options specific to read-only transactions.
message ReadOnly {
}
// The `mode` of the transaction, indicating whether write operations are
// supported.
oneof mode {
// The transaction should allow both reads and writes.
ReadWrite read_write = 1;
// The transaction should only allow reads.
ReadOnly read_only = 2;
}
}

View File

@ -1,4 +1,4 @@
// Copyright 2016 Google Inc.
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View File

@ -1,4 +1,4 @@
// Copyright 2016 Google Inc.
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -273,7 +273,7 @@ message QueryResultBatch {
// cursor.
MORE_RESULTS_AFTER_CURSOR = 4;
// The query has been exhausted.
// The query is finished, and there are no more results.
NO_MORE_RESULTS = 3;
}

View File

@ -1,4 +1,4 @@
// Copyright 2016 Google Inc.
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -135,6 +135,9 @@ message RunQueryResponse {
message BeginTransactionRequest {
// The ID of the project against which to make the request.
string project_id = 8;
// Options for a new transaction.
TransactionOptions transaction_options = 10;
}
// The response for [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction].
@ -316,3 +319,27 @@ message ReadOptions {
bytes transaction = 2;
}
}
// Options for beginning a new transaction.
message TransactionOptions {
// Options specific to read / write transactions.
message ReadWrite {
// The transaction identifier of the transaction being retried.
bytes previous_transaction = 1;
}
// Options specific to read-only transactions.
message ReadOnly {
}
// The `mode` of the transaction, indicating whether write operations are
// supported.
oneof mode {
// The transaction should allow both reads and writes.
ReadWrite read_write = 1;
// The transaction should only allow reads.
ReadOnly read_only = 2;
}
}

View File

@ -1,4 +1,4 @@
// Copyright 2016 Google Inc.
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View File

@ -1,4 +1,4 @@
// Copyright 2016 Google Inc.
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -273,7 +273,7 @@ message QueryResultBatch {
// cursor.
MORE_RESULTS_AFTER_CURSOR = 4;
// The query has been exhausted.
// The query is finished, and there are no more results.
NO_MORE_RESULTS = 3;
}