Skip to content

Commit bfa964b

Browse files
yoshi-automationtseaver
authored andcommitted
Copy lintified proto files (via synth). (googleapis#7446)
1 parent 6ba0aff commit bfa964b

4 files changed

Lines changed: 48 additions & 41 deletions

File tree

datastore/google/cloud/datastore_v1/proto/datastore.proto

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ option java_outer_classname = "DatastoreProto";
2727
option java_package = "com.google.datastore.v1";
2828
option 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].
154155
message 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].
163165
message 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].
172175
message 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].
194196
message 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].
250254
message 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].
260265
message 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].
267273
message 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.
285290
message 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.
374381
message 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.

datastore/google/cloud/datastore_v1/proto/entity.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ option java_outer_classname = "EntityProto";
2828
option java_package = "com.google.datastore.v1";
2929
option php_namespace = "Google\\Cloud\\Datastore\\V1";
3030

31-
3231
// A partition ID identifies a grouping of entities. The grouping is always
3332
// by project and namespace, however the namespace ID may be empty.
3433
//
@@ -47,7 +46,8 @@ option php_namespace = "Google\\Cloud\\Datastore\\V1";
4746
//
4847
// Foreign partition IDs (in which the project ID does
4948
// not match the context project ID ) are discouraged.
50-
// Reads and writes of foreign partition IDs may fail if the project is not in an active state.
49+
// Reads and writes of foreign partition IDs may fail if the project is not in
50+
// an active state.
5151
message PartitionId {
5252
// The ID of the project to which the entities belong.
5353
string project_id = 2;
@@ -145,8 +145,8 @@ message Value {
145145
Key key_value = 5;
146146

147147
// A UTF-8 encoded string value.
148-
// When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
149-
// Otherwise, may be set to at least 1,000,000 bytes.
148+
// When `exclude_from_indexes` is false (it is indexed) , may have at most
149+
// 1500 bytes. Otherwise, may be set to at least 1,000,000 bytes.
150150
string string_value = 17;
151151

152152
// A blob value.

datastore/google/cloud/datastore_v1/proto/query.proto

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ option java_outer_classname = "QueryProto";
2828
option java_package = "com.google.datastore.v1";
2929
option php_namespace = "Google\\Cloud\\Datastore\\V1";
3030

31-
3231
// The result of fetching an entity from Datastore.
3332
message EntityResult {
3433
// Specifies what data the 'entity' field contains.
@@ -56,12 +55,12 @@ message EntityResult {
5655
// The version of the entity, a strictly positive number that monotonically
5756
// increases with changes to the entity.
5857
//
59-
// This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
60-
// results.
58+
// This field is set for
59+
// [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results.
6160
//
62-
// For [missing][google.datastore.v1.LookupResponse.missing] entities in `LookupResponse`, this
63-
// is the version of the snapshot that was used to look up the entity, and it
64-
// is always set except for eventually consistent reads.
61+
// For [missing][google.datastore.v1.LookupResponse.missing] entities in
62+
// `LookupResponse`, this is the version of the snapshot that was used to look
63+
// up the entity, and it is always set except for eventually consistent reads.
6564
int64 version = 4;
6665

6766
// A cursor that points to the position after the result entity.
@@ -91,12 +90,14 @@ message Query {
9190

9291
// A starting point for the query results. Query cursors are
9392
// returned in query result batches and
94-
// [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
93+
// [can only be used to continue the same
94+
// query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
9595
bytes start_cursor = 7;
9696

9797
// An ending point for the query results. Query cursors are
9898
// returned in query result batches and
99-
// [can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
99+
// [can only be used to limit the same
100+
// query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
100101
bytes end_cursor = 8;
101102

102103
// The number of results to skip. Applies before limit, but after all other
@@ -217,7 +218,8 @@ message PropertyFilter {
217218
Value value = 3;
218219
}
219220

220-
// A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
221+
// A [GQL
222+
// query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
221223
message GqlQuery {
222224
// A string of the format described
223225
// [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).

datastore/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-02-20T18:02:37.048112Z",
2+
"updateTime": "2019-02-26T13:14:40.008317Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.13",
8-
"dockerImage": "googleapis/artman@sha256:5fd9aee1d82a00cebf425c8fa431f5457539562f5867ad9c54370f0ec9a7ccaa"
7+
"version": "0.16.14",
8+
"dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "18ab81eec27942a942622d5a8d9c9e7a202e8c16",
16-
"internalRef": "234814197"
15+
"sha": "29f098cb03a9983cc9cb15993de5da64419046f2",
16+
"internalRef": "235621085"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)