diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index d336a1c8b..689fcaf09 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-datastore.git", - "sha": "d045c8fc8999bf6e55c4790bcde382b0b01a403e" + "sha": "a6cee5c8dee68e2d1f291bbd6e709c175ce831f7" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "79ab0b44a2cc7d803d07c107f9faf07729fc4012" + "sha": "2e7bd5cc66a3f0b90ce1c150eb35c89eeb9872d6" } } ] diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 7c8816a7d..9b4fd4d83 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -16,8 +16,8 @@ jobs: return; } - // only approve PRs like "chore(master): release " - if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) { + // only approve PRs like "chore: release " + if ( !context.payload.pull_request.title.startsWith("chore: release") ) { return; } diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg index c89135d5c..49de6872d 100644 --- a/.kokoro/release/publish_javadoc.cfg +++ b/.kokoro/release/publish_javadoc.cfg @@ -7,12 +7,6 @@ env_vars: { value: "docs-staging" } -# cloud-rad staging -env_vars: { - key: "STAGING_BUCKET_V2" - value: "docs-staging-v2-staging" -} - env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-datastore/.kokoro/release/publish_javadoc.sh" @@ -26,4 +20,4 @@ before_action { keyname: "docuploader_service_account" } } -} \ No newline at end of file +} diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index 3cc6d4151..45a8ed515 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -56,22 +56,3 @@ python3 -m docuploader create-metadata \ python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET} - -popd - -# V2 due to problems w/ the released javadoc plugin doclava, Java 8 is required. Beware of accidental updates. - -mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/" - -pushd target/devsite/reference - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --language java - -# upload docs to staging bucket -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET_V2} diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 7c5e6f5db..ef7fd42bd 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -40,6 +40,9 @@ export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) # generate yml mvn clean site -B -q -P docFX +# copy README to docfx-yml dir and rename index.md +cp README.md target/docfx-yml/index.md + pushd target/docfx-yml # create metadata @@ -52,4 +55,4 @@ python3 -m docuploader create-metadata \ python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET_V2} \ - --destination-prefix docfx- + --destination-prefix docfx diff --git a/CHANGELOG.md b/CHANGELOG.md index a1eb72189..6bcb5b1eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.106.0](https://www.github.com/googleapis/java-datastore/compare/v1.105.9...v1.106.0) (2021-03-11) + + +### Features + +* **generator:** update protoc to v3.15.3 ([#354](https://www.github.com/googleapis/java-datastore/issues/354)) ([3b1f67a](https://www.github.com/googleapis/java-datastore/commit/3b1f67af118b188e57a7dda77d2c265672765a6a)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#365](https://www.github.com/googleapis/java-datastore/issues/365)) ([ccc4a01](https://www.github.com/googleapis/java-datastore/commit/ccc4a015bc30b5b7bf43eb6af697a44b7be2e041)) + ### [1.105.9](https://www.github.com/googleapis/java-datastore/compare/v1.105.8...v1.105.9) (2021-02-25) diff --git a/README.md b/README.md index 77bb5fe02..68e6b8c70 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 18.0.0 + 19.0.0 pom import @@ -38,25 +38,25 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-datastore - 1.105.8 + 1.105.9 ``` If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:18.0.0') +implementation platform('com.google.cloud:libraries-bom:19.0.0') compile 'com.google.cloud:google-cloud-datastore' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-datastore:1.105.8' +compile 'com.google.cloud:google-cloud-datastore:1.105.9' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "1.105.8" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "1.105.9" ``` ## Authentication diff --git a/google-cloud-datastore-bom/pom.xml b/google-cloud-datastore-bom/pom.xml index babc2d536..724104212 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 - 1.105.9 + 1.106.0 pom com.google.cloud @@ -63,12 +63,12 @@ com.google.api.grpc proto-google-cloud-datastore-v1 - 0.88.9 + 0.89.0 com.google.cloud google-cloud-datastore - 1.105.9 + 1.106.0 diff --git a/google-cloud-datastore/pom.xml b/google-cloud-datastore/pom.xml index 9148a8693..44717dc50 100644 --- a/google-cloud-datastore/pom.xml +++ b/google-cloud-datastore/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-datastore - 1.105.9 + 1.106.0 jar Google Cloud Datastore https://github.com/googleapis/java-datastore @@ -12,7 +12,7 @@ com.google.cloud google-cloud-datastore-parent - 1.105.9 + 1.106.0 google-cloud-datastore diff --git a/pom.xml b/pom.xml index 0887e3582..cb6f1d1c5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datastore-parent pom - 1.105.9 + 1.106.0 Google Cloud Datastore Parent https://github.com/googleapis/java-datastore @@ -159,7 +159,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.20.0 + 0.20.1 pom import @@ -167,7 +167,7 @@ com.google.api.grpc proto-google-cloud-datastore-v1 - 0.88.9 + 0.89.0 com.google.cloud.datastore diff --git a/proto-google-cloud-datastore-v1/clirr-ignored-differences.xml b/proto-google-cloud-datastore-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000..433c9d79c --- /dev/null +++ b/proto-google-cloud-datastore-v1/clirr-ignored-differences.xml @@ -0,0 +1,9 @@ + + + + + 7012 + com/google/datastore/v1/*OrBuilder + * has*(*) + + \ No newline at end of file diff --git a/proto-google-cloud-datastore-v1/pom.xml b/proto-google-cloud-datastore-v1/pom.xml index a71076cf7..4539216fa 100644 --- a/proto-google-cloud-datastore-v1/pom.xml +++ b/proto-google-cloud-datastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastore-v1 - 0.88.9 + 0.89.0 proto-google-cloud-datastore-v1 PROTO library for proto-google-cloud-datastore-v1 com.google.cloud google-cloud-datastore-parent - 1.105.9 + 1.106.0 diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java index 2fb789343..8cb52b2d0 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java @@ -431,6 +431,23 @@ public com.google.datastore.v1.CommitRequest.Mode getMode() { } public static final int TRANSACTION_FIELD_NUMBER = 1; + /** + * + * + *
+   * The identifier of the transaction associated with the commit. A
+   * transaction identifier is returned by a call to
+   * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
+   * 
+ * + * bytes transaction = 1; + * + * @return Whether the transaction field is set. + */ + @java.lang.Override + public boolean hasTransaction() { + return transactionSelectorCase_ == 1; + } /** * * @@ -1205,6 +1222,22 @@ public Builder clearMode() { return this; } + /** + * + * + *
+     * The identifier of the transaction associated with the commit. A
+     * transaction identifier is returned by a call to
+     * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
+     * 
+ * + * bytes transaction = 1; + * + * @return Whether the transaction field is set. + */ + public boolean hasTransaction() { + return transactionSelectorCase_ == 1; + } /** * * diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java index 8f7d76845..b5f4a1bce 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java @@ -73,6 +73,20 @@ public interface CommitRequestOrBuilder */ com.google.datastore.v1.CommitRequest.Mode getMode(); + /** + * + * + *
+   * The identifier of the transaction associated with the commit. A
+   * transaction identifier is returned by a call to
+   * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
+   * 
+ * + * bytes transaction = 1; + * + * @return Whether the transaction field is set. + */ + boolean hasTransaction(); /** * * diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java index 29569cc45..a9cf4946d 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameter.java @@ -222,6 +222,22 @@ public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { } public static final int CURSOR_FIELD_NUMBER = 3; + /** + * + * + *
+   * A query cursor. Query cursors are returned in query
+   * result batches.
+   * 
+ * + * bytes cursor = 3; + * + * @return Whether the cursor field is set. + */ + @java.lang.Override + public boolean hasCursor() { + return parameterTypeCase_ == 3; + } /** * * @@ -830,6 +846,21 @@ public com.google.datastore.v1.ValueOrBuilder getValueOrBuilder() { return valueBuilder_; } + /** + * + * + *
+     * A query cursor. Query cursors are returned in query
+     * result batches.
+     * 
+ * + * bytes cursor = 3; + * + * @return Whether the cursor field is set. + */ + public boolean hasCursor() { + return parameterTypeCase_ == 3; + } /** * * diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java index 88d62712f..d519e5707 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/GqlQueryParameterOrBuilder.java @@ -58,6 +58,19 @@ public interface GqlQueryParameterOrBuilder */ com.google.datastore.v1.ValueOrBuilder getValueOrBuilder(); + /** + * + * + *
+   * A query cursor. Query cursors are returned in query
+   * result batches.
+   * 
+ * + * bytes cursor = 3; + * + * @return Whether the cursor field is set. + */ + boolean hasCursor(); /** * * diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java index 1b7e16d21..3e58eb2a5 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Key.java @@ -172,6 +172,20 @@ public interface PathElementOrBuilder */ com.google.protobuf.ByteString getKindBytes(); + /** + * + * + *
+     * The auto-allocated ID of the entity.
+     * Never equal to zero. Values less than zero are discouraged and may not
+     * be supported in the future.
+     * 
+ * + * int64 id = 2; + * + * @return Whether the id field is set. + */ + boolean hasId(); /** * * @@ -187,6 +201,21 @@ public interface PathElementOrBuilder */ long getId(); + /** + * + * + *
+     * The name of the entity.
+     * A name matching regex `__.*__` is reserved/read-only.
+     * A name must not be more than 1500 bytes when UTF-8 encoded.
+     * Cannot be `""`.
+     * 
+ * + * string name = 3; + * + * @return Whether the name field is set. + */ + boolean hasName(); /** * * @@ -431,6 +460,23 @@ public com.google.protobuf.ByteString getKindBytes() { } public static final int ID_FIELD_NUMBER = 2; + /** + * + * + *
+     * The auto-allocated ID of the entity.
+     * Never equal to zero. Values less than zero are discouraged and may not
+     * be supported in the future.
+     * 
+ * + * int64 id = 2; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return idTypeCase_ == 2; + } /** * * @@ -453,6 +499,23 @@ public long getId() { } public static final int NAME_FIELD_NUMBER = 3; + /** + * + * + *
+     * The name of the entity.
+     * A name matching regex `__.*__` is reserved/read-only.
+     * A name must not be more than 1500 bytes when UTF-8 encoded.
+     * Cannot be `""`.
+     * 
+ * + * string name = 3; + * + * @return Whether the name field is set. + */ + public boolean hasName() { + return idTypeCase_ == 3; + } /** * * @@ -1034,6 +1097,22 @@ public Builder setKindBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+       * The auto-allocated ID of the entity.
+       * Never equal to zero. Values less than zero are discouraged and may not
+       * be supported in the future.
+       * 
+ * + * int64 id = 2; + * + * @return Whether the id field is set. + */ + public boolean hasId() { + return idTypeCase_ == 2; + } /** * * @@ -1095,6 +1174,24 @@ public Builder clearId() { return this; } + /** + * + * + *
+       * The name of the entity.
+       * A name matching regex `__.*__` is reserved/read-only.
+       * A name must not be more than 1500 bytes when UTF-8 encoded.
+       * Cannot be `""`.
+       * 
+ * + * string name = 3; + * + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return idTypeCase_ == 3; + } /** * * diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java index 3bda64242..de2c23316 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Mutation.java @@ -481,6 +481,22 @@ public com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder() { } public static final int BASE_VERSION_FIELD_NUMBER = 8; + /** + * + * + *
+   * The version of the entity that this mutation is being applied to. If this
+   * does not match the current version on the server, the mutation conflicts.
+   * 
+ * + * int64 base_version = 8; + * + * @return Whether the baseVersion field is set. + */ + @java.lang.Override + public boolean hasBaseVersion() { + return conflictDetectionStrategyCase_ == 8; + } /** * * @@ -1849,6 +1865,21 @@ public com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder() { return deleteBuilder_; } + /** + * + * + *
+     * The version of the entity that this mutation is being applied to. If this
+     * does not match the current version on the server, the mutation conflicts.
+     * 
+ * + * int64 base_version = 8; + * + * @return Whether the baseVersion field is set. + */ + public boolean hasBaseVersion() { + return conflictDetectionStrategyCase_ == 8; + } /** * * diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java index 2957934ae..b3a41be07 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationOrBuilder.java @@ -175,6 +175,19 @@ public interface MutationOrBuilder */ com.google.datastore.v1.KeyOrBuilder getDeleteOrBuilder(); + /** + * + * + *
+   * The version of the entity that this mutation is being applied to. If this
+   * does not match the current version on the server, the mutation conflicts.
+   * 
+ * + * int64 base_version = 8; + * + * @return Whether the baseVersion field is set. + */ + boolean hasBaseVersion(); /** * * diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java index 6e52f3142..8cffd1701 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptions.java @@ -322,6 +322,21 @@ public ConsistencyTypeCase getConsistencyTypeCase() { } public static final int READ_CONSISTENCY_FIELD_NUMBER = 1; + /** + * + * + *
+   * The non-transactional read consistency to use.
+   * Cannot be set to `STRONG` for global queries.
+   * 
+ * + * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * + * @return Whether the readConsistency field is set. + */ + public boolean hasReadConsistency() { + return consistencyTypeCase_ == 1; + } /** * * @@ -366,6 +381,23 @@ public com.google.datastore.v1.ReadOptions.ReadConsistency getReadConsistency() } public static final int TRANSACTION_FIELD_NUMBER = 2; + /** + * + * + *
+   * The identifier of the transaction in which to read. A
+   * transaction identifier is returned by a call to
+   * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
+   * 
+ * + * bytes transaction = 2; + * + * @return Whether the transaction field is set. + */ + @java.lang.Override + public boolean hasTransaction() { + return consistencyTypeCase_ == 2; + } /** * * @@ -762,6 +794,22 @@ public Builder clearConsistencyType() { return this; } + /** + * + * + *
+     * The non-transactional read consistency to use.
+     * Cannot be set to `STRONG` for global queries.
+     * 
+ * + * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * + * @return Whether the readConsistency field is set. + */ + @java.lang.Override + public boolean hasReadConsistency() { + return consistencyTypeCase_ == 1; + } /** * * @@ -868,6 +916,22 @@ public Builder clearReadConsistency() { return this; } + /** + * + * + *
+     * The identifier of the transaction in which to read. A
+     * transaction identifier is returned by a call to
+     * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
+     * 
+ * + * bytes transaction = 2; + * + * @return Whether the transaction field is set. + */ + public boolean hasTransaction() { + return consistencyTypeCase_ == 2; + } /** * * diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java index 182cde5d9..f4a67b585 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java @@ -23,6 +23,19 @@ public interface ReadOptionsOrBuilder // @@protoc_insertion_point(interface_extends:google.datastore.v1.ReadOptions) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * The non-transactional read consistency to use.
+   * Cannot be set to `STRONG` for global queries.
+   * 
+ * + * .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; + * + * @return Whether the readConsistency field is set. + */ + boolean hasReadConsistency(); /** * * @@ -50,6 +63,20 @@ public interface ReadOptionsOrBuilder */ com.google.datastore.v1.ReadOptions.ReadConsistency getReadConsistency(); + /** + * + * + *
+   * The identifier of the transaction in which to read. A
+   * transaction identifier is returned by a call to
+   * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
+   * 
+ * + * bytes transaction = 2; + * + * @return Whether the transaction field is set. + */ + boolean hasTransaction(); /** * * diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java index 60f6c33fa..72a17f6bd 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java @@ -298,6 +298,20 @@ public ValueTypeCase getValueTypeCase() { } public static final int NULL_VALUE_FIELD_NUMBER = 11; + /** + * + * + *
+   * A null value.
+   * 
+ * + * .google.protobuf.NullValue null_value = 11; + * + * @return Whether the nullValue field is set. + */ + public boolean hasNullValue() { + return valueTypeCase_ == 11; + } /** * * @@ -337,6 +351,21 @@ public com.google.protobuf.NullValue getNullValue() { } public static final int BOOLEAN_VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+   * A boolean value.
+   * 
+ * + * bool boolean_value = 1; + * + * @return Whether the booleanValue field is set. + */ + @java.lang.Override + public boolean hasBooleanValue() { + return valueTypeCase_ == 1; + } /** * * @@ -357,6 +386,21 @@ public boolean getBooleanValue() { } public static final int INTEGER_VALUE_FIELD_NUMBER = 2; + /** + * + * + *
+   * An integer value.
+   * 
+ * + * int64 integer_value = 2; + * + * @return Whether the integerValue field is set. + */ + @java.lang.Override + public boolean hasIntegerValue() { + return valueTypeCase_ == 2; + } /** * * @@ -377,6 +421,21 @@ public long getIntegerValue() { } public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; + /** + * + * + *
+   * A double value.
+   * 
+ * + * double double_value = 3; + * + * @return Whether the doubleValue field is set. + */ + @java.lang.Override + public boolean hasDoubleValue() { + return valueTypeCase_ == 3; + } /** * * @@ -505,6 +564,22 @@ public com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder() { } public static final int STRING_VALUE_FIELD_NUMBER = 17; + /** + * + * + *
+   * A UTF-8 encoded string value.
+   * When `exclude_from_indexes` is false (it is indexed), may have at most
+   * 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
+   * 
+ * + * string string_value = 17; + * + * @return Whether the stringValue field is set. + */ + public boolean hasStringValue() { + return valueTypeCase_ == 17; + } /** * * @@ -565,6 +640,24 @@ public com.google.protobuf.ByteString getStringValueBytes() { } public static final int BLOB_VALUE_FIELD_NUMBER = 18; + /** + * + * + *
+   * A blob value.
+   * May have at most 1,000,000 bytes.
+   * When `exclude_from_indexes` is false, may have at most 1500 bytes.
+   * In JSON requests, must be base64-encoded.
+   * 
+ * + * bytes blob_value = 18; + * + * @return Whether the blobValue field is set. + */ + @java.lang.Override + public boolean hasBlobValue() { + return valueTypeCase_ == 18; + } /** * * @@ -1431,6 +1524,21 @@ public Builder clearValueType() { return this; } + /** + * + * + *
+     * A null value.
+     * 
+ * + * .google.protobuf.NullValue null_value = 11; + * + * @return Whether the nullValue field is set. + */ + @java.lang.Override + public boolean hasNullValue() { + return valueTypeCase_ == 11; + } /** * * @@ -1529,6 +1637,20 @@ public Builder clearNullValue() { return this; } + /** + * + * + *
+     * A boolean value.
+     * 
+ * + * bool boolean_value = 1; + * + * @return Whether the booleanValue field is set. + */ + public boolean hasBooleanValue() { + return valueTypeCase_ == 1; + } /** * * @@ -1584,6 +1706,20 @@ public Builder clearBooleanValue() { return this; } + /** + * + * + *
+     * An integer value.
+     * 
+ * + * int64 integer_value = 2; + * + * @return Whether the integerValue field is set. + */ + public boolean hasIntegerValue() { + return valueTypeCase_ == 2; + } /** * * @@ -1639,6 +1775,20 @@ public Builder clearIntegerValue() { return this; } + /** + * + * + *
+     * A double value.
+     * 
+ * + * double double_value = 3; + * + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return valueTypeCase_ == 3; + } /** * * @@ -2121,6 +2271,23 @@ public com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder() { return keyValueBuilder_; } + /** + * + * + *
+     * A UTF-8 encoded string value.
+     * When `exclude_from_indexes` is false (it is indexed), may have at most
+     * 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
+     * 
+ * + * string string_value = 17; + * + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return valueTypeCase_ == 17; + } /** * * @@ -2250,6 +2417,23 @@ public Builder setStringValueBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * A blob value.
+     * May have at most 1,000,000 bytes.
+     * When `exclude_from_indexes` is false, may have at most 1500 bytes.
+     * In JSON requests, must be base64-encoded.
+     * 
+ * + * bytes blob_value = 18; + * + * @return Whether the blobValue field is set. + */ + public boolean hasBlobValue() { + return valueTypeCase_ == 18; + } /** * * diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java index f7e039308..b965e9596 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java @@ -23,6 +23,18 @@ public interface ValueOrBuilder // @@protoc_insertion_point(interface_extends:google.datastore.v1.Value) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * A null value.
+   * 
+ * + * .google.protobuf.NullValue null_value = 11; + * + * @return Whether the nullValue field is set. + */ + boolean hasNullValue(); /** * * @@ -48,6 +60,18 @@ public interface ValueOrBuilder */ com.google.protobuf.NullValue getNullValue(); + /** + * + * + *
+   * A boolean value.
+   * 
+ * + * bool boolean_value = 1; + * + * @return Whether the booleanValue field is set. + */ + boolean hasBooleanValue(); /** * * @@ -61,6 +85,18 @@ public interface ValueOrBuilder */ boolean getBooleanValue(); + /** + * + * + *
+   * An integer value.
+   * 
+ * + * int64 integer_value = 2; + * + * @return Whether the integerValue field is set. + */ + boolean hasIntegerValue(); /** * * @@ -74,6 +110,18 @@ public interface ValueOrBuilder */ long getIntegerValue(); + /** + * + * + *
+   * A double value.
+   * 
+ * + * double double_value = 3; + * + * @return Whether the doubleValue field is set. + */ + boolean hasDoubleValue(); /** * * @@ -163,6 +211,20 @@ public interface ValueOrBuilder */ com.google.datastore.v1.KeyOrBuilder getKeyValueOrBuilder(); + /** + * + * + *
+   * A UTF-8 encoded string value.
+   * When `exclude_from_indexes` is false (it is indexed), may have at most
+   * 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
+   * 
+ * + * string string_value = 17; + * + * @return Whether the stringValue field is set. + */ + boolean hasStringValue(); /** * * @@ -192,6 +254,21 @@ public interface ValueOrBuilder */ com.google.protobuf.ByteString getStringValueBytes(); + /** + * + * + *
+   * A blob value.
+   * May have at most 1,000,000 bytes.
+   * When `exclude_from_indexes` is false, may have at most 1500 bytes.
+   * In JSON requests, must be base64-encoded.
+   * 
+ * + * bytes blob_value = 18; + * + * @return Whether the blobValue field is set. + */ + boolean hasBlobValue(); /** * * diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b76e02733..0bcb86c0c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datastore - 1.105.8 + 1.105.9 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 93f7dad46..47c0dc323 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datastore - 1.105.8 + 1.105.9 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index cf167fa7d..0f12b8f12 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 18.0.0 + 19.0.0 pom import diff --git a/synth.metadata b/synth.metadata index 19e49ab48..a34f37ae6 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,22 +4,22 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-datastore.git", - "sha": "9ee440c280e00f56c089a67bcbaa601ea83fc74a" + "sha": "ccc4a015bc30b5b7bf43eb6af697a44b7be2e041" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "99ae9a76dbecb2aab008d5403e25413f5da0f436", - "internalRef": "320455075" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6946fd71ae9215b0e7ae188f5057df765ee6d7d2" + "sha": "0b064d767537e0675fc053e53fca473c5c701fb8" } } ], diff --git a/versions.txt b/versions.txt index a8fdb71e8..b4cb80e4b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-datastore:1.105.9:1.105.9 -google-cloud-datastore-bom:1.105.9:1.105.9 -google-cloud-datastore-parent:1.105.9:1.105.9 -proto-google-cloud-datastore-v1:0.88.9:0.88.9 +google-cloud-datastore:1.106.0:1.106.0 +google-cloud-datastore-bom:1.106.0:1.106.0 +google-cloud-datastore-parent:1.106.0:1.106.0 +proto-google-cloud-datastore-v1:0.89.0:0.89.0