Skip to content

Commit

Permalink
chore(gitignore): only ignore folders in the top level (#1021)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 507603203

Source-Link: https://togithub.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9

BEGIN_NESTED_COMMIT
chore: update .gitignore to always include protos folder
Use gapic-generator-typescript v3.0.0.

PiperOrigin-RevId: 507004755

Source-Link: https://togithub.com/googleapis/googleapis/commit/d784f3c1043616fc0646e9ce7afa1b9161cc02de

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/5e64ba8615f65fdedb1fcd6ac792e5ea621027e4
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWU2NGJhODYxNWY2NWZkZWRiMWZjZDZhYzc5MmU1ZWE2MjEwMjdlNCJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: new transaction options for datastoreV1
PiperOrigin-RevId: 501960571

Source-Link: https://togithub.com/googleapis/googleapis/commit/d4599ad2c2374feb1b508096cbd89e6e3079eb24

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/02ff42cf030965b9006243c697e761fdcabb8ca1
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDJmZjQyY2YwMzA5NjViOTAwNjI0M2M2OTdlNzYxZmRjYWJiOGNhMSJ9
END_NESTED_COMMITBEGIN_NESTED_COMMITfeat: Added SuggestConversationSummary RPC
docs: updated go library package

PiperOrigin-RevId: 501862436

Source-Link: https://togithub.com/googleapis/googleapis/commit/155e0f4123ba003055587768944a47498c48926b

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/3051f617a991c274c88d27064e803095e4ef9d39
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzA1MWY2MTdhOTkxYzI3NGM4OGQyNzA2NGU4MDMwOTVlNGVmOWQzOSJ9
END_NESTED_COMMITBEGIN_NESTED_COMMITfeat: add dynamic routing header annotation to DatastoreV1
PiperOrigin-RevId: 501591105

Source-Link: https://togithub.com/googleapis/googleapis/commit/c4ebfff4f512a9cb0fc09eb6d82a2987a3524ae0

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/e2d6011df35c3b7b54ff39098be779c105408b1b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTJkNjAxMWRmMzVjM2I3YjU0ZmYzOTA5OGJlNzc5YzEwNTQwOGIxYiJ9
END_NESTED_COMMITBEGIN_NESTED_COMMITfeat: Added Snooze API support
PiperOrigin-RevId: 500543032

Source-Link: https://togithub.com/googleapis/googleapis/commit/d4864bf1425882fddb80ffb627c385ec22d1fd00

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/245031557f8852e8e089a6511f63fc226703fef9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ1MDMxNTU3Zjg4NTJlOGUwODlhNjUxMWY2M2ZjMjI2NzAzZmVmOSJ9
END_NESTED_COMMITBEGIN_NESTED_COMMITchore: Enable requesting numeric enums in "transport=rest" responses for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Ruby), even if they do not yet turn on REST transport
chore: disallow "transport=rest" for services where numeric enums are not confirmed to be supported (except in PHP and Java)
PiperOrigin-RevId: 493113566

Source-Link: https://togithub.com/googleapis/googleapis/commit/758f0d1217d9c7fe398aa5efb1057ce4b6409e55

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/78bd8f05e1276363eb14eae70e91fe4bc20703ab
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzhiZDhmMDVlMTI3NjM2M2ViMTRlYWU3MGU5MWZlNGJjMjA3MDNhYiJ9
END_NESTED_COMMIT
  • Loading branch information
gcf-owl-bot[bot] committed Feb 9, 2023
1 parent a61258c commit b023ab4
Show file tree
Hide file tree
Showing 13 changed files with 1,444 additions and 264 deletions.
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
**/*.log
**/node_modules
.coverage
coverage
.nyc_output
docs/
out/
build/
/.coverage
/coverage
/.nyc_output
/docs/
/out/
/build/
system-test/secrets.js
system-test/*key.json
*.lock
Expand Down
4 changes: 2 additions & 2 deletions .jsdoc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Google LLC
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,7 +40,7 @@ module.exports = {
includePattern: '\\.js$'
},
templates: {
copyright: 'Copyright 2022 Google LLC',
copyright: 'Copyright 2023 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/datastore',
Expand Down
133 changes: 107 additions & 26 deletions protos/google/datastore/v1/datastore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package google.datastore.v1;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/routing.proto";
import "google/datastore/v1/aggregation_result.proto";
import "google/datastore/v1/entity.proto";
import "google/datastore/v1/query.proto";
Expand Down Expand Up @@ -51,6 +52,10 @@ service Datastore {
post: "/v1/projects/{project_id}:lookup"
body: "*"
};
option (google.api.routing) = {
routing_parameters { field: "project_id" }
routing_parameters { field: "database_id" }
};
option (google.api.method_signature) = "project_id,read_options,keys";
}

Expand All @@ -60,22 +65,36 @@ service Datastore {
post: "/v1/projects/{project_id}:runQuery"
body: "*"
};
option (google.api.routing) = {
routing_parameters { field: "project_id" }
routing_parameters { field: "database_id" }
};
}

// Runs an aggregation query.
rpc RunAggregationQuery(RunAggregationQueryRequest) returns (RunAggregationQueryResponse) {
rpc RunAggregationQuery(RunAggregationQueryRequest)
returns (RunAggregationQueryResponse) {
option (google.api.http) = {
post: "/v1/projects/{project_id}:runAggregationQuery"
body: "*"
};
option (google.api.routing) = {
routing_parameters { field: "project_id" }
routing_parameters { field: "database_id" }
};
}

// Begins a new transaction.
rpc BeginTransaction(BeginTransactionRequest) returns (BeginTransactionResponse) {
rpc BeginTransaction(BeginTransactionRequest)
returns (BeginTransactionResponse) {
option (google.api.http) = {
post: "/v1/projects/{project_id}:beginTransaction"
body: "*"
};
option (google.api.routing) = {
routing_parameters { field: "project_id" }
routing_parameters { field: "database_id" }
};
option (google.api.method_signature) = "project_id";
}

Expand All @@ -86,7 +105,12 @@ service Datastore {
post: "/v1/projects/{project_id}:commit"
body: "*"
};
option (google.api.method_signature) = "project_id,mode,transaction,mutations";
option (google.api.routing) = {
routing_parameters { field: "project_id" }
routing_parameters { field: "database_id" }
};
option (google.api.method_signature) =
"project_id,mode,transaction,mutations";
option (google.api.method_signature) = "project_id,mode,mutations";
}

Expand All @@ -96,6 +120,10 @@ service Datastore {
post: "/v1/projects/{project_id}:rollback"
body: "*"
};
option (google.api.routing) = {
routing_parameters { field: "project_id" }
routing_parameters { field: "database_id" }
};
option (google.api.method_signature) = "project_id,transaction";
}

Expand All @@ -106,6 +134,10 @@ service Datastore {
post: "/v1/projects/{project_id}:allocateIds"
body: "*"
};
option (google.api.routing) = {
routing_parameters { field: "project_id" }
routing_parameters { field: "database_id" }
};
option (google.api.method_signature) = "project_id,keys";
}

Expand All @@ -116,6 +148,10 @@ service Datastore {
post: "/v1/projects/{project_id}:reserveIds"
body: "*"
};
option (google.api.routing) = {
routing_parameters { field: "project_id" }
routing_parameters { field: "database_id" }
};
option (google.api.method_signature) = "project_id,keys";
}
}
Expand Down Expand Up @@ -155,6 +191,13 @@ message LookupResponse {
// order of the keys in the input.
repeated Key deferred = 3;

// The identifier of the transaction that was started as part of this Lookup
// request.
//
// Set only when [ReadOptions.begin_transaction][] was set in
// [LookupRequest.read_options][google.datastore.v1.LookupRequest.read_options].
bytes transaction = 5;

// The time at which these entities were read or found missing.
google.protobuf.Timestamp read_time = 7;
}
Expand Down Expand Up @@ -189,16 +232,25 @@ message RunQueryRequest {
}
}

// The response for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
// The response for
// [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
message RunQueryResponse {
// A batch of query results (always present).
QueryResultBatch batch = 1;

// The parsed form of the `GqlQuery` from the request, if it was set.
Query query = 2;

// The identifier of the transaction that was started as part of this
// RunQuery request.
//
// Set only when [ReadOptions.begin_transaction][] was set in
// [RunQueryRequest.read_options][google.datastore.v1.RunQueryRequest.read_options].
bytes transaction = 5;
}

// The request for [Datastore.RunAggregationQuery][google.datastore.v1.Datastore.RunAggregationQuery].
// The request for
// [Datastore.RunAggregationQuery][google.datastore.v1.Datastore.RunAggregationQuery].
message RunAggregationQueryRequest {
// Required. The ID of the project against which to make the request.
string project_id = 8 [(google.api.field_behavior) = REQUIRED];
Expand Down Expand Up @@ -228,16 +280,25 @@ message RunAggregationQueryRequest {
}
}

// The response for [Datastore.RunAggregationQuery][google.datastore.v1.Datastore.RunAggregationQuery].
// The response for
// [Datastore.RunAggregationQuery][google.datastore.v1.Datastore.RunAggregationQuery].
message RunAggregationQueryResponse {
// A batch of aggregation results. Always present.
AggregationResultBatch batch = 1;

// The parsed form of the `GqlQuery` from the request, if it was set.
AggregationQuery query = 2;

// The identifier of the transaction that was started as part of this
// RunAggregationQuery request.
//
// Set only when [ReadOptions.begin_transaction][] was set in
// [RunAggregationQueryRequest.read_options][google.datastore.v1.RunAggregationQueryRequest.read_options].
bytes transaction = 5;
}

// The request for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
// The request for
// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
message BeginTransactionRequest {
// Required. The ID of the project against which to make the request.
string project_id = 8 [(google.api.field_behavior) = REQUIRED];
Expand All @@ -252,7 +313,8 @@ message BeginTransactionRequest {
TransactionOptions transaction_options = 10;
}

// The response for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
// The response for
// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
message BeginTransactionResponse {
// The transaction identifier (always present).
bytes transaction = 1;
Expand All @@ -274,11 +336,10 @@ message RollbackRequest {
bytes transaction = 1 [(google.api.field_behavior) = REQUIRED];
}

// The response for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback].
// (an empty message).
message RollbackResponse {

}
// The response for
// [Datastore.Rollback][google.datastore.v1.Datastore.Rollback]. (an empty
// message).
message RollbackResponse {}

// The request for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
message CommitRequest {
Expand Down Expand Up @@ -314,6 +375,13 @@ message CommitRequest {
// transaction identifier is returned by a call to
// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
bytes transaction = 1;

// Options for beginning a new transaction for this request.
// The transaction is committed when the request completes. If specified,
// [TransactionOptions.mode][google.datastore.v1.TransactionOptions.mode]
// must be
// [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
TransactionOptions single_use_transaction = 10;
}

// The mutations to perform.
Expand Down Expand Up @@ -346,7 +414,8 @@ message CommitResponse {
google.protobuf.Timestamp commit_time = 8;
}

// The request for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
// The request for
// [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
message AllocateIdsRequest {
// Required. The ID of the project against which to make the request.
string project_id = 8 [(google.api.field_behavior) = REQUIRED];
Expand All @@ -357,19 +426,21 @@ message AllocateIdsRequest {
// database.
string database_id = 9;

// Required. A list of keys with incomplete key paths for which to allocate IDs.
// No key may be reserved/read-only.
// Required. A list of keys with incomplete key paths for which to allocate
// IDs. No key may be reserved/read-only.
repeated Key keys = 1 [(google.api.field_behavior) = REQUIRED];
}

// The response for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
// The response for
// [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
message AllocateIdsResponse {
// The keys specified in the request (in the same order), each with
// its key path completed with a newly allocated ID.
repeated Key keys = 1;
}

// The request for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
// The request for
// [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
message ReserveIdsRequest {
// Required. The ID of the project against which to make the request.
string project_id = 8 [(google.api.field_behavior) = REQUIRED];
Expand All @@ -380,15 +451,14 @@ message ReserveIdsRequest {
// database.
string database_id = 9;

// Required. A list of keys with complete key paths whose numeric IDs should not be
// auto-allocated.
// Required. A list of keys with complete key paths whose numeric IDs should
// not be auto-allocated.
repeated Key keys = 1 [(google.api.field_behavior) = REQUIRED];
}

// The response for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
message ReserveIdsResponse {

}
// The response for
// [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds].
message ReserveIdsResponse {}

// A mutation to apply to an entity.
message Mutation {
Expand Down Expand Up @@ -491,6 +561,15 @@ message ReadOptions {
// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
bytes transaction = 2;

// Options for beginning a new transaction for this request.
//
// The new transaction identifier will be returned in the corresponding
// response as either
// [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction]
// or
// [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
TransactionOptions new_transaction = 3;

// Reads entities as they were at the given time. This may not be older
// than 270 seconds. This value is only supported for Cloud Firestore in
// Datastore mode.
Expand All @@ -501,8 +580,10 @@ message ReadOptions {
// Options for beginning a new transaction.
//
// Transactions can be created explicitly with calls to
// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction] or implicitly by setting
// [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] in read requests.
// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]
// or implicitly by setting
// [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction]
// in read requests.
message TransactionOptions {
// Options specific to read / write transactions.
message ReadWrite {
Expand Down

0 comments on commit b023ab4

Please sign in to comment.