diff --git a/README.md b/README.md index 117629849..3b9654124 100644 --- a/README.md +++ b/README.md @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datastore' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-datastore:2.2.8' +implementation 'com.google.cloud:google-cloud-datastore:2.2.9' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.2.8" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.2.9" ``` ## Authentication diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java index 1f66e0364..2226a3df3 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java index 34e9db57b..c348f5838 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/AllocateIdsResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java index 2495a76d4..76ac0469f 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java index 1ba60a1b4..af7bb209e 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/AllocateIdsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/ArrayValue.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java index 707f9c49d..809b138c2 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/ArrayValueOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java index d0b1fdef5..c9f60605f 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ArrayValueOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/BeginTransactionRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java index 05fdca81f..c21f6c7dd 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java index 50ba8a2ff..31bd75450 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/BeginTransactionResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java index e158c0f0c..bb2824908 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java index dcd155818..950fac3fb 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/BeginTransactionResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/CommitRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequest.java index c981ef1ef..6e40e8ca4 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/CommitRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitRequestOrBuilder.java index b5f4a1bce..db235efdd 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/CommitResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java index 65706cccb..781a479b8 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/CommitResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java index 7394bb2d0..9a6f308c7 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CommitResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/CompositeFilter.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java index 349aee53a..7fa99e9c7 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/CompositeFilterOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java index aed9664e8..ad644173e 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/CompositeFilterOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/DatastoreProto.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java index fd59f03e9..41b425c3a 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/DatastoreProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/Entity.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Entity.java index a9cfad568..f6ba0751d 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/EntityOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityOrBuilder.java index 745700b13..b001d9107 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/EntityProto.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java index 6b6b02e30..4040129ea 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/EntityProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -65,46 +65,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n google/datastore/v1/entity.proto\022\023goog" - + "le.datastore.v1\032\034google/api/annotations." - + "proto\032\034google/protobuf/struct.proto\032\037goo" - + "gle/protobuf/timestamp.proto\032\030google/typ" - + "e/latlng.proto\"7\n\013PartitionId\022\022\n\nproject" - + "_id\030\002 \001(\t\022\024\n\014namespace_id\030\004 \001(\t\"\267\001\n\003Key\022" - + "6\n\014partition_id\030\001 \001(\0132 .google.datastore" - + ".v1.PartitionId\0222\n\004path\030\002 \003(\0132$.google.d" - + "atastore.v1.Key.PathElement\032D\n\013PathEleme" - + "nt\022\014\n\004kind\030\001 \001(\t\022\014\n\002id\030\002 \001(\003H\000\022\016\n\004name\030\003" - + " \001(\tH\000B\t\n\007id_type\"8\n\nArrayValue\022*\n\006value" - + "s\030\001 \003(\0132\032.google.datastore.v1.Value\"\361\003\n\005" - + "Value\0220\n\nnull_value\030\013 \001(\0162\032.google.proto" - + "buf.NullValueH\000\022\027\n\rboolean_value\030\001 \001(\010H\000" - + "\022\027\n\rinteger_value\030\002 \001(\003H\000\022\026\n\014double_valu" - + "e\030\003 \001(\001H\000\0225\n\017timestamp_value\030\n \001(\0132\032.goo" - + "gle.protobuf.TimestampH\000\022-\n\tkey_value\030\005 " - + "\001(\0132\030.google.datastore.v1.KeyH\000\022\026\n\014strin" - + "g_value\030\021 \001(\tH\000\022\024\n\nblob_value\030\022 \001(\014H\000\022.\n" - + "\017geo_point_value\030\010 \001(\0132\023.google.type.Lat" - + "LngH\000\0223\n\014entity_value\030\006 \001(\0132\033.google.dat" - + "astore.v1.EntityH\000\0226\n\013array_value\030\t \001(\0132" - + "\037.google.datastore.v1.ArrayValueH\000\022\017\n\007me" - + "aning\030\016 \001(\005\022\034\n\024exclude_from_indexes\030\023 \001(" - + "\010B\014\n\nvalue_type\"\277\001\n\006Entity\022%\n\003key\030\001 \001(\0132" - + "\030.google.datastore.v1.Key\022?\n\nproperties\030" - + "\003 \003(\0132+.google.datastore.v1.Entity.Prope" - + "rtiesEntry\032M\n\017PropertiesEntry\022\013\n\003key\030\001 \001" - + "(\t\022)\n\005value\030\002 \001(\0132\032.google.datastore.v1." - + "Value:\0028\001B\275\001\n\027com.google.datastore.v1B\013E" - + "ntityProtoP\001Z - * 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. + * 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; @@ -501,8 +502,9 @@ public boolean hasBaseVersion() { * * *
-   * 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.
+   * 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; @@ -1869,8 +1871,9 @@ public 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.
+     * 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; @@ -1884,8 +1887,9 @@ public boolean hasBaseVersion() { * * *
-     * 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.
+     * 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; @@ -1902,8 +1906,9 @@ public long getBaseVersion() { * * *
-     * 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.
+     * 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; @@ -1921,8 +1926,9 @@ public Builder setBaseVersion(long value) { * * *
-     * 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.
+     * 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; 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 b3a41be07..672998d72 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -179,8 +179,9 @@ public interface MutationOrBuilder * * *
-   * 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.
+   * 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; @@ -192,8 +193,9 @@ public interface MutationOrBuilder * * *
-   * 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.
+   * 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; diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java index 48a891412..ecc28914b 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/MutationResultOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java index 9d330b494..777a56ae9 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/MutationResultOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/PartitionId.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java index 6ae103685..88f69754a 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionId.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,8 +36,7 @@ * contexts. * Foreign partition IDs (in which the project ID does * not match the context project ID ) are discouraged. - * Reads and writes of foreign partition IDs may fail if the project is not in - * an active state. + * Reads and writes of foreign partition IDs may fail if the project is not in an active state. * * * Protobuf type {@code google.datastore.v1.PartitionId} @@ -416,8 +415,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * contexts. * Foreign partition IDs (in which the project ID does * not match the context project ID ) are discouraged. - * Reads and writes of foreign partition IDs may fail if the project is not in - * an active state. + * Reads and writes of foreign partition IDs may fail if the project is not in an active state. * * * Protobuf type {@code google.datastore.v1.PartitionId} diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java index f05a034a6..4d6a0cf43 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PartitionIdOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/Projection.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java index 81088877b..9694f3eb6 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Projection.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/ProjectionOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java index dc4b14a5d..5f3d6c3b2 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ProjectionOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/PropertyFilter.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java index 8e53aca99..aacca8108 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -165,7 +165,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Less than.
+     * The given `property` is less than the given `value`.
+     * Requires:
+     * * That `property` comes first in `order_by`.
      * 
* * LESS_THAN = 1; @@ -175,7 +177,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Less than or equal.
+     * The given `property` is less than or equal to the given `value`.
+     * Requires:
+     * * That `property` comes first in `order_by`.
      * 
* * LESS_THAN_OR_EQUAL = 2; @@ -185,7 +189,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Greater than.
+     * The given `property` is greater than the given `value`.
+     * Requires:
+     * * That `property` comes first in `order_by`.
      * 
* * GREATER_THAN = 3; @@ -195,7 +201,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Greater than or equal.
+     * The given `property` is greater than or equal to the given `value`.
+     * Requires:
+     * * That `property` comes first in `order_by`.
      * 
* * GREATER_THAN_OR_EQUAL = 4; @@ -205,7 +213,7 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Equal.
+     * The given `property` is equal to the given `value`.
      * 
* * EQUAL = 5; @@ -215,12 +223,54 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Has ancestor.
+     * The given `property` is equal to at least one value in the given array.
+     * Requires:
+     * * That `value` is a non-empty `ArrayValue` with at most 10 values.
+     * * No other `IN` or `NOT_IN` is in the same query.
+     * 
+ * + * IN = 6; + */ + IN(6), + /** + * + * + *
+     * The given `property` is not equal to the given `value`.
+     * Requires:
+     * * No other `NOT_EQUAL` or `NOT_IN` is in the same query.
+     * * That `property` comes first in the `order_by`.
+     * 
+ * + * NOT_EQUAL = 9; + */ + NOT_EQUAL(9), + /** + * + * + *
+     * Limit the result set to the given entity and its descendants.
+     * Requires:
+     * * That `value` is an entity key.
      * 
* * HAS_ANCESTOR = 11; */ HAS_ANCESTOR(11), + /** + * + * + *
+     * The value of the `property` is not in the given array.
+     * Requires:
+     * * That `value` is a non-empty `ArrayValue` with at most 10 values.
+     * * No other `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query.
+     * * That `field` comes first in the `order_by`.
+     * 
+ * + * NOT_IN = 13; + */ + NOT_IN(13), UNRECOGNIZED(-1), ; @@ -238,7 +288,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Less than.
+     * The given `property` is less than the given `value`.
+     * Requires:
+     * * That `property` comes first in `order_by`.
      * 
* * LESS_THAN = 1; @@ -248,7 +300,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Less than or equal.
+     * The given `property` is less than or equal to the given `value`.
+     * Requires:
+     * * That `property` comes first in `order_by`.
      * 
* * LESS_THAN_OR_EQUAL = 2; @@ -258,7 +312,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Greater than.
+     * The given `property` is greater than the given `value`.
+     * Requires:
+     * * That `property` comes first in `order_by`.
      * 
* * GREATER_THAN = 3; @@ -268,7 +324,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Greater than or equal.
+     * The given `property` is greater than or equal to the given `value`.
+     * Requires:
+     * * That `property` comes first in `order_by`.
      * 
* * GREATER_THAN_OR_EQUAL = 4; @@ -278,7 +336,7 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Equal.
+     * The given `property` is equal to the given `value`.
      * 
* * EQUAL = 5; @@ -288,12 +346,54 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Has ancestor.
+     * The given `property` is equal to at least one value in the given array.
+     * Requires:
+     * * That `value` is a non-empty `ArrayValue` with at most 10 values.
+     * * No other `IN` or `NOT_IN` is in the same query.
+     * 
+ * + * IN = 6; + */ + public static final int IN_VALUE = 6; + /** + * + * + *
+     * The given `property` is not equal to the given `value`.
+     * Requires:
+     * * No other `NOT_EQUAL` or `NOT_IN` is in the same query.
+     * * That `property` comes first in the `order_by`.
+     * 
+ * + * NOT_EQUAL = 9; + */ + public static final int NOT_EQUAL_VALUE = 9; + /** + * + * + *
+     * Limit the result set to the given entity and its descendants.
+     * Requires:
+     * * That `value` is an entity key.
      * 
* * HAS_ANCESTOR = 11; */ public static final int HAS_ANCESTOR_VALUE = 11; + /** + * + * + *
+     * The value of the `property` is not in the given array.
+     * Requires:
+     * * That `value` is a non-empty `ArrayValue` with at most 10 values.
+     * * No other `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query.
+     * * That `field` comes first in the `order_by`.
+     * 
+ * + * NOT_IN = 13; + */ + public static final int NOT_IN_VALUE = 13; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -331,8 +431,14 @@ public static Operator forNumber(int value) { return GREATER_THAN_OR_EQUAL; case 5: return EQUAL; + case 6: + return IN; + case 9: + return NOT_EQUAL; case 11: return HAS_ANCESTOR; + case 13: + return NOT_IN; default: return null; } diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java index 311c260a6..f9d3ba4bf 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyFilterOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/PropertyOrder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java index a70a8182d..751138715 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/PropertyOrderOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java index bb9417a94..93cb3f926 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyOrderOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/PropertyReference.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java index c7489ac5d..9bab6ed71 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java index 45f2069d7..105bbe4d3 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/PropertyReferenceOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/Query.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Query.java index 237d64b04..0ed85ebc8 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/QueryOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryOrBuilder.java index 56d8980c3..f06b1b616 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 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/java/com/google/datastore/v1/QueryProto.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java index 0af6d7e8c..fa56f7282 100644 --- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java +++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/QueryProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -89,85 +89,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\037google/datastore/v1/query.proto\022\023googl" - + "e.datastore.v1\032\034google/api/annotations.p" - + "roto\032 google/datastore/v1/entity.proto\032\036" - + "google/protobuf/wrappers.proto\032\030google/t" - + "ype/latlng.proto\"\257\001\n\014EntityResult\022+\n\006ent" - + "ity\030\001 \001(\0132\033.google.datastore.v1.Entity\022\017" - + "\n\007version\030\004 \001(\003\022\016\n\006cursor\030\003 \001(\014\"Q\n\nResul" - + "tType\022\033\n\027RESULT_TYPE_UNSPECIFIED\020\000\022\010\n\004FU" - + "LL\020\001\022\016\n\nPROJECTION\020\002\022\014\n\010KEY_ONLY\020\003\"\362\002\n\005Q" - + "uery\0223\n\nprojection\030\002 \003(\0132\037.google.datast" - + "ore.v1.Projection\0221\n\004kind\030\003 \003(\0132#.google" - + ".datastore.v1.KindExpression\022+\n\006filter\030\004" - + " \001(\0132\033.google.datastore.v1.Filter\0221\n\005ord" - + "er\030\005 \003(\0132\".google.datastore.v1.PropertyO" - + "rder\022;\n\013distinct_on\030\006 \003(\0132&.google.datas" - + "tore.v1.PropertyReference\022\024\n\014start_curso" - + "r\030\007 \001(\014\022\022\n\nend_cursor\030\010 \001(\014\022\016\n\006offset\030\n " - + "\001(\005\022*\n\005limit\030\014 \001(\0132\033.google.protobuf.Int" - + "32Value\"\036\n\016KindExpression\022\014\n\004name\030\001 \001(\t\"" - + "!\n\021PropertyReference\022\014\n\004name\030\002 \001(\t\"F\n\nPr" - + "ojection\0228\n\010property\030\001 \001(\0132&.google.data" - + "store.v1.PropertyReference\"\321\001\n\rPropertyO" - + "rder\0228\n\010property\030\001 \001(\0132&.google.datastor" - + "e.v1.PropertyReference\022?\n\tdirection\030\002 \001(" - + "\0162,.google.datastore.v1.PropertyOrder.Di" - + "rection\"E\n\tDirection\022\031\n\025DIRECTION_UNSPEC" - + "IFIED\020\000\022\r\n\tASCENDING\020\001\022\016\n\nDESCENDING\020\002\"\231" - + "\001\n\006Filter\022@\n\020composite_filter\030\001 \001(\0132$.go" - + "ogle.datastore.v1.CompositeFilterH\000\022>\n\017p" - + "roperty_filter\030\002 \001(\0132#.google.datastore." - + "v1.PropertyFilterH\000B\r\n\013filter_type\"\251\001\n\017C" - + "ompositeFilter\0229\n\002op\030\001 \001(\0162-.google.data" - + "store.v1.CompositeFilter.Operator\022,\n\007fil" - + "ters\030\002 \003(\0132\033.google.datastore.v1.Filter\"" - + "-\n\010Operator\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\007\n" - + "\003AND\020\001\"\307\002\n\016PropertyFilter\0228\n\010property\030\001 " - + "\001(\0132&.google.datastore.v1.PropertyRefere" - + "nce\0228\n\002op\030\002 \001(\0162,.google.datastore.v1.Pr" - + "opertyFilter.Operator\022)\n\005value\030\003 \001(\0132\032.g" - + "oogle.datastore.v1.Value\"\225\001\n\010Operator\022\030\n" - + "\024OPERATOR_UNSPECIFIED\020\000\022\r\n\tLESS_THAN\020\001\022\026" - + "\n\022LESS_THAN_OR_EQUAL\020\002\022\020\n\014GREATER_THAN\020\003" - + "\022\031\n\025GREATER_THAN_OR_EQUAL\020\004\022\t\n\005EQUAL\020\005\022\020" - + "\n\014HAS_ANCESTOR\020\013\"\245\002\n\010GqlQuery\022\024\n\014query_s" - + "tring\030\001 \001(\t\022\026\n\016allow_literals\030\002 \001(\010\022H\n\016n" - + "amed_bindings\030\005 \003(\01320.google.datastore.v" - + "1.GqlQuery.NamedBindingsEntry\022C\n\023positio" - + "nal_bindings\030\004 \003(\0132&.google.datastore.v1" - + ".GqlQueryParameter\032\\\n\022NamedBindingsEntry" - + "\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.google.da" - + "tastore.v1.GqlQueryParameter:\0028\001\"d\n\021GqlQ" - + "ueryParameter\022+\n\005value\030\002 \001(\0132\032.google.da" - + "tastore.v1.ValueH\000\022\020\n\006cursor\030\003 \001(\014H\000B\020\n\016" - + "parameter_type\"\336\003\n\020QueryResultBatch\022\027\n\017s" - + "kipped_results\030\006 \001(\005\022\026\n\016skipped_cursor\030\003" - + " \001(\014\022H\n\022entity_result_type\030\001 \001(\0162,.googl" - + "e.datastore.v1.EntityResult.ResultType\0229" - + "\n\016entity_results\030\002 \003(\0132!.google.datastor" - + "e.v1.EntityResult\022\022\n\nend_cursor\030\004 \001(\014\022K\n" - + "\014more_results\030\005 \001(\01625.google.datastore.v" - + "1.QueryResultBatch.MoreResultsType\022\030\n\020sn" - + "apshot_version\030\007 \001(\003\"\230\001\n\017MoreResultsType" - + "\022!\n\035MORE_RESULTS_TYPE_UNSPECIFIED\020\000\022\020\n\014N" - + "OT_FINISHED\020\001\022\034\n\030MORE_RESULTS_AFTER_LIMI" - + "T\020\002\022\035\n\031MORE_RESULTS_AFTER_CURSOR\020\004\022\023\n\017NO" - + "_MORE_RESULTS\020\003B\274\001\n\027com.google.datastore" - + ".v1B\nQueryProtoP\001Z\n\017property_filter\030\002" + + " \001(\0132#.google.datastore.v1.PropertyFilte" + + "rH\000B\r\n\013filter_type\"\251\001\n\017CompositeFilter\0229" + + "\n\002op\030\001 \001(\0162-.google.datastore.v1.Composi" + + "teFilter.Operator\022,\n\007filters\030\002 \003(\0132\033.goo" + + "gle.datastore.v1.Filter\"-\n\010Operator\022\030\n\024O" + + "PERATOR_UNSPECIFIED\020\000\022\007\n\003AND\020\001\"\352\002\n\016Prope" + + "rtyFilter\0228\n\010property\030\001 \001(\0132&.google.dat" + + "astore.v1.PropertyReference\0228\n\002op\030\002 \001(\0162" + + ",.google.datastore.v1.PropertyFilter.Ope" + + "rator\022)\n\005value\030\003 \001(\0132\032.google.datastore." + + "v1.Value\"\270\001\n\010Operator\022\030\n\024OPERATOR_UNSPEC" + + "IFIED\020\000\022\r\n\tLESS_THAN\020\001\022\026\n\022LESS_THAN_OR_E" + + "QUAL\020\002\022\020\n\014GREATER_THAN\020\003\022\031\n\025GREATER_THAN" + + "_OR_EQUAL\020\004\022\t\n\005EQUAL\020\005\022\006\n\002IN\020\006\022\r\n\tNOT_EQ" + + "UAL\020\t\022\020\n\014HAS_ANCESTOR\020\013\022\n\n\006NOT_IN\020\r\"\245\002\n\010" + + "GqlQuery\022\024\n\014query_string\030\001 \001(\t\022\026\n\016allow_" + + "literals\030\002 \001(\010\022H\n\016named_bindings\030\005 \003(\01320" + + ".google.datastore.v1.GqlQuery.NamedBindi" + + "ngsEntry\022C\n\023positional_bindings\030\004 \003(\0132&." + + "google.datastore.v1.GqlQueryParameter\032\\\n" + + "\022NamedBindingsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005valu" + + "e\030\002 \001(\0132&.google.datastore.v1.GqlQueryPa" + + "rameter:\0028\001\"d\n\021GqlQueryParameter\022+\n\005valu" + + "e\030\002 \001(\0132\032.google.datastore.v1.ValueH\000\022\020\n" + + "\006cursor\030\003 \001(\014H\000B\020\n\016parameter_type\"\336\003\n\020Qu" + + "eryResultBatch\022\027\n\017skipped_results\030\006 \001(\005\022" + + "\026\n\016skipped_cursor\030\003 \001(\014\022H\n\022entity_result" + + "_type\030\001 \001(\0162,.google.datastore.v1.Entity" + + "Result.ResultType\0229\n\016entity_results\030\002 \003(" + + "\0132!.google.datastore.v1.EntityResult\022\022\n\n" + + "end_cursor\030\004 \001(\014\022K\n\014more_results\030\005 \001(\01625" + + ".google.datastore.v1.QueryResultBatch.Mo" + + "reResultsType\022\030\n\020snapshot_version\030\007 \001(\003\"" + + "\230\001\n\017MoreResultsType\022!\n\035MORE_RESULTS_TYPE" + + "_UNSPECIFIED\020\000\022\020\n\014NOT_FINISHED\020\001\022\034\n\030MORE" + + "_RESULTS_AFTER_LIMIT\020\002\022\035\n\031MORE_RESULTS_A" + + "FTER_CURSOR\020\004\022\023\n\017NO_MORE_RESULTS\020\003B\274\001\n\027c" + + "om.google.datastore.v1B\nQueryProtoP\001Z * 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. + * 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; @@ -585,8 +585,8 @@ public boolean hasStringValue() { * *
    * 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.
+   * 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; @@ -614,8 +614,8 @@ public java.lang.String getStringValue() { * *
    * 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.
+   * 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; @@ -2276,8 +2276,8 @@ public 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.
+     * 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; @@ -2293,8 +2293,8 @@ public boolean hasStringValue() { * *
      * 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.
+     * 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; @@ -2323,8 +2323,8 @@ public java.lang.String getStringValue() { * *
      * 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.
+     * 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; @@ -2353,8 +2353,8 @@ public com.google.protobuf.ByteString getStringValueBytes() { * *
      * 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.
+     * 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; @@ -2376,8 +2376,8 @@ public Builder setStringValue(java.lang.String value) { * *
      * 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.
+     * 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; @@ -2397,8 +2397,8 @@ public Builder clearStringValue() { * *
      * 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.
+     * 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; 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 b965e9596..340dd5662 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -216,8 +216,8 @@ public interface ValueOrBuilder * *
    * 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.
+   * 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; @@ -230,8 +230,8 @@ public interface ValueOrBuilder * *
    * 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.
+   * 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; @@ -244,8 +244,8 @@ public interface ValueOrBuilder * *
    * 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.
+   * 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; 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 ad016194a..6a29b0e98 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 2019 Google LLC. +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -328,8 +328,9 @@ message Mutation { // with the current version of the entity on the server. Conflicting mutations // are not applied, and are marked as such in MutationResult. oneof conflict_detection_strategy { - // 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. + // 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; } } @@ -366,9 +367,16 @@ message ReadOptions { EVENTUAL = 2; } - // If not specified, lookups and ancestor queries default to - // `read_consistency`=`STRONG`, global queries default to - // `read_consistency`=`EVENTUAL`. + // For Cloud Datastore, if read_consistency is not specified, then lookups and + // ancestor queries default to `read_consistency`=`STRONG`, global queries + // default to `read_consistency`=`EVENTUAL`. + // + // For Cloud Firestore in Datastore mode, if read_consistency is not specified + // then lookups and all queries default to `read_consistency`=`STRONG`. + // + // Explicitly setting `read_consistency`=`EVENTUAL` will result in eventually + // consistent lookups & queries in both Cloud Datastore & Cloud Firestore in + // Datastore mode. oneof consistency_type { // The non-transactional read consistency to use. // Cannot be set to `STRONG` for global queries. 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 61286cd7a..befbcd7b6 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 2019 Google LLC. +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ syntax = "proto3"; package google.datastore.v1; -import "google/api/annotations.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/type/latlng.proto"; @@ -47,8 +46,7 @@ option ruby_package = "Google::Cloud::Datastore::V1"; // // Foreign partition IDs (in which the project ID does // not match the context project ID ) are discouraged. -// Reads and writes of foreign partition IDs may fail if the project is not in -// an active state. +// Reads and writes of foreign partition IDs may fail if the project is not in an active state. message PartitionId { // The ID of the project to which the entities belong. string project_id = 2; @@ -146,8 +144,8 @@ message Value { Key key_value = 5; // 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. + // 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; // A blob value. diff --git a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query.proto b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query.proto index 4cb3ef99b..3e6461839 100644 --- a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query.proto +++ b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,10 +16,8 @@ syntax = "proto3"; package google.datastore.v1; -import "google/api/annotations.proto"; import "google/datastore/v1/entity.proto"; import "google/protobuf/wrappers.proto"; -import "google/type/latlng.proto"; option csharp_namespace = "Google.Cloud.Datastore.V1"; option go_package = "google.golang.org/genproto/googleapis/datastore/v1;datastore"; @@ -190,23 +188,68 @@ message PropertyFilter { // Unspecified. This value must not be used. OPERATOR_UNSPECIFIED = 0; - // Less than. + // The given `property` is less than the given `value`. + // + // Requires: + // + // * That `property` comes first in `order_by`. LESS_THAN = 1; - // Less than or equal. + // The given `property` is less than or equal to the given `value`. + // + // Requires: + // + // * That `property` comes first in `order_by`. LESS_THAN_OR_EQUAL = 2; - // Greater than. + // The given `property` is greater than the given `value`. + // + // Requires: + // + // * That `property` comes first in `order_by`. GREATER_THAN = 3; - // Greater than or equal. + // The given `property` is greater than or equal to the given `value`. + // + // Requires: + // + // * That `property` comes first in `order_by`. GREATER_THAN_OR_EQUAL = 4; - // Equal. + // The given `property` is equal to the given `value`. EQUAL = 5; - // Has ancestor. + // The given `property` is equal to at least one value in the given array. + // + // Requires: + // + // * That `value` is a non-empty `ArrayValue` with at most 10 values. + // * No other `IN` or `NOT_IN` is in the same query. + IN = 6; + + // The given `property` is not equal to the given `value`. + // + // Requires: + // + // * No other `NOT_EQUAL` or `NOT_IN` is in the same query. + // * That `property` comes first in the `order_by`. + NOT_EQUAL = 9; + + // Limit the result set to the given entity and its descendants. + // + // Requires: + // + // * That `value` is an entity key. HAS_ANCESTOR = 11; + + // The value of the `property` is not in the given array. + // + // Requires: + // + // * That `value` is a non-empty `ArrayValue` with at most 10 values. + // * No other `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query. + // * That `field` comes first in the `order_by`. + NOT_IN = 13; } // The property to filter by.