This second example shows how to get and update a Datastore entity if it exists. For the * complete source code see + * href="https://github.com/googleapis/google-cloud-java/blob/4f9e98b21264028901878b8a11204868eca858ce/google-cloud-examples/src/main/java/com/google/cloud/examples/datastore/snippets/UpdateEntity.java"> * UpdateEntity.java. * *
{@code
From 8abd90f2b00a80224d7585847ff1b1cdee10bec8 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Fri, 17 Mar 2023 10:13:54 -0400
Subject: [PATCH 19/32] chore: update readme links (#1023)
Source-Link: https://github.com/googleapis/synthtool/commit/3c19c3314ccdff81c1d02b7665cb48de46ae5928
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:5df8b62e8da534f7604daef347698f6701e34b3f61713712a3384ac88fc32088
Co-authored-by: Owl Bot
---
.github/.OwlBot.lock.yaml | 2 +-
README.md | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index a5361a30a..0c1ba9694 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,4 +13,4 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:e62f3ea524b11c1cd6ff7f80362736d86c0056631346b5b106a421686fce2726
+ digest: sha256:5df8b62e8da534f7604daef347698f6701e34b3f61713712a3384ac88fc32088
diff --git a/README.md b/README.md
index dbd8a5830..147dde503 100644
--- a/README.md
+++ b/README.md
@@ -80,7 +80,7 @@ The client application making API calls must be granted [authorization scopes][a
You will need a [Google Cloud Platform Console][developer-console] project with the Cloud Datastore [API enabled][enable-api].
[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by
-[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line:
+[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line:
`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
### Installation and setup
@@ -367,14 +367,14 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-datastore/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastore.svg
-[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-datastore&core=gav
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastore/2.14.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
[developer-console]: https://console.developers.google.com/
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
-[cloud-sdk]: https://cloud.google.com/sdk/
+[cloud-cli]: https://cloud.google.com/cli
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
[contributing]: https://github.com/googleapis/java-datastore/blob/main/CONTRIBUTING.md
[code-of-conduct]: https://github.com/googleapis/java-datastore/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
From 4a57e959dbac14d395ff202fd479f776c84b25e5 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Mon, 20 Mar 2023 14:28:53 +0000
Subject: [PATCH 20/32] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.5.0 (#1024)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 20ada4048..b4196d582 100644
--- a/pom.xml
+++ b/pom.xml
@@ -151,7 +151,7 @@
com.google.cloud
google-cloud-shared-dependencies
- 3.4.0
+ 3.5.0
pom
import
From 1c1268a0ef63b926ab5635a3b7915f4d8279f98c Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Mon, 20 Mar 2023 14:38:19 +0000
Subject: [PATCH 21/32] chore: Adding release-please annotations to readme
files (#1781) (#1025)
* chore: Adding release-please annotations to readme files
Source-Link: https://togithub.com/googleapis/synthtool/commit/327d46fbfc2c02ff9237c3107513bfa682a94da0
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:bf5639d265d70f6137d57d42ae781a6f4e26d4085ff4e018e71350480f9b3996
---
.github/.OwlBot.lock.yaml | 2 +-
README.md | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 0c1ba9694..91bb69e63 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,4 +13,4 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:5df8b62e8da534f7604daef347698f6701e34b3f61713712a3384ac88fc32088
+ digest: sha256:bf5639d265d70f6137d57d42ae781a6f4e26d4085ff4e018e71350480f9b3996
diff --git a/README.md b/README.md
index 147dde503..681f95bea 100644
--- a/README.md
+++ b/README.md
@@ -64,6 +64,7 @@ If you are using SBT, add this to your dependencies:
```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.14.0"
```
+
## Authentication
From 091d1976c24c1bec7a7974bcffb246d2a16d790c Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Mon, 20 Mar 2023 14:26:57 -0400
Subject: [PATCH 22/32] chore(deps): Update gapic-generator-java to 2.15.3
(#1019)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): Update gapic-generator-java to 2.15.3
PiperOrigin-RevId: 516900470
Source-Link: https://github.com/googleapis/googleapis/commit/42ba7e6302f5e0f10ac2b9b17f5b6d568ecae02d
Source-Link: https://github.com/googleapis/googleapis-gen/commit/21abfad42a1f2edae64130bbf897283221cd66d7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjFhYmZhZDQyYTFmMmVkYWU2NDEzMGJiZjg5NzI4MzIyMWNkNjZkNyJ9
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.../v1/stub/HttpJsonDatastoreAdminStub.java | 23 ++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java
index 131c12763..fda56e1e8 100644
--- a/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java
+++ b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/HttpJsonDatastoreAdminStub.java
@@ -18,6 +18,7 @@
import static com.google.cloud.datastore.admin.v1.DatastoreAdminClient.ListIndexesPagedResponse;
+import com.google.api.HttpRule;
import com.google.api.core.BetaApi;
import com.google.api.core.InternalApi;
import com.google.api.gax.core.BackgroundResource;
@@ -33,6 +34,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.common.collect.ImmutableMap;
import com.google.datastore.admin.v1.CreateIndexRequest;
import com.google.datastore.admin.v1.DeleteIndexRequest;
import com.google.datastore.admin.v1.ExportEntitiesMetadata;
@@ -365,7 +367,26 @@ protected HttpJsonDatastoreAdminStub(
throws IOException {
this.callableFactory = callableFactory;
this.httpJsonOperationsStub =
- HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry);
+ HttpJsonOperationsStub.create(
+ clientContext,
+ callableFactory,
+ typeRegistry,
+ ImmutableMap.builder()
+ .put(
+ "google.longrunning.Operations.CancelOperation",
+ HttpRule.newBuilder()
+ .setPost("/v1/{name=projects/*/operations/*}:cancel")
+ .build())
+ .put(
+ "google.longrunning.Operations.DeleteOperation",
+ HttpRule.newBuilder().setDelete("/v1/{name=projects/*/operations/*}").build())
+ .put(
+ "google.longrunning.Operations.GetOperation",
+ HttpRule.newBuilder().setGet("/v1/{name=projects/*/operations/*}").build())
+ .put(
+ "google.longrunning.Operations.ListOperations",
+ HttpRule.newBuilder().setGet("/v1/{name=projects/*}/operations").build())
+ .build());
HttpJsonCallSettings exportEntitiesTransportSettings =
HttpJsonCallSettings.newBuilder()
From 4e84334184ee6a47c186324161d25dc283d2a373 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 20 Mar 2023 19:02:17 +0000
Subject: [PATCH 23/32] chore(main): release 2.14.1 (#1017)
:robot: I have created a release *beep* *boop*
---
## [2.14.1](https://togithub.com/googleapis/java-datastore/compare/v2.14.0...v2.14.1) (2023-03-20)
### Documentation
* Fix broken link to UpdateEntity snippet ([#1022](https://togithub.com/googleapis/java-datastore/issues/1022)) ([6880604](https://togithub.com/googleapis/java-datastore/commit/6880604b6b88caf8e03449349d0815d388cfb1a3)), closes [#1010](https://togithub.com/googleapis/java-datastore/issues/1010)
* Fix broken README links ([#1011](https://togithub.com/googleapis/java-datastore/issues/1011)) ([276174e](https://togithub.com/googleapis/java-datastore/commit/276174e26ff92be2bdeb24f733278d2042519cfd))
### Dependencies
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.5.0 ([#1024](https://togithub.com/googleapis/java-datastore/issues/1024)) ([4a57e95](https://togithub.com/googleapis/java-datastore/commit/4a57e959dbac14d395ff202fd479f776c84b25e5))
* Upgrade gapic-generator-java to 2.15.3 ([091d197](https://togithub.com/googleapis/java-datastore/commit/091d1976c24c1bec7a7974bcffb246d2a16d790c))
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 14 ++++++++++++++
datastore-v1-proto-client/pom.xml | 4 ++--
google-cloud-datastore-bom/pom.xml | 10 +++++-----
google-cloud-datastore/pom.xml | 4 ++--
grpc-google-cloud-datastore-admin-v1/pom.xml | 4 ++--
pom.xml | 12 ++++++------
proto-google-cloud-datastore-admin-v1/pom.xml | 4 ++--
proto-google-cloud-datastore-v1/pom.xml | 4 ++--
versions.txt | 12 ++++++------
9 files changed, 41 insertions(+), 27 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8c27d2c2c..6c7f24cf7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,19 @@
# Changelog
+## [2.14.1](https://github.com/googleapis/java-datastore/compare/v2.14.0...v2.14.1) (2023-03-20)
+
+
+### Documentation
+
+* Fix broken link to UpdateEntity snippet ([#1022](https://github.com/googleapis/java-datastore/issues/1022)) ([6880604](https://github.com/googleapis/java-datastore/commit/6880604b6b88caf8e03449349d0815d388cfb1a3)), closes [#1010](https://github.com/googleapis/java-datastore/issues/1010)
+* Fix broken README links ([#1011](https://github.com/googleapis/java-datastore/issues/1011)) ([276174e](https://github.com/googleapis/java-datastore/commit/276174e26ff92be2bdeb24f733278d2042519cfd))
+
+
+### Dependencies
+
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.5.0 ([#1024](https://github.com/googleapis/java-datastore/issues/1024)) ([4a57e95](https://github.com/googleapis/java-datastore/commit/4a57e959dbac14d395ff202fd479f776c84b25e5))
+* Upgrade gapic-generator-java to 2.15.3 ([091d197](https://github.com/googleapis/java-datastore/commit/091d1976c24c1bec7a7974bcffb246d2a16d790c))
+
## [2.14.0](https://github.com/googleapis/java-datastore/compare/v2.13.6...v2.14.0) (2023-03-08)
diff --git a/datastore-v1-proto-client/pom.xml b/datastore-v1-proto-client/pom.xml
index 6800c188a..043134488 100644
--- a/datastore-v1-proto-client/pom.xml
+++ b/datastore-v1-proto-client/pom.xml
@@ -19,12 +19,12 @@
4.0.0
com.google.cloud.datastore
datastore-v1-proto-client
- 2.14.1-SNAPSHOT
+ 2.14.1
com.google.cloud
google-cloud-datastore-parent
- 2.14.1-SNAPSHOT
+ 2.14.1
jar
diff --git a/google-cloud-datastore-bom/pom.xml b/google-cloud-datastore-bom/pom.xml
index b62a71667..4480914ee 100644
--- a/google-cloud-datastore-bom/pom.xml
+++ b/google-cloud-datastore-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-datastore-bom
- 2.14.1-SNAPSHOT
+ 2.14.1
pom
com.google.cloud
@@ -52,22 +52,22 @@
com.google.cloud
google-cloud-datastore
- 2.14.1-SNAPSHOT
+ 2.14.1
com.google.api.grpc
grpc-google-cloud-datastore-admin-v1
- 2.14.1-SNAPSHOT
+ 2.14.1
com.google.api.grpc
proto-google-cloud-datastore-v1
- 0.105.1-SNAPSHOT
+ 0.105.1
com.google.api.grpc
proto-google-cloud-datastore-admin-v1
- 2.14.1-SNAPSHOT
+ 2.14.1
- * Defines a aggregation that produces a single result.
+ * Defines an aggregation that produces a single result.
*
*
* Protobuf type {@code google.datastore.v1.AggregationQuery.Aggregation}
@@ -252,7 +252,7 @@ public interface CountOrBuilder
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -277,7 +277,7 @@ public interface CountOrBuilder
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -302,7 +302,7 @@ public interface CountOrBuilder
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -377,7 +377,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -405,7 +405,7 @@ public boolean hasUpTo() {
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -433,7 +433,7 @@ public com.google.protobuf.Int64Value getUpTo() {
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -825,7 +825,7 @@ public Builder mergeFrom(
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -852,7 +852,7 @@ public boolean hasUpTo() {
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -883,7 +883,7 @@ public com.google.protobuf.Int64Value getUpTo() {
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -918,7 +918,7 @@ public Builder setUpTo(com.google.protobuf.Int64Value value) {
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -950,7 +950,7 @@ public Builder setUpTo(com.google.protobuf.Int64Value.Builder builderForValue) {
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -988,7 +988,7 @@ public Builder mergeUpTo(com.google.protobuf.Int64Value value) {
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -1020,7 +1020,7 @@ public Builder clearUpTo() {
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -1047,7 +1047,7 @@ public com.google.protobuf.Int64Value.Builder getUpToBuilder() {
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -1076,7 +1076,7 @@ public com.google.protobuf.Int64ValueOrBuilder getUpToOrBuilder() {
* Optional. Optional constraint on the maximum number of entities to
* count.
* This provides a way to set an upper bound on the number of entities
- * to scan, limiting latency and cost.
+ * to scan, limiting latency, and cost.
* Unspecified is interpreted as no bound.
* If a zero value is provided, a count result of zero should always be
* expected.
@@ -1287,7 +1287,7 @@ public com.google.datastore.v1.AggregationQuery.Aggregation.CountOrBuilder getCo
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2),
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4)
+ * COUNT(*)
* OVER (
* ...
* );
@@ -1298,7 +1298,7 @@ public com.google.datastore.v1.AggregationQuery.Aggregation.CountOrBuilder getCo
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2) AS property_1,
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4) AS property_2
+ * COUNT(*) AS property_2
* OVER (
* ...
* );
@@ -1338,7 +1338,7 @@ public java.lang.String getAlias() {
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2),
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4)
+ * COUNT(*)
* OVER (
* ...
* );
@@ -1349,7 +1349,7 @@ public java.lang.String getAlias() {
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2) AS property_1,
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4) AS property_2
+ * COUNT(*) AS property_2
* OVER (
* ...
* );
@@ -1567,7 +1567,7 @@ protected Builder newBuilderForType(
*
*
*
- * Defines a aggregation that produces a single result.
+ * Defines an aggregation that produces a single result.
*
*
* Protobuf type {@code google.datastore.v1.AggregationQuery.Aggregation}
@@ -2021,7 +2021,7 @@ public com.google.datastore.v1.AggregationQuery.Aggregation.Count.Builder getCou
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2),
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4)
+ * COUNT(*)
* OVER (
* ...
* );
@@ -2032,7 +2032,7 @@ public com.google.datastore.v1.AggregationQuery.Aggregation.Count.Builder getCou
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2) AS property_1,
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4) AS property_2
+ * COUNT(*) AS property_2
* OVER (
* ...
* );
@@ -2071,7 +2071,7 @@ public java.lang.String getAlias() {
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2),
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4)
+ * COUNT(*)
* OVER (
* ...
* );
@@ -2082,7 +2082,7 @@ public java.lang.String getAlias() {
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2) AS property_1,
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4) AS property_2
+ * COUNT(*) AS property_2
* OVER (
* ...
* );
@@ -2121,7 +2121,7 @@ public com.google.protobuf.ByteString getAliasBytes() {
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2),
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4)
+ * COUNT(*)
* OVER (
* ...
* );
@@ -2132,7 +2132,7 @@ public com.google.protobuf.ByteString getAliasBytes() {
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2) AS property_1,
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4) AS property_2
+ * COUNT(*) AS property_2
* OVER (
* ...
* );
@@ -2170,7 +2170,7 @@ public Builder setAlias(java.lang.String value) {
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2),
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4)
+ * COUNT(*)
* OVER (
* ...
* );
@@ -2181,7 +2181,7 @@ public Builder setAlias(java.lang.String value) {
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2) AS property_1,
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4) AS property_2
+ * COUNT(*) AS property_2
* OVER (
* ...
* );
@@ -2215,7 +2215,7 @@ public Builder clearAlias() {
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2),
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4)
+ * COUNT(*)
* OVER (
* ...
* );
@@ -2226,7 +2226,7 @@ public Builder clearAlias() {
* COUNT_UP_TO(1) AS count_up_to_1,
* COUNT_UP_TO(2) AS property_1,
* COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT_UP_TO(4) AS property_2
+ * COUNT(*) AS property_2
* OVER (
* ...
* );
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Entity.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Entity.java
index 39432e877..d6f7c3c6a 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Entity.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Entity.java
@@ -173,8 +173,8 @@ public int getPropertiesCount() {
* The map's keys are property names.
* A property name matching regex `__.*__` is reserved.
* A reserved property name is forbidden in certain documented contexts.
- * The name must not contain more than 500 characters.
- * The name cannot be `""`.
+ * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
+ * be empty.
*
*
* map<string, .google.datastore.v1.Value> properties = 3;
@@ -200,8 +200,8 @@ public java.util.Mapmap<string, .google.datastore.v1.Value> properties = 3;
@@ -218,8 +218,8 @@ public java.util.Mapmap<string, .google.datastore.v1.Value> properties = 3;
@@ -244,8 +244,8 @@ public java.util.Mapmap<string, .google.datastore.v1.Value> properties = 3;
@@ -918,8 +918,8 @@ public int getPropertiesCount() {
* The map's keys are property names.
* A property name matching regex `__.*__` is reserved.
* A reserved property name is forbidden in certain documented contexts.
- * The name must not contain more than 500 characters.
- * The name cannot be `""`.
+ * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
+ * be empty.
*
*
* map<string, .google.datastore.v1.Value> properties = 3;
@@ -945,8 +945,8 @@ public java.util.Mapmap<string, .google.datastore.v1.Value> properties = 3;
@@ -963,8 +963,8 @@ public java.util.Mapmap<string, .google.datastore.v1.Value> properties = 3;
@@ -989,8 +989,8 @@ public java.util.Mapmap<string, .google.datastore.v1.Value> properties = 3;
@@ -1021,8 +1021,8 @@ public Builder clearProperties() {
* The map's keys are property names.
* A property name matching regex `__.*__` is reserved.
* A reserved property name is forbidden in certain documented contexts.
- * The name must not contain more than 500 characters.
- * The name cannot be `""`.
+ * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
+ * be empty.
*
*
* map<string, .google.datastore.v1.Value> properties = 3;
@@ -1048,8 +1048,8 @@ public java.util.Mapmap<string, .google.datastore.v1.Value> properties = 3;
@@ -1073,8 +1073,8 @@ public Builder putProperties(java.lang.String key, com.google.datastore.v1.Value
* The map's keys are property names.
* A property name matching regex `__.*__` is reserved.
* A reserved property name is forbidden in certain documented contexts.
- * The name must not contain more than 500 characters.
- * The name cannot be `""`.
+ * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
+ * be empty.
*
*
* map<string, .google.datastore.v1.Value> properties = 3;
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
index 19f935612..d36510825 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java
@@ -78,8 +78,8 @@ public interface EntityOrBuilder
* The map's keys are property names.
* A property name matching regex `__.*__` is reserved.
* A reserved property name is forbidden in certain documented contexts.
- * The name must not contain more than 500 characters.
- * The name cannot be `""`.
+ * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
+ * be empty.
*
*
* map<string, .google.datastore.v1.Value> properties = 3;
@@ -93,8 +93,8 @@ public interface EntityOrBuilder
* The map's keys are property names.
* A property name matching regex `__.*__` is reserved.
* A reserved property name is forbidden in certain documented contexts.
- * The name must not contain more than 500 characters.
- * The name cannot be `""`.
+ * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
+ * be empty.
*
*
* map<string, .google.datastore.v1.Value> properties = 3;
@@ -111,8 +111,8 @@ public interface EntityOrBuilder
* The map's keys are property names.
* A property name matching regex `__.*__` is reserved.
* A reserved property name is forbidden in certain documented contexts.
- * The name must not contain more than 500 characters.
- * The name cannot be `""`.
+ * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
+ * be empty.
*
*
* map<string, .google.datastore.v1.Value> properties = 3;
@@ -126,8 +126,8 @@ public interface EntityOrBuilder
* The map's keys are property names.
* A property name matching regex `__.*__` is reserved.
* A reserved property name is forbidden in certain documented contexts.
- * The name must not contain more than 500 characters.
- * The name cannot be `""`.
+ * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
+ * be empty.
*
*
* map<string, .google.datastore.v1.Value> properties = 3;
@@ -145,8 +145,8 @@ com.google.datastore.v1.Value getPropertiesOrDefault(
* The map's keys are property names.
* A property name matching regex `__.*__` is reserved.
* A reserved property name is forbidden in certain documented contexts.
- * The name must not contain more than 500 characters.
- * The name cannot be `""`.
+ * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
+ * be empty.
*
*
* map<string, .google.datastore.v1.Value> properties = 3;
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java
index 475a26177..2b23df9f8 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java
@@ -345,6 +345,9 @@ public com.google.datastore.v1.PropertyOrderOrBuilder getOrderOrBuilder(int inde
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -360,6 +363,9 @@ public java.util.Listrepeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -376,6 +382,9 @@ public java.util.Listrepeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -391,6 +400,9 @@ public int getDistinctOnCount() {
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -406,6 +418,9 @@ public com.google.datastore.v1.PropertyReference getDistinctOn(int index) {
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2509,6 +2524,9 @@ private void ensureDistinctOnIsMutable() {
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2527,6 +2545,9 @@ public java.util.Listrepeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2545,6 +2566,9 @@ public int getDistinctOnCount() {
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2563,6 +2587,9 @@ public com.google.datastore.v1.PropertyReference getDistinctOn(int index) {
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2587,6 +2614,9 @@ public Builder setDistinctOn(int index, com.google.datastore.v1.PropertyReferenc
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2609,6 +2639,9 @@ public Builder setDistinctOn(
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2633,6 +2666,9 @@ public Builder addDistinctOn(com.google.datastore.v1.PropertyReference value) {
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2657,6 +2693,9 @@ public Builder addDistinctOn(int index, com.google.datastore.v1.PropertyReferenc
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2679,6 +2718,9 @@ public Builder addDistinctOn(
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2701,6 +2743,9 @@ public Builder addDistinctOn(
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2723,6 +2768,9 @@ public Builder addAllDistinctOn(
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2744,6 +2792,9 @@ public Builder clearDistinctOn() {
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2765,6 +2816,9 @@ public Builder removeDistinctOn(int index) {
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2779,6 +2833,9 @@ public com.google.datastore.v1.PropertyReference.Builder getDistinctOnBuilder(in
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2797,6 +2854,9 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2816,6 +2876,9 @@ public com.google.datastore.v1.PropertyReferenceOrBuilder getDistinctOnOrBuilder
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2831,6 +2894,9 @@ public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder()
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -2846,6 +2912,9 @@ public com.google.datastore.v1.PropertyReference.Builder addDistinctOnBuilder(in
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
index f06b1b616..1b2009699 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java
@@ -224,6 +224,9 @@ public interface QueryOrBuilder
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -236,6 +239,9 @@ public interface QueryOrBuilder
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -248,6 +254,9 @@ public interface QueryOrBuilder
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -260,6 +269,9 @@ public interface QueryOrBuilder
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
@@ -273,6 +285,9 @@ public interface QueryOrBuilder
* The properties to make distinct. The query results will contain the first
* result for each distinct combination of values for the given properties
* (if empty, all results are returned).
+ * Requires:
+ * * If `order` is specified, the set of distinct on properties must appear
+ * before the non-distinct on properties in `order`.
*
*
* repeated .google.datastore.v1.PropertyReference distinct_on = 6;
diff --git a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/aggregation_result.proto b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/aggregation_result.proto
index bbb5989e5..91c521716 100644
--- a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/aggregation_result.proto
+++ b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/aggregation_result.proto
@@ -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.
diff --git a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto
index 2f9c71427..4822048b6 100644
--- a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto
+++ b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto
@@ -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.
diff --git a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/entity.proto b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/entity.proto
index ddf22e032..2d22853f5 100644
--- a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/entity.proto
+++ b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/entity.proto
@@ -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.
@@ -213,7 +213,7 @@ message Entity {
// The map's keys are property names.
// A property name matching regex `__.*__` is reserved.
// A reserved property name is forbidden in certain documented contexts.
- // The name must not contain more than 500 characters.
- // The name cannot be `""`.
+ // The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
+ // be empty.
map+ * Google Cloud Datastore Admin API + * The Datastore Admin API provides several admin services for Cloud Datastore. + * ----------------------------------------------------------------------------- + * ## Concepts + * Project, namespace, kind, and entity as defined in the Google Cloud Datastore + * API. + * Operation: An Operation represents work being performed in the background. + * EntityFilter: Allows specifying a subset of entities in a project. This is + * specified as a combination of kinds and namespaces (either or both of which + * may be all). + * ----------------------------------------------------------------------------- + * ## Services + * # Export/Import + * The Export/Import service provides the ability to copy all or a subset of + * entities to/from Google Cloud Storage. + * Exported data may be imported into Cloud Datastore for any Google Cloud + * Platform project. It is not restricted to the export source project. It is + * possible to export from one project and then import into another. + * Exported data can also be loaded into Google BigQuery for analysis. + * Exports and imports are performed asynchronously. An Operation resource is + * created for each export/import. The state (including any errors encountered) + * of the export/import may be queried via the Operation resource. + * # Index + * The index service manages Cloud Datastore composite indexes. + * Index creation and deletion are performed asynchronously. + * An Operation resource is created for each such asynchronous operation. + * The state of the operation (including any errors encountered) + * may be queried via the Operation resource. + * # Operation + * The Operations collection provides a record of actions performed for the + * specified project (including any operations in progress). Operations are not + * created directly but through calls on other collections or resources. + * An operation that is not yet done may be cancelled. The request to cancel is + * asynchronous and the operation may continue to run for some time after the + * request to cancel is made. + * An operation that is done may be deleted so that it is no longer listed as + * part of the Operation collection. + * ListOperations returns all pending operations, but not completed operations. + * Operations are created by service DatastoreAdmin, + * but are accessed via service google.longrunning.Operations. + *+ */ + public abstract static class DatastoreAdminImplBase + implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getExportEntitiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.datastore.admin.v1.ExportEntitiesRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_ENTITIES))) - .addMethod( - getImportEntitiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.datastore.admin.v1.ImportEntitiesRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_ENTITIES))) - .addMethod( - getCreateIndexMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.datastore.admin.v1.CreateIndexRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_INDEX))) - .addMethod( - getDeleteIndexMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.datastore.admin.v1.DeleteIndexRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_INDEX))) - .addMethod( - getGetIndexMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.datastore.admin.v1.GetIndexRequest, - com.google.datastore.admin.v1.Index>(this, METHODID_GET_INDEX))) - .addMethod( - getListIndexesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.datastore.admin.v1.ListIndexesRequest, - com.google.datastore.admin.v1.ListIndexesResponse>( - this, METHODID_LIST_INDEXES))) - .build(); + return DatastoreAdminGrpc.bindService(this); } } /** - * + * A stub to allow clients to do asynchronous rpc calls to service DatastoreAdmin. * *
* Google Cloud Datastore Admin API
@@ -769,7 +781,7 @@ public void listIndexes(
}
/**
- *
+ * A stub to allow clients to do synchronous rpc calls to service DatastoreAdmin.
*
*
* Google Cloud Datastore Admin API
@@ -938,7 +950,7 @@ public com.google.datastore.admin.v1.ListIndexesResponse listIndexes(
}
/**
- *
+ * A stub to allow clients to do ListenableFuture-style rpc calls to service DatastoreAdmin.
*
*
* Google Cloud Datastore Admin API
@@ -1119,10 +1131,10 @@ private static final class MethodHandlers
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final DatastoreAdminImplBase serviceImpl;
+ private final AsyncService serviceImpl;
private final int methodId;
- MethodHandlers(DatastoreAdminImplBase serviceImpl, int methodId) {
+ MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@@ -1178,6 +1190,48 @@ public io.grpc.stub.StreamObserver invoke(
}
}
+ public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
+ return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+ .addMethod(
+ getExportEntitiesMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.datastore.admin.v1.ExportEntitiesRequest,
+ com.google.longrunning.Operation>(service, METHODID_EXPORT_ENTITIES)))
+ .addMethod(
+ getImportEntitiesMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.datastore.admin.v1.ImportEntitiesRequest,
+ com.google.longrunning.Operation>(service, METHODID_IMPORT_ENTITIES)))
+ .addMethod(
+ getCreateIndexMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.datastore.admin.v1.CreateIndexRequest,
+ com.google.longrunning.Operation>(service, METHODID_CREATE_INDEX)))
+ .addMethod(
+ getDeleteIndexMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.datastore.admin.v1.DeleteIndexRequest,
+ com.google.longrunning.Operation>(service, METHODID_DELETE_INDEX)))
+ .addMethod(
+ getGetIndexMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.datastore.admin.v1.GetIndexRequest,
+ com.google.datastore.admin.v1.Index>(service, METHODID_GET_INDEX)))
+ .addMethod(
+ getListIndexesMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.datastore.admin.v1.ListIndexesRequest,
+ com.google.datastore.admin.v1.ListIndexesResponse>(
+ service, METHODID_LIST_INDEXES)))
+ .build();
+ }
+
private abstract static class DatastoreAdminBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
From ed25a7f2e358ba2b282e3b2fc76d001b73eee6c6 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 30 Mar 2023 14:46:13 +0000
Subject: [PATCH 32/32] chore(main): release 2.14.2 (#1033)
:robot: I have created a release *beep* *boop*
---
## [2.14.2](https://togithub.com/googleapis/java-datastore/compare/v2.14.1...v2.14.2) (2023-03-29)
### Documentation
* Adds OR filter sample ([#1032](https://togithub.com/googleapis/java-datastore/issues/1032)) ([e319efa](https://togithub.com/googleapis/java-datastore/commit/e319efa402539f0297179d270aa8c8f50e6e3e93))
### Dependencies
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.6.0 ([#1035](https://togithub.com/googleapis/java-datastore/issues/1035)) ([b2f4cb3](https://togithub.com/googleapis/java-datastore/commit/b2f4cb361afb1398b10edc0fcfe744b414926e07))
* Update gapic-generator-java to 2.16.0 ([8c96c55](https://togithub.com/googleapis/java-datastore/commit/8c96c555159d48f1dc6d53616f0412f60e3095d7))
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 13 +++++++++++++
datastore-v1-proto-client/pom.xml | 4 ++--
google-cloud-datastore-bom/pom.xml | 10 +++++-----
google-cloud-datastore/pom.xml | 4 ++--
grpc-google-cloud-datastore-admin-v1/pom.xml | 4 ++--
pom.xml | 12 ++++++------
proto-google-cloud-datastore-admin-v1/pom.xml | 4 ++--
proto-google-cloud-datastore-v1/pom.xml | 4 ++--
versions.txt | 12 ++++++------
9 files changed, 40 insertions(+), 27 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6c7f24cf7..4ef27c5ed 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,18 @@
# Changelog
+## [2.14.2](https://github.com/googleapis/java-datastore/compare/v2.14.1...v2.14.2) (2023-03-29)
+
+
+### Documentation
+
+* Adds OR filter sample ([#1032](https://github.com/googleapis/java-datastore/issues/1032)) ([e319efa](https://github.com/googleapis/java-datastore/commit/e319efa402539f0297179d270aa8c8f50e6e3e93))
+
+
+### Dependencies
+
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.6.0 ([#1035](https://github.com/googleapis/java-datastore/issues/1035)) ([b2f4cb3](https://github.com/googleapis/java-datastore/commit/b2f4cb361afb1398b10edc0fcfe744b414926e07))
+* Update gapic-generator-java to 2.16.0 ([8c96c55](https://github.com/googleapis/java-datastore/commit/8c96c555159d48f1dc6d53616f0412f60e3095d7))
+
## [2.14.1](https://github.com/googleapis/java-datastore/compare/v2.14.0...v2.14.1) (2023-03-20)
diff --git a/datastore-v1-proto-client/pom.xml b/datastore-v1-proto-client/pom.xml
index 80d89688a..7a23346d3 100644
--- a/datastore-v1-proto-client/pom.xml
+++ b/datastore-v1-proto-client/pom.xml
@@ -19,12 +19,12 @@
4.0.0
com.google.cloud.datastore
datastore-v1-proto-client
- 2.14.2-SNAPSHOT
+ 2.14.2
com.google.cloud
google-cloud-datastore-parent
- 2.14.2-SNAPSHOT
+ 2.14.2
jar
diff --git a/google-cloud-datastore-bom/pom.xml b/google-cloud-datastore-bom/pom.xml
index 0535b4ab4..76f5e4064 100644
--- a/google-cloud-datastore-bom/pom.xml
+++ b/google-cloud-datastore-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-datastore-bom
- 2.14.2-SNAPSHOT
+ 2.14.2
pom
com.google.cloud
@@ -52,22 +52,22 @@
com.google.cloud
google-cloud-datastore
- 2.14.2-SNAPSHOT
+ 2.14.2
com.google.api.grpc
grpc-google-cloud-datastore-admin-v1
- 2.14.2-SNAPSHOT
+ 2.14.2
com.google.api.grpc
proto-google-cloud-datastore-v1
- 0.105.2-SNAPSHOT
+ 0.105.2
com.google.api.grpc
proto-google-cloud-datastore-admin-v1
- 2.14.2-SNAPSHOT
+ 2.14.2