From b025d118433b3930b5186621ef852b4219c2274d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 2 Aug 2023 11:44:31 -0400 Subject: [PATCH] feat: publish proto definitions for SUM/AVG in Firestore (#1304) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: publish proto definitions for SUM/AVG in Firestore PiperOrigin-RevId: 552607134 Source-Link: https://github.com/googleapis/googleapis/commit/88a9a5f9944682d1901923cc1376935c2c694595 Source-Link: https://github.com/googleapis/googleapis-gen/commit/047d73ae2fd4e526b474a617e168339d691b2510 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDQ3ZDczYWUyZmQ0ZTUyNmI0NzRhNjE3ZTE2ODMzOWQ2OTFiMjUxMCJ9 chore: Update the Java code generator (gapic-generator-java) to 2.23.1 PiperOrigin-RevId: 549674836 Source-Link: https://github.com/googleapis/googleapis/commit/3b7a12146fed6cb648046439a2dad0b3ad56d202 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2d643a4eff8c8ef4c9d5a2e59d2a0ca7c991eab6 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmQ2NDNhNGVmZjhjOGVmNGM5ZDVhMmU1OWQyYTBjYTdjOTkxZWFiNiJ9 chore: Add bloom filter related comments PiperOrigin-RevId: 538646627 Source-Link: https://github.com/googleapis/googleapis/commit/1ceef690800f953d50235540b91d10ef2b2cf36e Source-Link: https://github.com/googleapis/googleapis-gen/commit/fb7c4c4aef630f4957fa501c48587f983e17644a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmI3YzRjNGFlZjYzMGY0OTU3ZmE1MDFjNDg1ODdmOTgzZTE3NjQ0YSJ9 chore(deps): Update gapic-generator-java to 2.21.0 PiperOrigin-RevId: 538365689 Source-Link: https://github.com/googleapis/googleapis/commit/7ac8a2479bd197e4d7533e1ae9bf1877823f0c26 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e58eedb75d3c07878097cdfbfd3ffdb7646763a3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTU4ZWVkYjc1ZDNjMDc4NzgwOTdjZGZiZmQzZmZkYjc2NDY3NjNhMyJ9 feat: add CreateDatabase API PiperOrigin-RevId: 537397252 Source-Link: https://github.com/googleapis/googleapis/commit/b4481e1c41ed7577140cf17c9e7c7b03ea4273f7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6b4b12abe9ece6382ea8d6ffd5c50e36b32905f8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmI0YjEyYWJlOWVjZTYzODJlYThkNmZmZDVjNTBlMzZiMzI5MDVmOCJ9 chore: upgrading protobuf to 23.2 for code generation PiperOrigin-RevId: 537035741 Source-Link: https://github.com/googleapis/googleapis/commit/640f7439448629156b3ff30adc0332cc8b7ce52c Source-Link: https://github.com/googleapis/googleapis-gen/commit/5ec02ed2022878f99c94c763060ff6a018896b6e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWVjMDJlZDIwMjI4NzhmOTljOTRjNzYzMDYwZmY2YTAxODg5NmI2ZSJ9 chore: upgrading Protobuf to 23.1 and gRPC to 1.55.0 in code generation PiperOrigin-RevId: 534084593 Source-Link: https://github.com/googleapis/googleapis/commit/aa4559a97f79225fc57c9f70b5f84fe620e8292e Source-Link: https://github.com/googleapis/googleapis-gen/commit/370325af8236732f5885f5940e0ef481fee83003 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzcwMzI1YWY4MjM2NzMyZjU4ODVmNTk0MGUwZWY0ODFmZWU4MzAwMyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Accept interface change * Accept interface change * Accept interface change * Accept interface change * Accept interface change * Apply x-goog-request-params workaround. --------- Co-authored-by: Owl Bot Co-authored-by: Tom Andersen --- .../firestore/v1/FirestoreAdminClient.java | 174 +- .../firestore/v1/FirestoreAdminSettings.java | 26 +- .../cloud/firestore/v1/gapic_metadata.json | 3 + .../cloud/firestore/v1/package-info.java | 2 +- .../firestore/v1/stub/FirestoreAdminStub.java | 13 +- .../v1/stub/FirestoreAdminStubSettings.java | 73 +- .../GrpcFirestoreAdminCallableFactory.java | 2 +- .../v1/stub/GrpcFirestoreAdminStub.java | 121 +- ...HttpJsonFirestoreAdminCallableFactory.java | 2 +- .../v1/stub/HttpJsonFirestoreAdminStub.java | 154 +- .../reflect-config.json | 2000 +++++++++ .../v1/FirestoreAdminClientHttpJsonTest.java | 114 +- .../v1/FirestoreAdminClientTest.java | 113 +- .../firestore/v1/MockFirestoreAdmin.java | 2 +- .../firestore/v1/MockFirestoreAdminImpl.java | 24 +- .../cloud/firestore/v1/MockLocations.java | 2 +- .../cloud/firestore/v1/MockLocationsImpl.java | 2 +- .../cloud/firestore/v1/FirestoreClient.java | 2 +- .../cloud/firestore/v1/FirestoreSettings.java | 2 +- .../cloud/firestore/v1/package-info.java | 2 +- .../firestore/v1/stub/FirestoreStub.java | 2 +- .../v1/stub/FirestoreStubSettings.java | 2 +- .../v1/stub/GrpcFirestoreCallableFactory.java | 2 +- .../firestore/v1/stub/GrpcFirestoreStub.java | 2 +- .../HttpJsonFirestoreCallableFactory.java | 2 +- .../v1/stub/HttpJsonFirestoreStub.java | 89 +- .../reflect-config.json | 2621 ++++++++++++ .../v1/FirestoreClientHttpJsonTest.java | 2 +- .../firestore/v1/FirestoreClientTest.java | 2 +- .../cloud/firestore/v1/MockFirestore.java | 2 +- .../cloud/firestore/v1/MockFirestoreImpl.java | 2 +- .../cloud/firestore/v1/MockLocations.java | 2 +- .../cloud/firestore/v1/MockLocationsImpl.java | 2 +- .../clirr-ignored-differences.xml | 7 +- .../admin/v1/FirestoreAdminGrpc.java | 252 +- .../clirr-ignored-differences.xml | 6 - .../google/firestore/v1/FirestoreGrpc.java | 2 +- .../admin/v1/CollectionGroupName.java | 2 +- .../admin/v1/CreateDatabaseMetadata.java | 431 ++ .../v1/CreateDatabaseMetadataOrBuilder.java | 24 + .../admin/v1/CreateDatabaseRequest.java | 1138 +++++ .../v1/CreateDatabaseRequestOrBuilder.java | 128 + .../admin/v1/CreateIndexRequest.java | 13 +- .../admin/v1/CreateIndexRequestOrBuilder.java | 2 +- .../google/firestore/admin/v1/Database.java | 21 +- .../firestore/admin/v1/DatabaseName.java | 2 +- .../firestore/admin/v1/DatabaseOrBuilder.java | 4 +- .../firestore/admin/v1/DatabaseProto.java | 40 +- .../admin/v1/DeleteIndexRequest.java | 13 +- .../admin/v1/DeleteIndexRequestOrBuilder.java | 2 +- .../admin/v1/ExportDocumentsMetadata.java | 49 +- .../v1/ExportDocumentsMetadataOrBuilder.java | 2 +- .../admin/v1/ExportDocumentsRequest.java | 55 +- .../v1/ExportDocumentsRequestOrBuilder.java | 2 +- .../admin/v1/ExportDocumentsResponse.java | 7 +- .../v1/ExportDocumentsResponseOrBuilder.java | 2 +- .../com/google/firestore/admin/v1/Field.java | 47 +- .../google/firestore/admin/v1/FieldName.java | 2 +- .../admin/v1/FieldOperationMetadata.java | 17 +- .../v1/FieldOperationMetadataOrBuilder.java | 2 +- .../firestore/admin/v1/FieldOrBuilder.java | 10 +- .../google/firestore/admin/v1/FieldProto.java | 44 +- .../admin/v1/FirestoreAdminProto.java | 291 +- .../admin/v1/GetDatabaseRequest.java | 13 +- .../admin/v1/GetDatabaseRequestOrBuilder.java | 2 +- .../firestore/admin/v1/GetFieldRequest.java | 13 +- .../admin/v1/GetFieldRequestOrBuilder.java | 2 +- .../firestore/admin/v1/GetIndexRequest.java | 13 +- .../admin/v1/GetIndexRequestOrBuilder.java | 2 +- .../admin/v1/ImportDocumentsMetadata.java | 49 +- .../v1/ImportDocumentsMetadataOrBuilder.java | 2 +- .../admin/v1/ImportDocumentsRequest.java | 55 +- .../v1/ImportDocumentsRequestOrBuilder.java | 2 +- .../com/google/firestore/admin/v1/Index.java | 69 +- .../google/firestore/admin/v1/IndexName.java | 2 +- .../admin/v1/IndexOperationMetadata.java | 7 +- .../v1/IndexOperationMetadataOrBuilder.java | 2 +- .../firestore/admin/v1/IndexOrBuilder.java | 14 +- .../google/firestore/admin/v1/IndexProto.java | 2 +- .../admin/v1/ListDatabasesRequest.java | 7 +- .../v1/ListDatabasesRequestOrBuilder.java | 2 +- .../admin/v1/ListDatabasesResponse.java | 7 +- .../v1/ListDatabasesResponseOrBuilder.java | 2 +- .../firestore/admin/v1/ListFieldsRequest.java | 104 +- .../admin/v1/ListFieldsRequestOrBuilder.java | 28 +- .../admin/v1/ListFieldsResponse.java | 13 +- .../admin/v1/ListFieldsResponseOrBuilder.java | 2 +- .../admin/v1/ListIndexesRequest.java | 41 +- .../admin/v1/ListIndexesRequestOrBuilder.java | 10 +- .../admin/v1/ListIndexesResponse.java | 13 +- .../v1/ListIndexesResponseOrBuilder.java | 2 +- .../firestore/admin/v1/LocationMetadata.java | 7 +- .../admin/v1/LocationMetadataOrBuilder.java | 2 +- .../firestore/admin/v1/LocationProto.java | 2 +- .../firestore/admin/v1/OperationProto.java | 2 +- .../firestore/admin/v1/OperationState.java | 2 +- .../google/firestore/admin/v1/Progress.java | 7 +- .../firestore/admin/v1/ProgressOrBuilder.java | 2 +- .../firestore/admin/v1/ProjectName.java | 2 +- .../admin/v1/UpdateDatabaseMetadata.java | 7 +- .../v1/UpdateDatabaseMetadataOrBuilder.java | 2 +- .../admin/v1/UpdateDatabaseRequest.java | 13 +- .../v1/UpdateDatabaseRequestOrBuilder.java | 2 +- .../admin/v1/UpdateFieldRequest.java | 13 +- .../admin/v1/UpdateFieldRequestOrBuilder.java | 2 +- .../firestore/admin/v1/firestore_admin.proto | 155 +- .../firestore/bundle/BundleElement.java | 9 +- .../bundle/BundleElementOrBuilder.java | 4 +- .../firestore/bundle/BundleMetadata.java | 7 +- .../bundle/BundleMetadataOrBuilder.java | 2 +- .../google/firestore/bundle/BundleProto.java | 2 +- .../bundle/BundledDocumentMetadata.java | 49 +- .../BundledDocumentMetadataOrBuilder.java | 2 +- .../google/firestore/bundle/BundledQuery.java | 9 +- .../bundle/BundledQueryOrBuilder.java | 4 +- .../google/firestore/bundle/NamedQuery.java | 7 +- .../firestore/bundle/NamedQueryOrBuilder.java | 2 +- .../firestore/v1/AggregationResult.java | 20 +- .../v1/AggregationResultOrBuilder.java | 7 +- .../firestore/v1/AggregationResultProto.java | 2 +- .../com/google/firestore/v1/ArrayValue.java | 7 +- .../firestore/v1/ArrayValueOrBuilder.java | 2 +- .../v1/BatchGetDocumentsRequest.java | 123 +- .../v1/BatchGetDocumentsRequestOrBuilder.java | 22 +- .../v1/BatchGetDocumentsResponse.java | 9 +- .../BatchGetDocumentsResponseOrBuilder.java | 4 +- .../firestore/v1/BatchWriteRequest.java | 30 +- .../v1/BatchWriteRequestOrBuilder.java | 7 +- .../firestore/v1/BatchWriteResponse.java | 53 +- .../v1/BatchWriteResponseOrBuilder.java | 12 +- .../firestore/v1/BeginTransactionRequest.java | 7 +- .../v1/BeginTransactionRequestOrBuilder.java | 2 +- .../v1/BeginTransactionResponse.java | 7 +- .../v1/BeginTransactionResponseOrBuilder.java | 2 +- .../com/google/firestore/v1/BitSequence.java | 13 +- .../firestore/v1/BitSequenceOrBuilder.java | 2 +- .../com/google/firestore/v1/BloomFilter.java | 15 +- .../firestore/v1/BloomFilterOrBuilder.java | 2 +- .../google/firestore/v1/BloomFilterProto.java | 2 +- .../google/firestore/v1/CommitRequest.java | 30 +- .../firestore/v1/CommitRequestOrBuilder.java | 7 +- .../google/firestore/v1/CommitResponse.java | 30 +- .../firestore/v1/CommitResponseOrBuilder.java | 7 +- .../com/google/firestore/v1/CommonProto.java | 2 +- .../firestore/v1/CreateDocumentRequest.java | 26 +- .../v1/CreateDocumentRequestOrBuilder.java | 7 +- .../java/com/google/firestore/v1/Cursor.java | 30 +- .../google/firestore/v1/CursorOrBuilder.java | 7 +- .../firestore/v1/DeleteDocumentRequest.java | 7 +- .../v1/DeleteDocumentRequestOrBuilder.java | 2 +- .../com/google/firestore/v1/Document.java | 88 +- .../google/firestore/v1/DocumentChange.java | 23 +- .../firestore/v1/DocumentChangeOrBuilder.java | 5 +- .../google/firestore/v1/DocumentDelete.java | 23 +- .../firestore/v1/DocumentDeleteOrBuilder.java | 5 +- .../com/google/firestore/v1/DocumentMask.java | 48 +- .../firestore/v1/DocumentMaskOrBuilder.java | 2 +- .../firestore/v1/DocumentOrBuilder.java | 33 +- .../google/firestore/v1/DocumentProto.java | 2 +- .../google/firestore/v1/DocumentRemove.java | 23 +- .../firestore/v1/DocumentRemoveOrBuilder.java | 5 +- .../firestore/v1/DocumentTransform.java | 121 +- .../v1/DocumentTransformOrBuilder.java | 2 +- .../google/firestore/v1/ExistenceFilter.java | 139 +- .../v1/ExistenceFilterOrBuilder.java | 35 +- .../google/firestore/v1/FirestoreProto.java | 461 +- .../firestore/v1/GetDocumentRequest.java | 81 +- .../v1/GetDocumentRequestOrBuilder.java | 23 +- .../v1/ListCollectionIdsRequest.java | 69 +- .../v1/ListCollectionIdsRequestOrBuilder.java | 19 +- .../v1/ListCollectionIdsResponse.java | 49 +- .../ListCollectionIdsResponseOrBuilder.java | 2 +- .../firestore/v1/ListDocumentsRequest.java | 135 +- .../v1/ListDocumentsRequestOrBuilder.java | 38 +- .../firestore/v1/ListDocumentsResponse.java | 14 +- .../v1/ListDocumentsResponseOrBuilder.java | 4 +- .../google/firestore/v1/ListenRequest.java | 9 +- .../firestore/v1/ListenRequestOrBuilder.java | 4 +- .../google/firestore/v1/ListenResponse.java | 21 +- .../firestore/v1/ListenResponseOrBuilder.java | 7 +- .../com/google/firestore/v1/MapValue.java | 18 +- .../firestore/v1/MapValueOrBuilder.java | 7 +- .../firestore/v1/PartitionQueryRequest.java | 100 +- .../v1/PartitionQueryRequestOrBuilder.java | 29 +- .../firestore/v1/PartitionQueryResponse.java | 76 +- .../v1/PartitionQueryResponseOrBuilder.java | 17 +- .../com/google/firestore/v1/Precondition.java | 9 +- .../firestore/v1/PreconditionOrBuilder.java | 4 +- .../com/google/firestore/v1/QueryProto.java | 69 +- .../google/firestore/v1/RollbackRequest.java | 7 +- .../v1/RollbackRequestOrBuilder.java | 2 +- .../v1/RunAggregationQueryRequest.java | 101 +- .../RunAggregationQueryRequestOrBuilder.java | 29 +- .../v1/RunAggregationQueryResponse.java | 35 +- .../RunAggregationQueryResponseOrBuilder.java | 9 +- .../google/firestore/v1/RunQueryRequest.java | 77 +- .../v1/RunQueryRequestOrBuilder.java | 24 +- .../google/firestore/v1/RunQueryResponse.java | 21 +- .../v1/RunQueryResponseOrBuilder.java | 8 +- .../v1/StructuredAggregationQuery.java | 3698 ++++++++++++++--- .../StructuredAggregationQueryOrBuilder.java | 14 +- .../google/firestore/v1/StructuredQuery.java | 493 ++- .../v1/StructuredQueryOrBuilder.java | 73 +- .../java/com/google/firestore/v1/Target.java | 97 +- .../com/google/firestore/v1/TargetChange.java | 61 +- .../firestore/v1/TargetChangeOrBuilder.java | 15 +- .../google/firestore/v1/TargetOrBuilder.java | 14 +- .../firestore/v1/TransactionOptions.java | 104 +- .../v1/TransactionOptionsOrBuilder.java | 4 +- .../firestore/v1/UpdateDocumentRequest.java | 31 +- .../v1/UpdateDocumentRequestOrBuilder.java | 8 +- .../java/com/google/firestore/v1/Value.java | 48 +- .../google/firestore/v1/ValueOrBuilder.java | 15 +- .../java/com/google/firestore/v1/Write.java | 56 +- .../google/firestore/v1/WriteOrBuilder.java | 15 +- .../com/google/firestore/v1/WriteProto.java | 2 +- .../com/google/firestore/v1/WriteRequest.java | 52 +- .../firestore/v1/WriteRequestOrBuilder.java | 11 +- .../google/firestore/v1/WriteResponse.java | 34 +- .../firestore/v1/WriteResponseOrBuilder.java | 8 +- .../com/google/firestore/v1/WriteResult.java | 19 +- .../firestore/v1/WriteResultOrBuilder.java | 5 +- .../proto/google/firestore/v1/common.proto | 8 +- .../proto/google/firestore/v1/firestore.proto | 40 +- .../proto/google/firestore/v1/query.proto | 48 + .../proto/google/firestore/v1/write.proto | 13 +- 226 files changed, 14162 insertions(+), 2440 deletions(-) create mode 100644 google-cloud-firestore-admin/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json create mode 100644 google-cloud-firestore/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json create mode 100644 proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseMetadata.java create mode 100644 proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseMetadataOrBuilder.java create mode 100644 proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseRequest.java create mode 100644 proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseRequestOrBuilder.java diff --git a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java index 513d6e695..d19ab1670 100644 --- a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java +++ b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java @@ -1,5 +1,5 @@ /* - * 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. @@ -32,6 +32,8 @@ import com.google.cloud.firestore.v1.stub.FirestoreAdminStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.firestore.admin.v1.CollectionGroupName; +import com.google.firestore.admin.v1.CreateDatabaseMetadata; +import com.google.firestore.admin.v1.CreateDatabaseRequest; import com.google.firestore.admin.v1.CreateIndexRequest; import com.google.firestore.admin.v1.Database; import com.google.firestore.admin.v1.DatabaseName; @@ -1642,6 +1644,176 @@ public final UnaryCallable importDocumentsCal return stub.importDocumentsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Database database = Database.newBuilder().build();
+   *   String databaseId = "databaseId1688905718";
+   *   Database response =
+   *       firestoreAdminClient.createDatabaseAsync(parent, database, databaseId).get();
+   * }
+   * }
+ * + * @param parent Required. A parent name of the form `projects/{project_id}` + * @param database Required. The Database to create. + * @param databaseId Required. The ID to use for the database, which will become the final + * component of the database's resource name. + *

The value must be set to "(default)". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createDatabaseAsync( + ProjectName parent, Database database, String databaseId) { + CreateDatabaseRequest request = + CreateDatabaseRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDatabase(database) + .setDatabaseId(databaseId) + .build(); + return createDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   Database database = Database.newBuilder().build();
+   *   String databaseId = "databaseId1688905718";
+   *   Database response =
+   *       firestoreAdminClient.createDatabaseAsync(parent, database, databaseId).get();
+   * }
+   * }
+ * + * @param parent Required. A parent name of the form `projects/{project_id}` + * @param database Required. The Database to create. + * @param databaseId Required. The ID to use for the database, which will become the final + * component of the database's resource name. + *

The value must be set to "(default)". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createDatabaseAsync( + String parent, Database database, String databaseId) { + CreateDatabaseRequest request = + CreateDatabaseRequest.newBuilder() + .setParent(parent) + .setDatabase(database) + .setDatabaseId(databaseId) + .build(); + return createDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   CreateDatabaseRequest request =
+   *       CreateDatabaseRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setDatabase(Database.newBuilder().build())
+   *           .setDatabaseId("databaseId1688905718")
+   *           .build();
+   *   Database response = firestoreAdminClient.createDatabaseAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createDatabaseAsync( + CreateDatabaseRequest request) { + return createDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   CreateDatabaseRequest request =
+   *       CreateDatabaseRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setDatabase(Database.newBuilder().build())
+   *           .setDatabaseId("databaseId1688905718")
+   *           .build();
+   *   OperationFuture future =
+   *       firestoreAdminClient.createDatabaseOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Database response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createDatabaseOperationCallable() { + return stub.createDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
+   *   CreateDatabaseRequest request =
+   *       CreateDatabaseRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setDatabase(Database.newBuilder().build())
+   *           .setDatabaseId("databaseId1688905718")
+   *           .build();
+   *   ApiFuture future =
+   *       firestoreAdminClient.createDatabaseCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createDatabaseCallable() { + return stub.createDatabaseCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets information about a database. diff --git a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminSettings.java b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminSettings.java index dcbfef47f..5560d20d3 100644 --- a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminSettings.java +++ b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminSettings.java @@ -1,5 +1,5 @@ /* - * 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. @@ -33,6 +33,8 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.firestore.v1.stub.FirestoreAdminStubSettings; +import com.google.firestore.admin.v1.CreateDatabaseMetadata; +import com.google.firestore.admin.v1.CreateDatabaseRequest; import com.google.firestore.admin.v1.CreateIndexRequest; import com.google.firestore.admin.v1.Database; import com.google.firestore.admin.v1.DeleteIndexRequest; @@ -175,6 +177,17 @@ public UnaryCallSettings importDocumentsSetti return ((FirestoreAdminStubSettings) getStubSettings()).importDocumentsOperationSettings(); } + /** Returns the object with the settings used for calls to createDatabase. */ + public UnaryCallSettings createDatabaseSettings() { + return ((FirestoreAdminStubSettings) getStubSettings()).createDatabaseSettings(); + } + + /** Returns the object with the settings used for calls to createDatabase. */ + public OperationCallSettings + createDatabaseOperationSettings() { + return ((FirestoreAdminStubSettings) getStubSettings()).createDatabaseOperationSettings(); + } + /** Returns the object with the settings used for calls to getDatabase. */ public UnaryCallSettings getDatabaseSettings() { return ((FirestoreAdminStubSettings) getStubSettings()).getDatabaseSettings(); @@ -384,6 +397,17 @@ public UnaryCallSettings.Builder importDocume return getStubSettingsBuilder().importDocumentsOperationSettings(); } + /** Returns the builder for the settings used for calls to createDatabase. */ + public UnaryCallSettings.Builder createDatabaseSettings() { + return getStubSettingsBuilder().createDatabaseSettings(); + } + + /** Returns the builder for the settings used for calls to createDatabase. */ + public OperationCallSettings.Builder + createDatabaseOperationSettings() { + return getStubSettingsBuilder().createDatabaseOperationSettings(); + } + /** Returns the builder for the settings used for calls to getDatabase. */ public UnaryCallSettings.Builder getDatabaseSettings() { return getStubSettingsBuilder().getDatabaseSettings(); diff --git a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/gapic_metadata.json b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/gapic_metadata.json index 9afab5bcf..e6ec0f7a4 100644 --- a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/gapic_metadata.json +++ b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/gapic_metadata.json @@ -10,6 +10,9 @@ "grpc": { "libraryClient": "FirestoreAdminClient", "rpcs": { + "CreateDatabase": { + "methods": ["createDatabaseAsync", "createDatabaseAsync", "createDatabaseAsync", "createDatabaseOperationCallable", "createDatabaseCallable"] + }, "CreateIndex": { "methods": ["createIndexAsync", "createIndexAsync", "createIndexAsync", "createIndexOperationCallable", "createIndexCallable"] }, diff --git a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/package-info.java b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/package-info.java index 1461dcf31..aded2d748 100644 --- a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/package-info.java +++ b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/package-info.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStub.java b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStub.java index c497c5968..671aca446 100644 --- a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStub.java +++ b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStub.java @@ -1,5 +1,5 @@ /* - * 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. @@ -22,6 +22,8 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.firestore.admin.v1.CreateDatabaseMetadata; +import com.google.firestore.admin.v1.CreateDatabaseRequest; import com.google.firestore.admin.v1.CreateIndexRequest; import com.google.firestore.admin.v1.Database; import com.google.firestore.admin.v1.DeleteIndexRequest; @@ -132,6 +134,15 @@ public UnaryCallable importDocumentsCallable( throw new UnsupportedOperationException("Not implemented: importDocumentsCallable()"); } + public OperationCallable + createDatabaseOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createDatabaseOperationCallable()"); + } + + public UnaryCallable createDatabaseCallable() { + throw new UnsupportedOperationException("Not implemented: createDatabaseCallable()"); + } + public UnaryCallable getDatabaseCallable() { throw new UnsupportedOperationException("Not implemented: getDatabaseCallable()"); } diff --git a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java index 8eb45bd22..4eeebb19c 100644 --- a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java +++ b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java @@ -1,5 +1,5 @@ /* - * 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. @@ -52,6 +52,8 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.firestore.admin.v1.CreateDatabaseMetadata; +import com.google.firestore.admin.v1.CreateDatabaseRequest; import com.google.firestore.admin.v1.CreateIndexRequest; import com.google.firestore.admin.v1.Database; import com.google.firestore.admin.v1.DeleteIndexRequest; @@ -149,6 +151,9 @@ public class FirestoreAdminStubSettings extends StubSettings importDocumentsSettings; private final OperationCallSettings importDocumentsOperationSettings; + private final UnaryCallSettings createDatabaseSettings; + private final OperationCallSettings + createDatabaseOperationSettings; private final UnaryCallSettings getDatabaseSettings; private final UnaryCallSettings listDatabasesSettings; @@ -334,6 +339,17 @@ public UnaryCallSettings importDocumentsSetti return importDocumentsOperationSettings; } + /** Returns the object with the settings used for calls to createDatabase. */ + public UnaryCallSettings createDatabaseSettings() { + return createDatabaseSettings; + } + + /** Returns the object with the settings used for calls to createDatabase. */ + public OperationCallSettings + createDatabaseOperationSettings() { + return createDatabaseOperationSettings; + } + /** Returns the object with the settings used for calls to getDatabase. */ public UnaryCallSettings getDatabaseSettings() { return getDatabaseSettings; @@ -474,6 +490,8 @@ protected FirestoreAdminStubSettings(Builder settingsBuilder) throws IOException exportDocumentsOperationSettings = settingsBuilder.exportDocumentsOperationSettings().build(); importDocumentsSettings = settingsBuilder.importDocumentsSettings().build(); importDocumentsOperationSettings = settingsBuilder.importDocumentsOperationSettings().build(); + createDatabaseSettings = settingsBuilder.createDatabaseSettings().build(); + createDatabaseOperationSettings = settingsBuilder.createDatabaseOperationSettings().build(); getDatabaseSettings = settingsBuilder.getDatabaseSettings().build(); listDatabasesSettings = settingsBuilder.listDatabasesSettings().build(); updateDatabaseSettings = settingsBuilder.updateDatabaseSettings().build(); @@ -508,6 +526,11 @@ public static class Builder extends StubSettings.Builder importDocumentsOperationSettings; + private final UnaryCallSettings.Builder + createDatabaseSettings; + private final OperationCallSettings.Builder< + CreateDatabaseRequest, Database, CreateDatabaseMetadata> + createDatabaseOperationSettings; private final UnaryCallSettings.Builder getDatabaseSettings; private final UnaryCallSettings.Builder listDatabasesSettings; @@ -584,6 +607,8 @@ protected Builder(ClientContext clientContext) { exportDocumentsOperationSettings = OperationCallSettings.newBuilder(); importDocumentsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); importDocumentsOperationSettings = OperationCallSettings.newBuilder(); + createDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDatabaseOperationSettings = OperationCallSettings.newBuilder(); getDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listDatabasesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -600,6 +625,7 @@ protected Builder(ClientContext clientContext) { listFieldsSettings, exportDocumentsSettings, importDocumentsSettings, + createDatabaseSettings, getDatabaseSettings, listDatabasesSettings, updateDatabaseSettings); @@ -622,6 +648,8 @@ protected Builder(FirestoreAdminStubSettings settings) { exportDocumentsOperationSettings = settings.exportDocumentsOperationSettings.toBuilder(); importDocumentsSettings = settings.importDocumentsSettings.toBuilder(); importDocumentsOperationSettings = settings.importDocumentsOperationSettings.toBuilder(); + createDatabaseSettings = settings.createDatabaseSettings.toBuilder(); + createDatabaseOperationSettings = settings.createDatabaseOperationSettings.toBuilder(); getDatabaseSettings = settings.getDatabaseSettings.toBuilder(); listDatabasesSettings = settings.listDatabasesSettings.toBuilder(); updateDatabaseSettings = settings.updateDatabaseSettings.toBuilder(); @@ -638,6 +666,7 @@ protected Builder(FirestoreAdminStubSettings settings) { listFieldsSettings, exportDocumentsSettings, importDocumentsSettings, + createDatabaseSettings, getDatabaseSettings, listDatabasesSettings, updateDatabaseSettings); @@ -715,6 +744,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .createDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .getDatabaseSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -824,6 +858,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .createDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Database.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateDatabaseMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .updateDatabaseOperationSettings() .setInitialCallSettings( @@ -947,6 +1005,19 @@ public UnaryCallSettings.Builder importDocume return importDocumentsOperationSettings; } + /** Returns the builder for the settings used for calls to createDatabase. */ + public UnaryCallSettings.Builder createDatabaseSettings() { + return createDatabaseSettings; + } + + /** Returns the builder for the settings used for calls to createDatabase. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createDatabaseOperationSettings() { + return createDatabaseOperationSettings; + } + /** Returns the builder for the settings used for calls to getDatabase. */ public UnaryCallSettings.Builder getDatabaseSettings() { return getDatabaseSettings; diff --git a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreAdminCallableFactory.java b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreAdminCallableFactory.java index 2b69ebcef..7b4c53954 100644 --- a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreAdminCallableFactory.java +++ b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreAdminCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreAdminStub.java b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreAdminStub.java index 808c90493..31ffc3e88 100644 --- a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreAdminStub.java +++ b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreAdminStub.java @@ -1,5 +1,5 @@ /* - * 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. @@ -25,8 +25,10 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableMap; +import com.google.firestore.admin.v1.CreateDatabaseMetadata; +import com.google.firestore.admin.v1.CreateDatabaseRequest; import com.google.firestore.admin.v1.CreateIndexRequest; import com.google.firestore.admin.v1.Database; import com.google.firestore.admin.v1.DeleteIndexRequest; @@ -147,6 +149,16 @@ public class GrpcFirestoreAdminStub extends FirestoreAdminStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + createDatabaseMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.firestore.admin.v1.FirestoreAdmin/CreateDatabase") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDatabaseRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor getDatabaseMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -197,6 +209,9 @@ public class GrpcFirestoreAdminStub extends FirestoreAdminStub { private final UnaryCallable importDocumentsCallable; private final OperationCallable importDocumentsOperationCallable; + private final UnaryCallable createDatabaseCallable; + private final OperationCallable + createDatabaseOperationCallable; private final UnaryCallable getDatabaseCallable; private final UnaryCallable listDatabasesCallable; private final UnaryCallable updateDatabaseCallable; @@ -252,9 +267,9 @@ protected GrpcFirestoreAdminStub( .setMethodDescriptor(createIndexMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); }) .build(); GrpcCallSettings listIndexesTransportSettings = @@ -262,9 +277,9 @@ protected GrpcFirestoreAdminStub( .setMethodDescriptor(listIndexesMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); }) .build(); GrpcCallSettings getIndexTransportSettings = @@ -272,9 +287,9 @@ protected GrpcFirestoreAdminStub( .setMethodDescriptor(getIndexMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings deleteIndexTransportSettings = @@ -282,9 +297,9 @@ protected GrpcFirestoreAdminStub( .setMethodDescriptor(deleteIndexMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings getFieldTransportSettings = @@ -292,9 +307,9 @@ protected GrpcFirestoreAdminStub( .setMethodDescriptor(getFieldMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings updateFieldTransportSettings = @@ -302,9 +317,9 @@ protected GrpcFirestoreAdminStub( .setMethodDescriptor(updateFieldMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("field.name", String.valueOf(request.getField().getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("field.name", String.valueOf(request.getField().getName())); + return builder.build(); }) .build(); GrpcCallSettings listFieldsTransportSettings = @@ -312,9 +327,9 @@ protected GrpcFirestoreAdminStub( .setMethodDescriptor(listFieldsMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); }) .build(); GrpcCallSettings exportDocumentsTransportSettings = @@ -322,9 +337,9 @@ protected GrpcFirestoreAdminStub( .setMethodDescriptor(exportDocumentsMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings importDocumentsTransportSettings = @@ -332,9 +347,19 @@ protected GrpcFirestoreAdminStub( .setMethodDescriptor(importDocumentsMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createDatabaseTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDatabaseMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); }) .build(); GrpcCallSettings getDatabaseTransportSettings = @@ -342,9 +367,9 @@ protected GrpcFirestoreAdminStub( .setMethodDescriptor(getDatabaseMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings listDatabasesTransportSettings = @@ -352,9 +377,9 @@ protected GrpcFirestoreAdminStub( .setMethodDescriptor(listDatabasesMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); }) .build(); GrpcCallSettings updateDatabaseTransportSettings = @@ -362,9 +387,9 @@ protected GrpcFirestoreAdminStub( .setMethodDescriptor(updateDatabaseMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("database.name", String.valueOf(request.getDatabase().getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("database.name", String.valueOf(request.getDatabase().getName())); + return builder.build(); }) .build(); @@ -425,6 +450,15 @@ protected GrpcFirestoreAdminStub( settings.importDocumentsOperationSettings(), clientContext, operationsStub); + this.createDatabaseCallable = + callableFactory.createUnaryCallable( + createDatabaseTransportSettings, settings.createDatabaseSettings(), clientContext); + this.createDatabaseOperationCallable = + callableFactory.createOperationCallable( + createDatabaseTransportSettings, + settings.createDatabaseOperationSettings(), + clientContext, + operationsStub); this.getDatabaseCallable = callableFactory.createUnaryCallable( getDatabaseTransportSettings, settings.getDatabaseSettings(), clientContext); @@ -528,6 +562,17 @@ public UnaryCallable importDocumentsCallable( return importDocumentsOperationCallable; } + @Override + public UnaryCallable createDatabaseCallable() { + return createDatabaseCallable; + } + + @Override + public OperationCallable + createDatabaseOperationCallable() { + return createDatabaseOperationCallable; + } + @Override public UnaryCallable getDatabaseCallable() { return getDatabaseCallable; diff --git a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreAdminCallableFactory.java b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreAdminCallableFactory.java index 342c32d63..6f8d4ecf6 100644 --- a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreAdminCallableFactory.java +++ b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreAdminCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreAdminStub.java b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreAdminStub.java index 8fddccb4e..337934e2a 100644 --- a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreAdminStub.java +++ b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreAdminStub.java @@ -1,5 +1,5 @@ /* - * 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. @@ -34,8 +34,11 @@ import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.common.collect.ImmutableMap; +import com.google.firestore.admin.v1.CreateDatabaseMetadata; +import com.google.firestore.admin.v1.CreateDatabaseRequest; import com.google.firestore.admin.v1.CreateIndexRequest; import com.google.firestore.admin.v1.Database; import com.google.firestore.admin.v1.DeleteIndexRequest; @@ -89,6 +92,7 @@ public class HttpJsonFirestoreAdminStub extends FirestoreAdminStub { .add(ImportDocumentsMetadata.getDescriptor()) .add(Database.getDescriptor()) .add(Index.getDescriptor()) + .add(CreateDatabaseMetadata.getDescriptor()) .add(FieldOperationMetadata.getDescriptor()) .add(ExportDocumentsMetadata.getDescriptor()) .add(IndexOperationMetadata.getDescriptor()) @@ -429,6 +433,47 @@ public class HttpJsonFirestoreAdminStub extends FirestoreAdminStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + createDatabaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.firestore.admin.v1.FirestoreAdmin/CreateDatabase") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*}/databases", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "databaseId", request.getDatabaseId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("database", request.getDatabase(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateDatabaseRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor getDatabaseMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -560,6 +605,9 @@ public class HttpJsonFirestoreAdminStub extends FirestoreAdminStub { private final UnaryCallable importDocumentsCallable; private final OperationCallable importDocumentsOperationCallable; + private final UnaryCallable createDatabaseCallable; + private final OperationCallable + createDatabaseOperationCallable; private final UnaryCallable getDatabaseCallable; private final UnaryCallable listDatabasesCallable; private final UnaryCallable updateDatabaseCallable; @@ -640,62 +688,145 @@ protected HttpJsonFirestoreAdminStub( HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createIndexMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings listIndexesTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listIndexesMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings getIndexTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getIndexMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings deleteIndexTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteIndexMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings getFieldTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getFieldMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings updateFieldTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateFieldMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("field.name", String.valueOf(request.getField().getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings listFieldsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listFieldsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings exportDocumentsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(exportDocumentsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings importDocumentsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(importDocumentsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createDatabaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings getDatabaseTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getDatabaseMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings listDatabasesTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listDatabasesMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings updateDatabaseTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateDatabaseMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("database.name", String.valueOf(request.getDatabase().getName())); + return builder.build(); + }) .build(); this.createIndexCallable = @@ -755,6 +886,15 @@ protected HttpJsonFirestoreAdminStub( settings.importDocumentsOperationSettings(), clientContext, httpJsonOperationsStub); + this.createDatabaseCallable = + callableFactory.createUnaryCallable( + createDatabaseTransportSettings, settings.createDatabaseSettings(), clientContext); + this.createDatabaseOperationCallable = + callableFactory.createOperationCallable( + createDatabaseTransportSettings, + settings.createDatabaseOperationSettings(), + clientContext, + httpJsonOperationsStub); this.getDatabaseCallable = callableFactory.createUnaryCallable( getDatabaseTransportSettings, settings.getDatabaseSettings(), clientContext); @@ -787,6 +927,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listFieldsMethodDescriptor); methodDescriptors.add(exportDocumentsMethodDescriptor); methodDescriptors.add(importDocumentsMethodDescriptor); + methodDescriptors.add(createDatabaseMethodDescriptor); methodDescriptors.add(getDatabaseMethodDescriptor); methodDescriptors.add(listDatabasesMethodDescriptor); methodDescriptors.add(updateDatabaseMethodDescriptor); @@ -876,6 +1017,17 @@ public UnaryCallable importDocumentsCallable( return importDocumentsOperationCallable; } + @Override + public UnaryCallable createDatabaseCallable() { + return createDatabaseCallable; + } + + @Override + public OperationCallable + createDatabaseOperationCallable() { + return createDatabaseOperationCallable; + } + @Override public UnaryCallable getDatabaseCallable() { return getDatabaseCallable; diff --git a/google-cloud-firestore-admin/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json b/google-cloud-firestore-admin/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json new file mode 100644 index 000000000..7cf220dc5 --- /dev/null +++ b/google-cloud-firestore-admin/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json @@ -0,0 +1,2000 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.CreateDatabaseMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.CreateDatabaseMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.CreateDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.CreateDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.CreateIndexRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.CreateIndexRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Database", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Database$AppEngineIntegrationMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Database$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Database$ConcurrencyMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Database$DatabaseType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.DeleteIndexRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.DeleteIndexRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ExportDocumentsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ExportDocumentsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ExportDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ExportDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ExportDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ExportDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Field", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Field$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Field$IndexConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Field$IndexConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Field$TtlConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Field$TtlConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Field$TtlConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.FieldOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.FieldOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.FieldOperationMetadata$IndexConfigDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.FieldOperationMetadata$IndexConfigDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.FieldOperationMetadata$IndexConfigDelta$ChangeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.FieldOperationMetadata$TtlConfigDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.FieldOperationMetadata$TtlConfigDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.FieldOperationMetadata$TtlConfigDelta$ChangeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.GetDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.GetDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.GetFieldRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.GetFieldRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.GetIndexRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.GetIndexRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ImportDocumentsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ImportDocumentsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ImportDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ImportDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Index", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Index$ApiScope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Index$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Index$IndexField", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Index$IndexField$ArrayConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Index$IndexField$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Index$IndexField$Order", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Index$QueryScope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Index$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.IndexOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.IndexOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ListDatabasesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ListDatabasesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ListDatabasesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ListDatabasesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ListFieldsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ListFieldsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ListFieldsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ListFieldsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ListIndexesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ListIndexesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ListIndexesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.ListIndexesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.LocationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.LocationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.OperationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Progress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.Progress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.UpdateDatabaseMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.UpdateDatabaseMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.UpdateDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.UpdateDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.UpdateFieldRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.admin.v1.UpdateFieldRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientHttpJsonTest.java b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientHttpJsonTest.java index aced3bd04..d28441c58 100644 --- a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientHttpJsonTest.java +++ b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * 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. @@ -921,6 +921,118 @@ public void importDocumentsExceptionTest2() throws Exception { } } + @Test + public void createDatabaseTest() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) + .setLocationId("locationId1541836720") + .setKeyPrefix("keyPrefix-2076395055") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Database database = Database.newBuilder().build(); + String databaseId = "databaseId1688905718"; + + Database actualResponse = client.createDatabaseAsync(parent, database, databaseId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Database database = Database.newBuilder().build(); + String databaseId = "databaseId1688905718"; + client.createDatabaseAsync(parent, database, databaseId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createDatabaseTest2() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) + .setLocationId("locationId1541836720") + .setKeyPrefix("keyPrefix-2076395055") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-2353"; + Database database = Database.newBuilder().build(); + String databaseId = "databaseId1688905718"; + + Database actualResponse = client.createDatabaseAsync(parent, database, databaseId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDatabaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + Database database = Database.newBuilder().build(); + String databaseId = "databaseId1688905718"; + client.createDatabaseAsync(parent, database, databaseId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void getDatabaseTest() throws Exception { Database expectedResponse = diff --git a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientTest.java b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientTest.java index 6af5415e1..e6f31ed91 100644 --- a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientTest.java +++ b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientTest.java @@ -1,5 +1,5 @@ /* - * 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. @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.StatusCode; import com.google.common.collect.Lists; import com.google.firestore.admin.v1.CollectionGroupName; +import com.google.firestore.admin.v1.CreateDatabaseRequest; import com.google.firestore.admin.v1.CreateIndexRequest; import com.google.firestore.admin.v1.Database; import com.google.firestore.admin.v1.DatabaseName; @@ -838,6 +839,116 @@ public void importDocumentsExceptionTest2() throws Exception { } } + @Test + public void createDatabaseTest() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) + .setLocationId("locationId1541836720") + .setKeyPrefix("keyPrefix-2076395055") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirestoreAdmin.addResponse(resultOperation); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Database database = Database.newBuilder().build(); + String databaseId = "databaseId1688905718"; + + Database actualResponse = client.createDatabaseAsync(parent, database, databaseId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirestoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDatabaseRequest actualRequest = ((CreateDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(databaseId, actualRequest.getDatabaseId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDatabaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirestoreAdmin.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Database database = Database.newBuilder().build(); + String databaseId = "databaseId1688905718"; + client.createDatabaseAsync(parent, database, databaseId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createDatabaseTest2() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) + .setLocationId("locationId1541836720") + .setKeyPrefix("keyPrefix-2076395055") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirestoreAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + Database database = Database.newBuilder().build(); + String databaseId = "databaseId1688905718"; + + Database actualResponse = client.createDatabaseAsync(parent, database, databaseId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirestoreAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDatabaseRequest actualRequest = ((CreateDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(databaseId, actualRequest.getDatabaseId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDatabaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirestoreAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + Database database = Database.newBuilder().build(); + String databaseId = "databaseId1688905718"; + client.createDatabaseAsync(parent, database, databaseId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void getDatabaseTest() throws Exception { Database expectedResponse = diff --git a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdmin.java b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdmin.java index 69c3535c7..08eb8501a 100644 --- a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdmin.java +++ b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdmin.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java index 678aaf553..a099136f7 100644 --- a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java +++ b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -17,6 +17,7 @@ package com.google.cloud.firestore.v1; import com.google.api.core.BetaApi; +import com.google.firestore.admin.v1.CreateDatabaseRequest; import com.google.firestore.admin.v1.CreateIndexRequest; import com.google.firestore.admin.v1.Database; import com.google.firestore.admin.v1.DeleteIndexRequest; @@ -262,6 +263,27 @@ public void importDocuments( } } + @Override + public void createDatabase( + CreateDatabaseRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateDatabase, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getDatabase(GetDatabaseRequest request, StreamObserver responseObserver) { Object response = responses.poll(); diff --git a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockLocations.java b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockLocations.java index bb881969a..f9e50dc16 100644 --- a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockLocations.java +++ b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockLocations.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockLocationsImpl.java b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockLocationsImpl.java index b4c321d3c..6e823521a 100644 --- a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockLocationsImpl.java +++ b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockLocationsImpl.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java index 8f2bc7979..b0c30d9d7 100644 --- a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java +++ b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreSettings.java b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreSettings.java index 045422236..c5d57c5cd 100644 --- a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreSettings.java +++ b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreSettings.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/package-info.java b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/package-info.java index 21c6f37ee..77ab24dd0 100644 --- a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/package-info.java +++ b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/package-info.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStub.java b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStub.java index aa5d6b128..0b3e92eb7 100644 --- a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStub.java +++ b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStub.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java index 79b7389c4..a9548229b 100644 --- a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java +++ b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreCallableFactory.java b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreCallableFactory.java index 656e77f5b..2c1cd24a4 100644 --- a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreCallableFactory.java +++ b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreStub.java b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreStub.java index ea202cc22..c372bca59 100644 --- a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreStub.java +++ b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreStub.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreCallableFactory.java b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreCallableFactory.java index ef1a2b580..78400d382 100644 --- a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreCallableFactory.java +++ b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreStub.java b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreStub.java index 4c1d12549..9d8ad9cfa 100644 --- a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreStub.java +++ b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/HttpJsonFirestoreStub.java @@ -1,5 +1,5 @@ /* - * 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. @@ -32,6 +32,7 @@ import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.firestore.v1.BatchGetDocumentsRequest; @@ -696,49 +697,104 @@ protected HttpJsonFirestoreStub( HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getDocumentMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings listDocumentsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listDocumentsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("collection_id", String.valueOf(request.getCollectionId())); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings updateDocumentTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateDocumentMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("document.name", String.valueOf(request.getDocument().getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings deleteDocumentTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteDocumentMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings batchGetDocumentsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(batchGetDocumentsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("database", String.valueOf(request.getDatabase())); + return builder.build(); + }) .build(); HttpJsonCallSettings beginTransactionTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(beginTransactionMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("database", String.valueOf(request.getDatabase())); + return builder.build(); + }) .build(); HttpJsonCallSettings commitTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(commitMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("database", String.valueOf(request.getDatabase())); + return builder.build(); + }) .build(); HttpJsonCallSettings rollbackTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(rollbackMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("database", String.valueOf(request.getDatabase())); + return builder.build(); + }) .build(); HttpJsonCallSettings runQueryTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(runQueryMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings runAggregationQueryTransportSettings = @@ -746,28 +802,59 @@ protected HttpJsonFirestoreStub( .newBuilder() .setMethodDescriptor(runAggregationQueryMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings partitionQueryTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(partitionQueryMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings listCollectionIdsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listCollectionIdsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings batchWriteTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(batchWriteMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("database", String.valueOf(request.getDatabase())); + return builder.build(); + }) .build(); HttpJsonCallSettings createDocumentTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createDocumentMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("collection_id", String.valueOf(request.getCollectionId())); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); this.getDocumentCallable = diff --git a/google-cloud-firestore/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json b/google-cloud-firestore/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json new file mode 100644 index 000000000..c7df9f03c --- /dev/null +++ b/google-cloud-firestore/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json @@ -0,0 +1,2621 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.AggregationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.AggregationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ArrayValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ArrayValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BatchGetDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BatchGetDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BatchGetDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BatchGetDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BatchWriteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BatchWriteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BatchWriteResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BatchWriteResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BeginTransactionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BeginTransactionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BeginTransactionResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BeginTransactionResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BitSequence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BitSequence$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BloomFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.BloomFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.CommitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.CommitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.CommitResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.CommitResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.CreateDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.CreateDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Cursor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Cursor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DeleteDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DeleteDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Document", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Document$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentChange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentChange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentDelete", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentDelete$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentRemove", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentRemove$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentTransform", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentTransform$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentTransform$FieldTransform", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentTransform$FieldTransform$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.DocumentTransform$FieldTransform$ServerValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ExistenceFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ExistenceFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.GetDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.GetDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ListCollectionIdsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ListCollectionIdsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ListCollectionIdsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ListCollectionIdsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ListDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ListDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ListDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ListDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ListenRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ListenRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ListenResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.ListenResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.MapValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.MapValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.PartitionQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.PartitionQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.PartitionQueryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.PartitionQueryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Precondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Precondition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.RollbackRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.RollbackRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.RunAggregationQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.RunAggregationQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.RunAggregationQueryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.RunAggregationQueryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.RunQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.RunQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.RunQueryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.RunQueryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredAggregationQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredAggregationQuery$Aggregation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredAggregationQuery$Aggregation$Avg", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredAggregationQuery$Aggregation$Avg$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredAggregationQuery$Aggregation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredAggregationQuery$Aggregation$Count", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredAggregationQuery$Aggregation$Count$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredAggregationQuery$Aggregation$Sum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredAggregationQuery$Aggregation$Sum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredAggregationQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$CollectionSelector", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$CollectionSelector$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$CompositeFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$CompositeFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$CompositeFilter$Operator", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$Direction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$FieldFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$FieldFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$FieldFilter$Operator", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$FieldReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$FieldReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$Filter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$Filter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$Order", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$Order$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$Projection", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$Projection$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$UnaryFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$UnaryFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.StructuredQuery$UnaryFilter$Operator", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Target", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Target$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Target$DocumentsTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Target$DocumentsTarget$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Target$QueryTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Target$QueryTarget$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.TargetChange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.TargetChange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.TargetChange$TargetChangeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.TransactionOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.TransactionOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.TransactionOptions$ReadOnly", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.TransactionOptions$ReadOnly$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.TransactionOptions$ReadWrite", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.TransactionOptions$ReadWrite$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.UpdateDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.UpdateDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Write", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.Write$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.WriteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.WriteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.WriteResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.WriteResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.WriteResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.firestore.v1.WriteResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BoolValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BoolValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BytesValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BytesValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DoubleValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DoubleValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FloatValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FloatValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Int32Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Int32Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Int64Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Int64Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.NullValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.StringValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.StringValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.UInt32Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.UInt32Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.UInt64Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.UInt64Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.LatLng", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.LatLng$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/FirestoreClientHttpJsonTest.java b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/FirestoreClientHttpJsonTest.java index 1a0fa2438..c92717d30 100644 --- a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/FirestoreClientHttpJsonTest.java +++ b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/FirestoreClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/FirestoreClientTest.java b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/FirestoreClientTest.java index 6c523ac5c..a0c3ecd53 100644 --- a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/FirestoreClientTest.java +++ b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/FirestoreClientTest.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestore.java b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestore.java index be045550e..055cb5c60 100644 --- a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestore.java +++ b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestore.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreImpl.java b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreImpl.java index a93537e89..1fb428f82 100644 --- a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreImpl.java +++ b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreImpl.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockLocations.java b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockLocations.java index bb881969a..f9e50dc16 100644 --- a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockLocations.java +++ b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockLocations.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockLocationsImpl.java b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockLocationsImpl.java index b4c321d3c..6e823521a 100644 --- a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockLocationsImpl.java +++ b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockLocationsImpl.java @@ -1,5 +1,5 @@ /* - * 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/grpc-google-cloud-firestore-admin-v1/clirr-ignored-differences.xml b/grpc-google-cloud-firestore-admin-v1/clirr-ignored-differences.xml index 81fcffb33..6eb076a38 100644 --- a/grpc-google-cloud-firestore-admin-v1/clirr-ignored-differences.xml +++ b/grpc-google-cloud-firestore-admin-v1/clirr-ignored-differences.xml @@ -2,9 +2,8 @@ - - 6001 - com/google/firestore/admin/v1/*Grpc - METHOD_* + 7012 + com/google/firestore/admin/v1/FirestoreAdminGrpc* + *createDatabase(com.google.firestore.admin.v1.CreateDatabaseRequest, io.grpc.stub.StreamObserver) diff --git a/grpc-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminGrpc.java b/grpc-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminGrpc.java index db8aa0d67..bc29647fb 100644 --- a/grpc-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminGrpc.java +++ b/grpc-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -442,6 +442,49 @@ private FirestoreAdminGrpc() {} return getImportDocumentsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateDatabaseRequest, com.google.longrunning.Operation> + getCreateDatabaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDatabase", + requestType = com.google.firestore.admin.v1.CreateDatabaseRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateDatabaseRequest, com.google.longrunning.Operation> + getCreateDatabaseMethod() { + io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateDatabaseRequest, com.google.longrunning.Operation> + getCreateDatabaseMethod; + if ((getCreateDatabaseMethod = FirestoreAdminGrpc.getCreateDatabaseMethod) == null) { + synchronized (FirestoreAdminGrpc.class) { + if ((getCreateDatabaseMethod = FirestoreAdminGrpc.getCreateDatabaseMethod) == null) { + FirestoreAdminGrpc.getCreateDatabaseMethod = + getCreateDatabaseMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDatabase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.admin.v1.CreateDatabaseRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FirestoreAdminMethodDescriptorSupplier("CreateDatabase")) + .build(); + } + } + } + return getCreateDatabaseMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.firestore.admin.v1.GetDatabaseRequest, com.google.firestore.admin.v1.Database> getGetDatabaseMethod; @@ -649,9 +692,11 @@ public interface AsyncService { * * *
-     * Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation]
-     * which may be used to track the status of the creation. The metadata for
-     * the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
+     * Creates a composite index. This returns a
+     * [google.longrunning.Operation][google.longrunning.Operation] which may be
+     * used to track the status of the creation. The metadata for the operation
+     * will be the type
+     * [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
      * 
*/ default void createIndex( @@ -722,12 +767,15 @@ default void getField( *
      * Updates a field configuration. Currently, field updates apply only to
      * single field index configuration. However, calls to
-     * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid
-     * changing any configuration that the caller isn't aware of. The field mask
-     * should be specified as: `{ paths: "index_config" }`.
-     * This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to
-     * track the status of the field update. The metadata for
-     * the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
+     * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]
+     * should provide a field mask to avoid changing any configuration that the
+     * caller isn't aware of. The field mask should be specified as: `{ paths:
+     * "index_config" }`.
+     * This call returns a
+     * [google.longrunning.Operation][google.longrunning.Operation] which may be
+     * used to track the status of the field update. The metadata for the
+     * operation will be the type
+     * [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
      * To configure the default field settings for the database, use
      * the special `Field` with resource name:
      * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
@@ -745,10 +793,12 @@ default void updateField(
      *
      * 
      * Lists the field configuration and metadata for this database.
-     * Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-     * that have been explicitly overridden. To issue this query, call
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
-     * `indexConfig.usesAncestorConfig:false` .
+     * Currently,
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * only supports listing fields that have been explicitly overridden. To issue
+     * this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * with the filter set to `indexConfig.usesAncestorConfig:false` .
      * 
*/ default void listFields( @@ -799,6 +849,20 @@ default void importDocuments( getImportDocumentsMethod(), responseObserver); } + /** + * + * + *
+     * Create a database.
+     * 
+ */ + default void createDatabase( + com.google.firestore.admin.v1.CreateDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDatabaseMethod(), responseObserver); + } + /** * * @@ -919,9 +983,11 @@ protected FirestoreAdminStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
-     * Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation]
-     * which may be used to track the status of the creation. The metadata for
-     * the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
+     * Creates a composite index. This returns a
+     * [google.longrunning.Operation][google.longrunning.Operation] which may be
+     * used to track the status of the creation. The metadata for the operation
+     * will be the type
+     * [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
      * 
*/ public void createIndex( @@ -1000,12 +1066,15 @@ public void getField( *
      * Updates a field configuration. Currently, field updates apply only to
      * single field index configuration. However, calls to
-     * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid
-     * changing any configuration that the caller isn't aware of. The field mask
-     * should be specified as: `{ paths: "index_config" }`.
-     * This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to
-     * track the status of the field update. The metadata for
-     * the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
+     * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]
+     * should provide a field mask to avoid changing any configuration that the
+     * caller isn't aware of. The field mask should be specified as: `{ paths:
+     * "index_config" }`.
+     * This call returns a
+     * [google.longrunning.Operation][google.longrunning.Operation] which may be
+     * used to track the status of the field update. The metadata for the
+     * operation will be the type
+     * [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
      * To configure the default field settings for the database, use
      * the special `Field` with resource name:
      * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
@@ -1025,10 +1094,12 @@ public void updateField(
      *
      * 
      * Lists the field configuration and metadata for this database.
-     * Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-     * that have been explicitly overridden. To issue this query, call
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
-     * `indexConfig.usesAncestorConfig:false` .
+     * Currently,
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * only supports listing fields that have been explicitly overridden. To issue
+     * this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * with the filter set to `indexConfig.usesAncestorConfig:false` .
      * 
*/ public void listFields( @@ -1084,6 +1155,22 @@ public void importDocuments( responseObserver); } + /** + * + * + *
+     * Create a database.
+     * 
+ */ + public void createDatabase( + com.google.firestore.admin.v1.CreateDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1176,9 +1263,11 @@ protected FirestoreAdminBlockingStub build( * * *
-     * Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation]
-     * which may be used to track the status of the creation. The metadata for
-     * the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
+     * Creates a composite index. This returns a
+     * [google.longrunning.Operation][google.longrunning.Operation] which may be
+     * used to track the status of the creation. The metadata for the operation
+     * will be the type
+     * [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
      * 
*/ public com.google.longrunning.Operation createIndex( @@ -1245,12 +1334,15 @@ public com.google.firestore.admin.v1.Field getField( *
      * Updates a field configuration. Currently, field updates apply only to
      * single field index configuration. However, calls to
-     * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid
-     * changing any configuration that the caller isn't aware of. The field mask
-     * should be specified as: `{ paths: "index_config" }`.
-     * This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to
-     * track the status of the field update. The metadata for
-     * the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
+     * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]
+     * should provide a field mask to avoid changing any configuration that the
+     * caller isn't aware of. The field mask should be specified as: `{ paths:
+     * "index_config" }`.
+     * This call returns a
+     * [google.longrunning.Operation][google.longrunning.Operation] which may be
+     * used to track the status of the field update. The metadata for the
+     * operation will be the type
+     * [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
      * To configure the default field settings for the database, use
      * the special `Field` with resource name:
      * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
@@ -1267,10 +1359,12 @@ public com.google.longrunning.Operation updateField(
      *
      * 
      * Lists the field configuration and metadata for this database.
-     * Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-     * that have been explicitly overridden. To issue this query, call
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
-     * `indexConfig.usesAncestorConfig:false` .
+     * Currently,
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * only supports listing fields that have been explicitly overridden. To issue
+     * this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * with the filter set to `indexConfig.usesAncestorConfig:false` .
      * 
*/ public com.google.firestore.admin.v1.ListFieldsResponse listFields( @@ -1318,6 +1412,19 @@ public com.google.longrunning.Operation importDocuments( getChannel(), getImportDocumentsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Create a database.
+     * 
+ */ + public com.google.longrunning.Operation createDatabase( + com.google.firestore.admin.v1.CreateDatabaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatabaseMethod(), getCallOptions(), request); + } + /** * * @@ -1400,9 +1507,11 @@ protected FirestoreAdminFutureStub build( * * *
-     * Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation]
-     * which may be used to track the status of the creation. The metadata for
-     * the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
+     * Creates a composite index. This returns a
+     * [google.longrunning.Operation][google.longrunning.Operation] which may be
+     * used to track the status of the creation. The metadata for the operation
+     * will be the type
+     * [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1470,12 +1579,15 @@ protected FirestoreAdminFutureStub build( *
      * Updates a field configuration. Currently, field updates apply only to
      * single field index configuration. However, calls to
-     * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid
-     * changing any configuration that the caller isn't aware of. The field mask
-     * should be specified as: `{ paths: "index_config" }`.
-     * This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to
-     * track the status of the field update. The metadata for
-     * the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
+     * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]
+     * should provide a field mask to avoid changing any configuration that the
+     * caller isn't aware of. The field mask should be specified as: `{ paths:
+     * "index_config" }`.
+     * This call returns a
+     * [google.longrunning.Operation][google.longrunning.Operation] which may be
+     * used to track the status of the field update. The metadata for the
+     * operation will be the type
+     * [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
      * To configure the default field settings for the database, use
      * the special `Field` with resource name:
      * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
@@ -1492,10 +1604,12 @@ protected FirestoreAdminFutureStub build(
      *
      * 
      * Lists the field configuration and metadata for this database.
-     * Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-     * that have been explicitly overridden. To issue this query, call
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
-     * `indexConfig.usesAncestorConfig:false` .
+     * Currently,
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * only supports listing fields that have been explicitly overridden. To issue
+     * this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * with the filter set to `indexConfig.usesAncestorConfig:false` .
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1544,6 +1658,19 @@ protected FirestoreAdminFutureStub build( getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Create a database.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createDatabase(com.google.firestore.admin.v1.CreateDatabaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDatabaseMethod(), getCallOptions()), request); + } + /** * * @@ -1595,9 +1722,10 @@ protected FirestoreAdminFutureStub build( private static final int METHODID_LIST_FIELDS = 6; private static final int METHODID_EXPORT_DOCUMENTS = 7; private static final int METHODID_IMPORT_DOCUMENTS = 8; - private static final int METHODID_GET_DATABASE = 9; - private static final int METHODID_LIST_DATABASES = 10; - private static final int METHODID_UPDATE_DATABASE = 11; + private static final int METHODID_CREATE_DATABASE = 9; + private static final int METHODID_GET_DATABASE = 10; + private static final int METHODID_LIST_DATABASES = 11; + private static final int METHODID_UPDATE_DATABASE = 12; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1663,6 +1791,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.firestore.admin.v1.ImportDocumentsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_DATABASE: + serviceImpl.createDatabase( + (com.google.firestore.admin.v1.CreateDatabaseRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_DATABASE: serviceImpl.getDatabase( (com.google.firestore.admin.v1.GetDatabaseRequest) request, @@ -1754,6 +1887,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.firestore.admin.v1.ImportDocumentsRequest, com.google.longrunning.Operation>(service, METHODID_IMPORT_DOCUMENTS))) + .addMethod( + getCreateDatabaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.firestore.admin.v1.CreateDatabaseRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_DATABASE))) .addMethod( getGetDatabaseMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1833,6 +1972,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListFieldsMethod()) .addMethod(getExportDocumentsMethod()) .addMethod(getImportDocumentsMethod()) + .addMethod(getCreateDatabaseMethod()) .addMethod(getGetDatabaseMethod()) .addMethod(getListDatabasesMethod()) .addMethod(getUpdateDatabaseMethod()) diff --git a/grpc-google-cloud-firestore-v1/clirr-ignored-differences.xml b/grpc-google-cloud-firestore-v1/clirr-ignored-differences.xml index 36537772f..fc73daacd 100644 --- a/grpc-google-cloud-firestore-v1/clirr-ignored-differences.xml +++ b/grpc-google-cloud-firestore-v1/clirr-ignored-differences.xml @@ -1,10 +1,4 @@ - - - 6001 - com/google/firestore/v1/*Grpc - METHOD_* - diff --git a/grpc-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/FirestoreGrpc.java b/grpc-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/FirestoreGrpc.java index cc63ecb8d..41c7adac1 100644 --- a/grpc-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/FirestoreGrpc.java +++ b/grpc-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/FirestoreGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CollectionGroupName.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CollectionGroupName.java index b58154939..28690be0d 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CollectionGroupName.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CollectionGroupName.java @@ -1,5 +1,5 @@ /* - * 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseMetadata.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseMetadata.java new file mode 100644 index 000000000..85ed191bf --- /dev/null +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseMetadata.java @@ -0,0 +1,431 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * Metadata related to the create database operation.
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.CreateDatabaseMetadata} + */ +public final class CreateDatabaseMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.CreateDatabaseMetadata) + CreateDatabaseMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDatabaseMetadata.newBuilder() to construct. + private CreateDatabaseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDatabaseMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDatabaseMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateDatabaseMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateDatabaseMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.CreateDatabaseMetadata.class, + com.google.firestore.admin.v1.CreateDatabaseMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.admin.v1.CreateDatabaseMetadata)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.CreateDatabaseMetadata other = + (com.google.firestore.admin.v1.CreateDatabaseMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.firestore.admin.v1.CreateDatabaseMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata related to the create database operation.
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.CreateDatabaseMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.CreateDatabaseMetadata) + com.google.firestore.admin.v1.CreateDatabaseMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateDatabaseMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateDatabaseMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.CreateDatabaseMetadata.class, + com.google.firestore.admin.v1.CreateDatabaseMetadata.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.CreateDatabaseMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateDatabaseMetadata_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.CreateDatabaseMetadata getDefaultInstanceForType() { + return com.google.firestore.admin.v1.CreateDatabaseMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.CreateDatabaseMetadata build() { + com.google.firestore.admin.v1.CreateDatabaseMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.CreateDatabaseMetadata buildPartial() { + com.google.firestore.admin.v1.CreateDatabaseMetadata result = + new com.google.firestore.admin.v1.CreateDatabaseMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.CreateDatabaseMetadata) { + return mergeFrom((com.google.firestore.admin.v1.CreateDatabaseMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.CreateDatabaseMetadata other) { + if (other == com.google.firestore.admin.v1.CreateDatabaseMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.CreateDatabaseMetadata) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.CreateDatabaseMetadata) + private static final com.google.firestore.admin.v1.CreateDatabaseMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.CreateDatabaseMetadata(); + } + + public static com.google.firestore.admin.v1.CreateDatabaseMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatabaseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.CreateDatabaseMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseMetadataOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseMetadataOrBuilder.java new file mode 100644 index 000000000..913e02e0b --- /dev/null +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseMetadataOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface CreateDatabaseMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.CreateDatabaseMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseRequest.java new file mode 100644 index 000000000..7532f2a50 --- /dev/null +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseRequest.java @@ -0,0 +1,1138 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +/** + * + * + *
+ * The request for
+ * [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase].
+ * 
+ * + * Protobuf type {@code google.firestore.admin.v1.CreateDatabaseRequest} + */ +public final class CreateDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.CreateDatabaseRequest) + CreateDatabaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDatabaseRequest.newBuilder() to construct. + private CreateDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDatabaseRequest() { + parent_ = ""; + databaseId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDatabaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.CreateDatabaseRequest.class, + com.google.firestore.admin.v1.CreateDatabaseRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. A parent name of the form
+   * `projects/{project_id}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. A parent name of the form
+   * `projects/{project_id}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FIELD_NUMBER = 2; + private com.google.firestore.admin.v1.Database database_; + /** + * + * + *
+   * Required. The Database to create.
+   * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the database field is set. + */ + @java.lang.Override + public boolean hasDatabase() { + return database_ != null; + } + /** + * + * + *
+   * Required. The Database to create.
+   * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The database. + */ + @java.lang.Override + public com.google.firestore.admin.v1.Database getDatabase() { + return database_ == null + ? com.google.firestore.admin.v1.Database.getDefaultInstance() + : database_; + } + /** + * + * + *
+   * Required. The Database to create.
+   * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.firestore.admin.v1.DatabaseOrBuilder getDatabaseOrBuilder() { + return database_ == null + ? com.google.firestore.admin.v1.Database.getDefaultInstance() + : database_; + } + + public static final int DATABASE_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object databaseId_ = ""; + /** + * + * + *
+   * Required. The ID to use for the database, which will become the final
+   * component of the database's resource name.
+   *
+   * The value must be set to "(default)".
+   * 
+ * + * string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + @java.lang.Override + public java.lang.String getDatabaseId() { + java.lang.Object ref = databaseId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID to use for the database, which will become the final
+   * component of the database's resource name.
+   *
+   * The value must be set to "(default)".
+   * 
+ * + * string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseIdBytes() { + java.lang.Object ref = databaseId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (database_ != null) { + output.writeMessage(2, getDatabase()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, databaseId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (database_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDatabase()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, databaseId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.admin.v1.CreateDatabaseRequest)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.CreateDatabaseRequest other = + (com.google.firestore.admin.v1.CreateDatabaseRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDatabase() != other.hasDatabase()) return false; + if (hasDatabase()) { + if (!getDatabase().equals(other.getDatabase())) return false; + } + if (!getDatabaseId().equals(other.getDatabaseId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDatabase()) { + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + } + hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.firestore.admin.v1.CreateDatabaseRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for
+   * [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase].
+   * 
+ * + * Protobuf type {@code google.firestore.admin.v1.CreateDatabaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.CreateDatabaseRequest) + com.google.firestore.admin.v1.CreateDatabaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.CreateDatabaseRequest.class, + com.google.firestore.admin.v1.CreateDatabaseRequest.Builder.class); + } + + // Construct using com.google.firestore.admin.v1.CreateDatabaseRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + database_ = null; + if (databaseBuilder_ != null) { + databaseBuilder_.dispose(); + databaseBuilder_ = null; + } + databaseId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateDatabaseRequest_descriptor; + } + + @java.lang.Override + public com.google.firestore.admin.v1.CreateDatabaseRequest getDefaultInstanceForType() { + return com.google.firestore.admin.v1.CreateDatabaseRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.admin.v1.CreateDatabaseRequest build() { + com.google.firestore.admin.v1.CreateDatabaseRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.admin.v1.CreateDatabaseRequest buildPartial() { + com.google.firestore.admin.v1.CreateDatabaseRequest result = + new com.google.firestore.admin.v1.CreateDatabaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.firestore.admin.v1.CreateDatabaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.database_ = databaseBuilder_ == null ? database_ : databaseBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.databaseId_ = databaseId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.admin.v1.CreateDatabaseRequest) { + return mergeFrom((com.google.firestore.admin.v1.CreateDatabaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.firestore.admin.v1.CreateDatabaseRequest other) { + if (other == com.google.firestore.admin.v1.CreateDatabaseRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDatabase()) { + mergeDatabase(other.getDatabase()); + } + if (!other.getDatabaseId().isEmpty()) { + databaseId_ = other.databaseId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDatabaseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. A parent name of the form
+     * `projects/{project_id}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. A parent name of the form
+     * `projects/{project_id}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. A parent name of the form
+     * `projects/{project_id}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A parent name of the form
+     * `projects/{project_id}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A parent name of the form
+     * `projects/{project_id}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.firestore.admin.v1.Database database_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Database, + com.google.firestore.admin.v1.Database.Builder, + com.google.firestore.admin.v1.DatabaseOrBuilder> + databaseBuilder_; + /** + * + * + *
+     * Required. The Database to create.
+     * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the database field is set. + */ + public boolean hasDatabase() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The Database to create.
+     * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The database. + */ + public com.google.firestore.admin.v1.Database getDatabase() { + if (databaseBuilder_ == null) { + return database_ == null + ? com.google.firestore.admin.v1.Database.getDefaultInstance() + : database_; + } else { + return databaseBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Database to create.
+     * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatabase(com.google.firestore.admin.v1.Database value) { + if (databaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + database_ = value; + } else { + databaseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Database to create.
+     * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatabase(com.google.firestore.admin.v1.Database.Builder builderForValue) { + if (databaseBuilder_ == null) { + database_ = builderForValue.build(); + } else { + databaseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Database to create.
+     * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDatabase(com.google.firestore.admin.v1.Database value) { + if (databaseBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && database_ != null + && database_ != com.google.firestore.admin.v1.Database.getDefaultInstance()) { + getDatabaseBuilder().mergeFrom(value); + } else { + database_ = value; + } + } else { + databaseBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Database to create.
+     * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDatabase() { + bitField0_ = (bitField0_ & ~0x00000002); + database_ = null; + if (databaseBuilder_ != null) { + databaseBuilder_.dispose(); + databaseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Database to create.
+     * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.firestore.admin.v1.Database.Builder getDatabaseBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDatabaseFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Database to create.
+     * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.firestore.admin.v1.DatabaseOrBuilder getDatabaseOrBuilder() { + if (databaseBuilder_ != null) { + return databaseBuilder_.getMessageOrBuilder(); + } else { + return database_ == null + ? com.google.firestore.admin.v1.Database.getDefaultInstance() + : database_; + } + } + /** + * + * + *
+     * Required. The Database to create.
+     * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Database, + com.google.firestore.admin.v1.Database.Builder, + com.google.firestore.admin.v1.DatabaseOrBuilder> + getDatabaseFieldBuilder() { + if (databaseBuilder_ == null) { + databaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.admin.v1.Database, + com.google.firestore.admin.v1.Database.Builder, + com.google.firestore.admin.v1.DatabaseOrBuilder>( + getDatabase(), getParentForChildren(), isClean()); + database_ = null; + } + return databaseBuilder_; + } + + private java.lang.Object databaseId_ = ""; + /** + * + * + *
+     * Required. The ID to use for the database, which will become the final
+     * component of the database's resource name.
+     *
+     * The value must be set to "(default)".
+     * 
+ * + * string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + public java.lang.String getDatabaseId() { + java.lang.Object ref = databaseId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID to use for the database, which will become the final
+     * component of the database's resource name.
+     *
+     * The value must be set to "(default)".
+     * 
+ * + * string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + public com.google.protobuf.ByteString getDatabaseIdBytes() { + java.lang.Object ref = databaseId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID to use for the database, which will become the final
+     * component of the database's resource name.
+     *
+     * The value must be set to "(default)".
+     * 
+ * + * string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The databaseId to set. + * @return This builder for chaining. + */ + public Builder setDatabaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + databaseId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for the database, which will become the final
+     * component of the database's resource name.
+     *
+     * The value must be set to "(default)".
+     * 
+ * + * string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabaseId() { + databaseId_ = getDefaultInstance().getDatabaseId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for the database, which will become the final
+     * component of the database's resource name.
+     *
+     * The value must be set to "(default)".
+     * 
+ * + * string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for databaseId to set. + * @return This builder for chaining. + */ + public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.CreateDatabaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.CreateDatabaseRequest) + private static final com.google.firestore.admin.v1.CreateDatabaseRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.admin.v1.CreateDatabaseRequest(); + } + + public static com.google.firestore.admin.v1.CreateDatabaseRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatabaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.admin.v1.CreateDatabaseRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseRequestOrBuilder.java new file mode 100644 index 000000000..0161cfbf0 --- /dev/null +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateDatabaseRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/firestore/admin/v1/firestore_admin.proto + +package com.google.firestore.admin.v1; + +public interface CreateDatabaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.CreateDatabaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A parent name of the form
+   * `projects/{project_id}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. A parent name of the form
+   * `projects/{project_id}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The Database to create.
+   * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the database field is set. + */ + boolean hasDatabase(); + /** + * + * + *
+   * Required. The Database to create.
+   * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The database. + */ + com.google.firestore.admin.v1.Database getDatabase(); + /** + * + * + *
+   * Required. The Database to create.
+   * 
+ * + * + * .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.firestore.admin.v1.DatabaseOrBuilder getDatabaseOrBuilder(); + + /** + * + * + *
+   * Required. The ID to use for the database, which will become the final
+   * component of the database's resource name.
+   *
+   * The value must be set to "(default)".
+   * 
+ * + * string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + java.lang.String getDatabaseId(); + /** + * + * + *
+   * Required. The ID to use for the database, which will become the final
+   * component of the database's resource name.
+   *
+   * The value must be set to "(default)".
+   * 
+ * + * string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + com.google.protobuf.ByteString getDatabaseIdBytes(); +} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequest.java index 37b461738..3a7f2f875 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -22,7 +22,8 @@ * * *
- * The request for [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
+ * The request for
+ * [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
  * 
* * Protobuf type {@code google.firestore.admin.v1.CreateIndexRequest} @@ -47,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateIndexRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor; @@ -350,7 +346,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
+   * The request for
+   * [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
    * 
* * Protobuf type {@code google.firestore.admin.v1.CreateIndexRequest} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequestOrBuilder.java index 664eb18a5..e37e367dd 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CreateIndexRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Database.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Database.java index f3356a3ef..9cb562e2a 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Database.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Database.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -55,11 +55,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Database(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.DatabaseProto .internal_static_google_firestore_admin_v1_Database_descriptor; @@ -82,6 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The type of the database. * See https://cloud.google.com/datastore/docs/firestore-or-datastore for * information about how to choose. + * * Mode changes are only allowed if the database is empty. *
* @@ -272,6 +268,7 @@ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { *
      * Use pessimistic concurrency control by default. This mode is available
      * for Cloud Firestore databases.
+     *
      * This is the default setting for Cloud Firestore.
      * 
* @@ -283,7 +280,9 @@ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { * *
      * Use optimistic concurrency control with entity groups by default.
+     *
      * This is the only available mode for Cloud Datastore.
+     *
      * This mode is also available for Cloud Firestore with Datastore Mode but
      * is not recommended.
      * 
@@ -321,6 +320,7 @@ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { *
      * Use pessimistic concurrency control by default. This mode is available
      * for Cloud Firestore databases.
+     *
      * This is the default setting for Cloud Firestore.
      * 
* @@ -332,7 +332,9 @@ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum { * *
      * Use optimistic concurrency control with entity groups by default.
+     *
      * This is the only available mode for Cloud Datastore.
+     *
      * This mode is also available for Cloud Firestore with Datastore Mode but
      * is not recommended.
      * 
@@ -835,6 +837,7 @@ public int getAppEngineIntegrationModeValue() { * with the project id ("<key prefix>~<project id>") to construct the * application id that is returned from the Cloud Datastore APIs in Google App * Engine first generation runtimes. + * * This value may be empty in which case the appid to use for URL-encoded keys * is the project_id (eg: foo instead of v~foo). *
@@ -863,6 +866,7 @@ public java.lang.String getKeyPrefix() { * with the project id ("<key prefix>~<project id>") to construct the * application id that is returned from the Cloud Datastore APIs in Google App * Engine first generation runtimes. + * * This value may be empty in which case the appid to use for URL-encoded keys * is the project_id (eg: foo instead of v~foo). *
@@ -1964,6 +1968,7 @@ public Builder clearAppEngineIntegrationMode() { * with the project id ("<key prefix>~<project id>") to construct the * application id that is returned from the Cloud Datastore APIs in Google App * Engine first generation runtimes. + * * This value may be empty in which case the appid to use for URL-encoded keys * is the project_id (eg: foo instead of v~foo). *
@@ -1991,6 +1996,7 @@ public java.lang.String getKeyPrefix() { * with the project id ("<key prefix>~<project id>") to construct the * application id that is returned from the Cloud Datastore APIs in Google App * Engine first generation runtimes. + * * This value may be empty in which case the appid to use for URL-encoded keys * is the project_id (eg: foo instead of v~foo). * @@ -2018,6 +2024,7 @@ public com.google.protobuf.ByteString getKeyPrefixBytes() { * with the project id ("<key prefix>~<project id>") to construct the * application id that is returned from the Cloud Datastore APIs in Google App * Engine first generation runtimes. + * * This value may be empty in which case the appid to use for URL-encoded keys * is the project_id (eg: foo instead of v~foo). * @@ -2044,6 +2051,7 @@ public Builder setKeyPrefix(java.lang.String value) { * with the project id ("<key prefix>~<project id>") to construct the * application id that is returned from the Cloud Datastore APIs in Google App * Engine first generation runtimes. + * * This value may be empty in which case the appid to use for URL-encoded keys * is the project_id (eg: foo instead of v~foo). * @@ -2066,6 +2074,7 @@ public Builder clearKeyPrefix() { * with the project id ("<key prefix>~<project id>") to construct the * application id that is returned from the Cloud Datastore APIs in Google App * Engine first generation runtimes. + * * This value may be empty in which case the appid to use for URL-encoded keys * is the project_id (eg: foo instead of v~foo). * diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java index 023d9118b..084e3be3d 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java @@ -1,5 +1,5 @@ /* - * 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseOrBuilder.java index c47da06ff..c0f2053eb 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -168,6 +168,7 @@ public interface DatabaseOrBuilder * with the project id ("<key prefix>~<project id>") to construct the * application id that is returned from the Cloud Datastore APIs in Google App * Engine first generation runtimes. + * * This value may be empty in which case the appid to use for URL-encoded keys * is the project_id (eg: foo instead of v~foo). * @@ -185,6 +186,7 @@ public interface DatabaseOrBuilder * with the project id ("<key prefix>~<project id>") to construct the * application id that is returned from the Cloud Datastore APIs in Google App * Engine first generation runtimes. + * * This value may be empty in which case the appid to use for URL-encoded keys * is the project_id (eg: foo instead of v~foo). * diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseProto.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseProto.java index 31611a689..a1148fa65 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseProto.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -43,31 +43,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n(google/firestore/admin/v1/database.pro" + "to\022\031google.firestore.admin.v1\032\037google/ap" + "i/field_behavior.proto\032\031google/api/resou" - + "rce.proto\"\320\005\n\010Database\022\014\n\004name\030\001 \001(\t\022\023\n\013" + + "rce.proto\"\321\005\n\010Database\022\014\n\004name\030\001 \001(\t\022\023\n\013" + "location_id\030\t \001(\t\022>\n\004type\030\n \001(\01620.google" + ".firestore.admin.v1.Database.DatabaseTyp" + "e\022M\n\020concurrency_mode\030\017 \001(\01623.google.fir" + "estore.admin.v1.Database.ConcurrencyMode" + "\022a\n\033app_engine_integration_mode\030\023 \001(\0162<." + "google.firestore.admin.v1.Database.AppEn" - + "gineIntegrationMode\022\027\n\nkey_prefix\030\024 \001(\tB" - + "\003\340A\003\022\014\n\004etag\030c \001(\t\"W\n\014DatabaseType\022\035\n\031DA" - + "TABASE_TYPE_UNSPECIFIED\020\000\022\024\n\020FIRESTORE_N" - + "ATIVE\020\001\022\022\n\016DATASTORE_MODE\020\002\"w\n\017Concurren" - + "cyMode\022 \n\034CONCURRENCY_MODE_UNSPECIFIED\020\000" - + "\022\016\n\nOPTIMISTIC\020\001\022\017\n\013PESSIMISTIC\020\002\022!\n\035OPT" - + "IMISTIC_WITH_ENTITY_GROUPS\020\003\"b\n\030AppEngin" - + "eIntegrationMode\022+\n\'APP_ENGINE_INTEGRATI" - + "ON_MODE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DI" - + "SABLED\020\002:R\352AO\n!firestore.googleapis.com/" - + "Database\022\'projects/{project}/databases/{" - + "database}R\001\001B\334\001\n\035com.google.firestore.ad" - + "min.v1B\rDatabaseProtoP\001Z9cloud.google.co" - + "m/go/firestore/apiv1/admin/adminpb;admin" - + "pb\242\002\004GCFS\252\002\037Google.Cloud.Firestore.Admin" - + ".V1\312\002\037Google\\Cloud\\Firestore\\Admin\\V1\352\002#" - + "Google::Cloud::Firestore::Admin::V1b\006pro" - + "to3" + + "gineIntegrationMode\022\030\n\nkey_prefix\030\024 \001(\tB" + + "\004\342A\001\003\022\014\n\004etag\030c \001(\t\"W\n\014DatabaseType\022\035\n\031D" + + "ATABASE_TYPE_UNSPECIFIED\020\000\022\024\n\020FIRESTORE_" + + "NATIVE\020\001\022\022\n\016DATASTORE_MODE\020\002\"w\n\017Concurre" + + "ncyMode\022 \n\034CONCURRENCY_MODE_UNSPECIFIED\020" + + "\000\022\016\n\nOPTIMISTIC\020\001\022\017\n\013PESSIMISTIC\020\002\022!\n\035OP" + + "TIMISTIC_WITH_ENTITY_GROUPS\020\003\"b\n\030AppEngi" + + "neIntegrationMode\022+\n\'APP_ENGINE_INTEGRAT" + + "ION_MODE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010D" + + "ISABLED\020\002:R\352AO\n!firestore.googleapis.com" + + "/Database\022\'projects/{project}/databases/" + + "{database}R\001\001B\334\001\n\035com.google.firestore.a" + + "dmin.v1B\rDatabaseProtoP\001Z9cloud.google.c" + + "om/go/firestore/apiv1/admin/adminpb;admi" + + "npb\242\002\004GCFS\252\002\037Google.Cloud.Firestore.Admi" + + "n.V1\312\002\037Google\\Cloud\\Firestore\\Admin\\V1\352\002" + + "#Google::Cloud::Firestore::Admin::V1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequest.java index e34a62929..32108f3e2 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -22,7 +22,8 @@ * * *
- * The request for [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex].
+ * The request for
+ * [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex].
  * 
* * Protobuf type {@code google.firestore.admin.v1.DeleteIndexRequest} @@ -47,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteIndexRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor; @@ -287,7 +283,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex].
+   * The request for
+   * [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex].
    * 
* * Protobuf type {@code google.firestore.admin.v1.DeleteIndexRequest} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequestOrBuilder.java index 360e0535c..122712817 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DeleteIndexRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java index 5ff8a3111..3f993c875 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -40,7 +40,7 @@ private ExportDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder values) { ensureCollectionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, collectionIds_); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1921,8 +1914,9 @@ public Builder addAllCollectionIds(java.lang.Iterable values) * @return This builder for chaining. */ public Builder clearCollectionIds() { - collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); + ; onChanged(); return this; } @@ -1945,6 +1939,7 @@ public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureCollectionIdsIsMutable(); collectionIds_.add(value); + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadataOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadataOrBuilder.java index 6668efc0d..d115722cd 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadataOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadataOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java index 52d0ea19a..d9b2954b7 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -22,7 +22,8 @@ * * *
- * The request for [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
+ * The request for
+ * [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
  * 
* * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsRequest} @@ -39,7 +40,7 @@ private ExportDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder private ExportDocumentsRequest() { name_ = ""; - collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); outputUriPrefix_ = ""; } @@ -49,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportDocumentsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor; @@ -129,7 +125,8 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int COLLECTION_IDS_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList collectionIds_; + private com.google.protobuf.LazyStringArrayList collectionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -442,7 +439,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
+   * The request for
+   * [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
    * 
* * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsRequest} @@ -478,8 +476,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; - collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); outputUriPrefix_ = ""; return this; } @@ -508,7 +505,6 @@ public com.google.firestore.admin.v1.ExportDocumentsRequest build() { public com.google.firestore.admin.v1.ExportDocumentsRequest buildPartial() { com.google.firestore.admin.v1.ExportDocumentsRequest result = new com.google.firestore.admin.v1.ExportDocumentsRequest(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -516,20 +512,15 @@ public com.google.firestore.admin.v1.ExportDocumentsRequest buildPartial() { return result; } - private void buildPartialRepeatedFields( - com.google.firestore.admin.v1.ExportDocumentsRequest result) { - if (((bitField0_ & 0x00000002) != 0)) { - collectionIds_ = collectionIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.collectionIds_ = collectionIds_; - } - private void buildPartial0(com.google.firestore.admin.v1.ExportDocumentsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + collectionIds_.makeImmutable(); + result.collectionIds_ = collectionIds_; + } if (((from_bitField0_ & 0x00000004) != 0)) { result.outputUriPrefix_ = outputUriPrefix_; } @@ -589,7 +580,7 @@ public Builder mergeFrom(com.google.firestore.admin.v1.ExportDocumentsRequest ot if (!other.collectionIds_.isEmpty()) { if (collectionIds_.isEmpty()) { collectionIds_ = other.collectionIds_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureCollectionIdsIsMutable(); collectionIds_.addAll(other.collectionIds_); @@ -786,14 +777,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList collectionIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList collectionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCollectionIdsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!collectionIds_.isModifiable()) { collectionIds_ = new com.google.protobuf.LazyStringArrayList(collectionIds_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** * @@ -807,7 +798,8 @@ private void ensureCollectionIdsIsMutable() { * @return A list containing the collectionIds. */ public com.google.protobuf.ProtocolStringList getCollectionIdsList() { - return collectionIds_.getUnmodifiableView(); + collectionIds_.makeImmutable(); + return collectionIds_; } /** * @@ -872,6 +864,7 @@ public Builder setCollectionIds(int index, java.lang.String value) { } ensureCollectionIdsIsMutable(); collectionIds_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -893,6 +886,7 @@ public Builder addCollectionIds(java.lang.String value) { } ensureCollectionIdsIsMutable(); collectionIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -911,6 +905,7 @@ public Builder addCollectionIds(java.lang.String value) { public Builder addAllCollectionIds(java.lang.Iterable values) { ensureCollectionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, collectionIds_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -926,8 +921,9 @@ public Builder addAllCollectionIds(java.lang.Iterable values) * @return This builder for chaining. */ public Builder clearCollectionIds() { - collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -950,6 +946,7 @@ public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureCollectionIdsIsMutable(); collectionIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequestOrBuilder.java index bafc4a089..1da200a0d 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java index 2a17e0d00..fb3e0f8ad 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportDocumentsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.OperationProto .internal_static_google_firestore_admin_v1_ExportDocumentsResponse_descriptor; diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponseOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponseOrBuilder.java index e4588c346..37e11c2c2 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponseOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Field.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Field.java index c19498436..a3f904038 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Field.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Field.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -23,6 +23,7 @@ * *
  * Represents a single field in the database.
+ *
  * Fields are grouped by their "Collection Group", which represent all
  * collections in the database with the same id.
  * 
@@ -49,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Field(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FieldProto .internal_static_google_firestore_admin_v1_Field_descriptor; @@ -219,11 +215,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IndexConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FieldProto .internal_static_google_firestore_admin_v1_Field_IndexConfig_descriptor; @@ -1595,11 +1586,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TtlConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FieldProto .internal_static_google_firestore_admin_v1_Field_TtlConfig_descriptor; @@ -2375,21 +2361,25 @@ public com.google.firestore.admin.v1.Field.TtlConfig getDefaultInstanceForType() *
    * Required. A field name of the form
    * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+   *
    * A field path may be a simple field name, e.g. `address` or a path to fields
    * within map_value , e.g. `address.city`,
    * or a special field path. The only valid special field is `*`, which
    * represents any field.
+   *
    * Field paths may be quoted using ` (backtick). The only character that needs
    * to be escaped within a quoted field path is the backtick character itself,
    * escaped using a backslash. Special characters in field paths that
    * must be quoted include: `*`, `.`,
    * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+   *
    * Examples:
    * (Note: Comments here are written in markdown syntax, so there is an
    *  additional layer of backticks to represent a code block)
    * `\`address.city\`` represents a field named `address.city`, not the map key
    * `city` in the field `address`.
    * `\`*\`` represents a field named `*`, not any field.
+   *
    * A special `Field` contains the default indexing settings for all fields.
    * This field's resource name is:
    * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
@@ -2419,21 +2409,25 @@ public java.lang.String getName() {
    * 
    * Required. A field name of the form
    * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+   *
    * A field path may be a simple field name, e.g. `address` or a path to fields
    * within map_value , e.g. `address.city`,
    * or a special field path. The only valid special field is `*`, which
    * represents any field.
+   *
    * Field paths may be quoted using ` (backtick). The only character that needs
    * to be escaped within a quoted field path is the backtick character itself,
    * escaped using a backslash. Special characters in field paths that
    * must be quoted include: `*`, `.`,
    * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+   *
    * Examples:
    * (Note: Comments here are written in markdown syntax, so there is an
    *  additional layer of backticks to represent a code block)
    * `\`address.city\`` represents a field named `address.city`, not the map key
    * `city` in the field `address`.
    * `\`*\`` represents a field named `*`, not any field.
+   *
    * A special `Field` contains the default indexing settings for all fields.
    * This field's resource name is:
    * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
@@ -2763,6 +2757,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 
    * Represents a single field in the database.
+   *
    * Fields are grouped by their "Collection Group", which represent all
    * collections in the database with the same id.
    * 
@@ -2983,21 +2978,25 @@ public Builder mergeFrom( *
      * Required. A field name of the form
      * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     *
      * A field path may be a simple field name, e.g. `address` or a path to fields
      * within map_value , e.g. `address.city`,
      * or a special field path. The only valid special field is `*`, which
      * represents any field.
+     *
      * Field paths may be quoted using ` (backtick). The only character that needs
      * to be escaped within a quoted field path is the backtick character itself,
      * escaped using a backslash. Special characters in field paths that
      * must be quoted include: `*`, `.`,
      * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+     *
      * Examples:
      * (Note: Comments here are written in markdown syntax, so there is an
      *  additional layer of backticks to represent a code block)
      * `\`address.city\`` represents a field named `address.city`, not the map key
      * `city` in the field `address`.
      * `\`*\`` represents a field named `*`, not any field.
+     *
      * A special `Field` contains the default indexing settings for all fields.
      * This field's resource name is:
      * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
@@ -3026,21 +3025,25 @@ public java.lang.String getName() {
      * 
      * Required. A field name of the form
      * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     *
      * A field path may be a simple field name, e.g. `address` or a path to fields
      * within map_value , e.g. `address.city`,
      * or a special field path. The only valid special field is `*`, which
      * represents any field.
+     *
      * Field paths may be quoted using ` (backtick). The only character that needs
      * to be escaped within a quoted field path is the backtick character itself,
      * escaped using a backslash. Special characters in field paths that
      * must be quoted include: `*`, `.`,
      * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+     *
      * Examples:
      * (Note: Comments here are written in markdown syntax, so there is an
      *  additional layer of backticks to represent a code block)
      * `\`address.city\`` represents a field named `address.city`, not the map key
      * `city` in the field `address`.
      * `\`*\`` represents a field named `*`, not any field.
+     *
      * A special `Field` contains the default indexing settings for all fields.
      * This field's resource name is:
      * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
@@ -3069,21 +3072,25 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
      * Required. A field name of the form
      * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     *
      * A field path may be a simple field name, e.g. `address` or a path to fields
      * within map_value , e.g. `address.city`,
      * or a special field path. The only valid special field is `*`, which
      * represents any field.
+     *
      * Field paths may be quoted using ` (backtick). The only character that needs
      * to be escaped within a quoted field path is the backtick character itself,
      * escaped using a backslash. Special characters in field paths that
      * must be quoted include: `*`, `.`,
      * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+     *
      * Examples:
      * (Note: Comments here are written in markdown syntax, so there is an
      *  additional layer of backticks to represent a code block)
      * `\`address.city\`` represents a field named `address.city`, not the map key
      * `city` in the field `address`.
      * `\`*\`` represents a field named `*`, not any field.
+     *
      * A special `Field` contains the default indexing settings for all fields.
      * This field's resource name is:
      * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
@@ -3111,21 +3118,25 @@ public Builder setName(java.lang.String value) {
      * 
      * Required. A field name of the form
      * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     *
      * A field path may be a simple field name, e.g. `address` or a path to fields
      * within map_value , e.g. `address.city`,
      * or a special field path. The only valid special field is `*`, which
      * represents any field.
+     *
      * Field paths may be quoted using ` (backtick). The only character that needs
      * to be escaped within a quoted field path is the backtick character itself,
      * escaped using a backslash. Special characters in field paths that
      * must be quoted include: `*`, `.`,
      * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+     *
      * Examples:
      * (Note: Comments here are written in markdown syntax, so there is an
      *  additional layer of backticks to represent a code block)
      * `\`address.city\`` represents a field named `address.city`, not the map key
      * `city` in the field `address`.
      * `\`*\`` represents a field named `*`, not any field.
+     *
      * A special `Field` contains the default indexing settings for all fields.
      * This field's resource name is:
      * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
@@ -3149,21 +3160,25 @@ public Builder clearName() {
      * 
      * Required. A field name of the form
      * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+     *
      * A field path may be a simple field name, e.g. `address` or a path to fields
      * within map_value , e.g. `address.city`,
      * or a special field path. The only valid special field is `*`, which
      * represents any field.
+     *
      * Field paths may be quoted using ` (backtick). The only character that needs
      * to be escaped within a quoted field path is the backtick character itself,
      * escaped using a backslash. Special characters in field paths that
      * must be quoted include: `*`, `.`,
      * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+     *
      * Examples:
      * (Note: Comments here are written in markdown syntax, so there is an
      *  additional layer of backticks to represent a code block)
      * `\`address.city\`` represents a field named `address.city`, not the map key
      * `city` in the field `address`.
      * `\`*\`` represents a field named `*`, not any field.
+     *
      * A special `Field` contains the default indexing settings for all fields.
      * This field's resource name is:
      * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldName.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldName.java
index f0ddc21b2..ed058e7bb 100644
--- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldName.java
+++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldName.java
@@ -1,5 +1,5 @@
 /*
- * 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadata.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadata.java
index a675dfac8..bde0ef058 100644
--- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadata.java
+++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadata.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FieldOperationMetadata();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.firestore.admin.v1.OperationProto
         .internal_static_google_firestore_admin_v1_FieldOperationMetadata_descriptor;
@@ -169,11 +164,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new IndexConfigDelta();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.firestore.admin.v1.OperationProto
           .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_descriptor;
@@ -1248,11 +1238,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new TtlConfigDelta();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.firestore.admin.v1.OperationProto
           .internal_static_google_firestore_admin_v1_FieldOperationMetadata_TtlConfigDelta_descriptor;
diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadataOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadataOrBuilder.java
index 0af121235..af5cb824d 100644
--- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadataOrBuilder.java
+++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadataOrBuilder.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOrBuilder.java
index 10f855658..8a840451a 100644
--- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOrBuilder.java
+++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOrBuilder.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -29,21 +29,25 @@ public interface FieldOrBuilder
    * 
    * Required. A field name of the form
    * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+   *
    * A field path may be a simple field name, e.g. `address` or a path to fields
    * within map_value , e.g. `address.city`,
    * or a special field path. The only valid special field is `*`, which
    * represents any field.
+   *
    * Field paths may be quoted using ` (backtick). The only character that needs
    * to be escaped within a quoted field path is the backtick character itself,
    * escaped using a backslash. Special characters in field paths that
    * must be quoted include: `*`, `.`,
    * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+   *
    * Examples:
    * (Note: Comments here are written in markdown syntax, so there is an
    *  additional layer of backticks to represent a code block)
    * `\`address.city\`` represents a field named `address.city`, not the map key
    * `city` in the field `address`.
    * `\`*\`` represents a field named `*`, not any field.
+   *
    * A special `Field` contains the default indexing settings for all fields.
    * This field's resource name is:
    * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
@@ -62,21 +66,25 @@ public interface FieldOrBuilder
    * 
    * Required. A field name of the form
    * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+   *
    * A field path may be a simple field name, e.g. `address` or a path to fields
    * within map_value , e.g. `address.city`,
    * or a special field path. The only valid special field is `*`, which
    * represents any field.
+   *
    * Field paths may be quoted using ` (backtick). The only character that needs
    * to be escaped within a quoted field path is the backtick character itself,
    * escaped using a backslash. Special characters in field paths that
    * must be quoted include: `*`, `.`,
    * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+   *
    * Examples:
    * (Note: Comments here are written in markdown syntax, so there is an
    *  additional layer of backticks to represent a code block)
    * `\`address.city\`` represents a field named `address.city`, not the map key
    * `city` in the field `address`.
    * `\`*\`` represents a field named `*`, not any field.
+   *
    * A special `Field` contains the default indexing settings for all fields.
    * This field's resource name is:
    * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldProto.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldProto.java
index 996ab05b9..34287e4ac 100644
--- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldProto.java
+++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldProto.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -52,27 +52,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "\031google.firestore.admin.v1\032\037google/api/f"
           + "ield_behavior.proto\032\031google/api/resource"
           + ".proto\032%google/firestore/admin/v1/index."
-          + "proto\"\305\004\n\005Field\022\021\n\004name\030\001 \001(\tB\003\340A\002\022B\n\014in"
-          + "dex_config\030\002 \001(\0132,.google.firestore.admi"
-          + "n.v1.Field.IndexConfig\022>\n\nttl_config\030\003 \001"
-          + "(\0132*.google.firestore.admin.v1.Field.Ttl"
-          + "Config\032\211\001\n\013IndexConfig\0221\n\007indexes\030\001 \003(\0132"
-          + " .google.firestore.admin.v1.Index\022\034\n\024use"
-          + "s_ancestor_config\030\002 \001(\010\022\026\n\016ancestor_fiel"
-          + "d\030\003 \001(\t\022\021\n\treverting\030\004 \001(\010\032\235\001\n\tTtlConfig"
-          + "\022D\n\005state\030\001 \001(\01620.google.firestore.admin"
-          + ".v1.Field.TtlConfig.StateB\003\340A\003\"J\n\005State\022"
-          + "\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006"
-          + "ACTIVE\020\002\022\020\n\014NEEDS_REPAIR\020\003:y\352Av\n\036firesto"
-          + "re.googleapis.com/Field\022Tprojects/{proje"
-          + "ct}/databases/{database}/collectionGroup"
-          + "s/{collection}/fields/{field}B\331\001\n\035com.go"
-          + "ogle.firestore.admin.v1B\nFieldProtoP\001Z9c"
-          + "loud.google.com/go/firestore/apiv1/admin"
-          + "/adminpb;adminpb\242\002\004GCFS\252\002\037Google.Cloud.F"
-          + "irestore.Admin.V1\312\002\037Google\\Cloud\\Firesto"
-          + "re\\Admin\\V1\352\002#Google::Cloud::Firestore::"
-          + "Admin::V1b\006proto3"
+          + "proto\"\307\004\n\005Field\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022B\n\014i"
+          + "ndex_config\030\002 \001(\0132,.google.firestore.adm"
+          + "in.v1.Field.IndexConfig\022>\n\nttl_config\030\003 "
+          + "\001(\0132*.google.firestore.admin.v1.Field.Tt"
+          + "lConfig\032\211\001\n\013IndexConfig\0221\n\007indexes\030\001 \003(\013"
+          + "2 .google.firestore.admin.v1.Index\022\034\n\024us"
+          + "es_ancestor_config\030\002 \001(\010\022\026\n\016ancestor_fie"
+          + "ld\030\003 \001(\t\022\021\n\treverting\030\004 \001(\010\032\236\001\n\tTtlConfi"
+          + "g\022E\n\005state\030\001 \001(\01620.google.firestore.admi"
+          + "n.v1.Field.TtlConfig.StateB\004\342A\001\003\"J\n\005Stat"
+          + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n"
+          + "\n\006ACTIVE\020\002\022\020\n\014NEEDS_REPAIR\020\003:y\352Av\n\036fires"
+          + "tore.googleapis.com/Field\022Tprojects/{pro"
+          + "ject}/databases/{database}/collectionGro"
+          + "ups/{collection}/fields/{field}B\331\001\n\035com."
+          + "google.firestore.admin.v1B\nFieldProtoP\001Z"
+          + "9cloud.google.com/go/firestore/apiv1/adm"
+          + "in/adminpb;adminpb\242\002\004GCFS\252\002\037Google.Cloud"
+          + ".Firestore.Admin.V1\312\002\037Google\\Cloud\\Fires"
+          + "tore\\Admin\\V1\352\002#Google::Cloud::Firestore"
+          + "::Admin::V1b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java
index 3f9bb06d7..50e4a25dc 100644
--- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java
+++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -31,6 +31,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
       internal_static_google_firestore_admin_v1_ListDatabasesRequest_descriptor;
   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_firestore_admin_v1_ListDatabasesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_firestore_admin_v1_CreateDatabaseRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_firestore_admin_v1_CreateDatabaseRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_firestore_admin_v1_CreateDatabaseMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_firestore_admin_v1_CreateDatabaseMetadata_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
       internal_static_google_firestore_admin_v1_ListDatabasesResponse_descriptor;
   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -110,120 +118,131 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "/firestore/admin/v1/index.proto\032#google/"
           + "longrunning/operations.proto\032\033google/pro"
           + "tobuf/empty.proto\032 google/protobuf/field"
-          + "_mask.proto\"Q\n\024ListDatabasesRequest\0229\n\006p"
-          + "arent\030\001 \001(\tB)\340A\002\372A#\022!firestore.googleapi"
-          + "s.com/Database\"O\n\025ListDatabasesResponse\022"
-          + "6\n\tdatabases\030\001 \003(\0132#.google.firestore.ad"
-          + "min.v1.Database\"M\n\022GetDatabaseRequest\0227\n"
-          + "\004name\030\001 \001(\tB)\340A\002\372A#\n!firestore.googleapi"
-          + "s.com/Database\"\204\001\n\025UpdateDatabaseRequest"
-          + "\022:\n\010database\030\001 \001(\0132#.google.firestore.ad"
-          + "min.v1.DatabaseB\003\340A\002\022/\n\013update_mask\030\002 \001("
-          + "\0132\032.google.protobuf.FieldMask\"\030\n\026UpdateD"
-          + "atabaseMetadata\"\214\001\n\022CreateIndexRequest\022@"
-          + "\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(firestore.google"
-          + "apis.com/CollectionGroup\0224\n\005index\030\002 \001(\0132"
-          + " .google.firestore.admin.v1.IndexB\003\340A\002\"\215"
-          + "\001\n\022ListIndexesRequest\022@\n\006parent\030\001 \001(\tB0\340"
-          + "A\002\372A*\n(firestore.googleapis.com/Collecti"
+          + "_mask.proto\"R\n\024ListDatabasesRequest\022:\n\006p"
+          + "arent\030\001 \001(\tB*\342A\001\002\372A#\022!firestore.googleap"
+          + "is.com/Database\"\253\001\n\025CreateDatabaseReques"
+          + "t\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\022!firestore.go"
+          + "ogleapis.com/Database\022;\n\010database\030\002 \001(\0132"
+          + "#.google.firestore.admin.v1.DatabaseB\004\342A"
+          + "\001\002\022\031\n\013database_id\030\003 \001(\tB\004\342A\001\002\"\030\n\026CreateD"
+          + "atabaseMetadata\"O\n\025ListDatabasesResponse"
+          + "\0226\n\tdatabases\030\001 \003(\0132#.google.firestore.a"
+          + "dmin.v1.Database\"N\n\022GetDatabaseRequest\0228"
+          + "\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!firestore.googlea"
+          + "pis.com/Database\"\205\001\n\025UpdateDatabaseReque"
+          + "st\022;\n\010database\030\001 \001(\0132#.google.firestore."
+          + "admin.v1.DatabaseB\004\342A\001\002\022/\n\013update_mask\030\002"
+          + " \001(\0132\032.google.protobuf.FieldMask\"\030\n\026Upda"
+          + "teDatabaseMetadata\"\216\001\n\022CreateIndexReques"
+          + "t\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(firestore.go"
+          + "ogleapis.com/CollectionGroup\0225\n\005index\030\002 "
+          + "\001(\0132 .google.firestore.admin.v1.IndexB\004\342"
+          + "A\001\002\"\216\001\n\022ListIndexesRequest\022A\n\006parent\030\001 \001"
+          + "(\tB1\342A\001\002\372A*\n(firestore.googleapis.com/Co"
+          + "llectionGroup\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_si"
+          + "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"a\n\023ListInde"
+          + "xesResponse\0221\n\007indexes\030\001 \003(\0132 .google.fi"
+          + "restore.admin.v1.Index\022\027\n\017next_page_toke"
+          + "n\030\002 \001(\t\"H\n\017GetIndexRequest\0225\n\004name\030\001 \001(\t"
+          + "B\'\342A\001\002\372A \n\036firestore.googleapis.com/Inde"
+          + "x\"K\n\022DeleteIndexRequest\0225\n\004name\030\001 \001(\tB\'\342"
+          + "A\001\002\372A \n\036firestore.googleapis.com/Index\"|"
+          + "\n\022UpdateFieldRequest\0225\n\005field\030\001 \001(\0132 .go"
+          + "ogle.firestore.admin.v1.FieldB\004\342A\001\002\022/\n\013u"
+          + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field"
+          + "Mask\"H\n\017GetFieldRequest\0225\n\004name\030\001 \001(\tB\'\342"
+          + "A\001\002\372A \n\036firestore.googleapis.com/Field\"\215"
+          + "\001\n\021ListFieldsRequest\022A\n\006parent\030\001 \001(\tB1\342A"
+          + "\001\002\372A*\n(firestore.googleapis.com/Collecti"
           + "onGroup\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001"
-          + "(\005\022\022\n\npage_token\030\004 \001(\t\"a\n\023ListIndexesRes"
-          + "ponse\0221\n\007indexes\030\001 \003(\0132 .google.firestor"
-          + "e.admin.v1.Index\022\027\n\017next_page_token\030\002 \001("
-          + "\t\"G\n\017GetIndexRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372"
-          + "A \n\036firestore.googleapis.com/Index\"J\n\022De"
-          + "leteIndexRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036"
-          + "firestore.googleapis.com/Index\"{\n\022Update"
-          + "FieldRequest\0224\n\005field\030\001 \001(\0132 .google.fir"
-          + "estore.admin.v1.FieldB\003\340A\002\022/\n\013update_mas"
-          + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"G\n\017G"
-          + "etFieldRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036fi"
-          + "restore.googleapis.com/Field\"\214\001\n\021ListFie"
-          + "ldsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(fire"
-          + "store.googleapis.com/CollectionGroup\022\016\n\006"
-          + "filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_"
-          + "token\030\004 \001(\t\"_\n\022ListFieldsResponse\0220\n\006fie"
-          + "lds\030\001 \003(\0132 .google.firestore.admin.v1.Fi"
-          + "eld\022\027\n\017next_page_token\030\002 \001(\t\"\204\001\n\026ExportD"
-          + "ocumentsRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!f"
-          + "irestore.googleapis.com/Database\022\026\n\016coll"
-          + "ection_ids\030\002 \003(\t\022\031\n\021output_uri_prefix\030\003 "
-          + "\001(\t\"\203\001\n\026ImportDocumentsRequest\0227\n\004name\030\001"
-          + " \001(\tB)\340A\002\372A#\n!firestore.googleapis.com/D"
-          + "atabase\022\026\n\016collection_ids\030\002 \003(\t\022\030\n\020input"
-          + "_uri_prefix\030\003 \001(\t2\222\023\n\016FirestoreAdmin\022\333\001\n"
-          + "\013CreateIndex\022-.google.firestore.admin.v1"
-          + ".CreateIndexRequest\032\035.google.longrunning"
-          + ".Operation\"~\202\323\344\223\002G\">/v1/{parent=projects"
-          + "/*/databases/*/collectionGroups/*}/index"
-          + "es:\005index\332A\014parent,index\312A\037\n\005Index\022\026Inde"
-          + "xOperationMetadata\022\275\001\n\013ListIndexes\022-.goo"
-          + "gle.firestore.admin.v1.ListIndexesReques"
-          + "t\032..google.firestore.admin.v1.ListIndexe"
-          + "sResponse\"O\202\323\344\223\002@\022>/v1/{parent=projects/"
-          + "*/databases/*/collectionGroups/*}/indexe"
-          + "s\332A\006parent\022\247\001\n\010GetIndex\022*.google.firesto"
-          + "re.admin.v1.GetIndexRequest\032 .google.fir"
-          + "estore.admin.v1.Index\"M\202\323\344\223\002@\022>/v1/{name"
-          + "=projects/*/databases/*/collectionGroups"
-          + "/*/indexes/*}\332A\004name\022\243\001\n\013DeleteIndex\022-.g"
-          + "oogle.firestore.admin.v1.DeleteIndexRequ"
-          + "est\032\026.google.protobuf.Empty\"M\202\323\344\223\002@*>/v1"
-          + "/{name=projects/*/databases/*/collection"
-          + "Groups/*/indexes/*}\332A\004name\022\246\001\n\010GetField\022"
-          + "*.google.firestore.admin.v1.GetFieldRequ"
-          + "est\032 .google.firestore.admin.v1.Field\"L\202"
-          + "\323\344\223\002?\022=/v1/{name=projects/*/databases/*/"
-          + "collectionGroups/*/fields/*}\332A\004name\022\331\001\n\013"
-          + "UpdateField\022-.google.firestore.admin.v1."
-          + "UpdateFieldRequest\032\035.google.longrunning."
-          + "Operation\"|\202\323\344\223\002L2C/v1/{field.name=proje"
-          + "cts/*/databases/*/collectionGroups/*/fie"
-          + "lds/*}:\005field\332A\005field\312A\037\n\005Field\022\026FieldOp"
-          + "erationMetadata\022\271\001\n\nListFields\022,.google."
-          + "firestore.admin.v1.ListFieldsRequest\032-.g"
-          + "oogle.firestore.admin.v1.ListFieldsRespo"
-          + "nse\"N\202\323\344\223\002?\022=/v1/{parent=projects/*/data"
-          + "bases/*/collectionGroups/*}/fields\332A\006par"
-          + "ent\022\335\001\n\017ExportDocuments\0221.google.firesto"
-          + "re.admin.v1.ExportDocumentsRequest\032\035.goo"
-          + "gle.longrunning.Operation\"x\202\323\344\223\0026\"1/v1/{"
-          + "name=projects/*/databases/*}:exportDocum"
-          + "ents:\001*\332A\004name\312A2\n\027ExportDocumentsRespon"
-          + "se\022\027ExportDocumentsMetadata\022\333\001\n\017ImportDo"
-          + "cuments\0221.google.firestore.admin.v1.Impo"
-          + "rtDocumentsRequest\032\035.google.longrunning."
-          + "Operation\"v\202\323\344\223\0026\"1/v1/{name=projects/*/"
-          + "databases/*}:importDocuments:\001*\332A\004name\312A"
-          + "0\n\025google.protobuf.Empty\022\027ImportDocument"
-          + "sMetadata\022\223\001\n\013GetDatabase\022-.google.fires"
-          + "tore.admin.v1.GetDatabaseRequest\032#.googl"
-          + "e.firestore.admin.v1.Database\"0\202\323\344\223\002#\022!/"
-          + "v1/{name=projects/*/databases/*}\332A\004name\022"
-          + "\246\001\n\rListDatabases\022/.google.firestore.adm"
-          + "in.v1.ListDatabasesRequest\0320.google.fire"
-          + "store.admin.v1.ListDatabasesResponse\"2\202\323"
-          + "\344\223\002#\022!/v1/{parent=projects/*}/databases\332"
-          + "A\006parent\022\333\001\n\016UpdateDatabase\0220.google.fir"
-          + "estore.admin.v1.UpdateDatabaseRequest\032\035."
-          + "google.longrunning.Operation\"x\202\323\344\223\00262*/v"
-          + "1/{database.name=projects/*/databases/*}"
-          + ":\010database\332A\024database,update_mask\312A\"\n\010Da"
-          + "tabase\022\026UpdateDatabaseMetadata\032v\312A\030fires"
-          + "tore.googleapis.com\322AXhttps://www.google"
-          + "apis.com/auth/cloud-platform,https://www"
-          + ".googleapis.com/auth/datastoreB\245\003\n\035com.g"
-          + "oogle.firestore.admin.v1B\023FirestoreAdmin"
-          + "ProtoP\001Z9cloud.google.com/go/firestore/a"
-          + "piv1/admin/adminpb;adminpb\242\002\004GCFS\252\002\037Goog"
-          + "le.Cloud.Firestore.Admin.V1\312\002\037Google\\Clo"
-          + "ud\\Firestore\\Admin\\V1\352\002#Google::Cloud::F"
-          + "irestore::Admin::V1\352AL\n!firestore.google"
-          + "apis.com/Location\022\'projects/{project}/lo"
-          + "cations/{location}\352Aq\n(firestore.googlea"
-          + "pis.com/CollectionGroup\022Eprojects/{proje"
-          + "ct}/databases/{database}/collectionGroup"
-          + "s/{collection}b\006proto3"
+          + "(\005\022\022\n\npage_token\030\004 \001(\t\"_\n\022ListFieldsResp"
+          + "onse\0220\n\006fields\030\001 \003(\0132 .google.firestore."
+          + "admin.v1.Field\022\027\n\017next_page_token\030\002 \001(\t\""
+          + "\205\001\n\026ExportDocumentsRequest\0228\n\004name\030\001 \001(\t"
+          + "B*\342A\001\002\372A#\n!firestore.googleapis.com/Data"
+          + "base\022\026\n\016collection_ids\030\002 \003(\t\022\031\n\021output_u"
+          + "ri_prefix\030\003 \001(\t\"\204\001\n\026ImportDocumentsReque"
+          + "st\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!firestore.goo"
+          + "gleapis.com/Database\022\026\n\016collection_ids\030\002"
+          + " \003(\t\022\030\n\020input_uri_prefix\030\003 \001(\t2\356\024\n\016Fires"
+          + "toreAdmin\022\333\001\n\013CreateIndex\022-.google.fires"
+          + "tore.admin.v1.CreateIndexRequest\032\035.googl"
+          + "e.longrunning.Operation\"~\312A\037\n\005Index\022\026Ind"
+          + "exOperationMetadata\332A\014parent,index\202\323\344\223\002G"
+          + "\">/v1/{parent=projects/*/databases/*/col"
+          + "lectionGroups/*}/indexes:\005index\022\275\001\n\013List"
+          + "Indexes\022-.google.firestore.admin.v1.List"
+          + "IndexesRequest\032..google.firestore.admin."
+          + "v1.ListIndexesResponse\"O\332A\006parent\202\323\344\223\002@\022"
+          + ">/v1/{parent=projects/*/databases/*/coll"
+          + "ectionGroups/*}/indexes\022\247\001\n\010GetIndex\022*.g"
+          + "oogle.firestore.admin.v1.GetIndexRequest"
+          + "\032 .google.firestore.admin.v1.Index\"M\332A\004n"
+          + "ame\202\323\344\223\002@\022>/v1/{name=projects/*/database"
+          + "s/*/collectionGroups/*/indexes/*}\022\243\001\n\013De"
+          + "leteIndex\022-.google.firestore.admin.v1.De"
+          + "leteIndexRequest\032\026.google.protobuf.Empty"
+          + "\"M\332A\004name\202\323\344\223\002@*>/v1/{name=projects/*/da"
+          + "tabases/*/collectionGroups/*/indexes/*}\022"
+          + "\246\001\n\010GetField\022*.google.firestore.admin.v1"
+          + ".GetFieldRequest\032 .google.firestore.admi"
+          + "n.v1.Field\"L\332A\004name\202\323\344\223\002?\022=/v1/{name=pro"
+          + "jects/*/databases/*/collectionGroups/*/f"
+          + "ields/*}\022\331\001\n\013UpdateField\022-.google.firest"
+          + "ore.admin.v1.UpdateFieldRequest\032\035.google"
+          + ".longrunning.Operation\"|\312A\037\n\005Field\022\026Fiel"
+          + "dOperationMetadata\332A\005field\202\323\344\223\002L2C/v1/{f"
+          + "ield.name=projects/*/databases/*/collect"
+          + "ionGroups/*/fields/*}:\005field\022\271\001\n\nListFie"
+          + "lds\022,.google.firestore.admin.v1.ListFiel"
+          + "dsRequest\032-.google.firestore.admin.v1.Li"
+          + "stFieldsResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{"
+          + "parent=projects/*/databases/*/collection"
+          + "Groups/*}/fields\022\335\001\n\017ExportDocuments\0221.g"
+          + "oogle.firestore.admin.v1.ExportDocuments"
+          + "Request\032\035.google.longrunning.Operation\"x"
+          + "\312A2\n\027ExportDocumentsResponse\022\027ExportDocu"
+          + "mentsMetadata\332A\004name\202\323\344\223\0026\"1/v1/{name=pr"
+          + "ojects/*/databases/*}:exportDocuments:\001*"
+          + "\022\333\001\n\017ImportDocuments\0221.google.firestore."
+          + "admin.v1.ImportDocumentsRequest\032\035.google"
+          + ".longrunning.Operation\"v\312A0\n\025google.prot"
+          + "obuf.Empty\022\027ImportDocumentsMetadata\332A\004na"
+          + "me\202\323\344\223\0026\"1/v1/{name=projects/*/databases"
+          + "/*}:importDocuments:\001*\022\331\001\n\016CreateDatabas"
+          + "e\0220.google.firestore.admin.v1.CreateData"
+          + "baseRequest\032\035.google.longrunning.Operati"
+          + "on\"v\312A\"\n\010Database\022\026CreateDatabaseMetadat"
+          + "a\332A\033parent,database,database_id\202\323\344\223\002-\"!/"
+          + "v1/{parent=projects/*}/databases:\010databa"
+          + "se\022\223\001\n\013GetDatabase\022-.google.firestore.ad"
+          + "min.v1.GetDatabaseRequest\032#.google.fires"
+          + "tore.admin.v1.Database\"0\332A\004name\202\323\344\223\002#\022!/"
+          + "v1/{name=projects/*/databases/*}\022\246\001\n\rLis"
+          + "tDatabases\022/.google.firestore.admin.v1.L"
+          + "istDatabasesRequest\0320.google.firestore.a"
+          + "dmin.v1.ListDatabasesResponse\"2\332A\006parent"
+          + "\202\323\344\223\002#\022!/v1/{parent=projects/*}/database"
+          + "s\022\333\001\n\016UpdateDatabase\0220.google.firestore."
+          + "admin.v1.UpdateDatabaseRequest\032\035.google."
+          + "longrunning.Operation\"x\312A\"\n\010Database\022\026Up"
+          + "dateDatabaseMetadata\332A\024database,update_m"
+          + "ask\202\323\344\223\00262*/v1/{database.name=projects/*"
+          + "/databases/*}:\010database\032v\312A\030firestore.go"
+          + "ogleapis.com\322AXhttps://www.googleapis.co"
+          + "m/auth/cloud-platform,https://www.google"
+          + "apis.com/auth/datastoreB\245\003\n\035com.google.f"
+          + "irestore.admin.v1B\023FirestoreAdminProtoP\001"
+          + "Z9cloud.google.com/go/firestore/apiv1/ad"
+          + "min/adminpb;adminpb\242\002\004GCFS\252\002\037Google.Clou"
+          + "d.Firestore.Admin.V1\312\002\037Google\\Cloud\\Fire"
+          + "store\\Admin\\V1\352\002#Google::Cloud::Firestor"
+          + "e::Admin::V1\352AL\n!firestore.googleapis.co"
+          + "m/Location\022\'projects/{project}/locations"
+          + "/{location}\352Aq\n(firestore.googleapis.com"
+          + "/CollectionGroup\022Eprojects/{project}/dat"
+          + "abases/{database}/collectionGroups/{coll"
+          + "ection}b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -248,8 +267,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
             new java.lang.String[] {
               "Parent",
             });
-    internal_static_google_firestore_admin_v1_ListDatabasesResponse_descriptor =
+    internal_static_google_firestore_admin_v1_CreateDatabaseRequest_descriptor =
         getDescriptor().getMessageTypes().get(1);
+    internal_static_google_firestore_admin_v1_CreateDatabaseRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_firestore_admin_v1_CreateDatabaseRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "Database", "DatabaseId",
+            });
+    internal_static_google_firestore_admin_v1_CreateDatabaseMetadata_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_firestore_admin_v1_CreateDatabaseMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_firestore_admin_v1_CreateDatabaseMetadata_descriptor,
+            new java.lang.String[] {});
+    internal_static_google_firestore_admin_v1_ListDatabasesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(3);
     internal_static_google_firestore_admin_v1_ListDatabasesResponse_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_ListDatabasesResponse_descriptor,
@@ -257,7 +290,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Databases",
             });
     internal_static_google_firestore_admin_v1_GetDatabaseRequest_descriptor =
-        getDescriptor().getMessageTypes().get(2);
+        getDescriptor().getMessageTypes().get(4);
     internal_static_google_firestore_admin_v1_GetDatabaseRequest_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_GetDatabaseRequest_descriptor,
@@ -265,7 +298,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Name",
             });
     internal_static_google_firestore_admin_v1_UpdateDatabaseRequest_descriptor =
-        getDescriptor().getMessageTypes().get(3);
+        getDescriptor().getMessageTypes().get(5);
     internal_static_google_firestore_admin_v1_UpdateDatabaseRequest_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_UpdateDatabaseRequest_descriptor,
@@ -273,13 +306,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Database", "UpdateMask",
             });
     internal_static_google_firestore_admin_v1_UpdateDatabaseMetadata_descriptor =
-        getDescriptor().getMessageTypes().get(4);
+        getDescriptor().getMessageTypes().get(6);
     internal_static_google_firestore_admin_v1_UpdateDatabaseMetadata_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_UpdateDatabaseMetadata_descriptor,
             new java.lang.String[] {});
     internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor =
-        getDescriptor().getMessageTypes().get(5);
+        getDescriptor().getMessageTypes().get(7);
     internal_static_google_firestore_admin_v1_CreateIndexRequest_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor,
@@ -287,7 +320,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Parent", "Index",
             });
     internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor =
-        getDescriptor().getMessageTypes().get(6);
+        getDescriptor().getMessageTypes().get(8);
     internal_static_google_firestore_admin_v1_ListIndexesRequest_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor,
@@ -295,7 +328,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Parent", "Filter", "PageSize", "PageToken",
             });
     internal_static_google_firestore_admin_v1_ListIndexesResponse_descriptor =
-        getDescriptor().getMessageTypes().get(7);
+        getDescriptor().getMessageTypes().get(9);
     internal_static_google_firestore_admin_v1_ListIndexesResponse_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_ListIndexesResponse_descriptor,
@@ -303,7 +336,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Indexes", "NextPageToken",
             });
     internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor =
-        getDescriptor().getMessageTypes().get(8);
+        getDescriptor().getMessageTypes().get(10);
     internal_static_google_firestore_admin_v1_GetIndexRequest_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor,
@@ -311,7 +344,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Name",
             });
     internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor =
-        getDescriptor().getMessageTypes().get(9);
+        getDescriptor().getMessageTypes().get(11);
     internal_static_google_firestore_admin_v1_DeleteIndexRequest_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor,
@@ -319,7 +352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Name",
             });
     internal_static_google_firestore_admin_v1_UpdateFieldRequest_descriptor =
-        getDescriptor().getMessageTypes().get(10);
+        getDescriptor().getMessageTypes().get(12);
     internal_static_google_firestore_admin_v1_UpdateFieldRequest_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_UpdateFieldRequest_descriptor,
@@ -327,7 +360,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Field", "UpdateMask",
             });
     internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor =
-        getDescriptor().getMessageTypes().get(11);
+        getDescriptor().getMessageTypes().get(13);
     internal_static_google_firestore_admin_v1_GetFieldRequest_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor,
@@ -335,7 +368,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Name",
             });
     internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor =
-        getDescriptor().getMessageTypes().get(12);
+        getDescriptor().getMessageTypes().get(14);
     internal_static_google_firestore_admin_v1_ListFieldsRequest_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor,
@@ -343,7 +376,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Parent", "Filter", "PageSize", "PageToken",
             });
     internal_static_google_firestore_admin_v1_ListFieldsResponse_descriptor =
-        getDescriptor().getMessageTypes().get(13);
+        getDescriptor().getMessageTypes().get(15);
     internal_static_google_firestore_admin_v1_ListFieldsResponse_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_ListFieldsResponse_descriptor,
@@ -351,7 +384,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Fields", "NextPageToken",
             });
     internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor =
-        getDescriptor().getMessageTypes().get(14);
+        getDescriptor().getMessageTypes().get(16);
     internal_static_google_firestore_admin_v1_ExportDocumentsRequest_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor,
@@ -359,7 +392,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "Name", "CollectionIds", "OutputUriPrefix",
             });
     internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor =
-        getDescriptor().getMessageTypes().get(15);
+        getDescriptor().getMessageTypes().get(17);
     internal_static_google_firestore_admin_v1_ImportDocumentsRequest_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor,
diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetDatabaseRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetDatabaseRequest.java
index 313947634..c7d02aed3 100644
--- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetDatabaseRequest.java
+++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetDatabaseRequest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -22,7 +22,8 @@
  *
  *
  * 
- * The request for [FirestoreAdmin.GetDatabase][google.firestore.admin.v1.FirestoreAdmin.GetDatabase].
+ * The request for
+ * [FirestoreAdmin.GetDatabase][google.firestore.admin.v1.FirestoreAdmin.GetDatabase].
  * 
* * Protobuf type {@code google.firestore.admin.v1.GetDatabaseRequest} @@ -47,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDatabaseRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_GetDatabaseRequest_descriptor; @@ -287,7 +283,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [FirestoreAdmin.GetDatabase][google.firestore.admin.v1.FirestoreAdmin.GetDatabase].
+   * The request for
+   * [FirestoreAdmin.GetDatabase][google.firestore.admin.v1.FirestoreAdmin.GetDatabase].
    * 
* * Protobuf type {@code google.firestore.admin.v1.GetDatabaseRequest} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetDatabaseRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetDatabaseRequestOrBuilder.java index e6bebb265..a0568ed95 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetDatabaseRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetDatabaseRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequest.java index 734d3818c..1bfb166ff 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -22,7 +22,8 @@ * * *
- * The request for [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField].
+ * The request for
+ * [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField].
  * 
* * Protobuf type {@code google.firestore.admin.v1.GetFieldRequest} @@ -47,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFieldRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor; @@ -287,7 +283,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField].
+   * The request for
+   * [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField].
    * 
* * Protobuf type {@code google.firestore.admin.v1.GetFieldRequest} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequestOrBuilder.java index f5eaff563..44fe3eb18 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequest.java index 1e6741144..db2869af0 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -22,7 +22,8 @@ * * *
- * The request for [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex].
+ * The request for
+ * [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex].
  * 
* * Protobuf type {@code google.firestore.admin.v1.GetIndexRequest} @@ -47,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetIndexRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor; @@ -287,7 +283,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex].
+   * The request for
+   * [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex].
    * 
* * Protobuf type {@code google.firestore.admin.v1.GetIndexRequest} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequestOrBuilder.java index 82ae93d22..1722a7a7f 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java index d9f95bf20..a8d70740c 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -40,7 +40,7 @@ private ImportDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder values) { ensureCollectionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, collectionIds_); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1921,8 +1914,9 @@ public Builder addAllCollectionIds(java.lang.Iterable values) * @return This builder for chaining. */ public Builder clearCollectionIds() { - collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); + ; onChanged(); return this; } @@ -1945,6 +1939,7 @@ public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureCollectionIdsIsMutable(); collectionIds_.add(value); + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadataOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadataOrBuilder.java index dc9f0242f..ff895c647 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadataOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadataOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java index cb41bb110..044b01f7e 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -22,7 +22,8 @@ * * *
- * The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
+ * The request for
+ * [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
  * 
* * Protobuf type {@code google.firestore.admin.v1.ImportDocumentsRequest} @@ -39,7 +40,7 @@ private ImportDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder private ImportDocumentsRequest() { name_ = ""; - collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputUriPrefix_ = ""; } @@ -49,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportDocumentsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor; @@ -129,7 +125,8 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int COLLECTION_IDS_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList collectionIds_; + private com.google.protobuf.LazyStringArrayList collectionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -440,7 +437,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
+   * The request for
+   * [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
    * 
* * Protobuf type {@code google.firestore.admin.v1.ImportDocumentsRequest} @@ -476,8 +474,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; - collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputUriPrefix_ = ""; return this; } @@ -506,7 +503,6 @@ public com.google.firestore.admin.v1.ImportDocumentsRequest build() { public com.google.firestore.admin.v1.ImportDocumentsRequest buildPartial() { com.google.firestore.admin.v1.ImportDocumentsRequest result = new com.google.firestore.admin.v1.ImportDocumentsRequest(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -514,20 +510,15 @@ public com.google.firestore.admin.v1.ImportDocumentsRequest buildPartial() { return result; } - private void buildPartialRepeatedFields( - com.google.firestore.admin.v1.ImportDocumentsRequest result) { - if (((bitField0_ & 0x00000002) != 0)) { - collectionIds_ = collectionIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.collectionIds_ = collectionIds_; - } - private void buildPartial0(com.google.firestore.admin.v1.ImportDocumentsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + collectionIds_.makeImmutable(); + result.collectionIds_ = collectionIds_; + } if (((from_bitField0_ & 0x00000004) != 0)) { result.inputUriPrefix_ = inputUriPrefix_; } @@ -587,7 +578,7 @@ public Builder mergeFrom(com.google.firestore.admin.v1.ImportDocumentsRequest ot if (!other.collectionIds_.isEmpty()) { if (collectionIds_.isEmpty()) { collectionIds_ = other.collectionIds_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureCollectionIdsIsMutable(); collectionIds_.addAll(other.collectionIds_); @@ -784,14 +775,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList collectionIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList collectionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCollectionIdsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!collectionIds_.isModifiable()) { collectionIds_ = new com.google.protobuf.LazyStringArrayList(collectionIds_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** * @@ -806,7 +797,8 @@ private void ensureCollectionIdsIsMutable() { * @return A list containing the collectionIds. */ public com.google.protobuf.ProtocolStringList getCollectionIdsList() { - return collectionIds_.getUnmodifiableView(); + collectionIds_.makeImmutable(); + return collectionIds_; } /** * @@ -875,6 +867,7 @@ public Builder setCollectionIds(int index, java.lang.String value) { } ensureCollectionIdsIsMutable(); collectionIds_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -897,6 +890,7 @@ public Builder addCollectionIds(java.lang.String value) { } ensureCollectionIdsIsMutable(); collectionIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -916,6 +910,7 @@ public Builder addCollectionIds(java.lang.String value) { public Builder addAllCollectionIds(java.lang.Iterable values) { ensureCollectionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, collectionIds_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -932,8 +927,9 @@ public Builder addAllCollectionIds(java.lang.Iterable values) * @return This builder for chaining. */ public Builder clearCollectionIds() { - collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -957,6 +953,7 @@ public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureCollectionIdsIsMutable(); collectionIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequestOrBuilder.java index 28b8df488..b0c764fea 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Index.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Index.java index afc60d5b0..5a944de66 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Index.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Index.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Index(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.IndexProto .internal_static_google_firestore_admin_v1_Index_descriptor; @@ -717,7 +712,7 @@ public interface IndexFieldOrBuilder */ com.google.firestore.admin.v1.Index.IndexField.ArrayConfig getArrayConfig(); - public com.google.firestore.admin.v1.Index.IndexField.ValueModeCase getValueModeCase(); + com.google.firestore.admin.v1.Index.IndexField.ValueModeCase getValueModeCase(); } /** * @@ -750,11 +745,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IndexField(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.IndexProto .internal_static_google_firestore_admin_v1_Index_IndexField_descriptor; @@ -1063,6 +1053,8 @@ private ArrayConfig(int value) { } private int valueModeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object valueMode_; public enum ValueModeCase @@ -2199,6 +2191,7 @@ public com.google.protobuf.ByteString getNameBytes() { * Indexes with a collection query scope specified allow queries * against a collection that is the child of a specific document, specified at * query time, and that has the same collection id. + * * Indexes with a collection group query scope specified allow queries against * all collections descended from a specific document, specified at query * time, and that have the same collection id as this index. @@ -2219,6 +2212,7 @@ public int getQueryScopeValue() { * Indexes with a collection query scope specified allow queries * against a collection that is the child of a specific document, specified at * query time, and that has the same collection id. + * * Indexes with a collection group query scope specified allow queries against * all collections descended from a specific document, specified at query * time, and that have the same collection id as this index. @@ -2279,12 +2273,14 @@ public com.google.firestore.admin.v1.Index.ApiScope getApiScope() { * *
    * The fields supported by this index.
+   *
    * For composite indexes, this requires a minimum of 2 and a maximum of 100
    * fields. The last field entry is always for the field path `__name__`. If,
    * on creation, `__name__` was not specified as the last field, it will be
    * added automatically with the same direction as that of the last field
    * defined. If the final field in a composite index is not directional, the
    * `__name__` will be ordered ASCENDING (unless explicitly specified).
+   *
    * For single field indexes, this will always be exactly one entry with a
    * field path equal to the field path of the associated field.
    * 
@@ -2300,12 +2296,14 @@ public java.util.List getFieldsL * *
    * The fields supported by this index.
+   *
    * For composite indexes, this requires a minimum of 2 and a maximum of 100
    * fields. The last field entry is always for the field path `__name__`. If,
    * on creation, `__name__` was not specified as the last field, it will be
    * added automatically with the same direction as that of the last field
    * defined. If the final field in a composite index is not directional, the
    * `__name__` will be ordered ASCENDING (unless explicitly specified).
+   *
    * For single field indexes, this will always be exactly one entry with a
    * field path equal to the field path of the associated field.
    * 
@@ -2322,12 +2320,14 @@ public java.util.List getFieldsL * *
    * The fields supported by this index.
+   *
    * For composite indexes, this requires a minimum of 2 and a maximum of 100
    * fields. The last field entry is always for the field path `__name__`. If,
    * on creation, `__name__` was not specified as the last field, it will be
    * added automatically with the same direction as that of the last field
    * defined. If the final field in a composite index is not directional, the
    * `__name__` will be ordered ASCENDING (unless explicitly specified).
+   *
    * For single field indexes, this will always be exactly one entry with a
    * field path equal to the field path of the associated field.
    * 
@@ -2343,12 +2343,14 @@ public int getFieldsCount() { * *
    * The fields supported by this index.
+   *
    * For composite indexes, this requires a minimum of 2 and a maximum of 100
    * fields. The last field entry is always for the field path `__name__`. If,
    * on creation, `__name__` was not specified as the last field, it will be
    * added automatically with the same direction as that of the last field
    * defined. If the final field in a composite index is not directional, the
    * `__name__` will be ordered ASCENDING (unless explicitly specified).
+   *
    * For single field indexes, this will always be exactly one entry with a
    * field path equal to the field path of the associated field.
    * 
@@ -2364,12 +2366,14 @@ public com.google.firestore.admin.v1.Index.IndexField getFields(int index) { * *
    * The fields supported by this index.
+   *
    * For composite indexes, this requires a minimum of 2 and a maximum of 100
    * fields. The last field entry is always for the field path `__name__`. If,
    * on creation, `__name__` was not specified as the last field, it will be
    * added automatically with the same direction as that of the last field
    * defined. If the final field in a composite index is not directional, the
    * `__name__` will be ordered ASCENDING (unless explicitly specified).
+   *
    * For single field indexes, this will always be exactly one entry with a
    * field path equal to the field path of the associated field.
    * 
@@ -3023,6 +3027,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Indexes with a collection query scope specified allow queries * against a collection that is the child of a specific document, specified at * query time, and that has the same collection id. + * * Indexes with a collection group query scope specified allow queries against * all collections descended from a specific document, specified at query * time, and that have the same collection id as this index. @@ -3043,6 +3048,7 @@ public int getQueryScopeValue() { * Indexes with a collection query scope specified allow queries * against a collection that is the child of a specific document, specified at * query time, and that has the same collection id. + * * Indexes with a collection group query scope specified allow queries against * all collections descended from a specific document, specified at query * time, and that have the same collection id as this index. @@ -3066,6 +3072,7 @@ public Builder setQueryScopeValue(int value) { * Indexes with a collection query scope specified allow queries * against a collection that is the child of a specific document, specified at * query time, and that has the same collection id. + * * Indexes with a collection group query scope specified allow queries against * all collections descended from a specific document, specified at query * time, and that have the same collection id as this index. @@ -3088,6 +3095,7 @@ public com.google.firestore.admin.v1.Index.QueryScope getQueryScope() { * Indexes with a collection query scope specified allow queries * against a collection that is the child of a specific document, specified at * query time, and that has the same collection id. + * * Indexes with a collection group query scope specified allow queries against * all collections descended from a specific document, specified at query * time, and that have the same collection id as this index. @@ -3114,6 +3122,7 @@ public Builder setQueryScope(com.google.firestore.admin.v1.Index.QueryScope valu * Indexes with a collection query scope specified allow queries * against a collection that is the child of a specific document, specified at * query time, and that has the same collection id. + * * Indexes with a collection group query scope specified allow queries against * all collections descended from a specific document, specified at query * time, and that have the same collection id as this index. @@ -3241,12 +3250,14 @@ private void ensureFieldsIsMutable() { * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3265,12 +3276,14 @@ public java.util.List getFieldsL * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3289,12 +3302,14 @@ public int getFieldsCount() { * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3313,12 +3328,14 @@ public com.google.firestore.admin.v1.Index.IndexField getFields(int index) { * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3343,12 +3360,14 @@ public Builder setFields(int index, com.google.firestore.admin.v1.Index.IndexFie * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3371,12 +3390,14 @@ public Builder setFields( * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3401,12 +3422,14 @@ public Builder addFields(com.google.firestore.admin.v1.Index.IndexField value) { * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3431,12 +3454,14 @@ public Builder addFields(int index, com.google.firestore.admin.v1.Index.IndexFie * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3459,12 +3484,14 @@ public Builder addFields( * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3487,12 +3514,14 @@ public Builder addFields( * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3515,12 +3544,14 @@ public Builder addAllFields( * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3542,12 +3573,14 @@ public Builder clearFields() { * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3569,12 +3602,14 @@ public Builder removeFields(int index) { * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3589,12 +3624,14 @@ public com.google.firestore.admin.v1.Index.IndexField.Builder getFieldsBuilder(i * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3613,12 +3650,14 @@ public com.google.firestore.admin.v1.Index.IndexFieldOrBuilder getFieldsOrBuilde * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3638,12 +3677,14 @@ public com.google.firestore.admin.v1.Index.IndexFieldOrBuilder getFieldsOrBuilde * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3659,12 +3700,14 @@ public com.google.firestore.admin.v1.Index.IndexField.Builder addFieldsBuilder() * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
@@ -3680,12 +3723,14 @@ public com.google.firestore.admin.v1.Index.IndexField.Builder addFieldsBuilder(i * *
      * The fields supported by this index.
+     *
      * For composite indexes, this requires a minimum of 2 and a maximum of 100
      * fields. The last field entry is always for the field path `__name__`. If,
      * on creation, `__name__` was not specified as the last field, it will be
      * added automatically with the same direction as that of the last field
      * defined. If the final field in a composite index is not directional, the
      * `__name__` will be ordered ASCENDING (unless explicitly specified).
+     *
      * For single field indexes, this will always be exactly one entry with a
      * field path equal to the field path of the associated field.
      * 
diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexName.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexName.java index b22dcbcfa..d0e9eda91 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexName.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexName.java @@ -1,5 +1,5 @@ /* - * 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadata.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadata.java index 0f58c8d9a..7867340fa 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadata.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IndexOperationMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.OperationProto .internal_static_google_firestore_admin_v1_IndexOperationMetadata_descriptor; diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadataOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadataOrBuilder.java index 1a4a29da2..1fae0bd34 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadataOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadataOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOrBuilder.java index 6112dab31..9122c7941 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -61,6 +61,7 @@ public interface IndexOrBuilder * Indexes with a collection query scope specified allow queries * against a collection that is the child of a specific document, specified at * query time, and that has the same collection id. + * * Indexes with a collection group query scope specified allow queries against * all collections descended from a specific document, specified at query * time, and that have the same collection id as this index. @@ -78,6 +79,7 @@ public interface IndexOrBuilder * Indexes with a collection query scope specified allow queries * against a collection that is the child of a specific document, specified at * query time, and that has the same collection id. + * * Indexes with a collection group query scope specified allow queries against * all collections descended from a specific document, specified at query * time, and that have the same collection id as this index. @@ -119,12 +121,14 @@ public interface IndexOrBuilder * *
    * The fields supported by this index.
+   *
    * For composite indexes, this requires a minimum of 2 and a maximum of 100
    * fields. The last field entry is always for the field path `__name__`. If,
    * on creation, `__name__` was not specified as the last field, it will be
    * added automatically with the same direction as that of the last field
    * defined. If the final field in a composite index is not directional, the
    * `__name__` will be ordered ASCENDING (unless explicitly specified).
+   *
    * For single field indexes, this will always be exactly one entry with a
    * field path equal to the field path of the associated field.
    * 
@@ -137,12 +141,14 @@ public interface IndexOrBuilder * *
    * The fields supported by this index.
+   *
    * For composite indexes, this requires a minimum of 2 and a maximum of 100
    * fields. The last field entry is always for the field path `__name__`. If,
    * on creation, `__name__` was not specified as the last field, it will be
    * added automatically with the same direction as that of the last field
    * defined. If the final field in a composite index is not directional, the
    * `__name__` will be ordered ASCENDING (unless explicitly specified).
+   *
    * For single field indexes, this will always be exactly one entry with a
    * field path equal to the field path of the associated field.
    * 
@@ -155,12 +161,14 @@ public interface IndexOrBuilder * *
    * The fields supported by this index.
+   *
    * For composite indexes, this requires a minimum of 2 and a maximum of 100
    * fields. The last field entry is always for the field path `__name__`. If,
    * on creation, `__name__` was not specified as the last field, it will be
    * added automatically with the same direction as that of the last field
    * defined. If the final field in a composite index is not directional, the
    * `__name__` will be ordered ASCENDING (unless explicitly specified).
+   *
    * For single field indexes, this will always be exactly one entry with a
    * field path equal to the field path of the associated field.
    * 
@@ -173,12 +181,14 @@ public interface IndexOrBuilder * *
    * The fields supported by this index.
+   *
    * For composite indexes, this requires a minimum of 2 and a maximum of 100
    * fields. The last field entry is always for the field path `__name__`. If,
    * on creation, `__name__` was not specified as the last field, it will be
    * added automatically with the same direction as that of the last field
    * defined. If the final field in a composite index is not directional, the
    * `__name__` will be ordered ASCENDING (unless explicitly specified).
+   *
    * For single field indexes, this will always be exactly one entry with a
    * field path equal to the field path of the associated field.
    * 
@@ -192,12 +202,14 @@ public interface IndexOrBuilder * *
    * The fields supported by this index.
+   *
    * For composite indexes, this requires a minimum of 2 and a maximum of 100
    * fields. The last field entry is always for the field path `__name__`. If,
    * on creation, `__name__` was not specified as the last field, it will be
    * added automatically with the same direction as that of the last field
    * defined. If the final field in a composite index is not directional, the
    * `__name__` will be ordered ASCENDING (unless explicitly specified).
+   *
    * For single field indexes, this will always be exactly one entry with a
    * field path equal to the field path of the associated field.
    * 
diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexProto.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexProto.java index 52e5560f9..4ae5ae96b 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexProto.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesRequest.java index 67d39c0b4..bb701fdc2 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDatabasesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_ListDatabasesRequest_descriptor; diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesRequestOrBuilder.java index 5af6e0293..66d511b75 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesResponse.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesResponse.java index 628702743..99253b360 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesResponse.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDatabasesResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_ListDatabasesResponse_descriptor; diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesResponseOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesResponseOrBuilder.java index 251d16fad..9d160f406 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesResponseOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListDatabasesResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequest.java index 40b2c012b..11d93f390 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -22,7 +22,8 @@ * * *
- * The request for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
+ * The request for
+ * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
  * 
* * Protobuf type {@code google.firestore.admin.v1.ListFieldsRequest} @@ -49,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFieldsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor; @@ -135,10 +131,11 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * The filter to apply to list results. Currently,
-   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-   * that have been explicitly overridden. To issue this query, call
-   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with a filter that includes
-   * `indexConfig.usesAncestorConfig:false` .
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+   * only supports listing fields that have been explicitly overridden. To issue
+   * this query, call
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+   * with a filter that includes `indexConfig.usesAncestorConfig:false` .
    * 
* * string filter = 2; @@ -162,10 +159,11 @@ public java.lang.String getFilter() { * *
    * The filter to apply to list results. Currently,
-   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-   * that have been explicitly overridden. To issue this query, call
-   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with a filter that includes
-   * `indexConfig.usesAncestorConfig:false` .
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+   * only supports listing fields that have been explicitly overridden. To issue
+   * this query, call
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+   * with a filter that includes `indexConfig.usesAncestorConfig:false` .
    * 
* * string filter = 2; @@ -212,8 +210,8 @@ public int getPageSize() { * *
    * A page token, returned from a previous call to
-   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
-   * page of results.
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
+   * that may be used to get the next page of results.
    * 
* * string page_token = 4; @@ -237,8 +235,8 @@ public java.lang.String getPageToken() { * *
    * A page token, returned from a previous call to
-   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
-   * page of results.
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
+   * that may be used to get the next page of results.
    * 
* * string page_token = 4; @@ -448,7 +446,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
+   * The request for
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
    * 
* * Protobuf type {@code google.firestore.admin.v1.ListFieldsRequest} @@ -797,10 +796,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * The filter to apply to list results. Currently,
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-     * that have been explicitly overridden. To issue this query, call
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with a filter that includes
-     * `indexConfig.usesAncestorConfig:false` .
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * only supports listing fields that have been explicitly overridden. To issue
+     * this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * with a filter that includes `indexConfig.usesAncestorConfig:false` .
      * 
* * string filter = 2; @@ -823,10 +823,11 @@ public java.lang.String getFilter() { * *
      * The filter to apply to list results. Currently,
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-     * that have been explicitly overridden. To issue this query, call
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with a filter that includes
-     * `indexConfig.usesAncestorConfig:false` .
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * only supports listing fields that have been explicitly overridden. To issue
+     * this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * with a filter that includes `indexConfig.usesAncestorConfig:false` .
      * 
* * string filter = 2; @@ -849,10 +850,11 @@ public com.google.protobuf.ByteString getFilterBytes() { * *
      * The filter to apply to list results. Currently,
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-     * that have been explicitly overridden. To issue this query, call
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with a filter that includes
-     * `indexConfig.usesAncestorConfig:false` .
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * only supports listing fields that have been explicitly overridden. To issue
+     * this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * with a filter that includes `indexConfig.usesAncestorConfig:false` .
      * 
* * string filter = 2; @@ -874,10 +876,11 @@ public Builder setFilter(java.lang.String value) { * *
      * The filter to apply to list results. Currently,
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-     * that have been explicitly overridden. To issue this query, call
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with a filter that includes
-     * `indexConfig.usesAncestorConfig:false` .
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * only supports listing fields that have been explicitly overridden. To issue
+     * this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * with a filter that includes `indexConfig.usesAncestorConfig:false` .
      * 
* * string filter = 2; @@ -895,10 +898,11 @@ public Builder clearFilter() { * *
      * The filter to apply to list results. Currently,
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-     * that have been explicitly overridden. To issue this query, call
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with a filter that includes
-     * `indexConfig.usesAncestorConfig:false` .
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * only supports listing fields that have been explicitly overridden. To issue
+     * this query, call
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+     * with a filter that includes `indexConfig.usesAncestorConfig:false` .
      * 
* * string filter = 2; @@ -976,8 +980,8 @@ public Builder clearPageSize() { * *
      * A page token, returned from a previous call to
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
-     * page of results.
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
+     * that may be used to get the next page of results.
      * 
* * string page_token = 4; @@ -1000,8 +1004,8 @@ public java.lang.String getPageToken() { * *
      * A page token, returned from a previous call to
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
-     * page of results.
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
+     * that may be used to get the next page of results.
      * 
* * string page_token = 4; @@ -1024,8 +1028,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * A page token, returned from a previous call to
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
-     * page of results.
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
+     * that may be used to get the next page of results.
      * 
* * string page_token = 4; @@ -1047,8 +1051,8 @@ public Builder setPageToken(java.lang.String value) { * *
      * A page token, returned from a previous call to
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
-     * page of results.
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
+     * that may be used to get the next page of results.
      * 
* * string page_token = 4; @@ -1066,8 +1070,8 @@ public Builder clearPageToken() { * *
      * A page token, returned from a previous call to
-     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
-     * page of results.
+     * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
+     * that may be used to get the next page of results.
      * 
* * string page_token = 4; diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequestOrBuilder.java index b92a37ddd..38feaaa7c 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -59,10 +59,11 @@ public interface ListFieldsRequestOrBuilder * *
    * The filter to apply to list results. Currently,
-   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-   * that have been explicitly overridden. To issue this query, call
-   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with a filter that includes
-   * `indexConfig.usesAncestorConfig:false` .
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+   * only supports listing fields that have been explicitly overridden. To issue
+   * this query, call
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+   * with a filter that includes `indexConfig.usesAncestorConfig:false` .
    * 
* * string filter = 2; @@ -75,10 +76,11 @@ public interface ListFieldsRequestOrBuilder * *
    * The filter to apply to list results. Currently,
-   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
-   * that have been explicitly overridden. To issue this query, call
-   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with a filter that includes
-   * `indexConfig.usesAncestorConfig:false` .
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+   * only supports listing fields that have been explicitly overridden. To issue
+   * this query, call
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+   * with a filter that includes `indexConfig.usesAncestorConfig:false` .
    * 
* * string filter = 2; @@ -105,8 +107,8 @@ public interface ListFieldsRequestOrBuilder * *
    * A page token, returned from a previous call to
-   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
-   * page of results.
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
+   * that may be used to get the next page of results.
    * 
* * string page_token = 4; @@ -119,8 +121,8 @@ public interface ListFieldsRequestOrBuilder * *
    * A page token, returned from a previous call to
-   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next
-   * page of results.
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
+   * that may be used to get the next page of results.
    * 
* * string page_token = 4; diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponse.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponse.java index 0ec5ec8a4..ee3bd5ae0 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponse.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -22,7 +22,8 @@ * * *
- * The response for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
+ * The response for
+ * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
  * 
* * Protobuf type {@code google.firestore.admin.v1.ListFieldsResponse} @@ -48,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFieldsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_ListFieldsResponse_descriptor; @@ -366,7 +362,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
+   * The response for
+   * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
    * 
* * Protobuf type {@code google.firestore.admin.v1.ListFieldsResponse} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponseOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponseOrBuilder.java index f855d32e5..76fafe558 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponseOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequest.java index 3e7633be6..c68a6becb 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -22,7 +22,8 @@ * * *
- * The request for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
+ * The request for
+ * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
  * 
* * Protobuf type {@code google.firestore.admin.v1.ListIndexesRequest} @@ -49,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListIndexesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor; @@ -204,8 +200,8 @@ public int getPageSize() { * *
    * A page token, returned from a previous call to
-   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
-   * page of results.
+   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
+   * that may be used to get the next page of results.
    * 
* * string page_token = 4; @@ -229,8 +225,8 @@ public java.lang.String getPageToken() { * *
    * A page token, returned from a previous call to
-   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
-   * page of results.
+   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
+   * that may be used to get the next page of results.
    * 
* * string page_token = 4; @@ -440,7 +436,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
+   * The request for
+   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
    * 
* * Protobuf type {@code google.firestore.admin.v1.ListIndexesRequest} @@ -948,8 +945,8 @@ public Builder clearPageSize() { * *
      * A page token, returned from a previous call to
-     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
-     * page of results.
+     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
+     * that may be used to get the next page of results.
      * 
* * string page_token = 4; @@ -972,8 +969,8 @@ public java.lang.String getPageToken() { * *
      * A page token, returned from a previous call to
-     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
-     * page of results.
+     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
+     * that may be used to get the next page of results.
      * 
* * string page_token = 4; @@ -996,8 +993,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * A page token, returned from a previous call to
-     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
-     * page of results.
+     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
+     * that may be used to get the next page of results.
      * 
* * string page_token = 4; @@ -1019,8 +1016,8 @@ public Builder setPageToken(java.lang.String value) { * *
      * A page token, returned from a previous call to
-     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
-     * page of results.
+     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
+     * that may be used to get the next page of results.
      * 
* * string page_token = 4; @@ -1038,8 +1035,8 @@ public Builder clearPageToken() { * *
      * A page token, returned from a previous call to
-     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
-     * page of results.
+     * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
+     * that may be used to get the next page of results.
      * 
* * string page_token = 4; diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequestOrBuilder.java index abf086c2a..9c855ee02 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -97,8 +97,8 @@ public interface ListIndexesRequestOrBuilder * *
    * A page token, returned from a previous call to
-   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
-   * page of results.
+   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
+   * that may be used to get the next page of results.
    * 
* * string page_token = 4; @@ -111,8 +111,8 @@ public interface ListIndexesRequestOrBuilder * *
    * A page token, returned from a previous call to
-   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next
-   * page of results.
+   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
+   * that may be used to get the next page of results.
    * 
* * string page_token = 4; diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponse.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponse.java index eec16b8c7..4bb5d0dbe 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponse.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -22,7 +22,8 @@ * * *
- * The response for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
+ * The response for
+ * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
  * 
* * Protobuf type {@code google.firestore.admin.v1.ListIndexesResponse} @@ -48,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListIndexesResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_ListIndexesResponse_descriptor; @@ -366,7 +362,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
+   * The response for
+   * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
    * 
* * Protobuf type {@code google.firestore.admin.v1.ListIndexesResponse} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponseOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponseOrBuilder.java index 88a0ab846..55fc64f1a 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponseOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java index b7a9b1c2f..bdaaa2aac 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocationMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.LocationProto .internal_static_google_firestore_admin_v1_LocationMetadata_descriptor; diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadataOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadataOrBuilder.java index 84f402fb8..26b7fa9c5 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadataOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadataOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationProto.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationProto.java index 68c8de712..ddbddaeca 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationProto.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationProto.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationProto.java index 4c1848d39..2c27cc928 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationProto.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationState.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationState.java index e40f2f12b..e48d31782 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationState.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationState.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Progress.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Progress.java index 3a3340c08..93a484d12 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Progress.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Progress.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Progress(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.OperationProto .internal_static_google_firestore_admin_v1_Progress_descriptor; diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProgressOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProgressOrBuilder.java index 632606ea9..206609d00 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProgressOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProgressOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProjectName.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProjectName.java index 540e2147f..2d7a34500 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProjectName.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseMetadata.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseMetadata.java index b26f63b4c..e73cec1b7 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseMetadata.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDatabaseMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_UpdateDatabaseMetadata_descriptor; diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseMetadataOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseMetadataOrBuilder.java index d5ff4f507..7680528ab 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseMetadataOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseMetadataOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseRequest.java index c5814c77b..62da2faf1 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -22,7 +22,8 @@ * * *
- * The request for [FirestoreAdmin.UpdateDatabase][google.firestore.admin.v1.FirestoreAdmin.UpdateDatabase].
+ * The request for
+ * [FirestoreAdmin.UpdateDatabase][google.firestore.admin.v1.FirestoreAdmin.UpdateDatabase].
  * 
* * Protobuf type {@code google.firestore.admin.v1.UpdateDatabaseRequest} @@ -45,11 +46,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDatabaseRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_UpdateDatabaseRequest_descriptor; @@ -349,7 +345,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [FirestoreAdmin.UpdateDatabase][google.firestore.admin.v1.FirestoreAdmin.UpdateDatabase].
+   * The request for
+   * [FirestoreAdmin.UpdateDatabase][google.firestore.admin.v1.FirestoreAdmin.UpdateDatabase].
    * 
* * Protobuf type {@code google.firestore.admin.v1.UpdateDatabaseRequest} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseRequestOrBuilder.java index fb49c8b9e..7dbec746a 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateDatabaseRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequest.java index 192c18afd..ac82ed924 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -22,7 +22,8 @@ * * *
- * The request for [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
+ * The request for
+ * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
  * 
* * Protobuf type {@code google.firestore.admin.v1.UpdateFieldRequest} @@ -45,11 +46,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFieldRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.admin.v1.FirestoreAdminProto .internal_static_google_firestore_admin_v1_UpdateFieldRequest_descriptor; @@ -345,7 +341,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
+   * The request for
+   * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
    * 
* * Protobuf type {@code google.firestore.admin.v1.UpdateFieldRequest} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequestOrBuilder.java index 325514988..bd2008708 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UpdateFieldRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/firestore_admin.proto b/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/firestore_admin.proto index 71f849d0b..e1faa4dcf 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/firestore_admin.proto +++ b/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/firestore_admin.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. @@ -78,9 +78,11 @@ service FirestoreAdmin { "https://www.googleapis.com/auth/cloud-platform," "https://www.googleapis.com/auth/datastore"; - // Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation] - // which may be used to track the status of the creation. The metadata for - // the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata]. + // Creates a composite index. This returns a + // [google.longrunning.Operation][google.longrunning.Operation] which may be + // used to track the status of the creation. The metadata for the operation + // will be the type + // [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata]. rpc CreateIndex(CreateIndexRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes" @@ -127,13 +129,16 @@ service FirestoreAdmin { // Updates a field configuration. Currently, field updates apply only to // single field index configuration. However, calls to - // [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid - // changing any configuration that the caller isn't aware of. The field mask - // should be specified as: `{ paths: "index_config" }`. + // [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] + // should provide a field mask to avoid changing any configuration that the + // caller isn't aware of. The field mask should be specified as: `{ paths: + // "index_config" }`. // - // This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to - // track the status of the field update. The metadata for - // the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata]. + // This call returns a + // [google.longrunning.Operation][google.longrunning.Operation] which may be + // used to track the status of the field update. The metadata for the + // operation will be the type + // [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata]. // // To configure the default field settings for the database, use // the special `Field` with resource name: @@ -152,10 +157,12 @@ service FirestoreAdmin { // Lists the field configuration and metadata for this database. // - // Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields - // that have been explicitly overridden. To issue this query, call - // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to - // `indexConfig.usesAncestorConfig:false` . + // Currently, + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] + // only supports listing fields that have been explicitly overridden. To issue + // this query, call + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] + // with the filter set to `indexConfig.usesAncestorConfig:false` . rpc ListFields(ListFieldsRequest) returns (ListFieldsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/databases/*/collectionGroups/*}/fields" @@ -174,7 +181,8 @@ service FirestoreAdmin { // // For more details on export behavior and output format, refer to: // https://cloud.google.com/firestore/docs/manage-data/export-import - rpc ExportDocuments(ExportDocumentsRequest) returns (google.longrunning.Operation) { + rpc ExportDocuments(ExportDocumentsRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/databases/*}:exportDocuments" body: "*" @@ -191,7 +199,8 @@ service FirestoreAdmin { // progress can be monitored and managed via the Operation resource that is // created. If an ImportDocuments operation is cancelled, it is possible // that a subset of the data has already been imported to Cloud Firestore. - rpc ImportDocuments(ImportDocumentsRequest) returns (google.longrunning.Operation) { + rpc ImportDocuments(ImportDocumentsRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/databases/*}:importDocuments" body: "*" @@ -203,6 +212,20 @@ service FirestoreAdmin { }; } + // Create a database. + rpc CreateDatabase(CreateDatabaseRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*}/databases" + body: "database" + }; + option (google.api.method_signature) = "parent,database,database_id"; + option (google.longrunning.operation_info) = { + response_type: "Database" + metadata_type: "CreateDatabaseMetadata" + }; + } + // Gets information about a database. rpc GetDatabase(GetDatabaseRequest) returns (Database) { option (google.api.http) = { @@ -220,7 +243,8 @@ service FirestoreAdmin { } // Updates a database. - rpc UpdateDatabase(UpdateDatabaseRequest) returns (google.longrunning.Operation) { + rpc UpdateDatabase(UpdateDatabaseRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{database.name=projects/*/databases/*}" body: "database" @@ -245,13 +269,39 @@ message ListDatabasesRequest { ]; } +// The request for +// [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]. +message CreateDatabaseRequest { + // Required. A parent name of the form + // `projects/{project_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "firestore.googleapis.com/Database" + } + ]; + + // Required. The Database to create. + Database database = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the database, which will become the final + // component of the database's resource name. + // + // The value must be set to "(default)". + string database_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Metadata related to the create database operation. +message CreateDatabaseMetadata {} + // The list of databases for a project. message ListDatabasesResponse { // The databases in the project. repeated Database databases = 1; } -// The request for [FirestoreAdmin.GetDatabase][google.firestore.admin.v1.FirestoreAdmin.GetDatabase]. +// The request for +// [FirestoreAdmin.GetDatabase][google.firestore.admin.v1.FirestoreAdmin.GetDatabase]. message GetDatabaseRequest { // Required. A name of the form // `projects/{project_id}/databases/{database_id}` @@ -263,7 +313,8 @@ message GetDatabaseRequest { ]; } -// The request for [FirestoreAdmin.UpdateDatabase][google.firestore.admin.v1.FirestoreAdmin.UpdateDatabase]. +// The request for +// [FirestoreAdmin.UpdateDatabase][google.firestore.admin.v1.FirestoreAdmin.UpdateDatabase]. message UpdateDatabaseRequest { // Required. The database to update. Database database = 1 [(google.api.field_behavior) = REQUIRED]; @@ -273,11 +324,10 @@ message UpdateDatabaseRequest { } // Metadata related to the update database operation. -message UpdateDatabaseMetadata { +message UpdateDatabaseMetadata {} -} - -// The request for [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex]. +// The request for +// [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex]. message CreateIndexRequest { // Required. A parent name of the form // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` @@ -292,7 +342,8 @@ message CreateIndexRequest { Index index = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes]. +// The request for +// [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes]. message ListIndexesRequest { // Required. A parent name of the form // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` @@ -310,12 +361,13 @@ message ListIndexesRequest { int32 page_size = 3; // A page token, returned from a previous call to - // [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next - // page of results. + // [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], + // that may be used to get the next page of results. string page_token = 4; } -// The response for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes]. +// The response for +// [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes]. message ListIndexesResponse { // The requested indexes. repeated Index indexes = 1; @@ -325,31 +377,30 @@ message ListIndexesResponse { string next_page_token = 2; } -// The request for [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex]. +// The request for +// [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex]. message GetIndexRequest { // Required. A name of the form // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "firestore.googleapis.com/Index" - } + (google.api.resource_reference) = { type: "firestore.googleapis.com/Index" } ]; } -// The request for [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex]. +// The request for +// [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex]. message DeleteIndexRequest { // Required. A name of the form // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "firestore.googleapis.com/Index" - } + (google.api.resource_reference) = { type: "firestore.googleapis.com/Index" } ]; } -// The request for [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]. +// The request for +// [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]. message UpdateFieldRequest { // Required. The field to be updated. Field field = 1 [(google.api.field_behavior) = REQUIRED]; @@ -359,19 +410,19 @@ message UpdateFieldRequest { google.protobuf.FieldMask update_mask = 2; } -// The request for [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField]. +// The request for +// [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField]. message GetFieldRequest { // Required. A name of the form // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "firestore.googleapis.com/Field" - } + (google.api.resource_reference) = { type: "firestore.googleapis.com/Field" } ]; } -// The request for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]. +// The request for +// [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]. message ListFieldsRequest { // Required. A parent name of the form // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` @@ -383,22 +434,24 @@ message ListFieldsRequest { ]; // The filter to apply to list results. Currently, - // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields - // that have been explicitly overridden. To issue this query, call - // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with a filter that includes - // `indexConfig.usesAncestorConfig:false` . + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] + // only supports listing fields that have been explicitly overridden. To issue + // this query, call + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] + // with a filter that includes `indexConfig.usesAncestorConfig:false` . string filter = 2; // The number of results to return. int32 page_size = 3; // A page token, returned from a previous call to - // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next - // page of results. + // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], + // that may be used to get the next page of results. string page_token = 4; } -// The response for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]. +// The response for +// [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]. message ListFieldsResponse { // The requested fields. repeated Field fields = 1; @@ -408,7 +461,8 @@ message ListFieldsResponse { string next_page_token = 2; } -// The request for [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments]. +// The request for +// [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments]. message ExportDocumentsRequest { // Required. Database to export. Should be of the form: // `projects/{project_id}/databases/{database_id}`. @@ -433,7 +487,8 @@ message ExportDocumentsRequest { string output_uri_prefix = 3; } -// The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments]. +// The request for +// [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments]. message ImportDocumentsRequest { // Required. Database to import into. Should be of the form: // `projects/{project_id}/databases/{database_id}`. diff --git a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleElement.java b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleElement.java index 81f3ec9e2..3ad82b480 100644 --- a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleElement.java +++ b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleElement.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BundleElement(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.bundle.BundleProto .internal_static_google_firestore_bundle_BundleElement_descriptor; @@ -70,6 +65,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int elementTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object elementType_; public enum ElementTypeCase diff --git a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleElementOrBuilder.java b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleElementOrBuilder.java index a84a717fc..968f620d2 100644 --- a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleElementOrBuilder.java +++ b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleElementOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -83,5 +83,5 @@ public interface BundleElementOrBuilder /** .google.firestore.v1.Document document = 4; */ com.google.firestore.v1.DocumentOrBuilder getDocumentOrBuilder(); - public com.google.firestore.bundle.BundleElement.ElementTypeCase getElementTypeCase(); + com.google.firestore.bundle.BundleElement.ElementTypeCase getElementTypeCase(); } diff --git a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleMetadata.java b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleMetadata.java index 08e4d9d84..114d0e054 100644 --- a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleMetadata.java +++ b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BundleMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.bundle.BundleProto .internal_static_google_firestore_bundle_BundleMetadata_descriptor; diff --git a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleMetadataOrBuilder.java b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleMetadataOrBuilder.java index 73817f7a5..d6d2152c3 100644 --- a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleMetadataOrBuilder.java +++ b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleMetadataOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleProto.java b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleProto.java index 38131535f..ec7f1f5ca 100644 --- a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleProto.java +++ b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundleProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledDocumentMetadata.java b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledDocumentMetadata.java index d8c48814b..4e3659da3 100644 --- a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledDocumentMetadata.java +++ b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledDocumentMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -39,7 +39,7 @@ private BundledDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder values) { ensureQueriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queries_); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1164,8 +1157,9 @@ public Builder addAllQueries(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearQueries() { - queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + queries_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } @@ -1188,6 +1182,7 @@ public Builder addQueriesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureQueriesIsMutable(); queries_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledDocumentMetadataOrBuilder.java b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledDocumentMetadataOrBuilder.java index bf08931cc..86209d7cd 100644 --- a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledDocumentMetadataOrBuilder.java +++ b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledDocumentMetadataOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledQuery.java b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledQuery.java index 9a9042dfb..d91363137 100644 --- a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledQuery.java +++ b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BundledQuery(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.bundle.BundleProto .internal_static_google_firestore_bundle_BundledQuery_descriptor; @@ -173,6 +168,8 @@ private LimitType(int value) { } private int queryTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object queryType_; public enum QueryTypeCase diff --git a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledQueryOrBuilder.java b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledQueryOrBuilder.java index baea728d2..01e0b5414 100644 --- a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledQueryOrBuilder.java +++ b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/BundledQueryOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -96,5 +96,5 @@ public interface BundledQueryOrBuilder */ com.google.firestore.bundle.BundledQuery.LimitType getLimitType(); - public com.google.firestore.bundle.BundledQuery.QueryTypeCase getQueryTypeCase(); + com.google.firestore.bundle.BundledQuery.QueryTypeCase getQueryTypeCase(); } diff --git a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/NamedQuery.java b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/NamedQuery.java index 7a107326e..ab22ac42f 100644 --- a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/NamedQuery.java +++ b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/NamedQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NamedQuery(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.bundle.BundleProto .internal_static_google_firestore_bundle_NamedQuery_descriptor; diff --git a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/NamedQueryOrBuilder.java b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/NamedQueryOrBuilder.java index 1ab84b31e..436def346 100644 --- a/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/NamedQueryOrBuilder.java +++ b/proto-google-cloud-firestore-bundle-v1/src/main/java/com/google/firestore/bundle/NamedQueryOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/AggregationResult.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/AggregationResult.java index f8a8ee4da..3fde4b867 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/AggregationResult.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/AggregationResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -23,6 +23,7 @@ * *
  * The result of a single bucket from a Firestore aggregation query.
+ *
  * The keys of `aggregate_fields` are the same for all results in an aggregation
  * query, unlike document queries which can have different fields present for
  * each result.
@@ -48,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AggregationResult();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.firestore.v1.AggregationResultProto
         .internal_static_google_firestore_v1_AggregationResult_descriptor;
@@ -115,6 +111,7 @@ public int getAggregateFieldsCount() {
    *
    * 
    * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+   *
    * The key is the
    * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
    * assigned to the aggregation function on input and the size of this map
@@ -141,6 +138,7 @@ public java.util.Map getAggrega
    *
    * 
    * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+   *
    * The key is the
    * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
    * assigned to the aggregation function on input and the size of this map
@@ -158,6 +156,7 @@ public java.util.Map getAggrega
    *
    * 
    * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+   *
    * The key is the
    * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
    * assigned to the aggregation function on input and the size of this map
@@ -183,6 +182,7 @@ public java.util.Map getAggrega
    *
    * 
    * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+   *
    * The key is the
    * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
    * assigned to the aggregation function on input and the size of this map
@@ -377,6 +377,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 
    * The result of a single bucket from a Firestore aggregation query.
+   *
    * The keys of `aggregate_fields` are the same for all results in an aggregation
    * query, unlike document queries which can have different fields present for
    * each result.
@@ -617,6 +618,7 @@ public int getAggregateFieldsCount() {
      *
      * 
      * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+     *
      * The key is the
      * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
      * assigned to the aggregation function on input and the size of this map
@@ -643,6 +645,7 @@ public java.util.Map getAggrega
      *
      * 
      * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+     *
      * The key is the
      * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
      * assigned to the aggregation function on input and the size of this map
@@ -660,6 +663,7 @@ public java.util.Map getAggrega
      *
      * 
      * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+     *
      * The key is the
      * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
      * assigned to the aggregation function on input and the size of this map
@@ -685,6 +689,7 @@ public java.util.Map getAggrega
      *
      * 
      * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+     *
      * The key is the
      * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
      * assigned to the aggregation function on input and the size of this map
@@ -716,6 +721,7 @@ public Builder clearAggregateFields() {
      *
      * 
      * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+     *
      * The key is the
      * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
      * assigned to the aggregation function on input and the size of this map
@@ -743,6 +749,7 @@ public Builder removeAggregateFields(java.lang.String key) {
      *
      * 
      * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+     *
      * The key is the
      * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
      * assigned to the aggregation function on input and the size of this map
@@ -767,6 +774,7 @@ public Builder putAggregateFields(java.lang.String key, com.google.firestore.v1.
      *
      * 
      * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+     *
      * The key is the
      * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
      * assigned to the aggregation function on input and the size of this map
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/AggregationResultOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/AggregationResultOrBuilder.java
index c539ea8ec..4c58e0069 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/AggregationResultOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/AggregationResultOrBuilder.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -28,6 +28,7 @@ public interface AggregationResultOrBuilder
    *
    * 
    * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+   *
    * The key is the
    * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
    * assigned to the aggregation function on input and the size of this map
@@ -42,6 +43,7 @@ public interface AggregationResultOrBuilder
    *
    * 
    * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+   *
    * The key is the
    * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
    * assigned to the aggregation function on input and the size of this map
@@ -59,6 +61,7 @@ public interface AggregationResultOrBuilder
    *
    * 
    * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+   *
    * The key is the
    * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
    * assigned to the aggregation function on input and the size of this map
@@ -73,6 +76,7 @@ public interface AggregationResultOrBuilder
    *
    * 
    * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+   *
    * The key is the
    * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
    * assigned to the aggregation function on input and the size of this map
@@ -91,6 +95,7 @@ com.google.firestore.v1.Value getAggregateFieldsOrDefault(
    *
    * 
    * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+   *
    * The key is the
    * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
    * assigned to the aggregation function on input and the size of this map
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/AggregationResultProto.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/AggregationResultProto.java
index 8b1862f71..34ff57a37 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/AggregationResultProto.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/AggregationResultProto.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/ArrayValue.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ArrayValue.java
index 4c24457e1..1b48811ba 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ArrayValue.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ArrayValue.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ArrayValue();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.firestore.v1.DocumentProto
         .internal_static_google_firestore_v1_ArrayValue_descriptor;
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ArrayValueOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ArrayValueOrBuilder.java
index 5aa4db46e..a4089a274 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ArrayValueOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ArrayValueOrBuilder.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsRequest.java
index fb7a4bf34..d754a6d1f 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsRequest.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsRequest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -40,7 +40,7 @@ private BatchGetDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder<
 
   private BatchGetDocumentsRequest() {
     database_ = "";
-    documents_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchGetDocumentsRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.firestore.v1.FirestoreProto
         .internal_static_google_firestore_v1_BatchGetDocumentsRequest_descriptor;
@@ -70,6 +65,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
   }
 
   private int consistencySelectorCase_ = 0;
+
+  @SuppressWarnings("serial")
   private java.lang.Object consistencySelector_;
 
   public enum ConsistencySelectorCase
@@ -175,7 +172,8 @@ public com.google.protobuf.ByteString getDatabaseBytes() {
   public static final int DOCUMENTS_FIELD_NUMBER = 2;
 
   @SuppressWarnings("serial")
-  private com.google.protobuf.LazyStringList documents_;
+  private com.google.protobuf.LazyStringArrayList documents_ =
+      com.google.protobuf.LazyStringArrayList.emptyList();
   /**
    *
    *
@@ -254,6 +252,7 @@ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
    *
    * 
    * The fields to return. If not set, returns all fields.
+   *
    * If a document has a field that is not present in this mask, that field will
    * not be returned in the response.
    * 
@@ -271,6 +270,7 @@ public boolean hasMask() { * *
    * The fields to return. If not set, returns all fields.
+   *
    * If a document has a field that is not present in this mask, that field will
    * not be returned in the response.
    * 
@@ -288,6 +288,7 @@ public com.google.firestore.v1.DocumentMask getMask() { * *
    * The fields to return. If not set, returns all fields.
+   *
    * If a document has a field that is not present in this mask, that field will
    * not be returned in the response.
    * 
@@ -400,7 +401,10 @@ public com.google.firestore.v1.TransactionOptionsOrBuilder getNewTransactionOrBu * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 7; @@ -416,7 +420,10 @@ public boolean hasReadTime() { * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 7; @@ -435,7 +442,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 7; @@ -732,8 +742,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; database_ = ""; - documents_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); mask_ = null; if (maskBuilder_ != null) { maskBuilder_.dispose(); @@ -774,7 +783,6 @@ public com.google.firestore.v1.BatchGetDocumentsRequest build() { public com.google.firestore.v1.BatchGetDocumentsRequest buildPartial() { com.google.firestore.v1.BatchGetDocumentsRequest result = new com.google.firestore.v1.BatchGetDocumentsRequest(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -783,20 +791,15 @@ public com.google.firestore.v1.BatchGetDocumentsRequest buildPartial() { return result; } - private void buildPartialRepeatedFields( - com.google.firestore.v1.BatchGetDocumentsRequest result) { - if (((bitField0_ & 0x00000002) != 0)) { - documents_ = documents_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.documents_ = documents_; - } - private void buildPartial0(com.google.firestore.v1.BatchGetDocumentsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.database_ = database_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + documents_.makeImmutable(); + result.documents_ = documents_; + } if (((from_bitField0_ & 0x00000004) != 0)) { result.mask_ = maskBuilder_ == null ? mask_ : maskBuilder_.build(); } @@ -867,7 +870,7 @@ public Builder mergeFrom(com.google.firestore.v1.BatchGetDocumentsRequest other) if (!other.documents_.isEmpty()) { if (documents_.isEmpty()) { documents_ = other.documents_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureDocumentsIsMutable(); documents_.addAll(other.documents_); @@ -1105,14 +1108,14 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList documents_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList documents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDocumentsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!documents_.isModifiable()) { documents_ = new com.google.protobuf.LazyStringArrayList(documents_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** * @@ -1129,7 +1132,8 @@ private void ensureDocumentsIsMutable() { * @return A list containing the documents. */ public com.google.protobuf.ProtocolStringList getDocumentsList() { - return documents_.getUnmodifiableView(); + documents_.makeImmutable(); + return documents_; } /** * @@ -1206,6 +1210,7 @@ public Builder setDocuments(int index, java.lang.String value) { } ensureDocumentsIsMutable(); documents_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1230,6 +1235,7 @@ public Builder addDocuments(java.lang.String value) { } ensureDocumentsIsMutable(); documents_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1251,6 +1257,7 @@ public Builder addDocuments(java.lang.String value) { public Builder addAllDocuments(java.lang.Iterable values) { ensureDocumentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1269,8 +1276,9 @@ public Builder addAllDocuments(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearDocuments() { - documents_ = com.google.protobuf.LazyStringArrayList.EMPTY; + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -1296,6 +1304,7 @@ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureDocumentsIsMutable(); documents_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1311,6 +1320,7 @@ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field will
      * not be returned in the response.
      * 
@@ -1327,6 +1337,7 @@ public boolean hasMask() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field will
      * not be returned in the response.
      * 
@@ -1347,6 +1358,7 @@ public com.google.firestore.v1.DocumentMask getMask() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field will
      * not be returned in the response.
      * 
@@ -1371,6 +1383,7 @@ public Builder setMask(com.google.firestore.v1.DocumentMask value) { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field will
      * not be returned in the response.
      * 
@@ -1392,6 +1405,7 @@ public Builder setMask(com.google.firestore.v1.DocumentMask.Builder builderForVa * *
      * The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field will
      * not be returned in the response.
      * 
@@ -1419,6 +1433,7 @@ public Builder mergeMask(com.google.firestore.v1.DocumentMask value) { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field will
      * not be returned in the response.
      * 
@@ -1440,6 +1455,7 @@ public Builder clearMask() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field will
      * not be returned in the response.
      * 
@@ -1456,6 +1472,7 @@ public com.google.firestore.v1.DocumentMask.Builder getMaskBuilder() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field will
      * not be returned in the response.
      * 
@@ -1474,6 +1491,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getMaskOrBuilder() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field will
      * not be returned in the response.
      * 
@@ -1816,7 +1834,10 @@ public com.google.firestore.v1.TransactionOptionsOrBuilder getNewTransactionOrBu * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1832,7 +1853,10 @@ public boolean hasReadTime() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1858,7 +1882,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1881,7 +1908,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1901,7 +1931,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1934,7 +1967,10 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1960,7 +1996,10 @@ public Builder clearReadTime() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1973,7 +2012,10 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1994,7 +2036,10 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsRequestOrBuilder.java index 7c77b6fe6..b55c20900 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -118,6 +118,7 @@ public interface BatchGetDocumentsRequestOrBuilder * *
    * The fields to return. If not set, returns all fields.
+   *
    * If a document has a field that is not present in this mask, that field will
    * not be returned in the response.
    * 
@@ -132,6 +133,7 @@ public interface BatchGetDocumentsRequestOrBuilder * *
    * The fields to return. If not set, returns all fields.
+   *
    * If a document has a field that is not present in this mask, that field will
    * not be returned in the response.
    * 
@@ -146,6 +148,7 @@ public interface BatchGetDocumentsRequestOrBuilder * *
    * The fields to return. If not set, returns all fields.
+   *
    * If a document has a field that is not present in this mask, that field will
    * not be returned in the response.
    * 
@@ -228,7 +231,10 @@ public interface BatchGetDocumentsRequestOrBuilder * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 7; @@ -241,7 +247,10 @@ public interface BatchGetDocumentsRequestOrBuilder * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 7; @@ -254,13 +263,16 @@ public interface BatchGetDocumentsRequestOrBuilder * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 7; */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); - public com.google.firestore.v1.BatchGetDocumentsRequest.ConsistencySelectorCase + com.google.firestore.v1.BatchGetDocumentsRequest.ConsistencySelectorCase getConsistencySelectorCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponse.java index f00c5a233..edf5f18dc 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponse.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchGetDocumentsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_BatchGetDocumentsResponse_descriptor; @@ -69,6 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int resultCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object result_; public enum ResultCase diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponseOrBuilder.java index fceb027e3..8c2b3b7df 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponseOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchGetDocumentsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -158,5 +158,5 @@ public interface BatchGetDocumentsResponseOrBuilder */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); - public com.google.firestore.v1.BatchGetDocumentsResponse.ResultCase getResultCase(); + com.google.firestore.v1.BatchGetDocumentsResponse.ResultCase getResultCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteRequest.java index 172294171..d3ed69554 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchWriteRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_BatchWriteRequest_descriptor; @@ -142,6 +137,7 @@ public com.google.protobuf.ByteString getDatabaseBytes() { * *
    * The writes to apply.
+   *
    * Method does not apply writes atomically and does not guarantee ordering.
    * Each write succeeds or fails independently. You cannot write to the same
    * document more than once per request.
@@ -158,6 +154,7 @@ public java.util.List getWritesList() {
    *
    * 
    * The writes to apply.
+   *
    * Method does not apply writes atomically and does not guarantee ordering.
    * Each write succeeds or fails independently. You cannot write to the same
    * document more than once per request.
@@ -174,6 +171,7 @@ public java.util.List getWrite
    *
    * 
    * The writes to apply.
+   *
    * Method does not apply writes atomically and does not guarantee ordering.
    * Each write succeeds or fails independently. You cannot write to the same
    * document more than once per request.
@@ -190,6 +188,7 @@ public int getWritesCount() {
    *
    * 
    * The writes to apply.
+   *
    * Method does not apply writes atomically and does not guarantee ordering.
    * Each write succeeds or fails independently. You cannot write to the same
    * document more than once per request.
@@ -206,6 +205,7 @@ public com.google.firestore.v1.Write getWrites(int index) {
    *
    * 
    * The writes to apply.
+   *
    * Method does not apply writes atomically and does not guarantee ordering.
    * Each write succeeds or fails independently. You cannot write to the same
    * document more than once per request.
@@ -920,6 +920,7 @@ private void ensureWritesIsMutable() {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -939,6 +940,7 @@ public java.util.List getWritesList() {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -958,6 +960,7 @@ public int getWritesCount() {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -977,6 +980,7 @@ public com.google.firestore.v1.Write getWrites(int index) {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1002,6 +1006,7 @@ public Builder setWrites(int index, com.google.firestore.v1.Write value) {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1024,6 +1029,7 @@ public Builder setWrites(int index, com.google.firestore.v1.Write.Builder builde
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1049,6 +1055,7 @@ public Builder addWrites(com.google.firestore.v1.Write value) {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1074,6 +1081,7 @@ public Builder addWrites(int index, com.google.firestore.v1.Write value) {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1096,6 +1104,7 @@ public Builder addWrites(com.google.firestore.v1.Write.Builder builderForValue)
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1118,6 +1127,7 @@ public Builder addWrites(int index, com.google.firestore.v1.Write.Builder builde
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1141,6 +1151,7 @@ public Builder addAllWrites(
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1163,6 +1174,7 @@ public Builder clearWrites() {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1185,6 +1197,7 @@ public Builder removeWrites(int index) {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1200,6 +1213,7 @@ public com.google.firestore.v1.Write.Builder getWritesBuilder(int index) {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1219,6 +1233,7 @@ public com.google.firestore.v1.WriteOrBuilder getWritesOrBuilder(int index) {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1239,6 +1254,7 @@ public com.google.firestore.v1.WriteOrBuilder getWritesOrBuilder(int index) {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1254,6 +1270,7 @@ public com.google.firestore.v1.Write.Builder addWritesBuilder() {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
@@ -1270,6 +1287,7 @@ public com.google.firestore.v1.Write.Builder addWritesBuilder(int index) {
      *
      * 
      * The writes to apply.
+     *
      * Method does not apply writes atomically and does not guarantee ordering.
      * Each write succeeds or fails independently. You cannot write to the same
      * document more than once per request.
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteRequestOrBuilder.java
index 937b46657..78913348e 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteRequestOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteRequestOrBuilder.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -55,6 +55,7 @@ public interface BatchWriteRequestOrBuilder
    *
    * 
    * The writes to apply.
+   *
    * Method does not apply writes atomically and does not guarantee ordering.
    * Each write succeeds or fails independently. You cannot write to the same
    * document more than once per request.
@@ -68,6 +69,7 @@ public interface BatchWriteRequestOrBuilder
    *
    * 
    * The writes to apply.
+   *
    * Method does not apply writes atomically and does not guarantee ordering.
    * Each write succeeds or fails independently. You cannot write to the same
    * document more than once per request.
@@ -81,6 +83,7 @@ public interface BatchWriteRequestOrBuilder
    *
    * 
    * The writes to apply.
+   *
    * Method does not apply writes atomically and does not guarantee ordering.
    * Each write succeeds or fails independently. You cannot write to the same
    * document more than once per request.
@@ -94,6 +97,7 @@ public interface BatchWriteRequestOrBuilder
    *
    * 
    * The writes to apply.
+   *
    * Method does not apply writes atomically and does not guarantee ordering.
    * Each write succeeds or fails independently. You cannot write to the same
    * document more than once per request.
@@ -107,6 +111,7 @@ public interface BatchWriteRequestOrBuilder
    *
    * 
    * The writes to apply.
+   *
    * Method does not apply writes atomically and does not guarantee ordering.
    * Each write succeeds or fails independently. You cannot write to the same
    * document more than once per request.
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteResponse.java
index 4ca4c0a12..182728b2d 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteResponse.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteResponse.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchWriteResponse();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.firestore.v1.FirestoreProto
         .internal_static_google_firestore_v1_BatchWriteResponse_descriptor;
@@ -78,6 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * 
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -93,6 +89,7 @@ public java.util.List getWriteResultsList() * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -109,6 +106,7 @@ public java.util.List getWriteResultsList() * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -124,6 +122,7 @@ public int getWriteResultsCount() { * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -139,6 +138,7 @@ public com.google.firestore.v1.WriteResult getWriteResults(int index) { * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -159,6 +159,7 @@ public com.google.firestore.v1.WriteResultOrBuilder getWriteResultsOrBuilder(int * *
    * The status of applying the writes.
+   *
    * This i-th write status corresponds to the i-th write in the
    * request.
    * 
@@ -174,6 +175,7 @@ public java.util.List getStatusList() { * *
    * The status of applying the writes.
+   *
    * This i-th write status corresponds to the i-th write in the
    * request.
    * 
@@ -189,6 +191,7 @@ public java.util.List getStatusOrBuild * *
    * The status of applying the writes.
+   *
    * This i-th write status corresponds to the i-th write in the
    * request.
    * 
@@ -204,6 +207,7 @@ public int getStatusCount() { * *
    * The status of applying the writes.
+   *
    * This i-th write status corresponds to the i-th write in the
    * request.
    * 
@@ -219,6 +223,7 @@ public com.google.rpc.Status getStatus(int index) { * *
    * The status of applying the writes.
+   *
    * This i-th write status corresponds to the i-th write in the
    * request.
    * 
@@ -706,6 +711,7 @@ private void ensureWriteResultsIsMutable() { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -724,6 +730,7 @@ public java.util.List getWriteResultsList() * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -742,6 +749,7 @@ public int getWriteResultsCount() { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -760,6 +768,7 @@ public com.google.firestore.v1.WriteResult getWriteResults(int index) { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -784,6 +793,7 @@ public Builder setWriteResults(int index, com.google.firestore.v1.WriteResult va * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -806,6 +816,7 @@ public Builder setWriteResults( * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -830,6 +841,7 @@ public Builder addWriteResults(com.google.firestore.v1.WriteResult value) { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -854,6 +866,7 @@ public Builder addWriteResults(int index, com.google.firestore.v1.WriteResult va * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -875,6 +888,7 @@ public Builder addWriteResults(com.google.firestore.v1.WriteResult.Builder build * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -897,6 +911,7 @@ public Builder addWriteResults( * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -919,6 +934,7 @@ public Builder addAllWriteResults( * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -940,6 +956,7 @@ public Builder clearWriteResults() { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -961,6 +978,7 @@ public Builder removeWriteResults(int index) { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -975,6 +993,7 @@ public com.google.firestore.v1.WriteResult.Builder getWriteResultsBuilder(int in * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -993,6 +1012,7 @@ public com.google.firestore.v1.WriteResultOrBuilder getWriteResultsOrBuilder(int * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1012,6 +1032,7 @@ public com.google.firestore.v1.WriteResultOrBuilder getWriteResultsOrBuilder(int * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1027,6 +1048,7 @@ public com.google.firestore.v1.WriteResult.Builder addWriteResultsBuilder() { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1042,6 +1064,7 @@ public com.google.firestore.v1.WriteResult.Builder addWriteResultsBuilder(int in * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1088,6 +1111,7 @@ private void ensureStatusIsMutable() { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1106,6 +1130,7 @@ public java.util.List getStatusList() { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1124,6 +1149,7 @@ public int getStatusCount() { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1142,6 +1168,7 @@ public com.google.rpc.Status getStatus(int index) { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1166,6 +1193,7 @@ public Builder setStatus(int index, com.google.rpc.Status value) { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1187,6 +1215,7 @@ public Builder setStatus(int index, com.google.rpc.Status.Builder builderForValu * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1211,6 +1240,7 @@ public Builder addStatus(com.google.rpc.Status value) { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1235,6 +1265,7 @@ public Builder addStatus(int index, com.google.rpc.Status value) { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1256,6 +1287,7 @@ public Builder addStatus(com.google.rpc.Status.Builder builderForValue) { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1277,6 +1309,7 @@ public Builder addStatus(int index, com.google.rpc.Status.Builder builderForValu * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1298,6 +1331,7 @@ public Builder addAllStatus(java.lang.Iterable * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1319,6 +1353,7 @@ public Builder clearStatus() { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1340,6 +1375,7 @@ public Builder removeStatus(int index) { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1354,6 +1390,7 @@ public com.google.rpc.Status.Builder getStatusBuilder(int index) { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1372,6 +1409,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder(int index) { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1390,6 +1428,7 @@ public java.util.List getStatusOrBuild * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1404,6 +1443,7 @@ public com.google.rpc.Status.Builder addStatusBuilder() { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
@@ -1418,6 +1458,7 @@ public com.google.rpc.Status.Builder addStatusBuilder(int index) { * *
      * The status of applying the writes.
+     *
      * This i-th write status corresponds to the i-th write in the
      * request.
      * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteResponseOrBuilder.java index ec5ff4d76..06c090b05 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteResponseOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BatchWriteResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -28,6 +28,7 @@ public interface BatchWriteResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -40,6 +41,7 @@ public interface BatchWriteResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -52,6 +54,7 @@ public interface BatchWriteResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -64,6 +67,7 @@ public interface BatchWriteResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -77,6 +81,7 @@ public interface BatchWriteResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -90,6 +95,7 @@ public interface BatchWriteResponseOrBuilder * *
    * The status of applying the writes.
+   *
    * This i-th write status corresponds to the i-th write in the
    * request.
    * 
@@ -102,6 +108,7 @@ public interface BatchWriteResponseOrBuilder * *
    * The status of applying the writes.
+   *
    * This i-th write status corresponds to the i-th write in the
    * request.
    * 
@@ -114,6 +121,7 @@ public interface BatchWriteResponseOrBuilder * *
    * The status of applying the writes.
+   *
    * This i-th write status corresponds to the i-th write in the
    * request.
    * 
@@ -126,6 +134,7 @@ public interface BatchWriteResponseOrBuilder * *
    * The status of applying the writes.
+   *
    * This i-th write status corresponds to the i-th write in the
    * request.
    * 
@@ -138,6 +147,7 @@ public interface BatchWriteResponseOrBuilder * *
    * The status of applying the writes.
+   *
    * This i-th write status corresponds to the i-th write in the
    * request.
    * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionRequest.java index 60ba89553..dfb433e09 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BeginTransactionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_BeginTransactionRequest_descriptor; diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionRequestOrBuilder.java index d72805481..797ab2b82 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionResponse.java index 0ca41a926..25176397b 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionResponse.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BeginTransactionResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_BeginTransactionResponse_descriptor; diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionResponseOrBuilder.java index 188d7f600..a9b54fb99 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionResponseOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BeginTransactionResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/BitSequence.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BitSequence.java index 17f21007b..ad3dd0138 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BitSequence.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BitSequence.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -23,15 +23,18 @@ * *
  * A sequence of bits, encoded in a byte array.
+ *
  * Each byte in the `bitmap` byte array stores 8 bits of the sequence. The only
  * exception is the last byte, which may store 8 _or fewer_ bits. The `padding`
  * defines the number of bits of the last byte to be ignored as "padding". The
  * values of these "padding" bits are unspecified and must be ignored.
+ *
  * To retrieve the first bit, bit 0, calculate: `(bitmap[0] & 0x01) != 0`.
  * To retrieve the second bit, bit 1, calculate: `(bitmap[0] & 0x02) != 0`.
  * To retrieve the third bit, bit 2, calculate: `(bitmap[0] & 0x04) != 0`.
  * To retrieve the fourth bit, bit 3, calculate: `(bitmap[0] & 0x08) != 0`.
  * To retrieve bit n, calculate: `(bitmap[n / 8] & (0x01 << (n % 8))) != 0`.
+ *
  * The "size" of a `BitSequence` (the number of bits it contains) is calculated
  * by this formula: `(bitmap.length * 8) - padding`.
  * 
@@ -58,11 +61,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BitSequence(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.BloomFilterProto .internal_static_google_firestore_v1_BitSequence_descriptor; @@ -288,15 +286,18 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A sequence of bits, encoded in a byte array.
+   *
    * Each byte in the `bitmap` byte array stores 8 bits of the sequence. The only
    * exception is the last byte, which may store 8 _or fewer_ bits. The `padding`
    * defines the number of bits of the last byte to be ignored as "padding". The
    * values of these "padding" bits are unspecified and must be ignored.
+   *
    * To retrieve the first bit, bit 0, calculate: `(bitmap[0] & 0x01) != 0`.
    * To retrieve the second bit, bit 1, calculate: `(bitmap[0] & 0x02) != 0`.
    * To retrieve the third bit, bit 2, calculate: `(bitmap[0] & 0x04) != 0`.
    * To retrieve the fourth bit, bit 3, calculate: `(bitmap[0] & 0x08) != 0`.
    * To retrieve bit n, calculate: `(bitmap[n / 8] & (0x01 << (n % 8))) != 0`.
+   *
    * The "size" of a `BitSequence` (the number of bits it contains) is calculated
    * by this formula: `(bitmap.length * 8) - padding`.
    * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BitSequenceOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BitSequenceOrBuilder.java index 09167ca65..34a6c2525 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BitSequenceOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BitSequenceOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/BloomFilter.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BloomFilter.java index c0dab791a..916efaac6 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BloomFilter.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BloomFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -23,12 +23,16 @@ * *
  * A bloom filter (https://en.wikipedia.org/wiki/Bloom_filter).
+ *
  * The bloom filter hashes the entries with MD5 and treats the resulting 128-bit
  * hash as 2 distinct 64-bit hash values, interpreted as unsigned integers
  * using 2's complement encoding.
+ *
  * These two hash values, named `h1` and `h2`, are then used to compute the
  * `hash_count` hash values using the formula, starting at `i=0`:
+ *
  *     h(i) = h1 + (i * h2)
+ *
  * These resulting values are then taken modulo the number of bits in the bloom
  * filter to get the bits of the bloom filter to test for the given entry.
  * 
@@ -53,11 +57,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BloomFilter(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.BloomFilterProto .internal_static_google_firestore_v1_BloomFilter_descriptor; @@ -313,12 +312,16 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A bloom filter (https://en.wikipedia.org/wiki/Bloom_filter).
+   *
    * The bloom filter hashes the entries with MD5 and treats the resulting 128-bit
    * hash as 2 distinct 64-bit hash values, interpreted as unsigned integers
    * using 2's complement encoding.
+   *
    * These two hash values, named `h1` and `h2`, are then used to compute the
    * `hash_count` hash values using the formula, starting at `i=0`:
+   *
    *     h(i) = h1 + (i * h2)
+   *
    * These resulting values are then taken modulo the number of bits in the bloom
    * filter to get the bits of the bloom filter to test for the given entry.
    * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BloomFilterOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BloomFilterOrBuilder.java index 34c3847b6..5a008ada3 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BloomFilterOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BloomFilterOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/BloomFilterProto.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BloomFilterProto.java index 19f2f90ad..aab45e90f 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BloomFilterProto.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/BloomFilterProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/CommitRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitRequest.java index 8ec6a941b..f036023b2 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommitRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_CommitRequest_descriptor; @@ -131,6 +126,7 @@ public com.google.protobuf.ByteString getDatabaseBytes() { * *
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * 
* @@ -145,6 +141,7 @@ public java.util.List getWritesList() { * *
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * 
* @@ -159,6 +156,7 @@ public java.util.List getWrite * *
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * 
* @@ -173,6 +171,7 @@ public int getWritesCount() { * *
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * 
* @@ -187,6 +186,7 @@ public com.google.firestore.v1.Write getWrites(int index) { * *
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * 
* @@ -778,6 +778,7 @@ private void ensureWritesIsMutable() { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -795,6 +796,7 @@ public java.util.List getWritesList() { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -812,6 +814,7 @@ public int getWritesCount() { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -829,6 +832,7 @@ public com.google.firestore.v1.Write getWrites(int index) { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -852,6 +856,7 @@ public Builder setWrites(int index, com.google.firestore.v1.Write value) { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -872,6 +877,7 @@ public Builder setWrites(int index, com.google.firestore.v1.Write.Builder builde * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -895,6 +901,7 @@ public Builder addWrites(com.google.firestore.v1.Write value) { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -918,6 +925,7 @@ public Builder addWrites(int index, com.google.firestore.v1.Write value) { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -938,6 +946,7 @@ public Builder addWrites(com.google.firestore.v1.Write.Builder builderForValue) * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -958,6 +967,7 @@ public Builder addWrites(int index, com.google.firestore.v1.Write.Builder builde * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -979,6 +989,7 @@ public Builder addAllWrites( * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -999,6 +1010,7 @@ public Builder clearWrites() { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -1019,6 +1031,7 @@ public Builder removeWrites(int index) { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -1032,6 +1045,7 @@ public com.google.firestore.v1.Write.Builder getWritesBuilder(int index) { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -1049,6 +1063,7 @@ public com.google.firestore.v1.WriteOrBuilder getWritesOrBuilder(int index) { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -1067,6 +1082,7 @@ public com.google.firestore.v1.WriteOrBuilder getWritesOrBuilder(int index) { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -1080,6 +1096,7 @@ public com.google.firestore.v1.Write.Builder addWritesBuilder() { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* @@ -1094,6 +1111,7 @@ public com.google.firestore.v1.Write.Builder addWritesBuilder(int index) { * *
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitRequestOrBuilder.java index 2d72b4b20..699f7a716 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -55,6 +55,7 @@ public interface CommitRequestOrBuilder * *
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * 
* @@ -66,6 +67,7 @@ public interface CommitRequestOrBuilder * *
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * 
* @@ -77,6 +79,7 @@ public interface CommitRequestOrBuilder * *
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * 
* @@ -88,6 +91,7 @@ public interface CommitRequestOrBuilder * *
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * 
* @@ -99,6 +103,7 @@ public interface CommitRequestOrBuilder * *
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitResponse.java index 8cc91557d..27b053bfb 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitResponse.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommitResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_CommitResponse_descriptor; @@ -76,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -91,6 +87,7 @@ public java.util.List getWriteResultsList() * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -107,6 +104,7 @@ public java.util.List getWriteResultsList() * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -122,6 +120,7 @@ public int getWriteResultsCount() { * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -137,6 +136,7 @@ public com.google.firestore.v1.WriteResult getWriteResults(int index) { * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -636,6 +636,7 @@ private void ensureWriteResultsIsMutable() { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -654,6 +655,7 @@ public java.util.List getWriteResultsList() * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -672,6 +674,7 @@ public int getWriteResultsCount() { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -690,6 +693,7 @@ public com.google.firestore.v1.WriteResult getWriteResults(int index) { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -714,6 +718,7 @@ public Builder setWriteResults(int index, com.google.firestore.v1.WriteResult va * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -736,6 +741,7 @@ public Builder setWriteResults( * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -760,6 +766,7 @@ public Builder addWriteResults(com.google.firestore.v1.WriteResult value) { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -784,6 +791,7 @@ public Builder addWriteResults(int index, com.google.firestore.v1.WriteResult va * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -805,6 +813,7 @@ public Builder addWriteResults(com.google.firestore.v1.WriteResult.Builder build * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -827,6 +836,7 @@ public Builder addWriteResults( * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -849,6 +859,7 @@ public Builder addAllWriteResults( * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -870,6 +881,7 @@ public Builder clearWriteResults() { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -891,6 +903,7 @@ public Builder removeWriteResults(int index) { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -905,6 +918,7 @@ public com.google.firestore.v1.WriteResult.Builder getWriteResultsBuilder(int in * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -923,6 +937,7 @@ public com.google.firestore.v1.WriteResultOrBuilder getWriteResultsOrBuilder(int * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -942,6 +957,7 @@ public com.google.firestore.v1.WriteResultOrBuilder getWriteResultsOrBuilder(int * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -957,6 +973,7 @@ public com.google.firestore.v1.WriteResult.Builder addWriteResultsBuilder() { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -972,6 +989,7 @@ public com.google.firestore.v1.WriteResult.Builder addWriteResultsBuilder(int in * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitResponseOrBuilder.java index 76745e124..3622343ab 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitResponseOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommitResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -28,6 +28,7 @@ public interface CommitResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -40,6 +41,7 @@ public interface CommitResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -52,6 +54,7 @@ public interface CommitResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -64,6 +67,7 @@ public interface CommitResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -77,6 +81,7 @@ public interface CommitResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommonProto.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommonProto.java index 91c88f112..3ed3eaac6 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommonProto.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CommonProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/CreateDocumentRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CreateDocumentRequest.java index d9dcc9953..ac5577aca 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CreateDocumentRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CreateDocumentRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDocumentRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_CreateDocumentRequest_descriptor; @@ -187,6 +182,7 @@ public com.google.protobuf.ByteString getCollectionIdBytes() { * *
    * The client-assigned document ID to use for this document.
+   *
    * Optional. If not specified, an ID will be assigned by the service.
    * 
* @@ -211,6 +207,7 @@ public java.lang.String getDocumentId() { * *
    * The client-assigned document ID to use for this document.
+   *
    * Optional. If not specified, an ID will be assigned by the service.
    * 
* @@ -287,6 +284,7 @@ public com.google.firestore.v1.DocumentOrBuilder getDocumentOrBuilder() { * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -304,6 +302,7 @@ public boolean hasMask() { * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -321,6 +320,7 @@ public com.google.firestore.v1.DocumentMask getMask() { * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -1017,6 +1017,7 @@ public Builder setCollectionIdBytes(com.google.protobuf.ByteString value) { * *
      * The client-assigned document ID to use for this document.
+     *
      * Optional. If not specified, an ID will be assigned by the service.
      * 
* @@ -1040,6 +1041,7 @@ public java.lang.String getDocumentId() { * *
      * The client-assigned document ID to use for this document.
+     *
      * Optional. If not specified, an ID will be assigned by the service.
      * 
* @@ -1063,6 +1065,7 @@ public com.google.protobuf.ByteString getDocumentIdBytes() { * *
      * The client-assigned document ID to use for this document.
+     *
      * Optional. If not specified, an ID will be assigned by the service.
      * 
* @@ -1085,6 +1088,7 @@ public Builder setDocumentId(java.lang.String value) { * *
      * The client-assigned document ID to use for this document.
+     *
      * Optional. If not specified, an ID will be assigned by the service.
      * 
* @@ -1103,6 +1107,7 @@ public Builder clearDocumentId() { * *
      * The client-assigned document ID to use for this document.
+     *
      * Optional. If not specified, an ID will be assigned by the service.
      * 
* @@ -1325,6 +1330,7 @@ public com.google.firestore.v1.DocumentOrBuilder getDocumentOrBuilder() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1341,6 +1347,7 @@ public boolean hasMask() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1361,6 +1368,7 @@ public com.google.firestore.v1.DocumentMask getMask() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1385,6 +1393,7 @@ public Builder setMask(com.google.firestore.v1.DocumentMask value) { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1406,6 +1415,7 @@ public Builder setMask(com.google.firestore.v1.DocumentMask.Builder builderForVa * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1433,6 +1443,7 @@ public Builder mergeMask(com.google.firestore.v1.DocumentMask value) { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1454,6 +1465,7 @@ public Builder clearMask() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1470,6 +1482,7 @@ public com.google.firestore.v1.DocumentMask.Builder getMaskBuilder() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1488,6 +1501,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getMaskOrBuilder() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CreateDocumentRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CreateDocumentRequestOrBuilder.java index 8ad6def54..33c6f6c46 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CreateDocumentRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CreateDocumentRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -84,6 +84,7 @@ public interface CreateDocumentRequestOrBuilder * *
    * The client-assigned document ID to use for this document.
+   *
    * Optional. If not specified, an ID will be assigned by the service.
    * 
* @@ -97,6 +98,7 @@ public interface CreateDocumentRequestOrBuilder * *
    * The client-assigned document ID to use for this document.
+   *
    * Optional. If not specified, an ID will be assigned by the service.
    * 
* @@ -149,6 +151,7 @@ public interface CreateDocumentRequestOrBuilder * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -163,6 +166,7 @@ public interface CreateDocumentRequestOrBuilder * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -177,6 +181,7 @@ public interface CreateDocumentRequestOrBuilder * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Cursor.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Cursor.java index 52b0edfda..abbfc3da3 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Cursor.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Cursor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Cursor(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto.internal_static_google_firestore_v1_Cursor_descriptor; } @@ -75,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * The values that represent a position, in the order they appear in
    * the order by clause of a query.
+   *
    * Can contain fewer values than specified in the order by clause.
    * 
* @@ -90,6 +86,7 @@ public java.util.List getValuesList() { *
    * The values that represent a position, in the order they appear in
    * the order by clause of a query.
+   *
    * Can contain fewer values than specified in the order by clause.
    * 
* @@ -105,6 +102,7 @@ public java.util.List getValue *
    * The values that represent a position, in the order they appear in
    * the order by clause of a query.
+   *
    * Can contain fewer values than specified in the order by clause.
    * 
* @@ -120,6 +118,7 @@ public int getValuesCount() { *
    * The values that represent a position, in the order they appear in
    * the order by clause of a query.
+   *
    * Can contain fewer values than specified in the order by clause.
    * 
* @@ -135,6 +134,7 @@ public com.google.firestore.v1.Value getValues(int index) { *
    * The values that represent a position, in the order they appear in
    * the order by clause of a query.
+   *
    * Can contain fewer values than specified in the order by clause.
    * 
* @@ -591,6 +591,7 @@ private void ensureValuesIsMutable() { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -609,6 +610,7 @@ public java.util.List getValuesList() { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -627,6 +629,7 @@ public int getValuesCount() { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -645,6 +648,7 @@ public com.google.firestore.v1.Value getValues(int index) { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -669,6 +673,7 @@ public Builder setValues(int index, com.google.firestore.v1.Value value) { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -690,6 +695,7 @@ public Builder setValues(int index, com.google.firestore.v1.Value.Builder builde *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -714,6 +720,7 @@ public Builder addValues(com.google.firestore.v1.Value value) { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -738,6 +745,7 @@ public Builder addValues(int index, com.google.firestore.v1.Value value) { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -759,6 +767,7 @@ public Builder addValues(com.google.firestore.v1.Value.Builder builderForValue) *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -780,6 +789,7 @@ public Builder addValues(int index, com.google.firestore.v1.Value.Builder builde *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -802,6 +812,7 @@ public Builder addAllValues( *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -823,6 +834,7 @@ public Builder clearValues() { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -844,6 +856,7 @@ public Builder removeValues(int index) { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -858,6 +871,7 @@ public com.google.firestore.v1.Value.Builder getValuesBuilder(int index) { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -876,6 +890,7 @@ public com.google.firestore.v1.ValueOrBuilder getValuesOrBuilder(int index) { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -895,6 +910,7 @@ public com.google.firestore.v1.ValueOrBuilder getValuesOrBuilder(int index) { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -909,6 +925,7 @@ public com.google.firestore.v1.Value.Builder addValuesBuilder() { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* @@ -924,6 +941,7 @@ public com.google.firestore.v1.Value.Builder addValuesBuilder(int index) { *
      * The values that represent a position, in the order they appear in
      * the order by clause of a query.
+     *
      * Can contain fewer values than specified in the order by clause.
      * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CursorOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CursorOrBuilder.java index 0d7526a9d..1c287511a 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CursorOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/CursorOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -29,6 +29,7 @@ public interface CursorOrBuilder *
    * The values that represent a position, in the order they appear in
    * the order by clause of a query.
+   *
    * Can contain fewer values than specified in the order by clause.
    * 
* @@ -41,6 +42,7 @@ public interface CursorOrBuilder *
    * The values that represent a position, in the order they appear in
    * the order by clause of a query.
+   *
    * Can contain fewer values than specified in the order by clause.
    * 
* @@ -53,6 +55,7 @@ public interface CursorOrBuilder *
    * The values that represent a position, in the order they appear in
    * the order by clause of a query.
+   *
    * Can contain fewer values than specified in the order by clause.
    * 
* @@ -65,6 +68,7 @@ public interface CursorOrBuilder *
    * The values that represent a position, in the order they appear in
    * the order by clause of a query.
+   *
    * Can contain fewer values than specified in the order by clause.
    * 
* @@ -77,6 +81,7 @@ public interface CursorOrBuilder *
    * The values that represent a position, in the order they appear in
    * the order by clause of a query.
+   *
    * Can contain fewer values than specified in the order by clause.
    * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DeleteDocumentRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DeleteDocumentRequest.java index cd06ebbb2..18a734d32 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DeleteDocumentRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DeleteDocumentRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteDocumentRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_DeleteDocumentRequest_descriptor; diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DeleteDocumentRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DeleteDocumentRequestOrBuilder.java index ff6e2f121..9f10e298c 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DeleteDocumentRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DeleteDocumentRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/Document.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Document.java index e97f18f55..8932dabcf 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Document.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Document.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -23,6 +23,7 @@ * *
  * A Firestore document.
+ *
  * Must not exceed 1 MiB - 4 bytes.
  * 
* @@ -48,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Document(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.DocumentProto .internal_static_google_firestore_v1_Document_descriptor; @@ -165,20 +161,25 @@ public int getFieldsCount() { * *
    * The document's fields.
+   *
    * The map keys represent field names.
+   *
    * A simple field name contains only characters `a` to `z`, `A` to `Z`,
    * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
    * `foo_bar_17`.
+   *
    * Field names matching the regular expression `__.*__` are reserved. Reserved
    * field names are forbidden except in certain documented contexts. The map
    * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
    * empty.
+   *
    * Field paths may be used in other contexts to refer to structured fields
    * defined here. For `map_value`, the field path is represented by the simple
    * or quoted field names of the containing fields, delimited by `.`. For
    * example, the structured field
    * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
    * represented by the field path `foo.x&y`.
+   *
    * Within a field path, a quoted field name starts and ends with `` ` `` and
    * may contain any character. Some characters, including `` ` ``, must be
    * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -205,20 +206,25 @@ public java.util.Map getFields(
    *
    * 
    * The document's fields.
+   *
    * The map keys represent field names.
+   *
    * A simple field name contains only characters `a` to `z`, `A` to `Z`,
    * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
    * `foo_bar_17`.
+   *
    * Field names matching the regular expression `__.*__` are reserved. Reserved
    * field names are forbidden except in certain documented contexts. The map
    * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
    * empty.
+   *
    * Field paths may be used in other contexts to refer to structured fields
    * defined here. For `map_value`, the field path is represented by the simple
    * or quoted field names of the containing fields, delimited by `.`. For
    * example, the structured field
    * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
    * represented by the field path `foo.x&y`.
+   *
    * Within a field path, a quoted field name starts and ends with `` ` `` and
    * may contain any character. Some characters, including `` ` ``, must be
    * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -236,20 +242,25 @@ public java.util.Map getFieldsM
    *
    * 
    * The document's fields.
+   *
    * The map keys represent field names.
+   *
    * A simple field name contains only characters `a` to `z`, `A` to `Z`,
    * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
    * `foo_bar_17`.
+   *
    * Field names matching the regular expression `__.*__` are reserved. Reserved
    * field names are forbidden except in certain documented contexts. The map
    * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
    * empty.
+   *
    * Field paths may be used in other contexts to refer to structured fields
    * defined here. For `map_value`, the field path is represented by the simple
    * or quoted field names of the containing fields, delimited by `.`. For
    * example, the structured field
    * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
    * represented by the field path `foo.x&y`.
+   *
    * Within a field path, a quoted field name starts and ends with `` ` `` and
    * may contain any character. Some characters, including `` ` ``, must be
    * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -275,20 +286,25 @@ public java.util.Map getFieldsM
    *
    * 
    * The document's fields.
+   *
    * The map keys represent field names.
+   *
    * A simple field name contains only characters `a` to `z`, `A` to `Z`,
    * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
    * `foo_bar_17`.
+   *
    * Field names matching the regular expression `__.*__` are reserved. Reserved
    * field names are forbidden except in certain documented contexts. The map
    * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
    * empty.
+   *
    * Field paths may be used in other contexts to refer to structured fields
    * defined here. For `map_value`, the field path is represented by the simple
    * or quoted field names of the containing fields, delimited by `.`. For
    * example, the structured field
    * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
    * represented by the field path `foo.x&y`.
+   *
    * Within a field path, a quoted field name starts and ends with `` ` `` and
    * may contain any character. Some characters, including `` ` ``, must be
    * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -317,6 +333,7 @@ public com.google.firestore.v1.Value getFieldsOrThrow(java.lang.String key) {
    *
    * 
    * Output only. The time at which the document was created.
+   *
    * This value increases monotonically when a document is deleted then
    * recreated. It can also be compared to values from other documents and
    * the `read_time` of a query.
@@ -335,6 +352,7 @@ public boolean hasCreateTime() {
    *
    * 
    * Output only. The time at which the document was created.
+   *
    * This value increases monotonically when a document is deleted then
    * recreated. It can also be compared to values from other documents and
    * the `read_time` of a query.
@@ -353,6 +371,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
    *
    * 
    * Output only. The time at which the document was created.
+   *
    * This value increases monotonically when a document is deleted then
    * recreated. It can also be compared to values from other documents and
    * the `read_time` of a query.
@@ -372,6 +391,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    *
    * 
    * Output only. The time at which the document was last changed.
+   *
    * This value is initially set to the `create_time` then increases
    * monotonically with each change to the document. It can also be
    * compared to values from other documents and the `read_time` of a query.
@@ -390,6 +410,7 @@ public boolean hasUpdateTime() {
    *
    * 
    * Output only. The time at which the document was last changed.
+   *
    * This value is initially set to the `create_time` then increases
    * monotonically with each change to the document. It can also be
    * compared to values from other documents and the `read_time` of a query.
@@ -408,6 +429,7 @@ public com.google.protobuf.Timestamp getUpdateTime() {
    *
    * 
    * Output only. The time at which the document was last changed.
+   *
    * This value is initially set to the `create_time` then increases
    * monotonically with each change to the document. It can also be
    * compared to values from other documents and the `read_time` of a query.
@@ -627,6 +649,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 
    * A Firestore document.
+   *
    * Must not exceed 1 MiB - 4 bytes.
    * 
* @@ -1020,20 +1043,25 @@ public int getFieldsCount() { * *
      * The document's fields.
+     *
      * The map keys represent field names.
+     *
      * A simple field name contains only characters `a` to `z`, `A` to `Z`,
      * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
      * `foo_bar_17`.
+     *
      * Field names matching the regular expression `__.*__` are reserved. Reserved
      * field names are forbidden except in certain documented contexts. The map
      * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
      * empty.
+     *
      * Field paths may be used in other contexts to refer to structured fields
      * defined here. For `map_value`, the field path is represented by the simple
      * or quoted field names of the containing fields, delimited by `.`. For
      * example, the structured field
      * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
      * represented by the field path `foo.x&y`.
+     *
      * Within a field path, a quoted field name starts and ends with `` ` `` and
      * may contain any character. Some characters, including `` ` ``, must be
      * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -1060,20 +1088,25 @@ public java.util.Map getFields(
      *
      * 
      * The document's fields.
+     *
      * The map keys represent field names.
+     *
      * A simple field name contains only characters `a` to `z`, `A` to `Z`,
      * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
      * `foo_bar_17`.
+     *
      * Field names matching the regular expression `__.*__` are reserved. Reserved
      * field names are forbidden except in certain documented contexts. The map
      * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
      * empty.
+     *
      * Field paths may be used in other contexts to refer to structured fields
      * defined here. For `map_value`, the field path is represented by the simple
      * or quoted field names of the containing fields, delimited by `.`. For
      * example, the structured field
      * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
      * represented by the field path `foo.x&y`.
+     *
      * Within a field path, a quoted field name starts and ends with `` ` `` and
      * may contain any character. Some characters, including `` ` ``, must be
      * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -1091,20 +1124,25 @@ public java.util.Map getFieldsM
      *
      * 
      * The document's fields.
+     *
      * The map keys represent field names.
+     *
      * A simple field name contains only characters `a` to `z`, `A` to `Z`,
      * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
      * `foo_bar_17`.
+     *
      * Field names matching the regular expression `__.*__` are reserved. Reserved
      * field names are forbidden except in certain documented contexts. The map
      * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
      * empty.
+     *
      * Field paths may be used in other contexts to refer to structured fields
      * defined here. For `map_value`, the field path is represented by the simple
      * or quoted field names of the containing fields, delimited by `.`. For
      * example, the structured field
      * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
      * represented by the field path `foo.x&y`.
+     *
      * Within a field path, a quoted field name starts and ends with `` ` `` and
      * may contain any character. Some characters, including `` ` ``, must be
      * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -1130,20 +1168,25 @@ public java.util.Map getFieldsM
      *
      * 
      * The document's fields.
+     *
      * The map keys represent field names.
+     *
      * A simple field name contains only characters `a` to `z`, `A` to `Z`,
      * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
      * `foo_bar_17`.
+     *
      * Field names matching the regular expression `__.*__` are reserved. Reserved
      * field names are forbidden except in certain documented contexts. The map
      * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
      * empty.
+     *
      * Field paths may be used in other contexts to refer to structured fields
      * defined here. For `map_value`, the field path is represented by the simple
      * or quoted field names of the containing fields, delimited by `.`. For
      * example, the structured field
      * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
      * represented by the field path `foo.x&y`.
+     *
      * Within a field path, a quoted field name starts and ends with `` ` `` and
      * may contain any character. Some characters, including `` ` ``, must be
      * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -1175,20 +1218,25 @@ public Builder clearFields() {
      *
      * 
      * The document's fields.
+     *
      * The map keys represent field names.
+     *
      * A simple field name contains only characters `a` to `z`, `A` to `Z`,
      * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
      * `foo_bar_17`.
+     *
      * Field names matching the regular expression `__.*__` are reserved. Reserved
      * field names are forbidden except in certain documented contexts. The map
      * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
      * empty.
+     *
      * Field paths may be used in other contexts to refer to structured fields
      * defined here. For `map_value`, the field path is represented by the simple
      * or quoted field names of the containing fields, delimited by `.`. For
      * example, the structured field
      * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
      * represented by the field path `foo.x&y`.
+     *
      * Within a field path, a quoted field name starts and ends with `` ` `` and
      * may contain any character. Some characters, including `` ` ``, must be
      * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -1215,20 +1263,25 @@ public java.util.Map getMutable
      *
      * 
      * The document's fields.
+     *
      * The map keys represent field names.
+     *
      * A simple field name contains only characters `a` to `z`, `A` to `Z`,
      * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
      * `foo_bar_17`.
+     *
      * Field names matching the regular expression `__.*__` are reserved. Reserved
      * field names are forbidden except in certain documented contexts. The map
      * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
      * empty.
+     *
      * Field paths may be used in other contexts to refer to structured fields
      * defined here. For `map_value`, the field path is represented by the simple
      * or quoted field names of the containing fields, delimited by `.`. For
      * example, the structured field
      * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
      * represented by the field path `foo.x&y`.
+     *
      * Within a field path, a quoted field name starts and ends with `` ` `` and
      * may contain any character. Some characters, including `` ` ``, must be
      * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -1253,20 +1306,25 @@ public Builder putFields(java.lang.String key, com.google.firestore.v1.Value val
      *
      * 
      * The document's fields.
+     *
      * The map keys represent field names.
+     *
      * A simple field name contains only characters `a` to `z`, `A` to `Z`,
      * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
      * `foo_bar_17`.
+     *
      * Field names matching the regular expression `__.*__` are reserved. Reserved
      * field names are forbidden except in certain documented contexts. The map
      * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
      * empty.
+     *
      * Field paths may be used in other contexts to refer to structured fields
      * defined here. For `map_value`, the field path is represented by the simple
      * or quoted field names of the containing fields, delimited by `.`. For
      * example, the structured field
      * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
      * represented by the field path `foo.x&y`.
+     *
      * Within a field path, a quoted field name starts and ends with `` ` `` and
      * may contain any character. Some characters, including `` ` ``, must be
      * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -1293,6 +1351,7 @@ public Builder putAllFields(
      *
      * 
      * Output only. The time at which the document was created.
+     *
      * This value increases monotonically when a document is deleted then
      * recreated. It can also be compared to values from other documents and
      * the `read_time` of a query.
@@ -1310,6 +1369,7 @@ public boolean hasCreateTime() {
      *
      * 
      * Output only. The time at which the document was created.
+     *
      * This value increases monotonically when a document is deleted then
      * recreated. It can also be compared to values from other documents and
      * the `read_time` of a query.
@@ -1333,6 +1393,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
      *
      * 
      * Output only. The time at which the document was created.
+     *
      * This value increases monotonically when a document is deleted then
      * recreated. It can also be compared to values from other documents and
      * the `read_time` of a query.
@@ -1358,6 +1419,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      *
      * 
      * Output only. The time at which the document was created.
+     *
      * This value increases monotonically when a document is deleted then
      * recreated. It can also be compared to values from other documents and
      * the `read_time` of a query.
@@ -1380,6 +1442,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
      *
      * 
      * Output only. The time at which the document was created.
+     *
      * This value increases monotonically when a document is deleted then
      * recreated. It can also be compared to values from other documents and
      * the `read_time` of a query.
@@ -1408,6 +1471,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      *
      * 
      * Output only. The time at which the document was created.
+     *
      * This value increases monotonically when a document is deleted then
      * recreated. It can also be compared to values from other documents and
      * the `read_time` of a query.
@@ -1430,6 +1494,7 @@ public Builder clearCreateTime() {
      *
      * 
      * Output only. The time at which the document was created.
+     *
      * This value increases monotonically when a document is deleted then
      * recreated. It can also be compared to values from other documents and
      * the `read_time` of a query.
@@ -1447,6 +1512,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      *
      * 
      * Output only. The time at which the document was created.
+     *
      * This value increases monotonically when a document is deleted then
      * recreated. It can also be compared to values from other documents and
      * the `read_time` of a query.
@@ -1468,6 +1534,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      *
      * 
      * Output only. The time at which the document was created.
+     *
      * This value increases monotonically when a document is deleted then
      * recreated. It can also be compared to values from other documents and
      * the `read_time` of a query.
@@ -1503,6 +1570,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      *
      * 
      * Output only. The time at which the document was last changed.
+     *
      * This value is initially set to the `create_time` then increases
      * monotonically with each change to the document. It can also be
      * compared to values from other documents and the `read_time` of a query.
@@ -1520,6 +1588,7 @@ public boolean hasUpdateTime() {
      *
      * 
      * Output only. The time at which the document was last changed.
+     *
      * This value is initially set to the `create_time` then increases
      * monotonically with each change to the document. It can also be
      * compared to values from other documents and the `read_time` of a query.
@@ -1543,6 +1612,7 @@ public com.google.protobuf.Timestamp getUpdateTime() {
      *
      * 
      * Output only. The time at which the document was last changed.
+     *
      * This value is initially set to the `create_time` then increases
      * monotonically with each change to the document. It can also be
      * compared to values from other documents and the `read_time` of a query.
@@ -1568,6 +1638,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * 
      * Output only. The time at which the document was last changed.
+     *
      * This value is initially set to the `create_time` then increases
      * monotonically with each change to the document. It can also be
      * compared to values from other documents and the `read_time` of a query.
@@ -1590,6 +1661,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      *
      * 
      * Output only. The time at which the document was last changed.
+     *
      * This value is initially set to the `create_time` then increases
      * monotonically with each change to the document. It can also be
      * compared to values from other documents and the `read_time` of a query.
@@ -1618,6 +1690,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * 
      * Output only. The time at which the document was last changed.
+     *
      * This value is initially set to the `create_time` then increases
      * monotonically with each change to the document. It can also be
      * compared to values from other documents and the `read_time` of a query.
@@ -1640,6 +1713,7 @@ public Builder clearUpdateTime() {
      *
      * 
      * Output only. The time at which the document was last changed.
+     *
      * This value is initially set to the `create_time` then increases
      * monotonically with each change to the document. It can also be
      * compared to values from other documents and the `read_time` of a query.
@@ -1657,6 +1731,7 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
      *
      * 
      * Output only. The time at which the document was last changed.
+     *
      * This value is initially set to the `create_time` then increases
      * monotonically with each change to the document. It can also be
      * compared to values from other documents and the `read_time` of a query.
@@ -1678,6 +1753,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      *
      * 
      * Output only. The time at which the document was last changed.
+     *
      * This value is initially set to the `create_time` then increases
      * monotonically with each change to the document. It can also be
      * compared to values from other documents and the `read_time` of a query.
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentChange.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentChange.java
index 0caf53ee5..22cb4753a 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentChange.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentChange.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -23,9 +23,11 @@
  *
  * 
  * A [Document][google.firestore.v1.Document] has changed.
+ *
  * May be the result of multiple [writes][google.firestore.v1.Write], including
  * deletes, that ultimately resulted in a new value for the
  * [Document][google.firestore.v1.Document].
+ *
  * Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be
  * returned for the same logical change, if multiple targets are affected.
  * 
@@ -53,11 +55,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentChange(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.WriteProto .internal_static_google_firestore_v1_DocumentChange_descriptor; @@ -80,6 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The new state of the [Document][google.firestore.v1.Document].
+   *
    * If `mask` is set, contains only fields that were updated or added.
    * 
* @@ -96,6 +94,7 @@ public boolean hasDocument() { * *
    * The new state of the [Document][google.firestore.v1.Document].
+   *
    * If `mask` is set, contains only fields that were updated or added.
    * 
* @@ -112,6 +111,7 @@ public com.google.firestore.v1.Document getDocument() { * *
    * The new state of the [Document][google.firestore.v1.Document].
+   *
    * If `mask` is set, contains only fields that were updated or added.
    * 
* @@ -444,9 +444,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A [Document][google.firestore.v1.Document] has changed.
+   *
    * May be the result of multiple [writes][google.firestore.v1.Write], including
    * deletes, that ultimately resulted in a new value for the
    * [Document][google.firestore.v1.Document].
+   *
    * Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be
    * returned for the same logical change, if multiple targets are affected.
    * 
@@ -711,6 +713,7 @@ public Builder mergeFrom( * *
      * The new state of the [Document][google.firestore.v1.Document].
+     *
      * If `mask` is set, contains only fields that were updated or added.
      * 
* @@ -726,6 +729,7 @@ public boolean hasDocument() { * *
      * The new state of the [Document][google.firestore.v1.Document].
+     *
      * If `mask` is set, contains only fields that were updated or added.
      * 
* @@ -747,6 +751,7 @@ public com.google.firestore.v1.Document getDocument() { * *
      * The new state of the [Document][google.firestore.v1.Document].
+     *
      * If `mask` is set, contains only fields that were updated or added.
      * 
* @@ -770,6 +775,7 @@ public Builder setDocument(com.google.firestore.v1.Document value) { * *
      * The new state of the [Document][google.firestore.v1.Document].
+     *
      * If `mask` is set, contains only fields that were updated or added.
      * 
* @@ -790,6 +796,7 @@ public Builder setDocument(com.google.firestore.v1.Document.Builder builderForVa * *
      * The new state of the [Document][google.firestore.v1.Document].
+     *
      * If `mask` is set, contains only fields that were updated or added.
      * 
* @@ -816,6 +823,7 @@ public Builder mergeDocument(com.google.firestore.v1.Document value) { * *
      * The new state of the [Document][google.firestore.v1.Document].
+     *
      * If `mask` is set, contains only fields that were updated or added.
      * 
* @@ -836,6 +844,7 @@ public Builder clearDocument() { * *
      * The new state of the [Document][google.firestore.v1.Document].
+     *
      * If `mask` is set, contains only fields that were updated or added.
      * 
* @@ -851,6 +860,7 @@ public com.google.firestore.v1.Document.Builder getDocumentBuilder() { * *
      * The new state of the [Document][google.firestore.v1.Document].
+     *
      * If `mask` is set, contains only fields that were updated or added.
      * 
* @@ -870,6 +880,7 @@ public com.google.firestore.v1.DocumentOrBuilder getDocumentOrBuilder() { * *
      * The new state of the [Document][google.firestore.v1.Document].
+     *
      * If `mask` is set, contains only fields that were updated or added.
      * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentChangeOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentChangeOrBuilder.java index faf5f3dab..eebcee49a 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentChangeOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentChangeOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -28,6 +28,7 @@ public interface DocumentChangeOrBuilder * *
    * The new state of the [Document][google.firestore.v1.Document].
+   *
    * If `mask` is set, contains only fields that were updated or added.
    * 
* @@ -41,6 +42,7 @@ public interface DocumentChangeOrBuilder * *
    * The new state of the [Document][google.firestore.v1.Document].
+   *
    * If `mask` is set, contains only fields that were updated or added.
    * 
* @@ -54,6 +56,7 @@ public interface DocumentChangeOrBuilder * *
    * The new state of the [Document][google.firestore.v1.Document].
+   *
    * If `mask` is set, contains only fields that were updated or added.
    * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDelete.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDelete.java index 8cf3d6a68..6a6e63e80 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDelete.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDelete.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -23,9 +23,11 @@ * *
  * A [Document][google.firestore.v1.Document] has been deleted.
+ *
  * May be the result of multiple [writes][google.firestore.v1.Write], including
  * updates, the last of which deleted the
  * [Document][google.firestore.v1.Document].
+ *
  * Multiple [DocumentDelete][google.firestore.v1.DocumentDelete] messages may be
  * returned for the same logical delete, if multiple targets are affected.
  * 
@@ -53,11 +55,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentDelete(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.WriteProto .internal_static_google_firestore_v1_DocumentDelete_descriptor; @@ -184,6 +181,7 @@ public int getRemovedTargetIds(int index) { * *
    * The read timestamp at which the delete was observed.
+   *
    * Greater or equal to the `commit_time` of the delete.
    * 
* @@ -200,6 +198,7 @@ public boolean hasReadTime() { * *
    * The read timestamp at which the delete was observed.
+   *
    * Greater or equal to the `commit_time` of the delete.
    * 
* @@ -216,6 +215,7 @@ public com.google.protobuf.Timestamp getReadTime() { * *
    * The read timestamp at which the delete was observed.
+   *
    * Greater or equal to the `commit_time` of the delete.
    * 
* @@ -430,9 +430,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A [Document][google.firestore.v1.Document] has been deleted.
+   *
    * May be the result of multiple [writes][google.firestore.v1.Write], including
    * updates, the last of which deleted the
    * [Document][google.firestore.v1.Document].
+   *
    * Multiple [DocumentDelete][google.firestore.v1.DocumentDelete] messages may be
    * returned for the same logical delete, if multiple targets are affected.
    * 
@@ -917,6 +919,7 @@ public Builder clearRemovedTargetIds() { * *
      * The read timestamp at which the delete was observed.
+     *
      * Greater or equal to the `commit_time` of the delete.
      * 
* @@ -932,6 +935,7 @@ public boolean hasReadTime() { * *
      * The read timestamp at which the delete was observed.
+     *
      * Greater or equal to the `commit_time` of the delete.
      * 
* @@ -951,6 +955,7 @@ public com.google.protobuf.Timestamp getReadTime() { * *
      * The read timestamp at which the delete was observed.
+     *
      * Greater or equal to the `commit_time` of the delete.
      * 
* @@ -974,6 +979,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *
      * The read timestamp at which the delete was observed.
+     *
      * Greater or equal to the `commit_time` of the delete.
      * 
* @@ -994,6 +1000,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * *
      * The read timestamp at which the delete was observed.
+     *
      * Greater or equal to the `commit_time` of the delete.
      * 
* @@ -1020,6 +1027,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * *
      * The read timestamp at which the delete was observed.
+     *
      * Greater or equal to the `commit_time` of the delete.
      * 
* @@ -1040,6 +1048,7 @@ public Builder clearReadTime() { * *
      * The read timestamp at which the delete was observed.
+     *
      * Greater or equal to the `commit_time` of the delete.
      * 
* @@ -1055,6 +1064,7 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * *
      * The read timestamp at which the delete was observed.
+     *
      * Greater or equal to the `commit_time` of the delete.
      * 
* @@ -1072,6 +1082,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
      * The read timestamp at which the delete was observed.
+     *
      * Greater or equal to the `commit_time` of the delete.
      * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDeleteOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDeleteOrBuilder.java index 49b952456..d09fba99e 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDeleteOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentDeleteOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -93,6 +93,7 @@ public interface DocumentDeleteOrBuilder * *
    * The read timestamp at which the delete was observed.
+   *
    * Greater or equal to the `commit_time` of the delete.
    * 
* @@ -106,6 +107,7 @@ public interface DocumentDeleteOrBuilder * *
    * The read timestamp at which the delete was observed.
+   *
    * Greater or equal to the `commit_time` of the delete.
    * 
* @@ -119,6 +121,7 @@ public interface DocumentDeleteOrBuilder * *
    * The read timestamp at which the delete was observed.
+   *
    * Greater or equal to the `commit_time` of the delete.
    * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMask.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMask.java index 2e7b517ae..062c453f1 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMask.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMask.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -43,7 +43,7 @@ private DocumentMask(com.google.protobuf.GeneratedMessageV3.Builder builder) } private DocumentMask() { - fieldPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + fieldPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentMask(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.CommonProto .internal_static_google_firestore_v1_DocumentMask_descriptor; @@ -75,7 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int FIELD_PATHS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList fieldPaths_; + private com.google.protobuf.LazyStringArrayList fieldPaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -351,8 +347,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - fieldPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + fieldPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -379,7 +374,6 @@ public com.google.firestore.v1.DocumentMask build() { @java.lang.Override public com.google.firestore.v1.DocumentMask buildPartial() { com.google.firestore.v1.DocumentMask result = new com.google.firestore.v1.DocumentMask(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -387,16 +381,12 @@ public com.google.firestore.v1.DocumentMask buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.firestore.v1.DocumentMask result) { - if (((bitField0_ & 0x00000001) != 0)) { - fieldPaths_ = fieldPaths_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fieldPaths_ = fieldPaths_; - } - private void buildPartial0(com.google.firestore.v1.DocumentMask result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + fieldPaths_.makeImmutable(); + result.fieldPaths_ = fieldPaths_; + } } @java.lang.Override @@ -447,7 +437,7 @@ public Builder mergeFrom(com.google.firestore.v1.DocumentMask other) { if (!other.fieldPaths_.isEmpty()) { if (fieldPaths_.isEmpty()) { fieldPaths_ = other.fieldPaths_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureFieldPathsIsMutable(); fieldPaths_.addAll(other.fieldPaths_); @@ -506,14 +496,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList fieldPaths_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList fieldPaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureFieldPathsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!fieldPaths_.isModifiable()) { fieldPaths_ = new com.google.protobuf.LazyStringArrayList(fieldPaths_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -529,7 +519,8 @@ private void ensureFieldPathsIsMutable() { * @return A list containing the fieldPaths. */ public com.google.protobuf.ProtocolStringList getFieldPathsList() { - return fieldPaths_.getUnmodifiableView(); + fieldPaths_.makeImmutable(); + return fieldPaths_; } /** * @@ -602,6 +593,7 @@ public Builder setFieldPaths(int index, java.lang.String value) { } ensureFieldPathsIsMutable(); fieldPaths_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -625,6 +617,7 @@ public Builder addFieldPaths(java.lang.String value) { } ensureFieldPathsIsMutable(); fieldPaths_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -645,6 +638,7 @@ public Builder addFieldPaths(java.lang.String value) { public Builder addAllFieldPaths(java.lang.Iterable values) { ensureFieldPathsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fieldPaths_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -662,8 +656,9 @@ public Builder addAllFieldPaths(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearFieldPaths() { - fieldPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + fieldPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -688,6 +683,7 @@ public Builder addFieldPathsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureFieldPathsIsMutable(); fieldPaths_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMaskOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMaskOrBuilder.java index 747760394..76baddf81 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMaskOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentMaskOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/DocumentOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentOrBuilder.java index 6c80d8e2a..f04f0d82a 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -55,20 +55,25 @@ public interface DocumentOrBuilder * *
    * The document's fields.
+   *
    * The map keys represent field names.
+   *
    * A simple field name contains only characters `a` to `z`, `A` to `Z`,
    * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
    * `foo_bar_17`.
+   *
    * Field names matching the regular expression `__.*__` are reserved. Reserved
    * field names are forbidden except in certain documented contexts. The map
    * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
    * empty.
+   *
    * Field paths may be used in other contexts to refer to structured fields
    * defined here. For `map_value`, the field path is represented by the simple
    * or quoted field names of the containing fields, delimited by `.`. For
    * example, the structured field
    * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
    * represented by the field path `foo.x&y`.
+   *
    * Within a field path, a quoted field name starts and ends with `` ` `` and
    * may contain any character. Some characters, including `` ` ``, must be
    * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -83,20 +88,25 @@ public interface DocumentOrBuilder
    *
    * 
    * The document's fields.
+   *
    * The map keys represent field names.
+   *
    * A simple field name contains only characters `a` to `z`, `A` to `Z`,
    * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
    * `foo_bar_17`.
+   *
    * Field names matching the regular expression `__.*__` are reserved. Reserved
    * field names are forbidden except in certain documented contexts. The map
    * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
    * empty.
+   *
    * Field paths may be used in other contexts to refer to structured fields
    * defined here. For `map_value`, the field path is represented by the simple
    * or quoted field names of the containing fields, delimited by `.`. For
    * example, the structured field
    * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
    * represented by the field path `foo.x&y`.
+   *
    * Within a field path, a quoted field name starts and ends with `` ` `` and
    * may contain any character. Some characters, including `` ` ``, must be
    * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -114,20 +124,25 @@ public interface DocumentOrBuilder
    *
    * 
    * The document's fields.
+   *
    * The map keys represent field names.
+   *
    * A simple field name contains only characters `a` to `z`, `A` to `Z`,
    * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
    * `foo_bar_17`.
+   *
    * Field names matching the regular expression `__.*__` are reserved. Reserved
    * field names are forbidden except in certain documented contexts. The map
    * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
    * empty.
+   *
    * Field paths may be used in other contexts to refer to structured fields
    * defined here. For `map_value`, the field path is represented by the simple
    * or quoted field names of the containing fields, delimited by `.`. For
    * example, the structured field
    * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
    * represented by the field path `foo.x&y`.
+   *
    * Within a field path, a quoted field name starts and ends with `` ` `` and
    * may contain any character. Some characters, including `` ` ``, must be
    * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -142,20 +157,25 @@ public interface DocumentOrBuilder
    *
    * 
    * The document's fields.
+   *
    * The map keys represent field names.
+   *
    * A simple field name contains only characters `a` to `z`, `A` to `Z`,
    * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
    * `foo_bar_17`.
+   *
    * Field names matching the regular expression `__.*__` are reserved. Reserved
    * field names are forbidden except in certain documented contexts. The map
    * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
    * empty.
+   *
    * Field paths may be used in other contexts to refer to structured fields
    * defined here. For `map_value`, the field path is represented by the simple
    * or quoted field names of the containing fields, delimited by `.`. For
    * example, the structured field
    * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
    * represented by the field path `foo.x&y`.
+   *
    * Within a field path, a quoted field name starts and ends with `` ` `` and
    * may contain any character. Some characters, including `` ` ``, must be
    * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -174,20 +194,25 @@ com.google.firestore.v1.Value getFieldsOrDefault(
    *
    * 
    * The document's fields.
+   *
    * The map keys represent field names.
+   *
    * A simple field name contains only characters `a` to `z`, `A` to `Z`,
    * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
    * `foo_bar_17`.
+   *
    * Field names matching the regular expression `__.*__` are reserved. Reserved
    * field names are forbidden except in certain documented contexts. The map
    * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
    * empty.
+   *
    * Field paths may be used in other contexts to refer to structured fields
    * defined here. For `map_value`, the field path is represented by the simple
    * or quoted field names of the containing fields, delimited by `.`. For
    * example, the structured field
    * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
    * represented by the field path `foo.x&y`.
+   *
    * Within a field path, a quoted field name starts and ends with `` ` `` and
    * may contain any character. Some characters, including `` ` ``, must be
    * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
@@ -203,6 +228,7 @@ com.google.firestore.v1.Value getFieldsOrDefault(
    *
    * 
    * Output only. The time at which the document was created.
+   *
    * This value increases monotonically when a document is deleted then
    * recreated. It can also be compared to values from other documents and
    * the `read_time` of a query.
@@ -218,6 +244,7 @@ com.google.firestore.v1.Value getFieldsOrDefault(
    *
    * 
    * Output only. The time at which the document was created.
+   *
    * This value increases monotonically when a document is deleted then
    * recreated. It can also be compared to values from other documents and
    * the `read_time` of a query.
@@ -233,6 +260,7 @@ com.google.firestore.v1.Value getFieldsOrDefault(
    *
    * 
    * Output only. The time at which the document was created.
+   *
    * This value increases monotonically when a document is deleted then
    * recreated. It can also be compared to values from other documents and
    * the `read_time` of a query.
@@ -247,6 +275,7 @@ com.google.firestore.v1.Value getFieldsOrDefault(
    *
    * 
    * Output only. The time at which the document was last changed.
+   *
    * This value is initially set to the `create_time` then increases
    * monotonically with each change to the document. It can also be
    * compared to values from other documents and the `read_time` of a query.
@@ -262,6 +291,7 @@ com.google.firestore.v1.Value getFieldsOrDefault(
    *
    * 
    * Output only. The time at which the document was last changed.
+   *
    * This value is initially set to the `create_time` then increases
    * monotonically with each change to the document. It can also be
    * compared to values from other documents and the `read_time` of a query.
@@ -277,6 +307,7 @@ com.google.firestore.v1.Value getFieldsOrDefault(
    *
    * 
    * Output only. The time at which the document was last changed.
+   *
    * This value is initially set to the `create_time` then increases
    * monotonically with each change to the document. It can also be
    * compared to values from other documents and the `read_time` of a query.
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentProto.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentProto.java
index a5fbc4549..dbd5f29ce 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentProto.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentProto.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemove.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemove.java
index 1f4f68300..d8489a1b3 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemove.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemove.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -24,9 +24,11 @@
  * 
  * A [Document][google.firestore.v1.Document] has been removed from the view of
  * the targets.
+ *
  * Sent if the document is no longer relevant to a target and is out of view.
  * Can be sent instead of a DocumentDelete or a DocumentChange if the server
  * can not send the new value of the document.
+ *
  * Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be
  * returned for the same logical write or delete, if multiple targets are
  * affected.
@@ -55,11 +57,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DocumentRemove();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.firestore.v1.WriteProto
         .internal_static_google_firestore_v1_DocumentRemove_descriptor;
@@ -186,6 +183,7 @@ public int getRemovedTargetIds(int index) {
    *
    * 
    * The read timestamp at which the remove was observed.
+   *
    * Greater or equal to the `commit_time` of the change/delete/remove.
    * 
* @@ -202,6 +200,7 @@ public boolean hasReadTime() { * *
    * The read timestamp at which the remove was observed.
+   *
    * Greater or equal to the `commit_time` of the change/delete/remove.
    * 
* @@ -218,6 +217,7 @@ public com.google.protobuf.Timestamp getReadTime() { * *
    * The read timestamp at which the remove was observed.
+   *
    * Greater or equal to the `commit_time` of the change/delete/remove.
    * 
* @@ -433,9 +433,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * A [Document][google.firestore.v1.Document] has been removed from the view of
    * the targets.
+   *
    * Sent if the document is no longer relevant to a target and is out of view.
    * Can be sent instead of a DocumentDelete or a DocumentChange if the server
    * can not send the new value of the document.
+   *
    * Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be
    * returned for the same logical write or delete, if multiple targets are
    * affected.
@@ -921,6 +923,7 @@ public Builder clearRemovedTargetIds() {
      *
      * 
      * The read timestamp at which the remove was observed.
+     *
      * Greater or equal to the `commit_time` of the change/delete/remove.
      * 
* @@ -936,6 +939,7 @@ public boolean hasReadTime() { * *
      * The read timestamp at which the remove was observed.
+     *
      * Greater or equal to the `commit_time` of the change/delete/remove.
      * 
* @@ -955,6 +959,7 @@ public com.google.protobuf.Timestamp getReadTime() { * *
      * The read timestamp at which the remove was observed.
+     *
      * Greater or equal to the `commit_time` of the change/delete/remove.
      * 
* @@ -978,6 +983,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *
      * The read timestamp at which the remove was observed.
+     *
      * Greater or equal to the `commit_time` of the change/delete/remove.
      * 
* @@ -998,6 +1004,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * *
      * The read timestamp at which the remove was observed.
+     *
      * Greater or equal to the `commit_time` of the change/delete/remove.
      * 
* @@ -1024,6 +1031,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * *
      * The read timestamp at which the remove was observed.
+     *
      * Greater or equal to the `commit_time` of the change/delete/remove.
      * 
* @@ -1044,6 +1052,7 @@ public Builder clearReadTime() { * *
      * The read timestamp at which the remove was observed.
+     *
      * Greater or equal to the `commit_time` of the change/delete/remove.
      * 
* @@ -1059,6 +1068,7 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * *
      * The read timestamp at which the remove was observed.
+     *
      * Greater or equal to the `commit_time` of the change/delete/remove.
      * 
* @@ -1076,6 +1086,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
      * The read timestamp at which the remove was observed.
+     *
      * Greater or equal to the `commit_time` of the change/delete/remove.
      * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemoveOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemoveOrBuilder.java index de610bbe2..8aea4177f 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemoveOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRemoveOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -93,6 +93,7 @@ public interface DocumentRemoveOrBuilder * *
    * The read timestamp at which the remove was observed.
+   *
    * Greater or equal to the `commit_time` of the change/delete/remove.
    * 
* @@ -106,6 +107,7 @@ public interface DocumentRemoveOrBuilder * *
    * The read timestamp at which the remove was observed.
+   *
    * Greater or equal to the `commit_time` of the change/delete/remove.
    * 
* @@ -119,6 +121,7 @@ public interface DocumentRemoveOrBuilder * *
    * The read timestamp at which the remove was observed.
+   *
    * Greater or equal to the `commit_time` of the change/delete/remove.
    * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentTransform.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentTransform.java index c20a45caf..01eea20b4 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentTransform.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentTransform.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentTransform(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.WriteProto .internal_static_google_firestore_v1_DocumentTransform_descriptor; @@ -150,6 +145,7 @@ public interface FieldTransformOrBuilder * *
      * Adds the given value to the field's current value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the given value.
@@ -170,6 +166,7 @@ public interface FieldTransformOrBuilder
      *
      * 
      * Adds the given value to the field's current value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the given value.
@@ -190,6 +187,7 @@ public interface FieldTransformOrBuilder
      *
      * 
      * Adds the given value to the field's current value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the given value.
@@ -209,6 +207,7 @@ public interface FieldTransformOrBuilder
      *
      * 
      * Sets the field to the maximum of its current value and the given value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the given value.
@@ -231,6 +230,7 @@ public interface FieldTransformOrBuilder
      *
      * 
      * Sets the field to the maximum of its current value and the given value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the given value.
@@ -253,6 +253,7 @@ public interface FieldTransformOrBuilder
      *
      * 
      * Sets the field to the maximum of its current value and the given value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the given value.
@@ -274,6 +275,7 @@ public interface FieldTransformOrBuilder
      *
      * 
      * Sets the field to the minimum of its current value and the given value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the input value.
@@ -296,6 +298,7 @@ public interface FieldTransformOrBuilder
      *
      * 
      * Sets the field to the minimum of its current value and the given value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the input value.
@@ -318,6 +321,7 @@ public interface FieldTransformOrBuilder
      *
      * 
      * Sets the field to the minimum of its current value and the given value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the input value.
@@ -342,11 +346,13 @@ public interface FieldTransformOrBuilder
      * the current field value.
      * If the field is not an array, or if the field does not yet exist, it is
      * first set to the empty array.
+     *
      * Equivalent numbers of different types (e.g. 3L and 3.0) are
      * considered equal when checking if a value is missing.
      * NaN is equal to NaN, and Null is equal to Null.
      * If the input contains multiple equivalent values, only the first will
      * be considered.
+     *
      * The corresponding transform_result will be the null value.
      * 
* @@ -363,11 +369,13 @@ public interface FieldTransformOrBuilder * the current field value. * If the field is not an array, or if the field does not yet exist, it is * first set to the empty array. + * * Equivalent numbers of different types (e.g. 3L and 3.0) are * considered equal when checking if a value is missing. * NaN is equal to NaN, and Null is equal to Null. * If the input contains multiple equivalent values, only the first will * be considered. + * * The corresponding transform_result will be the null value. *
* @@ -384,11 +392,13 @@ public interface FieldTransformOrBuilder * the current field value. * If the field is not an array, or if the field does not yet exist, it is * first set to the empty array. + * * Equivalent numbers of different types (e.g. 3L and 3.0) are * considered equal when checking if a value is missing. * NaN is equal to NaN, and Null is equal to Null. * If the input contains multiple equivalent values, only the first will * be considered. + * * The corresponding transform_result will be the null value. *
* @@ -403,10 +413,12 @@ public interface FieldTransformOrBuilder * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -422,10 +434,12 @@ public interface FieldTransformOrBuilder * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -441,10 +455,12 @@ public interface FieldTransformOrBuilder * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -452,7 +468,7 @@ public interface FieldTransformOrBuilder */ com.google.firestore.v1.ArrayValueOrBuilder getRemoveAllFromArrayOrBuilder(); - public com.google.firestore.v1.DocumentTransform.FieldTransform.TransformTypeCase + com.google.firestore.v1.DocumentTransform.FieldTransform.TransformTypeCase getTransformTypeCase(); } /** @@ -484,11 +500,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FieldTransform(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.WriteProto .internal_static_google_firestore_v1_DocumentTransform_FieldTransform_descriptor; @@ -646,6 +657,8 @@ private ServerValue(int value) { } private int transformTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object transformType_; public enum TransformTypeCase @@ -828,6 +841,7 @@ public int getSetToServerValueValue() { * *
      * Adds the given value to the field's current value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the given value.
@@ -851,6 +865,7 @@ public boolean hasIncrement() {
      *
      * 
      * Adds the given value to the field's current value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the given value.
@@ -877,6 +892,7 @@ public com.google.firestore.v1.Value getIncrement() {
      *
      * 
      * Adds the given value to the field's current value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the given value.
@@ -903,6 +919,7 @@ public com.google.firestore.v1.ValueOrBuilder getIncrementOrBuilder() {
      *
      * 
      * Sets the field to the maximum of its current value and the given value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the given value.
@@ -928,6 +945,7 @@ public boolean hasMaximum() {
      *
      * 
      * Sets the field to the maximum of its current value and the given value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the given value.
@@ -956,6 +974,7 @@ public com.google.firestore.v1.Value getMaximum() {
      *
      * 
      * Sets the field to the maximum of its current value and the given value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the given value.
@@ -984,6 +1003,7 @@ public com.google.firestore.v1.ValueOrBuilder getMaximumOrBuilder() {
      *
      * 
      * Sets the field to the minimum of its current value and the given value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the input value.
@@ -1009,6 +1029,7 @@ public boolean hasMinimum() {
      *
      * 
      * Sets the field to the minimum of its current value and the given value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the input value.
@@ -1037,6 +1058,7 @@ public com.google.firestore.v1.Value getMinimum() {
      *
      * 
      * Sets the field to the minimum of its current value and the given value.
+     *
      * This must be an integer or a double value.
      * If the field is not an integer or double, or if the field does not yet
      * exist, the transformation will set the field to the input value.
@@ -1068,11 +1090,13 @@ public com.google.firestore.v1.ValueOrBuilder getMinimumOrBuilder() {
      * the current field value.
      * If the field is not an array, or if the field does not yet exist, it is
      * first set to the empty array.
+     *
      * Equivalent numbers of different types (e.g. 3L and 3.0) are
      * considered equal when checking if a value is missing.
      * NaN is equal to NaN, and Null is equal to Null.
      * If the input contains multiple equivalent values, only the first will
      * be considered.
+     *
      * The corresponding transform_result will be the null value.
      * 
* @@ -1092,11 +1116,13 @@ public boolean hasAppendMissingElements() { * the current field value. * If the field is not an array, or if the field does not yet exist, it is * first set to the empty array. + * * Equivalent numbers of different types (e.g. 3L and 3.0) are * considered equal when checking if a value is missing. * NaN is equal to NaN, and Null is equal to Null. * If the input contains multiple equivalent values, only the first will * be considered. + * * The corresponding transform_result will be the null value. *
* @@ -1119,11 +1145,13 @@ public com.google.firestore.v1.ArrayValue getAppendMissingElements() { * the current field value. * If the field is not an array, or if the field does not yet exist, it is * first set to the empty array. + * * Equivalent numbers of different types (e.g. 3L and 3.0) are * considered equal when checking if a value is missing. * NaN is equal to NaN, and Null is equal to Null. * If the input contains multiple equivalent values, only the first will * be considered. + * * The corresponding transform_result will be the null value. *
* @@ -1145,10 +1173,12 @@ public com.google.firestore.v1.ArrayValueOrBuilder getAppendMissingElementsOrBui * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -1167,10 +1197,12 @@ public boolean hasRemoveAllFromArray() { * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -1192,10 +1224,12 @@ public com.google.firestore.v1.ArrayValue getRemoveAllFromArray() { * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -2039,6 +2073,7 @@ public Builder clearSetToServerValue() { * *
        * Adds the given value to the field's current value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2062,6 +2097,7 @@ public boolean hasIncrement() {
        *
        * 
        * Adds the given value to the field's current value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2095,6 +2131,7 @@ public com.google.firestore.v1.Value getIncrement() {
        *
        * 
        * Adds the given value to the field's current value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2125,6 +2162,7 @@ public Builder setIncrement(com.google.firestore.v1.Value value) {
        *
        * 
        * Adds the given value to the field's current value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2152,6 +2190,7 @@ public Builder setIncrement(com.google.firestore.v1.Value.Builder builderForValu
        *
        * 
        * Adds the given value to the field's current value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2192,6 +2231,7 @@ public Builder mergeIncrement(com.google.firestore.v1.Value value) {
        *
        * 
        * Adds the given value to the field's current value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2225,6 +2265,7 @@ public Builder clearIncrement() {
        *
        * 
        * Adds the given value to the field's current value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2245,6 +2286,7 @@ public com.google.firestore.v1.Value.Builder getIncrementBuilder() {
        *
        * 
        * Adds the given value to the field's current value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2273,6 +2315,7 @@ public com.google.firestore.v1.ValueOrBuilder getIncrementOrBuilder() {
        *
        * 
        * Adds the given value to the field's current value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2319,6 +2362,7 @@ public com.google.firestore.v1.ValueOrBuilder getIncrementOrBuilder() {
        *
        * 
        * Sets the field to the maximum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2344,6 +2388,7 @@ public boolean hasMaximum() {
        *
        * 
        * Sets the field to the maximum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2379,6 +2424,7 @@ public com.google.firestore.v1.Value getMaximum() {
        *
        * 
        * Sets the field to the maximum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2411,6 +2457,7 @@ public Builder setMaximum(com.google.firestore.v1.Value value) {
        *
        * 
        * Sets the field to the maximum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2440,6 +2487,7 @@ public Builder setMaximum(com.google.firestore.v1.Value.Builder builderForValue)
        *
        * 
        * Sets the field to the maximum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2482,6 +2530,7 @@ public Builder mergeMaximum(com.google.firestore.v1.Value value) {
        *
        * 
        * Sets the field to the maximum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2517,6 +2566,7 @@ public Builder clearMaximum() {
        *
        * 
        * Sets the field to the maximum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2539,6 +2589,7 @@ public com.google.firestore.v1.Value.Builder getMaximumBuilder() {
        *
        * 
        * Sets the field to the maximum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2569,6 +2620,7 @@ public com.google.firestore.v1.ValueOrBuilder getMaximumOrBuilder() {
        *
        * 
        * Sets the field to the maximum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the given value.
@@ -2617,6 +2669,7 @@ public com.google.firestore.v1.ValueOrBuilder getMaximumOrBuilder() {
        *
        * 
        * Sets the field to the minimum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the input value.
@@ -2642,6 +2695,7 @@ public boolean hasMinimum() {
        *
        * 
        * Sets the field to the minimum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the input value.
@@ -2677,6 +2731,7 @@ public com.google.firestore.v1.Value getMinimum() {
        *
        * 
        * Sets the field to the minimum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the input value.
@@ -2709,6 +2764,7 @@ public Builder setMinimum(com.google.firestore.v1.Value value) {
        *
        * 
        * Sets the field to the minimum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the input value.
@@ -2738,6 +2794,7 @@ public Builder setMinimum(com.google.firestore.v1.Value.Builder builderForValue)
        *
        * 
        * Sets the field to the minimum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the input value.
@@ -2780,6 +2837,7 @@ public Builder mergeMinimum(com.google.firestore.v1.Value value) {
        *
        * 
        * Sets the field to the minimum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the input value.
@@ -2815,6 +2873,7 @@ public Builder clearMinimum() {
        *
        * 
        * Sets the field to the minimum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the input value.
@@ -2837,6 +2896,7 @@ public com.google.firestore.v1.Value.Builder getMinimumBuilder() {
        *
        * 
        * Sets the field to the minimum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the input value.
@@ -2867,6 +2927,7 @@ public com.google.firestore.v1.ValueOrBuilder getMinimumOrBuilder() {
        *
        * 
        * Sets the field to the minimum of its current value and the given value.
+       *
        * This must be an integer or a double value.
        * If the field is not an integer or double, or if the field does not yet
        * exist, the transformation will set the field to the input value.
@@ -2918,11 +2979,13 @@ public com.google.firestore.v1.ValueOrBuilder getMinimumOrBuilder() {
        * the current field value.
        * If the field is not an array, or if the field does not yet exist, it is
        * first set to the empty array.
+       *
        * Equivalent numbers of different types (e.g. 3L and 3.0) are
        * considered equal when checking if a value is missing.
        * NaN is equal to NaN, and Null is equal to Null.
        * If the input contains multiple equivalent values, only the first will
        * be considered.
+       *
        * The corresponding transform_result will be the null value.
        * 
* @@ -2942,11 +3005,13 @@ public boolean hasAppendMissingElements() { * the current field value. * If the field is not an array, or if the field does not yet exist, it is * first set to the empty array. + * * Equivalent numbers of different types (e.g. 3L and 3.0) are * considered equal when checking if a value is missing. * NaN is equal to NaN, and Null is equal to Null. * If the input contains multiple equivalent values, only the first will * be considered. + * * The corresponding transform_result will be the null value. *
* @@ -2976,11 +3041,13 @@ public com.google.firestore.v1.ArrayValue getAppendMissingElements() { * the current field value. * If the field is not an array, or if the field does not yet exist, it is * first set to the empty array. + * * Equivalent numbers of different types (e.g. 3L and 3.0) are * considered equal when checking if a value is missing. * NaN is equal to NaN, and Null is equal to Null. * If the input contains multiple equivalent values, only the first will * be considered. + * * The corresponding transform_result will be the null value. *
* @@ -3007,11 +3074,13 @@ public Builder setAppendMissingElements(com.google.firestore.v1.ArrayValue value * the current field value. * If the field is not an array, or if the field does not yet exist, it is * first set to the empty array. + * * Equivalent numbers of different types (e.g. 3L and 3.0) are * considered equal when checking if a value is missing. * NaN is equal to NaN, and Null is equal to Null. * If the input contains multiple equivalent values, only the first will * be considered. + * * The corresponding transform_result will be the null value. *
* @@ -3036,11 +3105,13 @@ public Builder setAppendMissingElements( * the current field value. * If the field is not an array, or if the field does not yet exist, it is * first set to the empty array. + * * Equivalent numbers of different types (e.g. 3L and 3.0) are * considered equal when checking if a value is missing. * NaN is equal to NaN, and Null is equal to Null. * If the input contains multiple equivalent values, only the first will * be considered. + * * The corresponding transform_result will be the null value. *
* @@ -3077,11 +3148,13 @@ public Builder mergeAppendMissingElements(com.google.firestore.v1.ArrayValue val * the current field value. * If the field is not an array, or if the field does not yet exist, it is * first set to the empty array. + * * Equivalent numbers of different types (e.g. 3L and 3.0) are * considered equal when checking if a value is missing. * NaN is equal to NaN, and Null is equal to Null. * If the input contains multiple equivalent values, only the first will * be considered. + * * The corresponding transform_result will be the null value. *
* @@ -3111,11 +3184,13 @@ public Builder clearAppendMissingElements() { * the current field value. * If the field is not an array, or if the field does not yet exist, it is * first set to the empty array. + * * Equivalent numbers of different types (e.g. 3L and 3.0) are * considered equal when checking if a value is missing. * NaN is equal to NaN, and Null is equal to Null. * If the input contains multiple equivalent values, only the first will * be considered. + * * The corresponding transform_result will be the null value. *
* @@ -3132,11 +3207,13 @@ public com.google.firestore.v1.ArrayValue.Builder getAppendMissingElementsBuilde * the current field value. * If the field is not an array, or if the field does not yet exist, it is * first set to the empty array. + * * Equivalent numbers of different types (e.g. 3L and 3.0) are * considered equal when checking if a value is missing. * NaN is equal to NaN, and Null is equal to Null. * If the input contains multiple equivalent values, only the first will * be considered. + * * The corresponding transform_result will be the null value. *
* @@ -3161,11 +3238,13 @@ public com.google.firestore.v1.ArrayValueOrBuilder getAppendMissingElementsOrBui * the current field value. * If the field is not an array, or if the field does not yet exist, it is * first set to the empty array. + * * Equivalent numbers of different types (e.g. 3L and 3.0) are * considered equal when checking if a value is missing. * NaN is equal to NaN, and Null is equal to Null. * If the input contains multiple equivalent values, only the first will * be considered. + * * The corresponding transform_result will be the null value. *
* @@ -3207,10 +3286,12 @@ public com.google.firestore.v1.ArrayValueOrBuilder getAppendMissingElementsOrBui * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -3229,10 +3310,12 @@ public boolean hasRemoveAllFromArray() { * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -3261,10 +3344,12 @@ public com.google.firestore.v1.ArrayValue getRemoveAllFromArray() { * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -3290,10 +3375,12 @@ public Builder setRemoveAllFromArray(com.google.firestore.v1.ArrayValue value) { * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -3317,10 +3404,12 @@ public Builder setRemoveAllFromArray( * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -3356,10 +3445,12 @@ public Builder mergeRemoveAllFromArray(com.google.firestore.v1.ArrayValue value) * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -3388,10 +3479,12 @@ public Builder clearRemoveAllFromArray() { * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -3407,10 +3500,12 @@ public com.google.firestore.v1.ArrayValue.Builder getRemoveAllFromArrayBuilder() * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* @@ -3434,10 +3529,12 @@ public com.google.firestore.v1.ArrayValueOrBuilder getRemoveAllFromArrayOrBuilde * Remove all of the given elements from the array in the field. * If the field is not an array, or if the field does not yet exist, it is * set to the empty array. + * * Equivalent numbers of the different types (e.g. 3L and 3.0) are * considered equal when deciding whether an element should be removed. * NaN is equal to NaN, and Null is equal to Null. * This will remove all equivalent values if there are duplicates. + * * The corresponding transform_result will be the null value. *
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentTransformOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentTransformOrBuilder.java index 455bbc270..6abbe2faf 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentTransformOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentTransformOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilter.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilter.java index 6e907a27f..dfffe7d21 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilter.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExistenceFilter(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.WriteProto .internal_static_google_firestore_v1_ExistenceFilter_descriptor; @@ -91,8 +86,14 @@ public int getTargetId() { *
    * The total count of documents that match
    * [target_id][google.firestore.v1.ExistenceFilter.target_id].
+   *
    * If different from the count of documents in the client that match, the
    * client must manually determine which documents no longer match the target.
+   *
+   * The client can use the `unchanged_names` bloom filter to assist with
+   * this determination by testing ALL the document names against the filter;
+   * if the document name is NOT in the filter, it means the document no
+   * longer matches the target.
    * 
* * int32 count = 2; @@ -110,12 +111,11 @@ public int getCount() { * * *
-   * A bloom filter that contains the UTF-8 byte encodings of the resource names
-   * of the documents that match
+   * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+   * the resource names of ALL the documents that match
    * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-   * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-   * that have NOT changed since the query results indicated by the resume token
-   * or timestamp given in `Target.resume_type`.
+   * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+   *
    * This bloom filter may be omitted at the server's discretion, such as if it
    * is deemed that the client will not make use of it or if it is too
    * computationally expensive to calculate or transmit. Clients must gracefully
@@ -136,12 +136,11 @@ public boolean hasUnchangedNames() {
    *
    *
    * 
-   * A bloom filter that contains the UTF-8 byte encodings of the resource names
-   * of the documents that match
+   * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+   * the resource names of ALL the documents that match
    * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-   * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-   * that have NOT changed since the query results indicated by the resume token
-   * or timestamp given in `Target.resume_type`.
+   * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+   *
    * This bloom filter may be omitted at the server's discretion, such as if it
    * is deemed that the client will not make use of it or if it is too
    * computationally expensive to calculate or transmit. Clients must gracefully
@@ -164,12 +163,11 @@ public com.google.firestore.v1.BloomFilter getUnchangedNames() {
    *
    *
    * 
-   * A bloom filter that contains the UTF-8 byte encodings of the resource names
-   * of the documents that match
+   * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+   * the resource names of ALL the documents that match
    * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-   * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-   * that have NOT changed since the query results indicated by the resume token
-   * or timestamp given in `Target.resume_type`.
+   * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+   *
    * This bloom filter may be omitted at the server's discretion, such as if it
    * is deemed that the client will not make use of it or if it is too
    * computationally expensive to calculate or transmit. Clients must gracefully
@@ -639,8 +637,14 @@ public Builder clearTargetId() {
      * 
      * The total count of documents that match
      * [target_id][google.firestore.v1.ExistenceFilter.target_id].
+     *
      * If different from the count of documents in the client that match, the
      * client must manually determine which documents no longer match the target.
+     *
+     * The client can use the `unchanged_names` bloom filter to assist with
+     * this determination by testing ALL the document names against the filter;
+     * if the document name is NOT in the filter, it means the document no
+     * longer matches the target.
      * 
* * int32 count = 2; @@ -657,8 +661,14 @@ public int getCount() { *
      * The total count of documents that match
      * [target_id][google.firestore.v1.ExistenceFilter.target_id].
+     *
      * If different from the count of documents in the client that match, the
      * client must manually determine which documents no longer match the target.
+     *
+     * The client can use the `unchanged_names` bloom filter to assist with
+     * this determination by testing ALL the document names against the filter;
+     * if the document name is NOT in the filter, it means the document no
+     * longer matches the target.
      * 
* * int32 count = 2; @@ -679,8 +689,14 @@ public Builder setCount(int value) { *
      * The total count of documents that match
      * [target_id][google.firestore.v1.ExistenceFilter.target_id].
+     *
      * If different from the count of documents in the client that match, the
      * client must manually determine which documents no longer match the target.
+     *
+     * The client can use the `unchanged_names` bloom filter to assist with
+     * this determination by testing ALL the document names against the filter;
+     * if the document name is NOT in the filter, it means the document no
+     * longer matches the target.
      * 
* * int32 count = 2; @@ -704,12 +720,11 @@ public Builder clearCount() { * * *
-     * A bloom filter that contains the UTF-8 byte encodings of the resource names
-     * of the documents that match
+     * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+     * the resource names of ALL the documents that match
      * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-     * that have NOT changed since the query results indicated by the resume token
-     * or timestamp given in `Target.resume_type`.
+     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+     *
      * This bloom filter may be omitted at the server's discretion, such as if it
      * is deemed that the client will not make use of it or if it is too
      * computationally expensive to calculate or transmit. Clients must gracefully
@@ -729,12 +744,11 @@ public boolean hasUnchangedNames() {
      *
      *
      * 
-     * A bloom filter that contains the UTF-8 byte encodings of the resource names
-     * of the documents that match
+     * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+     * the resource names of ALL the documents that match
      * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-     * that have NOT changed since the query results indicated by the resume token
-     * or timestamp given in `Target.resume_type`.
+     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+     *
      * This bloom filter may be omitted at the server's discretion, such as if it
      * is deemed that the client will not make use of it or if it is too
      * computationally expensive to calculate or transmit. Clients must gracefully
@@ -760,12 +774,11 @@ public com.google.firestore.v1.BloomFilter getUnchangedNames() {
      *
      *
      * 
-     * A bloom filter that contains the UTF-8 byte encodings of the resource names
-     * of the documents that match
+     * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+     * the resource names of ALL the documents that match
      * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-     * that have NOT changed since the query results indicated by the resume token
-     * or timestamp given in `Target.resume_type`.
+     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+     *
      * This bloom filter may be omitted at the server's discretion, such as if it
      * is deemed that the client will not make use of it or if it is too
      * computationally expensive to calculate or transmit. Clients must gracefully
@@ -793,12 +806,11 @@ public Builder setUnchangedNames(com.google.firestore.v1.BloomFilter value) {
      *
      *
      * 
-     * A bloom filter that contains the UTF-8 byte encodings of the resource names
-     * of the documents that match
+     * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+     * the resource names of ALL the documents that match
      * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-     * that have NOT changed since the query results indicated by the resume token
-     * or timestamp given in `Target.resume_type`.
+     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+     *
      * This bloom filter may be omitted at the server's discretion, such as if it
      * is deemed that the client will not make use of it or if it is too
      * computationally expensive to calculate or transmit. Clients must gracefully
@@ -823,12 +835,11 @@ public Builder setUnchangedNames(com.google.firestore.v1.BloomFilter.Builder bui
      *
      *
      * 
-     * A bloom filter that contains the UTF-8 byte encodings of the resource names
-     * of the documents that match
+     * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+     * the resource names of ALL the documents that match
      * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-     * that have NOT changed since the query results indicated by the resume token
-     * or timestamp given in `Target.resume_type`.
+     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+     *
      * This bloom filter may be omitted at the server's discretion, such as if it
      * is deemed that the client will not make use of it or if it is too
      * computationally expensive to calculate or transmit. Clients must gracefully
@@ -859,12 +870,11 @@ public Builder mergeUnchangedNames(com.google.firestore.v1.BloomFilter value) {
      *
      *
      * 
-     * A bloom filter that contains the UTF-8 byte encodings of the resource names
-     * of the documents that match
+     * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+     * the resource names of ALL the documents that match
      * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-     * that have NOT changed since the query results indicated by the resume token
-     * or timestamp given in `Target.resume_type`.
+     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+     *
      * This bloom filter may be omitted at the server's discretion, such as if it
      * is deemed that the client will not make use of it or if it is too
      * computationally expensive to calculate or transmit. Clients must gracefully
@@ -889,12 +899,11 @@ public Builder clearUnchangedNames() {
      *
      *
      * 
-     * A bloom filter that contains the UTF-8 byte encodings of the resource names
-     * of the documents that match
+     * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+     * the resource names of ALL the documents that match
      * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-     * that have NOT changed since the query results indicated by the resume token
-     * or timestamp given in `Target.resume_type`.
+     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+     *
      * This bloom filter may be omitted at the server's discretion, such as if it
      * is deemed that the client will not make use of it or if it is too
      * computationally expensive to calculate or transmit. Clients must gracefully
@@ -914,12 +923,11 @@ public com.google.firestore.v1.BloomFilter.Builder getUnchangedNamesBuilder() {
      *
      *
      * 
-     * A bloom filter that contains the UTF-8 byte encodings of the resource names
-     * of the documents that match
+     * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+     * the resource names of ALL the documents that match
      * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-     * that have NOT changed since the query results indicated by the resume token
-     * or timestamp given in `Target.resume_type`.
+     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+     *
      * This bloom filter may be omitted at the server's discretion, such as if it
      * is deemed that the client will not make use of it or if it is too
      * computationally expensive to calculate or transmit. Clients must gracefully
@@ -943,12 +951,11 @@ public com.google.firestore.v1.BloomFilterOrBuilder getUnchangedNamesOrBuilder()
      *
      *
      * 
-     * A bloom filter that contains the UTF-8 byte encodings of the resource names
-     * of the documents that match
+     * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+     * the resource names of ALL the documents that match
      * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-     * that have NOT changed since the query results indicated by the resume token
-     * or timestamp given in `Target.resume_type`.
+     * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+     *
      * This bloom filter may be omitted at the server's discretion, such as if it
      * is deemed that the client will not make use of it or if it is too
      * computationally expensive to calculate or transmit. Clients must gracefully
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilterOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilterOrBuilder.java
index 991950c9a..89c0a600d 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilterOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExistenceFilterOrBuilder.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -42,8 +42,14 @@ public interface ExistenceFilterOrBuilder
    * 
    * The total count of documents that match
    * [target_id][google.firestore.v1.ExistenceFilter.target_id].
+   *
    * If different from the count of documents in the client that match, the
    * client must manually determine which documents no longer match the target.
+   *
+   * The client can use the `unchanged_names` bloom filter to assist with
+   * this determination by testing ALL the document names against the filter;
+   * if the document name is NOT in the filter, it means the document no
+   * longer matches the target.
    * 
* * int32 count = 2; @@ -56,12 +62,11 @@ public interface ExistenceFilterOrBuilder * * *
-   * A bloom filter that contains the UTF-8 byte encodings of the resource names
-   * of the documents that match
+   * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+   * the resource names of ALL the documents that match
    * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-   * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-   * that have NOT changed since the query results indicated by the resume token
-   * or timestamp given in `Target.resume_type`.
+   * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+   *
    * This bloom filter may be omitted at the server's discretion, such as if it
    * is deemed that the client will not make use of it or if it is too
    * computationally expensive to calculate or transmit. Clients must gracefully
@@ -79,12 +84,11 @@ public interface ExistenceFilterOrBuilder
    *
    *
    * 
-   * A bloom filter that contains the UTF-8 byte encodings of the resource names
-   * of the documents that match
+   * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+   * the resource names of ALL the documents that match
    * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-   * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-   * that have NOT changed since the query results indicated by the resume token
-   * or timestamp given in `Target.resume_type`.
+   * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+   *
    * This bloom filter may be omitted at the server's discretion, such as if it
    * is deemed that the client will not make use of it or if it is too
    * computationally expensive to calculate or transmit. Clients must gracefully
@@ -102,12 +106,11 @@ public interface ExistenceFilterOrBuilder
    *
    *
    * 
-   * A bloom filter that contains the UTF-8 byte encodings of the resource names
-   * of the documents that match
+   * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+   * the resource names of ALL the documents that match
    * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
-   * `projects/{project_id}/databases/{database_id}/documents/{document_path}`
-   * that have NOT changed since the query results indicated by the resume token
-   * or timestamp given in `Target.resume_type`.
+   * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+   *
    * This bloom filter may be omitted at the server's discretion, such as if it
    * is deemed that the client will not make use of it or if it is too
    * computationally expensive to calculate or transmit. Clients must gracefully
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/FirestoreProto.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/FirestoreProto.java
index 12812e528..90283b7c9 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/FirestoreProto.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/FirestoreProto.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -183,237 +183,238 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "te.proto\032\033google/protobuf/empty.proto\032\037g"
           + "oogle/protobuf/timestamp.proto\032\036google/p"
           + "rotobuf/wrappers.proto\032\027google/rpc/statu"
-          + "s.proto\"\270\001\n\022GetDocumentRequest\022\021\n\004name\030\001"
-          + " \001(\tB\003\340A\002\022/\n\004mask\030\002 \001(\0132!.google.firesto"
-          + "re.v1.DocumentMask\022\025\n\013transaction\030\003 \001(\014H"
-          + "\000\022/\n\tread_time\030\005 \001(\0132\032.google.protobuf.T"
-          + "imestampH\000B\026\n\024consistency_selector\"\273\002\n\024L"
-          + "istDocumentsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002"
-          + "\022\032\n\rcollection_id\030\002 \001(\tB\003\340A\001\022\026\n\tpage_siz"
-          + "e\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\022\025\n"
-          + "\010order_by\030\006 \001(\tB\003\340A\001\0224\n\004mask\030\007 \001(\0132!.goo"
-          + "gle.firestore.v1.DocumentMaskB\003\340A\001\022\025\n\013tr"
-          + "ansaction\030\010 \001(\014H\000\022/\n\tread_time\030\n \001(\0132\032.g"
-          + "oogle.protobuf.TimestampH\000\022\024\n\014show_missi"
-          + "ng\030\014 \001(\010B\026\n\024consistency_selector\"b\n\025List"
-          + "DocumentsResponse\0220\n\tdocuments\030\001 \003(\0132\035.g"
-          + "oogle.firestore.v1.Document\022\027\n\017next_page"
-          + "_token\030\002 \001(\t\"\304\001\n\025CreateDocumentRequest\022\023"
-          + "\n\006parent\030\001 \001(\tB\003\340A\002\022\032\n\rcollection_id\030\002 \001"
-          + "(\tB\003\340A\002\022\023\n\013document_id\030\003 \001(\t\0224\n\010document"
-          + "\030\004 \001(\0132\035.google.firestore.v1.DocumentB\003\340"
-          + "A\002\022/\n\004mask\030\005 \001(\0132!.google.firestore.v1.D"
-          + "ocumentMask\"\363\001\n\025UpdateDocumentRequest\0224\n"
-          + "\010document\030\001 \001(\0132\035.google.firestore.v1.Do"
-          + "cumentB\003\340A\002\0226\n\013update_mask\030\002 \001(\0132!.googl"
-          + "e.firestore.v1.DocumentMask\022/\n\004mask\030\003 \001("
-          + "\0132!.google.firestore.v1.DocumentMask\022;\n\020"
-          + "current_document\030\004 \001(\0132!.google.firestor"
-          + "e.v1.Precondition\"g\n\025DeleteDocumentReque"
-          + "st\022\021\n\004name\030\001 \001(\tB\003\340A\002\022;\n\020current_documen"
-          + "t\030\002 \001(\0132!.google.firestore.v1.Preconditi"
-          + "on\"\231\002\n\030BatchGetDocumentsRequest\022\025\n\010datab"
-          + "ase\030\001 \001(\tB\003\340A\002\022\021\n\tdocuments\030\002 \003(\t\022/\n\004mas"
-          + "k\030\003 \001(\0132!.google.firestore.v1.DocumentMa"
-          + "sk\022\025\n\013transaction\030\004 \001(\014H\000\022B\n\017new_transac"
-          + "tion\030\005 \001(\0132\'.google.firestore.v1.Transac"
-          + "tionOptionsH\000\022/\n\tread_time\030\007 \001(\0132\032.googl"
-          + "e.protobuf.TimestampH\000B\026\n\024consistency_se"
-          + "lector\"\254\001\n\031BatchGetDocumentsResponse\022.\n\005"
-          + "found\030\001 \001(\0132\035.google.firestore.v1.Docume"
-          + "ntH\000\022\021\n\007missing\030\002 \001(\tH\000\022\023\n\013transaction\030\003"
-          + " \001(\014\022-\n\tread_time\030\004 \001(\0132\032.google.protobu"
-          + "f.TimestampB\010\n\006result\"j\n\027BeginTransactio"
-          + "nRequest\022\025\n\010database\030\001 \001(\tB\003\340A\002\0228\n\007optio"
-          + "ns\030\002 \001(\0132\'.google.firestore.v1.Transacti"
-          + "onOptions\"/\n\030BeginTransactionResponse\022\023\n"
-          + "\013transaction\030\001 \001(\014\"g\n\rCommitRequest\022\025\n\010d"
-          + "atabase\030\001 \001(\tB\003\340A\002\022*\n\006writes\030\002 \003(\0132\032.goo"
-          + "gle.firestore.v1.Write\022\023\n\013transaction\030\003 "
-          + "\001(\014\"z\n\016CommitResponse\0227\n\rwrite_results\030\001"
-          + " \003(\0132 .google.firestore.v1.WriteResult\022/"
-          + "\n\013commit_time\030\002 \001(\0132\032.google.protobuf.Ti"
-          + "mestamp\"B\n\017RollbackRequest\022\025\n\010database\030\001"
-          + " \001(\tB\003\340A\002\022\030\n\013transaction\030\002 \001(\014B\003\340A\002\"\232\002\n\017"
-          + "RunQueryRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022@\n\020"
-          + "structured_query\030\002 \001(\0132$.google.firestor"
-          + "e.v1.StructuredQueryH\000\022\025\n\013transaction\030\005 "
-          + "\001(\014H\001\022B\n\017new_transaction\030\006 \001(\0132\'.google."
-          + "firestore.v1.TransactionOptionsH\001\022/\n\trea"
-          + "d_time\030\007 \001(\0132\032.google.protobuf.Timestamp"
-          + "H\001B\014\n\nquery_typeB\026\n\024consistency_selector"
-          + "\"\311\001\n\020RunQueryResponse\022\023\n\013transaction\030\002 \001"
-          + "(\014\022/\n\010document\030\001 \001(\0132\035.google.firestore."
-          + "v1.Document\022-\n\tread_time\030\003 \001(\0132\032.google."
-          + "protobuf.Timestamp\022\027\n\017skipped_results\030\004 "
-          + "\001(\005\022\016\n\004done\030\006 \001(\010H\000B\027\n\025continuation_sele"
-          + "ctor\"\274\002\n\032RunAggregationQueryRequest\022\023\n\006p"
-          + "arent\030\001 \001(\tB\003\340A\002\022W\n\034structured_aggregati"
-          + "on_query\030\002 \001(\0132/.google.firestore.v1.Str"
-          + "ucturedAggregationQueryH\000\022\025\n\013transaction"
-          + "\030\004 \001(\014H\001\022B\n\017new_transaction\030\005 \001(\0132\'.goog"
-          + "le.firestore.v1.TransactionOptionsH\001\022/\n\t"
+          + "s.proto\"\271\001\n\022GetDocumentRequest\022\022\n\004name\030\001"
+          + " \001(\tB\004\342A\001\002\022/\n\004mask\030\002 \001(\0132!.google.firest"
+          + "ore.v1.DocumentMask\022\025\n\013transaction\030\003 \001(\014"
+          + "H\000\022/\n\tread_time\030\005 \001(\0132\032.google.protobuf."
+          + "TimestampH\000B\026\n\024consistency_selector\"\301\002\n\024"
+          + "ListDocumentsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A"
+          + "\001\002\022\033\n\rcollection_id\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_"
+          + "size\030\003 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\004 \001(\tB\004\342A"
+          + "\001\001\022\026\n\010order_by\030\006 \001(\tB\004\342A\001\001\0225\n\004mask\030\007 \001(\013"
+          + "2!.google.firestore.v1.DocumentMaskB\004\342A\001"
+          + "\001\022\025\n\013transaction\030\010 \001(\014H\000\022/\n\tread_time\030\n "
+          + "\001(\0132\032.google.protobuf.TimestampH\000\022\024\n\014sho"
+          + "w_missing\030\014 \001(\010B\026\n\024consistency_selector\""
+          + "b\n\025ListDocumentsResponse\0220\n\tdocuments\030\001 "
+          + "\003(\0132\035.google.firestore.v1.Document\022\027\n\017ne"
+          + "xt_page_token\030\002 \001(\t\"\307\001\n\025CreateDocumentRe"
+          + "quest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\033\n\rcollectio"
+          + "n_id\030\002 \001(\tB\004\342A\001\002\022\023\n\013document_id\030\003 \001(\t\0225\n"
+          + "\010document\030\004 \001(\0132\035.google.firestore.v1.Do"
+          + "cumentB\004\342A\001\002\022/\n\004mask\030\005 \001(\0132!.google.fire"
+          + "store.v1.DocumentMask\"\364\001\n\025UpdateDocument"
+          + "Request\0225\n\010document\030\001 \001(\0132\035.google.fires"
+          + "tore.v1.DocumentB\004\342A\001\002\0226\n\013update_mask\030\002 "
+          + "\001(\0132!.google.firestore.v1.DocumentMask\022/"
+          + "\n\004mask\030\003 \001(\0132!.google.firestore.v1.Docum"
+          + "entMask\022;\n\020current_document\030\004 \001(\0132!.goog"
+          + "le.firestore.v1.Precondition\"h\n\025DeleteDo"
+          + "cumentRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022;\n\020cur"
+          + "rent_document\030\002 \001(\0132!.google.firestore.v"
+          + "1.Precondition\"\232\002\n\030BatchGetDocumentsRequ"
+          + "est\022\026\n\010database\030\001 \001(\tB\004\342A\001\002\022\021\n\tdocuments"
+          + "\030\002 \003(\t\022/\n\004mask\030\003 \001(\0132!.google.firestore."
+          + "v1.DocumentMask\022\025\n\013transaction\030\004 \001(\014H\000\022B"
+          + "\n\017new_transaction\030\005 \001(\0132\'.google.firesto"
+          + "re.v1.TransactionOptionsH\000\022/\n\tread_time\030"
+          + "\007 \001(\0132\032.google.protobuf.TimestampH\000B\026\n\024c"
+          + "onsistency_selector\"\254\001\n\031BatchGetDocument"
+          + "sResponse\022.\n\005found\030\001 \001(\0132\035.google.firest"
+          + "ore.v1.DocumentH\000\022\021\n\007missing\030\002 \001(\tH\000\022\023\n\013"
+          + "transaction\030\003 \001(\014\022-\n\tread_time\030\004 \001(\0132\032.g"
+          + "oogle.protobuf.TimestampB\010\n\006result\"k\n\027Be"
+          + "ginTransactionRequest\022\026\n\010database\030\001 \001(\tB"
+          + "\004\342A\001\002\0228\n\007options\030\002 \001(\0132\'.google.firestor"
+          + "e.v1.TransactionOptions\"/\n\030BeginTransact"
+          + "ionResponse\022\023\n\013transaction\030\001 \001(\014\"h\n\rComm"
+          + "itRequest\022\026\n\010database\030\001 \001(\tB\004\342A\001\002\022*\n\006wri"
+          + "tes\030\002 \003(\0132\032.google.firestore.v1.Write\022\023\n"
+          + "\013transaction\030\003 \001(\014\"z\n\016CommitResponse\0227\n\r"
+          + "write_results\030\001 \003(\0132 .google.firestore.v"
+          + "1.WriteResult\022/\n\013commit_time\030\002 \001(\0132\032.goo"
+          + "gle.protobuf.Timestamp\"D\n\017RollbackReques"
+          + "t\022\026\n\010database\030\001 \001(\tB\004\342A\001\002\022\031\n\013transaction"
+          + "\030\002 \001(\014B\004\342A\001\002\"\233\002\n\017RunQueryRequest\022\024\n\006pare"
+          + "nt\030\001 \001(\tB\004\342A\001\002\022@\n\020structured_query\030\002 \001(\013"
+          + "2$.google.firestore.v1.StructuredQueryH\000"
+          + "\022\025\n\013transaction\030\005 \001(\014H\001\022B\n\017new_transacti"
+          + "on\030\006 \001(\0132\'.google.firestore.v1.Transacti"
+          + "onOptionsH\001\022/\n\tread_time\030\007 \001(\0132\032.google."
+          + "protobuf.TimestampH\001B\014\n\nquery_typeB\026\n\024co"
+          + "nsistency_selector\"\311\001\n\020RunQueryResponse\022"
+          + "\023\n\013transaction\030\002 \001(\014\022/\n\010document\030\001 \001(\0132\035"
+          + ".google.firestore.v1.Document\022-\n\tread_ti"
+          + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017"
+          + "skipped_results\030\004 \001(\005\022\016\n\004done\030\006 \001(\010H\000B\027\n"
+          + "\025continuation_selector\"\275\002\n\032RunAggregatio"
+          + "nQueryRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022W\n\034s"
+          + "tructured_aggregation_query\030\002 \001(\0132/.goog"
+          + "le.firestore.v1.StructuredAggregationQue"
+          + "ryH\000\022\025\n\013transaction\030\004 \001(\014H\001\022B\n\017new_trans"
+          + "action\030\005 \001(\0132\'.google.firestore.v1.Trans"
+          + "actionOptionsH\001\022/\n\tread_time\030\006 \001(\0132\032.goo"
+          + "gle.protobuf.TimestampH\001B\014\n\nquery_typeB\026"
+          + "\n\024consistency_selector\"\231\001\n\033RunAggregatio"
+          + "nQueryResponse\0226\n\006result\030\001 \001(\0132&.google."
+          + "firestore.v1.AggregationResult\022\023\n\013transa"
+          + "ction\030\002 \001(\014\022-\n\tread_time\030\003 \001(\0132\032.google."
+          + "protobuf.Timestamp\"\206\002\n\025PartitionQueryReq"
+          + "uest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022@\n\020structured"
+          + "_query\030\002 \001(\0132$.google.firestore.v1.Struc"
+          + "turedQueryH\000\022\027\n\017partition_count\030\003 \001(\003\022\022\n"
+          + "\npage_token\030\004 \001(\t\022\021\n\tpage_size\030\005 \001(\005\022/\n\t"
           + "read_time\030\006 \001(\0132\032.google.protobuf.Timest"
           + "ampH\001B\014\n\nquery_typeB\026\n\024consistency_selec"
-          + "tor\"\231\001\n\033RunAggregationQueryResponse\0226\n\006r"
-          + "esult\030\001 \001(\0132&.google.firestore.v1.Aggreg"
-          + "ationResult\022\023\n\013transaction\030\002 \001(\014\022-\n\tread"
-          + "_time\030\003 \001(\0132\032.google.protobuf.Timestamp\""
-          + "\205\002\n\025PartitionQueryRequest\022\023\n\006parent\030\001 \001("
-          + "\tB\003\340A\002\022@\n\020structured_query\030\002 \001(\0132$.googl"
-          + "e.firestore.v1.StructuredQueryH\000\022\027\n\017part"
-          + "ition_count\030\003 \001(\003\022\022\n\npage_token\030\004 \001(\t\022\021\n"
-          + "\tpage_size\030\005 \001(\005\022/\n\tread_time\030\006 \001(\0132\032.go"
-          + "ogle.protobuf.TimestampH\001B\014\n\nquery_typeB"
-          + "\026\n\024consistency_selector\"b\n\026PartitionQuer"
-          + "yResponse\022/\n\npartitions\030\001 \003(\0132\033.google.f"
-          + "irestore.v1.Cursor\022\027\n\017next_page_token\030\002 "
-          + "\001(\t\"\350\001\n\014WriteRequest\022\025\n\010database\030\001 \001(\tB\003"
-          + "\340A\002\022\021\n\tstream_id\030\002 \001(\t\022*\n\006writes\030\003 \003(\0132\032"
-          + ".google.firestore.v1.Write\022\024\n\014stream_tok"
-          + "en\030\004 \001(\014\022=\n\006labels\030\005 \003(\0132-.google.firest"
-          + "ore.v1.WriteRequest.LabelsEntry\032-\n\013Label"
-          + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\242"
-          + "\001\n\rWriteResponse\022\021\n\tstream_id\030\001 \001(\t\022\024\n\014s"
-          + "tream_token\030\002 \001(\014\0227\n\rwrite_results\030\003 \003(\013"
-          + "2 .google.firestore.v1.WriteResult\022/\n\013co"
-          + "mmit_time\030\004 \001(\0132\032.google.protobuf.Timest"
-          + "amp\"\362\001\n\rListenRequest\022\025\n\010database\030\001 \001(\tB"
-          + "\003\340A\002\0221\n\nadd_target\030\002 \001(\0132\033.google.firest"
-          + "ore.v1.TargetH\000\022\027\n\rremove_target\030\003 \001(\005H\000"
-          + "\022>\n\006labels\030\004 \003(\0132..google.firestore.v1.L"
-          + "istenRequest.LabelsEntry\032-\n\013LabelsEntry\022"
-          + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\017\n\rtarge"
-          + "t_change\"\325\002\n\016ListenResponse\022:\n\rtarget_ch"
-          + "ange\030\002 \001(\0132!.google.firestore.v1.TargetC"
-          + "hangeH\000\022>\n\017document_change\030\003 \001(\0132#.googl"
-          + "e.firestore.v1.DocumentChangeH\000\022>\n\017docum"
-          + "ent_delete\030\004 \001(\0132#.google.firestore.v1.D"
-          + "ocumentDeleteH\000\022>\n\017document_remove\030\006 \001(\013"
-          + "2#.google.firestore.v1.DocumentRemoveH\000\022"
-          + "6\n\006filter\030\005 \001(\0132$.google.firestore.v1.Ex"
-          + "istenceFilterH\000B\017\n\rresponse_type\"\326\003\n\006Tar"
-          + "get\0228\n\005query\030\002 \001(\0132\'.google.firestore.v1"
-          + ".Target.QueryTargetH\000\022@\n\tdocuments\030\003 \001(\013"
-          + "2+.google.firestore.v1.Target.DocumentsT"
-          + "argetH\000\022\026\n\014resume_token\030\004 \001(\014H\001\022/\n\tread_"
-          + "time\030\013 \001(\0132\032.google.protobuf.TimestampH\001"
-          + "\022\021\n\ttarget_id\030\005 \001(\005\022\014\n\004once\030\006 \001(\010\0223\n\016exp"
-          + "ected_count\030\014 \001(\0132\033.google.protobuf.Int3"
-          + "2Value\032$\n\017DocumentsTarget\022\021\n\tdocuments\030\002"
-          + " \003(\t\032m\n\013QueryTarget\022\016\n\006parent\030\001 \001(\t\022@\n\020s"
-          + "tructured_query\030\002 \001(\0132$.google.firestore"
-          + ".v1.StructuredQueryH\000B\014\n\nquery_typeB\r\n\013t"
-          + "arget_typeB\r\n\013resume_type\"\252\002\n\014TargetChan"
-          + "ge\022N\n\022target_change_type\030\001 \001(\01622.google."
-          + "firestore.v1.TargetChange.TargetChangeTy"
-          + "pe\022\022\n\ntarget_ids\030\002 \003(\005\022!\n\005cause\030\003 \001(\0132\022."
-          + "google.rpc.Status\022\024\n\014resume_token\030\004 \001(\014\022"
-          + "-\n\tread_time\030\006 \001(\0132\032.google.protobuf.Tim"
-          + "estamp\"N\n\020TargetChangeType\022\r\n\tNO_CHANGE\020"
-          + "\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002\022\013\n\007CURRENT\020\003\022\t\n\005R"
-          + "ESET\020\004\"\237\001\n\030ListCollectionIdsRequest\022\023\n\006p"
-          + "arent\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np"
-          + "age_token\030\003 \001(\t\022/\n\tread_time\030\004 \001(\0132\032.goo"
-          + "gle.protobuf.TimestampH\000B\026\n\024consistency_"
-          + "selector\"L\n\031ListCollectionIdsResponse\022\026\n"
-          + "\016collection_ids\030\001 \003(\t\022\027\n\017next_page_token"
-          + "\030\002 \001(\t\"\311\001\n\021BatchWriteRequest\022\025\n\010database"
-          + "\030\001 \001(\tB\003\340A\002\022*\n\006writes\030\002 \003(\0132\032.google.fir"
-          + "estore.v1.Write\022B\n\006labels\030\003 \003(\01322.google"
-          + ".firestore.v1.BatchWriteRequest.LabelsEn"
-          + "try\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value"
-          + "\030\002 \001(\t:\0028\001\"q\n\022BatchWriteResponse\0227\n\rwrit"
-          + "e_results\030\001 \003(\0132 .google.firestore.v1.Wr"
-          + "iteResult\022\"\n\006status\030\002 \003(\0132\022.google.rpc.S"
-          + "tatus2\332\031\n\tFirestore\022\217\001\n\013GetDocument\022\'.go"
-          + "ogle.firestore.v1.GetDocumentRequest\032\035.g"
-          + "oogle.firestore.v1.Document\"8\202\323\344\223\0022\0220/v1"
-          + "/{name=projects/*/databases/*/documents/"
-          + "*/**}\022\365\001\n\rListDocuments\022).google.firesto"
-          + "re.v1.ListDocumentsRequest\032*.google.fire"
-          + "store.v1.ListDocumentsResponse\"\214\001\202\323\344\223\002\205\001"
-          + "\022B/v1/{parent=projects/*/databases/*/doc"
-          + "uments/*/**}/{collection_id}Z?\022=/v1/{par"
-          + "ent=projects/*/databases/*/documents}/{c"
-          + "ollection_id}\022\277\001\n\016UpdateDocument\022*.googl"
-          + "e.firestore.v1.UpdateDocumentRequest\032\035.g"
-          + "oogle.firestore.v1.Document\"b\202\323\344\223\002E29/v1"
-          + "/{document.name=projects/*/databases/*/d"
-          + "ocuments/*/**}:\010document\332A\024document,upda"
-          + "te_mask\022\225\001\n\016DeleteDocument\022*.google.fire"
-          + "store.v1.DeleteDocumentRequest\032\026.google."
-          + "protobuf.Empty\"?\202\323\344\223\0022*0/v1/{name=projec"
-          + "ts/*/databases/*/documents/*/**}\332A\004name\022"
-          + "\271\001\n\021BatchGetDocuments\022-.google.firestore"
-          + ".v1.BatchGetDocumentsRequest\032..google.fi"
-          + "restore.v1.BatchGetDocumentsResponse\"C\202\323"
-          + "\344\223\002=\"8/v1/{database=projects/*/databases"
-          + "/*}/documents:batchGet:\001*0\001\022\307\001\n\020BeginTra"
-          + "nsaction\022,.google.firestore.v1.BeginTran"
-          + "sactionRequest\032-.google.firestore.v1.Beg"
-          + "inTransactionResponse\"V\202\323\344\223\002E\"@/v1/{data"
-          + "base=projects/*/databases/*}/documents:b"
-          + "eginTransaction:\001*\332A\010database\022\246\001\n\006Commit"
-          + "\022\".google.firestore.v1.CommitRequest\032#.g"
-          + "oogle.firestore.v1.CommitResponse\"S\202\323\344\223\002"
-          + ";\"6/v1/{database=projects/*/databases/*}"
-          + "/documents:commit:\001*\332A\017database,writes\022\244"
-          + "\001\n\010Rollback\022$.google.firestore.v1.Rollba"
-          + "ckRequest\032\026.google.protobuf.Empty\"Z\202\323\344\223\002"
-          + "=\"8/v1/{database=projects/*/databases/*}"
-          + "/documents:rollback:\001*\332A\024database,transa"
-          + "ction\022\337\001\n\010RunQuery\022$.google.firestore.v1"
-          + ".RunQueryRequest\032%.google.firestore.v1.R"
-          + "unQueryResponse\"\203\001\202\323\344\223\002}\"6/v1/{parent=pr"
-          + "ojects/*/databases/*/documents}:runQuery"
-          + ":\001*Z@\";/v1/{parent=projects/*/databases/"
-          + "*/documents/*/**}:runQuery:\001*0\001\022\227\002\n\023RunA"
-          + "ggregationQuery\022/.google.firestore.v1.Ru"
-          + "nAggregationQueryRequest\0320.google.firest"
-          + "ore.v1.RunAggregationQueryResponse\"\232\001\202\323\344"
-          + "\223\002\223\001\"A/v1/{parent=projects/*/databases/*"
-          + "/documents}:runAggregationQuery:\001*ZK\"F/v"
-          + "1/{parent=projects/*/databases/*/documen"
-          + "ts/*/**}:runAggregationQuery:\001*0\001\022\374\001\n\016Pa"
-          + "rtitionQuery\022*.google.firestore.v1.Parti"
-          + "tionQueryRequest\032+.google.firestore.v1.P"
-          + "artitionQueryResponse\"\220\001\202\323\344\223\002\211\001\"\n\006labels\030\004 \003(\0132."
+          + ".google.firestore.v1.ListenRequest.Label"
+          + "sEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
+          + "lue\030\002 \001(\t:\0028\001B\017\n\rtarget_change\"\325\002\n\016Liste"
+          + "nResponse\022:\n\rtarget_change\030\002 \001(\0132!.googl"
+          + "e.firestore.v1.TargetChangeH\000\022>\n\017documen"
+          + "t_change\030\003 \001(\0132#.google.firestore.v1.Doc"
+          + "umentChangeH\000\022>\n\017document_delete\030\004 \001(\0132#"
+          + ".google.firestore.v1.DocumentDeleteH\000\022>\n"
+          + "\017document_remove\030\006 \001(\0132#.google.firestor"
+          + "e.v1.DocumentRemoveH\000\0226\n\006filter\030\005 \001(\0132$."
+          + "google.firestore.v1.ExistenceFilterH\000B\017\n"
+          + "\rresponse_type\"\326\003\n\006Target\0228\n\005query\030\002 \001(\013"
+          + "2\'.google.firestore.v1.Target.QueryTarge"
+          + "tH\000\022@\n\tdocuments\030\003 \001(\0132+.google.firestor"
+          + "e.v1.Target.DocumentsTargetH\000\022\026\n\014resume_"
+          + "token\030\004 \001(\014H\001\022/\n\tread_time\030\013 \001(\0132\032.googl"
+          + "e.protobuf.TimestampH\001\022\021\n\ttarget_id\030\005 \001("
+          + "\005\022\014\n\004once\030\006 \001(\010\0223\n\016expected_count\030\014 \001(\0132"
+          + "\033.google.protobuf.Int32Value\032$\n\017Document"
+          + "sTarget\022\021\n\tdocuments\030\002 \003(\t\032m\n\013QueryTarge"
+          + "t\022\016\n\006parent\030\001 \001(\t\022@\n\020structured_query\030\002 "
+          + "\001(\0132$.google.firestore.v1.StructuredQuer"
+          + "yH\000B\014\n\nquery_typeB\r\n\013target_typeB\r\n\013resu"
+          + "me_type\"\252\002\n\014TargetChange\022N\n\022target_chang"
+          + "e_type\030\001 \001(\01622.google.firestore.v1.Targe"
+          + "tChange.TargetChangeType\022\022\n\ntarget_ids\030\002"
+          + " \003(\005\022!\n\005cause\030\003 \001(\0132\022.google.rpc.Status\022"
+          + "\024\n\014resume_token\030\004 \001(\014\022-\n\tread_time\030\006 \001(\013"
+          + "2\032.google.protobuf.Timestamp\"N\n\020TargetCh"
+          + "angeType\022\r\n\tNO_CHANGE\020\000\022\007\n\003ADD\020\001\022\n\n\006REMO"
+          + "VE\020\002\022\013\n\007CURRENT\020\003\022\t\n\005RESET\020\004\"\240\001\n\030ListCol"
+          + "lectionIdsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022"
+          + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022/"
+          + "\n\tread_time\030\004 \001(\0132\032.google.protobuf.Time"
+          + "stampH\000B\026\n\024consistency_selector\"L\n\031ListC"
+          + "ollectionIdsResponse\022\026\n\016collection_ids\030\001"
+          + " \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"\312\001\n\021BatchW"
+          + "riteRequest\022\026\n\010database\030\001 \001(\tB\004\342A\001\002\022*\n\006w"
+          + "rites\030\002 \003(\0132\032.google.firestore.v1.Write\022"
+          + "B\n\006labels\030\003 \003(\01322.google.firestore.v1.Ba"
+          + "tchWriteRequest.LabelsEntry\032-\n\013LabelsEnt"
+          + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"q\n\022Ba"
+          + "tchWriteResponse\0227\n\rwrite_results\030\001 \003(\0132"
+          + " .google.firestore.v1.WriteResult\022\"\n\006sta"
+          + "tus\030\002 \003(\0132\022.google.rpc.Status2\332\031\n\tFirest"
+          + "ore\022\217\001\n\013GetDocument\022\'.google.firestore.v"
+          + "1.GetDocumentRequest\032\035.google.firestore."
+          + "v1.Document\"8\202\323\344\223\0022\0220/v1/{name=projects/"
+          + "*/databases/*/documents/*/**}\022\365\001\n\rListDo"
+          + "cuments\022).google.firestore.v1.ListDocume"
+          + "ntsRequest\032*.google.firestore.v1.ListDoc"
+          + "umentsResponse\"\214\001\202\323\344\223\002\205\001\022B/v1/{parent=pr"
+          + "ojects/*/databases/*/documents/*/**}/{co"
+          + "llection_id}Z?\022=/v1/{parent=projects/*/d"
+          + "atabases/*/documents}/{collection_id}\022\277\001"
+          + "\n\016UpdateDocument\022*.google.firestore.v1.U"
+          + "pdateDocumentRequest\032\035.google.firestore."
+          + "v1.Document\"b\332A\024document,update_mask\202\323\344\223"
+          + "\002E29/v1/{document.name=projects/*/databa"
+          + "ses/*/documents/*/**}:\010document\022\225\001\n\016Dele"
+          + "teDocument\022*.google.firestore.v1.DeleteD"
+          + "ocumentRequest\032\026.google.protobuf.Empty\"?"
+          + "\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/data"
+          + "bases/*/documents/*/**}\022\271\001\n\021BatchGetDocu"
+          + "ments\022-.google.firestore.v1.BatchGetDocu"
+          + "mentsRequest\032..google.firestore.v1.Batch"
+          + "GetDocumentsResponse\"C\202\323\344\223\002=\"8/v1/{datab"
+          + "ase=projects/*/databases/*}/documents:ba"
+          + "tchGet:\001*0\001\022\307\001\n\020BeginTransaction\022,.googl"
+          + "e.firestore.v1.BeginTransactionRequest\032-"
+          + ".google.firestore.v1.BeginTransactionRes"
+          + "ponse\"V\332A\010database\202\323\344\223\002E\"@/v1/{database="
+          + "projects/*/databases/*}/documents:beginT"
+          + "ransaction:\001*\022\246\001\n\006Commit\022\".google.firest"
+          + "ore.v1.CommitRequest\032#.google.firestore."
+          + "v1.CommitResponse\"S\332A\017database,writes\202\323\344"
+          + "\223\002;\"6/v1/{database=projects/*/databases/"
+          + "*}/documents:commit:\001*\022\244\001\n\010Rollback\022$.go"
+          + "ogle.firestore.v1.RollbackRequest\032\026.goog"
+          + "le.protobuf.Empty\"Z\332A\024database,transacti"
+          + "on\202\323\344\223\002=\"8/v1/{database=projects/*/datab"
+          + "ases/*}/documents:rollback:\001*\022\337\001\n\010RunQue"
+          + "ry\022$.google.firestore.v1.RunQueryRequest"
+          + "\032%.google.firestore.v1.RunQueryResponse\""
+          + "\203\001\202\323\344\223\002}\"6/v1/{parent=projects/*/databas"
+          + "es/*/documents}:runQuery:\001*Z@\";/v1/{pare"
+          + "nt=projects/*/databases/*/documents/*/**"
+          + "}:runQuery:\001*0\001\022\227\002\n\023RunAggregationQuery\022"
+          + "/.google.firestore.v1.RunAggregationQuer"
+          + "yRequest\0320.google.firestore.v1.RunAggreg"
+          + "ationQueryResponse\"\232\001\202\323\344\223\002\223\001\"A/v1/{paren"
+          + "t=projects/*/databases/*/documents}:runA"
+          + "ggregationQuery:\001*ZK\"F/v1/{parent=projec"
+          + "ts/*/databases/*/documents/*/**}:runAggr"
+          + "egationQuery:\001*0\001\022\374\001\n\016PartitionQuery\022*.g"
+          + "oogle.firestore.v1.PartitionQueryRequest"
+          + "\032+.google.firestore.v1.PartitionQueryRes"
+          + "ponse\"\220\001\202\323\344\223\002\211\001\"
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -192,6 +190,7 @@ public boolean hasMask() { * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -209,6 +208,7 @@ public com.google.firestore.v1.DocumentMask getMask() { * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -261,7 +261,10 @@ public com.google.protobuf.ByteString getTransaction() { * *
    * Reads the version of the document at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 5; @@ -277,7 +280,10 @@ public boolean hasReadTime() { * *
    * Reads the version of the document at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 5; @@ -296,7 +302,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
    * Reads the version of the document at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 5; @@ -899,6 +908,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -915,6 +925,7 @@ public boolean hasMask() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -935,6 +946,7 @@ public com.google.firestore.v1.DocumentMask getMask() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -959,6 +971,7 @@ public Builder setMask(com.google.firestore.v1.DocumentMask value) { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -980,6 +993,7 @@ public Builder setMask(com.google.firestore.v1.DocumentMask.Builder builderForVa * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1007,6 +1021,7 @@ public Builder mergeMask(com.google.firestore.v1.DocumentMask value) { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1028,6 +1043,7 @@ public Builder clearMask() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1044,6 +1060,7 @@ public com.google.firestore.v1.DocumentMask.Builder getMaskBuilder() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1062,6 +1079,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getMaskOrBuilder() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1167,7 +1185,10 @@ public Builder clearTransaction() { * *
      * Reads the version of the document at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 5; @@ -1183,7 +1204,10 @@ public boolean hasReadTime() { * *
      * Reads the version of the document at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 5; @@ -1209,7 +1233,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
      * Reads the version of the document at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 5; @@ -1232,7 +1259,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *
      * Reads the version of the document at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 5; @@ -1252,7 +1282,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * *
      * Reads the version of the document at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 5; @@ -1285,7 +1318,10 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * *
      * Reads the version of the document at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 5; @@ -1311,7 +1347,10 @@ public Builder clearReadTime() { * *
      * Reads the version of the document at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 5; @@ -1324,7 +1363,10 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * *
      * Reads the version of the document at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 5; @@ -1345,7 +1387,10 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
      * Reads the version of the document at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 5; diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/GetDocumentRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/GetDocumentRequestOrBuilder.java index 83a820a3f..d82a655ec 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/GetDocumentRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/GetDocumentRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -55,6 +55,7 @@ public interface GetDocumentRequestOrBuilder * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -69,6 +70,7 @@ public interface GetDocumentRequestOrBuilder * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -83,6 +85,7 @@ public interface GetDocumentRequestOrBuilder * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -121,7 +124,10 @@ public interface GetDocumentRequestOrBuilder * *
    * Reads the version of the document at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 5; @@ -134,7 +140,10 @@ public interface GetDocumentRequestOrBuilder * *
    * Reads the version of the document at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 5; @@ -147,13 +156,15 @@ public interface GetDocumentRequestOrBuilder * *
    * Reads the version of the document at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 5; */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); - public com.google.firestore.v1.GetDocumentRequest.ConsistencySelectorCase - getConsistencySelectorCase(); + com.google.firestore.v1.GetDocumentRequest.ConsistencySelectorCase getConsistencySelectorCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequest.java index e25ff4a98..84415c1b7 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCollectionIdsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_ListCollectionIdsRequest_descriptor; @@ -70,6 +65,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int consistencySelectorCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object consistencySelector_; public enum ConsistencySelectorCase @@ -247,7 +244,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 4; @@ -263,7 +263,10 @@ public boolean hasReadTime() { * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 4; @@ -282,7 +285,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 4; @@ -1048,7 +1054,10 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 4; @@ -1064,7 +1073,10 @@ public boolean hasReadTime() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 4; @@ -1090,7 +1102,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 4; @@ -1113,7 +1128,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 4; @@ -1133,7 +1151,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 4; @@ -1166,7 +1187,10 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 4; @@ -1192,7 +1216,10 @@ public Builder clearReadTime() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 4; @@ -1205,7 +1232,10 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 4; @@ -1226,7 +1256,10 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 4; diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequestOrBuilder.java index 7a09c0995..c1cba8dc1 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -99,7 +99,10 @@ public interface ListCollectionIdsRequestOrBuilder * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 4; @@ -112,7 +115,10 @@ public interface ListCollectionIdsRequestOrBuilder * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 4; @@ -125,13 +131,16 @@ public interface ListCollectionIdsRequestOrBuilder * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 4; */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); - public com.google.firestore.v1.ListCollectionIdsRequest.ConsistencySelectorCase + com.google.firestore.v1.ListCollectionIdsRequest.ConsistencySelectorCase getConsistencySelectorCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsResponse.java index 1a97a20de..d69eeffc8 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsResponse.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -39,7 +39,7 @@ private ListCollectionIdsResponse(com.google.protobuf.GeneratedMessageV3.Builder } private ListCollectionIdsResponse() { - collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCollectionIdsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_ListCollectionIdsResponse_descriptor; @@ -72,7 +67,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int COLLECTION_IDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList collectionIds_; + private com.google.protobuf.LazyStringArrayList collectionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -398,8 +394,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @@ -428,7 +423,6 @@ public com.google.firestore.v1.ListCollectionIdsResponse build() { public com.google.firestore.v1.ListCollectionIdsResponse buildPartial() { com.google.firestore.v1.ListCollectionIdsResponse result = new com.google.firestore.v1.ListCollectionIdsResponse(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -436,17 +430,12 @@ public com.google.firestore.v1.ListCollectionIdsResponse buildPartial() { return result; } - private void buildPartialRepeatedFields( - com.google.firestore.v1.ListCollectionIdsResponse result) { - if (((bitField0_ & 0x00000001) != 0)) { - collectionIds_ = collectionIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.collectionIds_ = collectionIds_; - } - private void buildPartial0(com.google.firestore.v1.ListCollectionIdsResponse result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + collectionIds_.makeImmutable(); + result.collectionIds_ = collectionIds_; + } if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; } @@ -501,7 +490,7 @@ public Builder mergeFrom(com.google.firestore.v1.ListCollectionIdsResponse other if (!other.collectionIds_.isEmpty()) { if (collectionIds_.isEmpty()) { collectionIds_ = other.collectionIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureCollectionIdsIsMutable(); collectionIds_.addAll(other.collectionIds_); @@ -571,14 +560,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList collectionIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList collectionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCollectionIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!collectionIds_.isModifiable()) { collectionIds_ = new com.google.protobuf.LazyStringArrayList(collectionIds_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -592,7 +581,8 @@ private void ensureCollectionIdsIsMutable() { * @return A list containing the collectionIds. */ public com.google.protobuf.ProtocolStringList getCollectionIdsList() { - return collectionIds_.getUnmodifiableView(); + collectionIds_.makeImmutable(); + return collectionIds_; } /** * @@ -657,6 +647,7 @@ public Builder setCollectionIds(int index, java.lang.String value) { } ensureCollectionIdsIsMutable(); collectionIds_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -678,6 +669,7 @@ public Builder addCollectionIds(java.lang.String value) { } ensureCollectionIdsIsMutable(); collectionIds_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -696,6 +688,7 @@ public Builder addCollectionIds(java.lang.String value) { public Builder addAllCollectionIds(java.lang.Iterable values) { ensureCollectionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, collectionIds_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -711,8 +704,9 @@ public Builder addAllCollectionIds(java.lang.Iterable values) * @return This builder for chaining. */ public Builder clearCollectionIds() { - collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -735,6 +729,7 @@ public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureCollectionIdsIsMutable(); collectionIds_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsResponseOrBuilder.java index 42dc74782..b3eb91263 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsResponseOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequest.java index 9768e75bf..924dc3bd0 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -51,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDocumentsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_ListDocumentsRequest_descriptor; @@ -72,6 +67,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int consistencySelectorCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object consistencySelector_; public enum ConsistencySelectorCase @@ -129,6 +126,7 @@ public ConsistencySelectorCase getConsistencySelectorCase() { * Required. The parent resource name. In the format: * `projects/{project_id}/databases/{database_id}/documents` or * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + * * For example: * `projects/my-project/databases/my-database/documents` or * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` @@ -157,6 +155,7 @@ public java.lang.String getParent() { * Required. The parent resource name. In the format: * `projects/{project_id}/databases/{database_id}/documents` or * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + * * For example: * `projects/my-project/databases/my-database/documents` or * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` @@ -188,7 +187,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * Optional. The collection ID, relative to `parent`, to list.
+   *
    * For example: `chatrooms` or `messages`.
+   *
    * This is optional, and when not provided, Firestore will list documents
    * from all collections under the provided `parent`.
    * 
@@ -214,7 +215,9 @@ public java.lang.String getCollectionId() { * *
    * Optional. The collection ID, relative to `parent`, to list.
+   *
    * For example: `chatrooms` or `messages`.
+   *
    * This is optional, and when not provided, Firestore will list documents
    * from all collections under the provided `parent`.
    * 
@@ -243,6 +246,7 @@ public com.google.protobuf.ByteString getCollectionIdBytes() { * *
    * Optional. The maximum number of documents to return in a single response.
+   *
    * Firestore may return fewer than this value.
    * 
* @@ -264,6 +268,7 @@ public int getPageSize() { * *
    * Optional. A page token, received from a previous `ListDocuments` response.
+   *
    * Provide this to retrieve the subsequent page. When paginating, all other
    * parameters (with the exception of `page_size`) must match the values set
    * in the request that generated the page token.
@@ -290,6 +295,7 @@ public java.lang.String getPageToken() {
    *
    * 
    * Optional. A page token, received from a previous `ListDocuments` response.
+   *
    * Provide this to retrieve the subsequent page. When paginating, all other
    * parameters (with the exception of `page_size`) must match the values set
    * in the request that generated the page token.
@@ -321,7 +327,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    *
    * 
    * Optional. The optional ordering of the documents to return.
+   *
    * For example: `priority desc, __name__ desc`.
+   *
    * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
    * used in Firestore queries but in a string representation. When absent,
    * documents are ordered based on `__name__ ASC`.
@@ -348,7 +356,9 @@ public java.lang.String getOrderBy() {
    *
    * 
    * Optional. The optional ordering of the documents to return.
+   *
    * For example: `priority desc, __name__ desc`.
+   *
    * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
    * used in Firestore queries but in a string representation. When absent,
    * documents are ordered based on `__name__ ASC`.
@@ -378,6 +388,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    *
    * 
    * Optional. The fields to return. If not set, returns all fields.
+   *
    * If a document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -396,6 +407,7 @@ public boolean hasMask() { * *
    * Optional. The fields to return. If not set, returns all fields.
+   *
    * If a document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -414,6 +426,7 @@ public com.google.firestore.v1.DocumentMask getMask() { * *
    * Optional. The fields to return. If not set, returns all fields.
+   *
    * If a document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -467,7 +480,10 @@ public com.google.protobuf.ByteString getTransaction() { * *
    * Perform the read at the provided time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 10; @@ -483,7 +499,10 @@ public boolean hasReadTime() { * *
    * Perform the read at the provided time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 10; @@ -502,7 +521,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
    * Perform the read at the provided time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 10; @@ -522,11 +544,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
    * If the list should show missing documents.
+   *
    * A document is missing if it does not exist, but there are sub-documents
    * nested underneath it. When true, such missing documents will be returned
    * with a key but will not have fields,
    * [`create_time`][google.firestore.v1.Document.create_time], or
    * [`update_time`][google.firestore.v1.Document.update_time] set.
+   *
    * Requests with `show_missing` may not specify `where` or `order_by`.
    * 
* @@ -1131,6 +1155,7 @@ public Builder clearConsistencySelector() { * Required. The parent resource name. In the format: * `projects/{project_id}/databases/{database_id}/documents` or * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + * * For example: * `projects/my-project/databases/my-database/documents` or * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` @@ -1158,6 +1183,7 @@ public java.lang.String getParent() { * Required. The parent resource name. In the format: * `projects/{project_id}/databases/{database_id}/documents` or * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + * * For example: * `projects/my-project/databases/my-database/documents` or * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` @@ -1185,6 +1211,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. The parent resource name. In the format: * `projects/{project_id}/databases/{database_id}/documents` or * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + * * For example: * `projects/my-project/databases/my-database/documents` or * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` @@ -1211,6 +1238,7 @@ public Builder setParent(java.lang.String value) { * Required. The parent resource name. In the format: * `projects/{project_id}/databases/{database_id}/documents` or * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + * * For example: * `projects/my-project/databases/my-database/documents` or * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` @@ -1233,6 +1261,7 @@ public Builder clearParent() { * Required. The parent resource name. In the format: * `projects/{project_id}/databases/{database_id}/documents` or * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + * * For example: * `projects/my-project/databases/my-database/documents` or * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` @@ -1260,7 +1289,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * Optional. The collection ID, relative to `parent`, to list.
+     *
      * For example: `chatrooms` or `messages`.
+     *
      * This is optional, and when not provided, Firestore will list documents
      * from all collections under the provided `parent`.
      * 
@@ -1285,7 +1316,9 @@ public java.lang.String getCollectionId() { * *
      * Optional. The collection ID, relative to `parent`, to list.
+     *
      * For example: `chatrooms` or `messages`.
+     *
      * This is optional, and when not provided, Firestore will list documents
      * from all collections under the provided `parent`.
      * 
@@ -1310,7 +1343,9 @@ public com.google.protobuf.ByteString getCollectionIdBytes() { * *
      * Optional. The collection ID, relative to `parent`, to list.
+     *
      * For example: `chatrooms` or `messages`.
+     *
      * This is optional, and when not provided, Firestore will list documents
      * from all collections under the provided `parent`.
      * 
@@ -1334,7 +1369,9 @@ public Builder setCollectionId(java.lang.String value) { * *
      * Optional. The collection ID, relative to `parent`, to list.
+     *
      * For example: `chatrooms` or `messages`.
+     *
      * This is optional, and when not provided, Firestore will list documents
      * from all collections under the provided `parent`.
      * 
@@ -1354,7 +1391,9 @@ public Builder clearCollectionId() { * *
      * Optional. The collection ID, relative to `parent`, to list.
+     *
      * For example: `chatrooms` or `messages`.
+     *
      * This is optional, and when not provided, Firestore will list documents
      * from all collections under the provided `parent`.
      * 
@@ -1381,6 +1420,7 @@ public Builder setCollectionIdBytes(com.google.protobuf.ByteString value) { * *
      * Optional. The maximum number of documents to return in a single response.
+     *
      * Firestore may return fewer than this value.
      * 
* @@ -1397,6 +1437,7 @@ public int getPageSize() { * *
      * Optional. The maximum number of documents to return in a single response.
+     *
      * Firestore may return fewer than this value.
      * 
* @@ -1417,6 +1458,7 @@ public Builder setPageSize(int value) { * *
      * Optional. The maximum number of documents to return in a single response.
+     *
      * Firestore may return fewer than this value.
      * 
* @@ -1437,6 +1479,7 @@ public Builder clearPageSize() { * *
      * Optional. A page token, received from a previous `ListDocuments` response.
+     *
      * Provide this to retrieve the subsequent page. When paginating, all other
      * parameters (with the exception of `page_size`) must match the values set
      * in the request that generated the page token.
@@ -1462,6 +1505,7 @@ public java.lang.String getPageToken() {
      *
      * 
      * Optional. A page token, received from a previous `ListDocuments` response.
+     *
      * Provide this to retrieve the subsequent page. When paginating, all other
      * parameters (with the exception of `page_size`) must match the values set
      * in the request that generated the page token.
@@ -1487,6 +1531,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      *
      * 
      * Optional. A page token, received from a previous `ListDocuments` response.
+     *
      * Provide this to retrieve the subsequent page. When paginating, all other
      * parameters (with the exception of `page_size`) must match the values set
      * in the request that generated the page token.
@@ -1511,6 +1556,7 @@ public Builder setPageToken(java.lang.String value) {
      *
      * 
      * Optional. A page token, received from a previous `ListDocuments` response.
+     *
      * Provide this to retrieve the subsequent page. When paginating, all other
      * parameters (with the exception of `page_size`) must match the values set
      * in the request that generated the page token.
@@ -1531,6 +1577,7 @@ public Builder clearPageToken() {
      *
      * 
      * Optional. A page token, received from a previous `ListDocuments` response.
+     *
      * Provide this to retrieve the subsequent page. When paginating, all other
      * parameters (with the exception of `page_size`) must match the values set
      * in the request that generated the page token.
@@ -1558,7 +1605,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * Optional. The optional ordering of the documents to return.
+     *
      * For example: `priority desc, __name__ desc`.
+     *
      * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
      * used in Firestore queries but in a string representation. When absent,
      * documents are ordered based on `__name__ ASC`.
@@ -1584,7 +1633,9 @@ public java.lang.String getOrderBy() {
      *
      * 
      * Optional. The optional ordering of the documents to return.
+     *
      * For example: `priority desc, __name__ desc`.
+     *
      * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
      * used in Firestore queries but in a string representation. When absent,
      * documents are ordered based on `__name__ ASC`.
@@ -1610,7 +1661,9 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      *
      * 
      * Optional. The optional ordering of the documents to return.
+     *
      * For example: `priority desc, __name__ desc`.
+     *
      * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
      * used in Firestore queries but in a string representation. When absent,
      * documents are ordered based on `__name__ ASC`.
@@ -1635,7 +1688,9 @@ public Builder setOrderBy(java.lang.String value) {
      *
      * 
      * Optional. The optional ordering of the documents to return.
+     *
      * For example: `priority desc, __name__ desc`.
+     *
      * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
      * used in Firestore queries but in a string representation. When absent,
      * documents are ordered based on `__name__ ASC`.
@@ -1656,7 +1711,9 @@ public Builder clearOrderBy() {
      *
      * 
      * Optional. The optional ordering of the documents to return.
+     *
      * For example: `priority desc, __name__ desc`.
+     *
      * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
      * used in Firestore queries but in a string representation. When absent,
      * documents are ordered based on `__name__ ASC`.
@@ -1689,6 +1746,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * Optional. The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1706,6 +1764,7 @@ public boolean hasMask() { * *
      * Optional. The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1727,6 +1786,7 @@ public com.google.firestore.v1.DocumentMask getMask() { * *
      * Optional. The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1752,6 +1812,7 @@ public Builder setMask(com.google.firestore.v1.DocumentMask value) { * *
      * Optional. The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1774,6 +1835,7 @@ public Builder setMask(com.google.firestore.v1.DocumentMask.Builder builderForVa * *
      * Optional. The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1802,6 +1864,7 @@ public Builder mergeMask(com.google.firestore.v1.DocumentMask value) { * *
      * Optional. The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1824,6 +1887,7 @@ public Builder clearMask() { * *
      * Optional. The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1841,6 +1905,7 @@ public com.google.firestore.v1.DocumentMask.Builder getMaskBuilder() { * *
      * Optional. The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1860,6 +1925,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getMaskOrBuilder() { * *
      * Optional. The fields to return. If not set, returns all fields.
+     *
      * If a document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1966,7 +2032,10 @@ public Builder clearTransaction() { * *
      * Perform the read at the provided time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 10; @@ -1982,7 +2051,10 @@ public boolean hasReadTime() { * *
      * Perform the read at the provided time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 10; @@ -2008,7 +2080,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
      * Perform the read at the provided time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 10; @@ -2031,7 +2106,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *
      * Perform the read at the provided time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 10; @@ -2051,7 +2129,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * *
      * Perform the read at the provided time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 10; @@ -2084,7 +2165,10 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * *
      * Perform the read at the provided time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 10; @@ -2110,7 +2194,10 @@ public Builder clearReadTime() { * *
      * Perform the read at the provided time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 10; @@ -2123,7 +2210,10 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * *
      * Perform the read at the provided time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 10; @@ -2144,7 +2234,10 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
      * Perform the read at the provided time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 10; @@ -2179,11 +2272,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
      * If the list should show missing documents.
+     *
      * A document is missing if it does not exist, but there are sub-documents
      * nested underneath it. When true, such missing documents will be returned
      * with a key but will not have fields,
      * [`create_time`][google.firestore.v1.Document.create_time], or
      * [`update_time`][google.firestore.v1.Document.update_time] set.
+     *
      * Requests with `show_missing` may not specify `where` or `order_by`.
      * 
* @@ -2200,11 +2295,13 @@ public boolean getShowMissing() { * *
      * If the list should show missing documents.
+     *
      * A document is missing if it does not exist, but there are sub-documents
      * nested underneath it. When true, such missing documents will be returned
      * with a key but will not have fields,
      * [`create_time`][google.firestore.v1.Document.create_time], or
      * [`update_time`][google.firestore.v1.Document.update_time] set.
+     *
      * Requests with `show_missing` may not specify `where` or `order_by`.
      * 
* @@ -2225,11 +2322,13 @@ public Builder setShowMissing(boolean value) { * *
      * If the list should show missing documents.
+     *
      * A document is missing if it does not exist, but there are sub-documents
      * nested underneath it. When true, such missing documents will be returned
      * with a key but will not have fields,
      * [`create_time`][google.firestore.v1.Document.create_time], or
      * [`update_time`][google.firestore.v1.Document.update_time] set.
+     *
      * Requests with `show_missing` may not specify `where` or `order_by`.
      * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequestOrBuilder.java index ff4a1bb7b..ae4329e25 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -30,6 +30,7 @@ public interface ListDocumentsRequestOrBuilder * Required. The parent resource name. In the format: * `projects/{project_id}/databases/{database_id}/documents` or * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + * * For example: * `projects/my-project/databases/my-database/documents` or * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` @@ -47,6 +48,7 @@ public interface ListDocumentsRequestOrBuilder * Required. The parent resource name. In the format: * `projects/{project_id}/databases/{database_id}/documents` or * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + * * For example: * `projects/my-project/databases/my-database/documents` or * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` @@ -63,7 +65,9 @@ public interface ListDocumentsRequestOrBuilder * *
    * Optional. The collection ID, relative to `parent`, to list.
+   *
    * For example: `chatrooms` or `messages`.
+   *
    * This is optional, and when not provided, Firestore will list documents
    * from all collections under the provided `parent`.
    * 
@@ -78,7 +82,9 @@ public interface ListDocumentsRequestOrBuilder * *
    * Optional. The collection ID, relative to `parent`, to list.
+   *
    * For example: `chatrooms` or `messages`.
+   *
    * This is optional, and when not provided, Firestore will list documents
    * from all collections under the provided `parent`.
    * 
@@ -94,6 +100,7 @@ public interface ListDocumentsRequestOrBuilder * *
    * Optional. The maximum number of documents to return in a single response.
+   *
    * Firestore may return fewer than this value.
    * 
* @@ -108,6 +115,7 @@ public interface ListDocumentsRequestOrBuilder * *
    * Optional. A page token, received from a previous `ListDocuments` response.
+   *
    * Provide this to retrieve the subsequent page. When paginating, all other
    * parameters (with the exception of `page_size`) must match the values set
    * in the request that generated the page token.
@@ -123,6 +131,7 @@ public interface ListDocumentsRequestOrBuilder
    *
    * 
    * Optional. A page token, received from a previous `ListDocuments` response.
+   *
    * Provide this to retrieve the subsequent page. When paginating, all other
    * parameters (with the exception of `page_size`) must match the values set
    * in the request that generated the page token.
@@ -139,7 +148,9 @@ public interface ListDocumentsRequestOrBuilder
    *
    * 
    * Optional. The optional ordering of the documents to return.
+   *
    * For example: `priority desc, __name__ desc`.
+   *
    * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
    * used in Firestore queries but in a string representation. When absent,
    * documents are ordered based on `__name__ ASC`.
@@ -155,7 +166,9 @@ public interface ListDocumentsRequestOrBuilder
    *
    * 
    * Optional. The optional ordering of the documents to return.
+   *
    * For example: `priority desc, __name__ desc`.
+   *
    * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
    * used in Firestore queries but in a string representation. When absent,
    * documents are ordered based on `__name__ ASC`.
@@ -172,6 +185,7 @@ public interface ListDocumentsRequestOrBuilder
    *
    * 
    * Optional. The fields to return. If not set, returns all fields.
+   *
    * If a document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -187,6 +201,7 @@ public interface ListDocumentsRequestOrBuilder * *
    * Optional. The fields to return. If not set, returns all fields.
+   *
    * If a document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -202,6 +217,7 @@ public interface ListDocumentsRequestOrBuilder * *
    * Optional. The fields to return. If not set, returns all fields.
+   *
    * If a document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -241,7 +257,10 @@ public interface ListDocumentsRequestOrBuilder * *
    * Perform the read at the provided time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 10; @@ -254,7 +273,10 @@ public interface ListDocumentsRequestOrBuilder * *
    * Perform the read at the provided time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 10; @@ -267,7 +289,10 @@ public interface ListDocumentsRequestOrBuilder * *
    * Perform the read at the provided time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 10; @@ -279,11 +304,13 @@ public interface ListDocumentsRequestOrBuilder * *
    * If the list should show missing documents.
+   *
    * A document is missing if it does not exist, but there are sub-documents
    * nested underneath it. When true, such missing documents will be returned
    * with a key but will not have fields,
    * [`create_time`][google.firestore.v1.Document.create_time], or
    * [`update_time`][google.firestore.v1.Document.update_time] set.
+   *
    * Requests with `show_missing` may not specify `where` or `order_by`.
    * 
* @@ -293,6 +320,5 @@ public interface ListDocumentsRequestOrBuilder */ boolean getShowMissing(); - public com.google.firestore.v1.ListDocumentsRequest.ConsistencySelectorCase - getConsistencySelectorCase(); + com.google.firestore.v1.ListDocumentsRequest.ConsistencySelectorCase getConsistencySelectorCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsResponse.java index ea4999b1b..762bd3613 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsResponse.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDocumentsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_ListDocumentsResponse_descriptor; @@ -149,6 +144,7 @@ public com.google.firestore.v1.DocumentOrBuilder getDocumentsOrBuilder(int index * *
    * A token to retrieve the next page of documents.
+   *
    * If this field is omitted, there are no subsequent pages.
    * 
* @@ -173,6 +169,7 @@ public java.lang.String getNextPageToken() { * *
    * A token to retrieve the next page of documents.
+   *
    * If this field is omitted, there are no subsequent pages.
    * 
* @@ -959,6 +956,7 @@ public java.util.List getDocumentsBuil * *
      * A token to retrieve the next page of documents.
+     *
      * If this field is omitted, there are no subsequent pages.
      * 
* @@ -982,6 +980,7 @@ public java.lang.String getNextPageToken() { * *
      * A token to retrieve the next page of documents.
+     *
      * If this field is omitted, there are no subsequent pages.
      * 
* @@ -1005,6 +1004,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
      * A token to retrieve the next page of documents.
+     *
      * If this field is omitted, there are no subsequent pages.
      * 
* @@ -1027,6 +1027,7 @@ public Builder setNextPageToken(java.lang.String value) { * *
      * A token to retrieve the next page of documents.
+     *
      * If this field is omitted, there are no subsequent pages.
      * 
* @@ -1045,6 +1046,7 @@ public Builder clearNextPageToken() { * *
      * A token to retrieve the next page of documents.
+     *
      * If this field is omitted, there are no subsequent pages.
      * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsResponseOrBuilder.java index 289989569..30162ec00 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsResponseOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListDocumentsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -79,6 +79,7 @@ public interface ListDocumentsResponseOrBuilder * *
    * A token to retrieve the next page of documents.
+   *
    * If this field is omitted, there are no subsequent pages.
    * 
* @@ -92,6 +93,7 @@ public interface ListDocumentsResponseOrBuilder * *
    * A token to retrieve the next page of documents.
+   *
    * If this field is omitted, there are no subsequent pages.
    * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenRequest.java index e357da823..2db93d086 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListenRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_ListenRequest_descriptor; @@ -79,6 +74,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } private int targetChangeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object targetChange_; public enum TargetChangeCase diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenRequestOrBuilder.java index 555d3eb34..fb3e417e6 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -168,5 +168,5 @@ java.lang.String getLabelsOrDefault( */ java.lang.String getLabelsOrThrow(java.lang.String key); - public com.google.firestore.v1.ListenRequest.TargetChangeCase getTargetChangeCase(); + com.google.firestore.v1.ListenRequest.TargetChangeCase getTargetChangeCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponse.java index aa66f38a1..fdeb05852 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponse.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListenResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_ListenResponse_descriptor; @@ -66,6 +61,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int responseTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object responseType_; public enum ResponseTypeCase @@ -335,6 +332,7 @@ public com.google.firestore.v1.DocumentRemoveOrBuilder getDocumentRemoveOrBuilde *
    * A filter to apply to the set of documents previously returned for the
    * given target.
+   *
    * Returned when documents may have been removed from the given target, but
    * the exact documents are unknown.
    * 
@@ -353,6 +351,7 @@ public boolean hasFilter() { *
    * A filter to apply to the set of documents previously returned for the
    * given target.
+   *
    * Returned when documents may have been removed from the given target, but
    * the exact documents are unknown.
    * 
@@ -374,6 +373,7 @@ public com.google.firestore.v1.ExistenceFilter getFilter() { *
    * A filter to apply to the set of documents previously returned for the
    * given target.
+   *
    * Returned when documents may have been removed from the given target, but
    * the exact documents are unknown.
    * 
@@ -1756,6 +1756,7 @@ public com.google.firestore.v1.DocumentRemoveOrBuilder getDocumentRemoveOrBuilde *
      * A filter to apply to the set of documents previously returned for the
      * given target.
+     *
      * Returned when documents may have been removed from the given target, but
      * the exact documents are unknown.
      * 
@@ -1774,6 +1775,7 @@ public boolean hasFilter() { *
      * A filter to apply to the set of documents previously returned for the
      * given target.
+     *
      * Returned when documents may have been removed from the given target, but
      * the exact documents are unknown.
      * 
@@ -1802,6 +1804,7 @@ public com.google.firestore.v1.ExistenceFilter getFilter() { *
      * A filter to apply to the set of documents previously returned for the
      * given target.
+     *
      * Returned when documents may have been removed from the given target, but
      * the exact documents are unknown.
      * 
@@ -1827,6 +1830,7 @@ public Builder setFilter(com.google.firestore.v1.ExistenceFilter value) { *
      * A filter to apply to the set of documents previously returned for the
      * given target.
+     *
      * Returned when documents may have been removed from the given target, but
      * the exact documents are unknown.
      * 
@@ -1849,6 +1853,7 @@ public Builder setFilter(com.google.firestore.v1.ExistenceFilter.Builder builder *
      * A filter to apply to the set of documents previously returned for the
      * given target.
+     *
      * Returned when documents may have been removed from the given target, but
      * the exact documents are unknown.
      * 
@@ -1884,6 +1889,7 @@ public Builder mergeFilter(com.google.firestore.v1.ExistenceFilter value) { *
      * A filter to apply to the set of documents previously returned for the
      * given target.
+     *
      * Returned when documents may have been removed from the given target, but
      * the exact documents are unknown.
      * 
@@ -1912,6 +1918,7 @@ public Builder clearFilter() { *
      * A filter to apply to the set of documents previously returned for the
      * given target.
+     *
      * Returned when documents may have been removed from the given target, but
      * the exact documents are unknown.
      * 
@@ -1927,6 +1934,7 @@ public com.google.firestore.v1.ExistenceFilter.Builder getFilterBuilder() { *
      * A filter to apply to the set of documents previously returned for the
      * given target.
+     *
      * Returned when documents may have been removed from the given target, but
      * the exact documents are unknown.
      * 
@@ -1950,6 +1958,7 @@ public com.google.firestore.v1.ExistenceFilterOrBuilder getFilterOrBuilder() { *
      * A filter to apply to the set of documents previously returned for the
      * given target.
+     *
      * Returned when documents may have been removed from the given target, but
      * the exact documents are unknown.
      * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponseOrBuilder.java index c2c47e0d2..41956bf42 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponseOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListenResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -172,6 +172,7 @@ public interface ListenResponseOrBuilder *
    * A filter to apply to the set of documents previously returned for the
    * given target.
+   *
    * Returned when documents may have been removed from the given target, but
    * the exact documents are unknown.
    * 
@@ -187,6 +188,7 @@ public interface ListenResponseOrBuilder *
    * A filter to apply to the set of documents previously returned for the
    * given target.
+   *
    * Returned when documents may have been removed from the given target, but
    * the exact documents are unknown.
    * 
@@ -202,6 +204,7 @@ public interface ListenResponseOrBuilder *
    * A filter to apply to the set of documents previously returned for the
    * given target.
+   *
    * Returned when documents may have been removed from the given target, but
    * the exact documents are unknown.
    * 
@@ -210,5 +213,5 @@ public interface ListenResponseOrBuilder */ com.google.firestore.v1.ExistenceFilterOrBuilder getFilterOrBuilder(); - public com.google.firestore.v1.ListenResponse.ResponseTypeCase getResponseTypeCase(); + com.google.firestore.v1.ListenResponse.ResponseTypeCase getResponseTypeCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/MapValue.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/MapValue.java index 54c5c461c..5db5868da 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/MapValue.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/MapValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MapValue(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.DocumentProto .internal_static_google_firestore_v1_MapValue_descriptor; @@ -109,6 +104,7 @@ public int getFieldsCount() { * *
    * The map's fields.
+   *
    * The map keys represent field names. Field names matching the regular
    * expression `__.*__` are reserved. Reserved field names are forbidden except
    * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -135,6 +131,7 @@ public java.util.Map getFields(
    *
    * 
    * The map's fields.
+   *
    * The map keys represent field names. Field names matching the regular
    * expression `__.*__` are reserved. Reserved field names are forbidden except
    * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -152,6 +149,7 @@ public java.util.Map getFieldsM
    *
    * 
    * The map's fields.
+   *
    * The map keys represent field names. Field names matching the regular
    * expression `__.*__` are reserved. Reserved field names are forbidden except
    * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -177,6 +175,7 @@ public java.util.Map getFieldsM
    *
    * 
    * The map's fields.
+   *
    * The map keys represent field names. Field names matching the regular
    * expression `__.*__` are reserved. Reserved field names are forbidden except
    * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -600,6 +599,7 @@ public int getFieldsCount() {
      *
      * 
      * The map's fields.
+     *
      * The map keys represent field names. Field names matching the regular
      * expression `__.*__` are reserved. Reserved field names are forbidden except
      * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -626,6 +626,7 @@ public java.util.Map getFields(
      *
      * 
      * The map's fields.
+     *
      * The map keys represent field names. Field names matching the regular
      * expression `__.*__` are reserved. Reserved field names are forbidden except
      * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -643,6 +644,7 @@ public java.util.Map getFieldsM
      *
      * 
      * The map's fields.
+     *
      * The map keys represent field names. Field names matching the regular
      * expression `__.*__` are reserved. Reserved field names are forbidden except
      * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -668,6 +670,7 @@ public java.util.Map getFieldsM
      *
      * 
      * The map's fields.
+     *
      * The map keys represent field names. Field names matching the regular
      * expression `__.*__` are reserved. Reserved field names are forbidden except
      * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -699,6 +702,7 @@ public Builder clearFields() {
      *
      * 
      * The map's fields.
+     *
      * The map keys represent field names. Field names matching the regular
      * expression `__.*__` are reserved. Reserved field names are forbidden except
      * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -725,6 +729,7 @@ public java.util.Map getMutable
      *
      * 
      * The map's fields.
+     *
      * The map keys represent field names. Field names matching the regular
      * expression `__.*__` are reserved. Reserved field names are forbidden except
      * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -749,6 +754,7 @@ public Builder putFields(java.lang.String key, com.google.firestore.v1.Value val
      *
      * 
      * The map's fields.
+     *
      * The map keys represent field names. Field names matching the regular
      * expression `__.*__` are reserved. Reserved field names are forbidden except
      * in certain documented contexts. The map keys, represented as UTF-8, must
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/MapValueOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/MapValueOrBuilder.java
index 27cc2155e..834a74297 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/MapValueOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/MapValueOrBuilder.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -28,6 +28,7 @@ public interface MapValueOrBuilder
    *
    * 
    * The map's fields.
+   *
    * The map keys represent field names. Field names matching the regular
    * expression `__.*__` are reserved. Reserved field names are forbidden except
    * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -42,6 +43,7 @@ public interface MapValueOrBuilder
    *
    * 
    * The map's fields.
+   *
    * The map keys represent field names. Field names matching the regular
    * expression `__.*__` are reserved. Reserved field names are forbidden except
    * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -59,6 +61,7 @@ public interface MapValueOrBuilder
    *
    * 
    * The map's fields.
+   *
    * The map keys represent field names. Field names matching the regular
    * expression `__.*__` are reserved. Reserved field names are forbidden except
    * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -73,6 +76,7 @@ public interface MapValueOrBuilder
    *
    * 
    * The map's fields.
+   *
    * The map keys represent field names. Field names matching the regular
    * expression `__.*__` are reserved. Reserved field names are forbidden except
    * in certain documented contexts. The map keys, represented as UTF-8, must
@@ -91,6 +95,7 @@ com.google.firestore.v1.Value getFieldsOrDefault(
    *
    * 
    * The map's fields.
+   *
    * The map keys represent field names. Field names matching the regular
    * expression `__.*__` are reserved. Reserved field names are forbidden except
    * in certain documented contexts. The map keys, represented as UTF-8, must
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryRequest.java
index fa0c620cb..4567363b4 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryRequest.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryRequest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PartitionQueryRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.firestore.v1.FirestoreProto
         .internal_static_google_firestore_v1_PartitionQueryRequest_descriptor;
@@ -70,6 +65,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
   }
 
   private int queryTypeCase_ = 0;
+
+  @SuppressWarnings("serial")
   private java.lang.Object queryType_;
 
   public enum QueryTypeCase
@@ -114,6 +111,8 @@ public QueryTypeCase getQueryTypeCase() {
   }
 
   private int consistencySelectorCase_ = 0;
+
+  @SuppressWarnings("serial")
   private java.lang.Object consistencySelector_;
 
   public enum ConsistencySelectorCase
@@ -284,6 +283,7 @@ public com.google.firestore.v1.StructuredQueryOrBuilder getStructuredQueryOrBuil
    * The partitions may be returned across multiple pages of results.
    * The number must be positive. The actual number of partitions
    * returned may be fewer.
+   *
    * For example, this may be set to one fewer than the number of parallel
    * queries to be run, or in running a data pipeline job, one fewer than the
    * number of workers or compute instances available.
@@ -310,9 +310,12 @@ public long getPartitionCount() {
    * PartitionQuery that may be used to get an additional set of results.
    * There are no ordering guarantees between sets of results. Thus, using
    * multiple sets of results will require merging the different result sets.
+   *
    * For example, two subsequent calls using a page_token may return:
+   *
    *  * cursor B, cursor M, cursor Q
    *  * cursor A, cursor U, cursor W
+   *
    * To obtain a complete result set ordered with respect to the results of the
    * query supplied to PartitionQuery, the results sets should be merged:
    * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
@@ -342,9 +345,12 @@ public java.lang.String getPageToken() {
    * PartitionQuery that may be used to get an additional set of results.
    * There are no ordering guarantees between sets of results. Thus, using
    * multiple sets of results will require merging the different result sets.
+   *
    * For example, two subsequent calls using a page_token may return:
+   *
    *  * cursor B, cursor M, cursor Q
    *  * cursor A, cursor U, cursor W
+   *
    * To obtain a complete result set ordered with respect to the results of the
    * query supplied to PartitionQuery, the results sets should be merged:
    * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
@@ -375,6 +381,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
    * The maximum number of partitions to return in this call, subject to
    * `partition_count`.
+   *
    * For example, if `partition_count` = 10 and `page_size` = 8, the first call
    * to PartitionQuery will return up to 8 partitions and a `next_page_token`
    * if more results exist. A second call to PartitionQuery will return up to
@@ -396,7 +403,10 @@ public int getPageSize() {
    *
    * 
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 6; @@ -412,7 +422,10 @@ public boolean hasReadTime() { * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 6; @@ -431,7 +444,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1354,6 +1370,7 @@ public com.google.firestore.v1.StructuredQueryOrBuilder getStructuredQueryOrBuil * The partitions may be returned across multiple pages of results. * The number must be positive. The actual number of partitions * returned may be fewer. + * * For example, this may be set to one fewer than the number of parallel * queries to be run, or in running a data pipeline job, one fewer than the * number of workers or compute instances available. @@ -1375,6 +1392,7 @@ public long getPartitionCount() { * The partitions may be returned across multiple pages of results. * The number must be positive. The actual number of partitions * returned may be fewer. + * * For example, this may be set to one fewer than the number of parallel * queries to be run, or in running a data pipeline job, one fewer than the * number of workers or compute instances available. @@ -1400,6 +1418,7 @@ public Builder setPartitionCount(long value) { * The partitions may be returned across multiple pages of results. * The number must be positive. The actual number of partitions * returned may be fewer. + * * For example, this may be set to one fewer than the number of parallel * queries to be run, or in running a data pipeline job, one fewer than the * number of workers or compute instances available. @@ -1425,9 +1444,12 @@ public Builder clearPartitionCount() { * PartitionQuery that may be used to get an additional set of results. * There are no ordering guarantees between sets of results. Thus, using * multiple sets of results will require merging the different result sets. + * * For example, two subsequent calls using a page_token may return: + * * * cursor B, cursor M, cursor Q * * cursor A, cursor U, cursor W + * * To obtain a complete result set ordered with respect to the results of the * query supplied to PartitionQuery, the results sets should be merged: * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W @@ -1456,9 +1478,12 @@ public java.lang.String getPageToken() { * PartitionQuery that may be used to get an additional set of results. * There are no ordering guarantees between sets of results. Thus, using * multiple sets of results will require merging the different result sets. + * * For example, two subsequent calls using a page_token may return: + * * * cursor B, cursor M, cursor Q * * cursor A, cursor U, cursor W + * * To obtain a complete result set ordered with respect to the results of the * query supplied to PartitionQuery, the results sets should be merged: * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W @@ -1487,9 +1512,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * PartitionQuery that may be used to get an additional set of results. * There are no ordering guarantees between sets of results. Thus, using * multiple sets of results will require merging the different result sets. + * * For example, two subsequent calls using a page_token may return: + * * * cursor B, cursor M, cursor Q * * cursor A, cursor U, cursor W + * * To obtain a complete result set ordered with respect to the results of the * query supplied to PartitionQuery, the results sets should be merged: * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W @@ -1517,9 +1545,12 @@ public Builder setPageToken(java.lang.String value) { * PartitionQuery that may be used to get an additional set of results. * There are no ordering guarantees between sets of results. Thus, using * multiple sets of results will require merging the different result sets. + * * For example, two subsequent calls using a page_token may return: + * * * cursor B, cursor M, cursor Q * * cursor A, cursor U, cursor W + * * To obtain a complete result set ordered with respect to the results of the * query supplied to PartitionQuery, the results sets should be merged: * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W @@ -1543,9 +1574,12 @@ public Builder clearPageToken() { * PartitionQuery that may be used to get an additional set of results. * There are no ordering guarantees between sets of results. Thus, using * multiple sets of results will require merging the different result sets. + * * For example, two subsequent calls using a page_token may return: + * * * cursor B, cursor M, cursor Q * * cursor A, cursor U, cursor W + * * To obtain a complete result set ordered with respect to the results of the * query supplied to PartitionQuery, the results sets should be merged: * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W @@ -1574,6 +1608,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { *
      * The maximum number of partitions to return in this call, subject to
      * `partition_count`.
+     *
      * For example, if `partition_count` = 10 and `page_size` = 8, the first call
      * to PartitionQuery will return up to 8 partitions and a `next_page_token`
      * if more results exist. A second call to PartitionQuery will return up to
@@ -1594,6 +1629,7 @@ public int getPageSize() {
      * 
      * The maximum number of partitions to return in this call, subject to
      * `partition_count`.
+     *
      * For example, if `partition_count` = 10 and `page_size` = 8, the first call
      * to PartitionQuery will return up to 8 partitions and a `next_page_token`
      * if more results exist. A second call to PartitionQuery will return up to
@@ -1618,6 +1654,7 @@ public Builder setPageSize(int value) {
      * 
      * The maximum number of partitions to return in this call, subject to
      * `partition_count`.
+     *
      * For example, if `partition_count` = 10 and `page_size` = 8, the first call
      * to PartitionQuery will return up to 8 partitions and a `next_page_token`
      * if more results exist. A second call to PartitionQuery will return up to
@@ -1645,7 +1682,10 @@ public Builder clearPageSize() {
      *
      * 
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1661,7 +1701,10 @@ public boolean hasReadTime() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1687,7 +1730,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1710,7 +1756,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1730,7 +1779,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1763,7 +1815,10 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1789,7 +1844,10 @@ public Builder clearReadTime() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1802,7 +1860,10 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1823,7 +1884,10 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryRequestOrBuilder.java index bbd49e9ae..f5a775052 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -106,6 +106,7 @@ public interface PartitionQueryRequestOrBuilder * The partitions may be returned across multiple pages of results. * The number must be positive. The actual number of partitions * returned may be fewer. + * * For example, this may be set to one fewer than the number of parallel * queries to be run, or in running a data pipeline job, one fewer than the * number of workers or compute instances available. @@ -125,9 +126,12 @@ public interface PartitionQueryRequestOrBuilder * PartitionQuery that may be used to get an additional set of results. * There are no ordering guarantees between sets of results. Thus, using * multiple sets of results will require merging the different result sets. + * * For example, two subsequent calls using a page_token may return: + * * * cursor B, cursor M, cursor Q * * cursor A, cursor U, cursor W + * * To obtain a complete result set ordered with respect to the results of the * query supplied to PartitionQuery, the results sets should be merged: * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W @@ -146,9 +150,12 @@ public interface PartitionQueryRequestOrBuilder * PartitionQuery that may be used to get an additional set of results. * There are no ordering guarantees between sets of results. Thus, using * multiple sets of results will require merging the different result sets. + * * For example, two subsequent calls using a page_token may return: + * * * cursor B, cursor M, cursor Q * * cursor A, cursor U, cursor W + * * To obtain a complete result set ordered with respect to the results of the * query supplied to PartitionQuery, the results sets should be merged: * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W @@ -166,6 +173,7 @@ public interface PartitionQueryRequestOrBuilder *
    * The maximum number of partitions to return in this call, subject to
    * `partition_count`.
+   *
    * For example, if `partition_count` = 10 and `page_size` = 8, the first call
    * to PartitionQuery will return up to 8 partitions and a `next_page_token`
    * if more results exist. A second call to PartitionQuery will return up to
@@ -183,7 +191,10 @@ public interface PartitionQueryRequestOrBuilder
    *
    * 
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 6; @@ -196,7 +207,10 @@ public interface PartitionQueryRequestOrBuilder * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 6; @@ -209,15 +223,18 @@ public interface PartitionQueryRequestOrBuilder * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 6; */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); - public com.google.firestore.v1.PartitionQueryRequest.QueryTypeCase getQueryTypeCase(); + com.google.firestore.v1.PartitionQueryRequest.QueryTypeCase getQueryTypeCase(); - public com.google.firestore.v1.PartitionQueryRequest.ConsistencySelectorCase + com.google.firestore.v1.PartitionQueryRequest.ConsistencySelectorCase getConsistencySelectorCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryResponse.java index 511aaa941..572141aa3 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryResponse.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PartitionQueryResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_PartitionQueryResponse_descriptor; @@ -83,12 +78,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -109,12 +107,15 @@ public java.util.List getPartitionsList() { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -136,12 +137,15 @@ public java.util.List getPartitionsList() { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -162,12 +166,15 @@ public int getPartitionsCount() { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -188,12 +195,15 @@ public com.google.firestore.v1.Cursor getPartitions(int index) { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -698,12 +708,15 @@ private void ensurePartitionsIsMutable() { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -727,12 +740,15 @@ public java.util.List getPartitionsList() { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -756,12 +772,15 @@ public int getPartitionsCount() { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -785,12 +804,15 @@ public com.google.firestore.v1.Cursor getPartitions(int index) { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -820,12 +842,15 @@ public Builder setPartitions(int index, com.google.firestore.v1.Cursor value) { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -853,12 +878,15 @@ public Builder setPartitions( * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -888,12 +916,15 @@ public Builder addPartitions(com.google.firestore.v1.Cursor value) { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -923,12 +954,15 @@ public Builder addPartitions(int index, com.google.firestore.v1.Cursor value) { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -955,12 +989,15 @@ public Builder addPartitions(com.google.firestore.v1.Cursor.Builder builderForVa * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -988,12 +1025,15 @@ public Builder addPartitions( * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -1021,12 +1061,15 @@ public Builder addAllPartitions( * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -1053,12 +1096,15 @@ public Builder clearPartitions() { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -1085,12 +1131,15 @@ public Builder removePartitions(int index) { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -1110,12 +1159,15 @@ public com.google.firestore.v1.Cursor.Builder getPartitionsBuilder(int index) { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -1139,12 +1191,15 @@ public com.google.firestore.v1.CursorOrBuilder getPartitionsOrBuilder(int index) * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -1169,12 +1224,15 @@ public com.google.firestore.v1.CursorOrBuilder getPartitionsOrBuilder(int index) * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -1195,12 +1253,15 @@ public com.google.firestore.v1.Cursor.Builder addPartitionsBuilder() { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -1221,12 +1282,15 @@ public com.google.firestore.v1.Cursor.Builder addPartitionsBuilder(int index) { * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryResponseOrBuilder.java index f92ce225a..2664a3b63 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryResponseOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PartitionQueryResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -33,12 +33,15 @@ public interface PartitionQueryResponseOrBuilder * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -56,12 +59,15 @@ public interface PartitionQueryResponseOrBuilder * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -79,12 +85,15 @@ public interface PartitionQueryResponseOrBuilder * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -102,12 +111,15 @@ public interface PartitionQueryResponseOrBuilder * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
@@ -125,12 +137,15 @@ public interface PartitionQueryResponseOrBuilder * the same query supplied to this PartitionQuery request. The partition * cursors will be ordered according to same ordering as the results of the * query supplied to PartitionQuery. + * * For example, if a PartitionQuery request returns partition cursors A and B, * running the following three queries will return the entire result set of * the original query: + * * * query, end_at A * * query, start_at A, end_at B * * query, start_at B + * * An empty result may indicate that the query has too few results to be * partitioned. *
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Precondition.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Precondition.java index 97696807b..4d4b27ad9 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Precondition.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Precondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Precondition(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.CommonProto .internal_static_google_firestore_v1_Precondition_descriptor; @@ -66,6 +61,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int conditionTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object conditionType_; public enum ConditionTypeCase diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PreconditionOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PreconditionOrBuilder.java index 7926afa17..4d6f99ac4 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PreconditionOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/PreconditionOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -88,5 +88,5 @@ public interface PreconditionOrBuilder */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - public com.google.firestore.v1.Precondition.ConditionTypeCase getConditionTypeCase(); + com.google.firestore.v1.Precondition.ConditionTypeCase getConditionTypeCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/QueryProto.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/QueryProto.java index 2bc291fa2..ffae863b9 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/QueryProto.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/QueryProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -75,6 +75,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Count_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Count_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Sum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Sum_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Avg_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Avg_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_firestore_v1_Cursor_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -141,24 +149,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022C\n\006fields\030\002 \003(\01323.google.firestore.v1.S" + "tructuredQuery.FieldReference\"E\n\tDirecti" + "on\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\r\n\tASCENDI" - + "NG\020\001\022\016\n\nDESCENDING\020\002\"\202\003\n\032StructuredAggre" + + "NG\020\001\022\016\n\nDESCENDING\020\002\"\273\005\n\032StructuredAggre" + "gationQuery\022@\n\020structured_query\030\001 \001(\0132$." - + "google.firestore.v1.StructuredQueryH\000\022V\n" + + "google.firestore.v1.StructuredQueryH\000\022W\n" + "\014aggregations\030\003 \003(\0132;.google.firestore.v" + "1.StructuredAggregationQuery.Aggregation" - + "B\003\340A\001\032\273\001\n\013Aggregation\022R\n\005count\030\001 \001(\0132A.g" - + "oogle.firestore.v1.StructuredAggregation" - + "Query.Aggregation.CountH\000\022\022\n\005alias\030\007 \001(\t" - + "B\003\340A\001\0328\n\005Count\022/\n\005up_to\030\001 \001(\0132\033.google.p" - + "rotobuf.Int64ValueB\003\340A\001B\n\n\010operatorB\014\n\nq" - + "uery_type\"D\n\006Cursor\022*\n\006values\030\001 \003(\0132\032.go" - + "ogle.firestore.v1.Value\022\016\n\006before\030\002 \001(\010B" - + "\302\001\n\027com.google.firestore.v1B\nQueryProtoP" - + "\001Z;cloud.google.com/go/firestore/apiv1/f" - + "irestorepb;firestorepb\242\002\004GCFS\252\002\031Google.C" - + "loud.Firestore.V1\312\002\031Google\\Cloud\\Firesto" - + "re\\V1\352\002\034Google::Cloud::Firestore::V1b\006pr" - + "oto3" + + "B\004\342A\001\001\032\363\003\n\013Aggregation\022R\n\005count\030\001 \001(\0132A." + + "google.firestore.v1.StructuredAggregatio" + + "nQuery.Aggregation.CountH\000\022N\n\003sum\030\002 \001(\0132" + + "?.google.firestore.v1.StructuredAggregat" + + "ionQuery.Aggregation.SumH\000\022N\n\003avg\030\003 \001(\0132" + + "?.google.firestore.v1.StructuredAggregat" + + "ionQuery.Aggregation.AvgH\000\022\023\n\005alias\030\007 \001(" + + "\tB\004\342A\001\001\0329\n\005Count\0220\n\005up_to\030\001 \001(\0132\033.google" + + ".protobuf.Int64ValueB\004\342A\001\001\032I\n\003Sum\022B\n\005fie" + + "ld\030\001 \001(\01323.google.firestore.v1.Structure" + + "dQuery.FieldReference\032I\n\003Avg\022B\n\005field\030\001 " + + "\001(\01323.google.firestore.v1.StructuredQuer" + + "y.FieldReferenceB\n\n\010operatorB\014\n\nquery_ty" + + "pe\"D\n\006Cursor\022*\n\006values\030\001 \003(\0132\032.google.fi" + + "restore.v1.Value\022\016\n\006before\030\002 \001(\010B\302\001\n\027com" + + ".google.firestore.v1B\nQueryProtoP\001Z;clou" + + "d.google.com/go/firestore/apiv1/firestor" + + "epb;firestorepb\242\002\004GCFS\252\002\031Google.Cloud.Fi" + + "restore.V1\312\002\031Google\\Cloud\\Firestore\\V1\352\002" + + "\034Google::Cloud::Firestore::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -256,7 +271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_descriptor, new java.lang.String[] { - "Count", "Alias", "Operator", + "Count", "Sum", "Avg", "Alias", "Operator", }); internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Count_descriptor = internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_descriptor @@ -268,6 +283,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "UpTo", }); + internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Sum_descriptor = + internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_descriptor + .getNestedTypes() + .get(1); + internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Sum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Sum_descriptor, + new java.lang.String[] { + "Field", + }); + internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Avg_descriptor = + internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_descriptor + .getNestedTypes() + .get(2); + internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Avg_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Avg_descriptor, + new java.lang.String[] { + "Field", + }); internal_static_google_firestore_v1_Cursor_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_firestore_v1_Cursor_fieldAccessorTable = diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequest.java index 5f001914d..293b4d91e 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RollbackRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_RollbackRequest_descriptor; diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequestOrBuilder.java index 5dae3e0b7..7d6e2e181 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequest.java index 9f8f96534..800b83049 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunAggregationQueryRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_RunAggregationQueryRequest_descriptor; @@ -69,6 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int queryTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object queryType_; public enum QueryTypeCase @@ -113,6 +110,8 @@ public QueryTypeCase getQueryTypeCase() { } private int consistencySelectorCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object consistencySelector_; public enum ConsistencySelectorCase @@ -281,6 +280,7 @@ public com.google.firestore.v1.StructuredAggregationQuery getStructuredAggregati * *
    * Run the aggregation within an already active transaction.
+   *
    * The value here is the opaque transaction ID to execute the query in.
    * 
* @@ -297,6 +297,7 @@ public boolean hasTransaction() { * *
    * Run the aggregation within an already active transaction.
+   *
    * The value here is the opaque transaction ID to execute the query in.
    * 
* @@ -318,6 +319,7 @@ public com.google.protobuf.ByteString getTransaction() { * *
    * Starts a new transaction as part of the query, defaulting to read-only.
+   *
    * The new transaction ID will be returned as the first response in the
    * stream.
    * 
@@ -335,6 +337,7 @@ public boolean hasNewTransaction() { * *
    * Starts a new transaction as part of the query, defaulting to read-only.
+   *
    * The new transaction ID will be returned as the first response in the
    * stream.
    * 
@@ -355,6 +358,7 @@ public com.google.firestore.v1.TransactionOptions getNewTransaction() { * *
    * Starts a new transaction as part of the query, defaulting to read-only.
+   *
    * The new transaction ID will be returned as the first response in the
    * stream.
    * 
@@ -375,8 +379,10 @@ public com.google.firestore.v1.TransactionOptionsOrBuilder getNewTransactionOrBu * *
    * Executes the query at the given timestamp.
-   * Requires:
-   * * Cannot be more than 270 seconds in the past.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 6; @@ -392,8 +398,10 @@ public boolean hasReadTime() { * *
    * Executes the query at the given timestamp.
-   * Requires:
-   * * Cannot be more than 270 seconds in the past.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 6; @@ -412,8 +420,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
    * Executes the query at the given timestamp.
-   * Requires:
-   * * Cannot be more than 270 seconds in the past.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1322,6 +1332,7 @@ public Builder clearStructuredAggregationQuery() { * *
      * Run the aggregation within an already active transaction.
+     *
      * The value here is the opaque transaction ID to execute the query in.
      * 
* @@ -1337,6 +1348,7 @@ public boolean hasTransaction() { * *
      * Run the aggregation within an already active transaction.
+     *
      * The value here is the opaque transaction ID to execute the query in.
      * 
* @@ -1355,6 +1367,7 @@ public com.google.protobuf.ByteString getTransaction() { * *
      * Run the aggregation within an already active transaction.
+     *
      * The value here is the opaque transaction ID to execute the query in.
      * 
* @@ -1377,6 +1390,7 @@ public Builder setTransaction(com.google.protobuf.ByteString value) { * *
      * Run the aggregation within an already active transaction.
+     *
      * The value here is the opaque transaction ID to execute the query in.
      * 
* @@ -1403,6 +1417,7 @@ public Builder clearTransaction() { * *
      * Starts a new transaction as part of the query, defaulting to read-only.
+     *
      * The new transaction ID will be returned as the first response in the
      * stream.
      * 
@@ -1420,6 +1435,7 @@ public boolean hasNewTransaction() { * *
      * Starts a new transaction as part of the query, defaulting to read-only.
+     *
      * The new transaction ID will be returned as the first response in the
      * stream.
      * 
@@ -1447,6 +1463,7 @@ public com.google.firestore.v1.TransactionOptions getNewTransaction() { * *
      * Starts a new transaction as part of the query, defaulting to read-only.
+     *
      * The new transaction ID will be returned as the first response in the
      * stream.
      * 
@@ -1471,6 +1488,7 @@ public Builder setNewTransaction(com.google.firestore.v1.TransactionOptions valu * *
      * Starts a new transaction as part of the query, defaulting to read-only.
+     *
      * The new transaction ID will be returned as the first response in the
      * stream.
      * 
@@ -1493,6 +1511,7 @@ public Builder setNewTransaction( * *
      * Starts a new transaction as part of the query, defaulting to read-only.
+     *
      * The new transaction ID will be returned as the first response in the
      * stream.
      * 
@@ -1528,6 +1547,7 @@ public Builder mergeNewTransaction(com.google.firestore.v1.TransactionOptions va * *
      * Starts a new transaction as part of the query, defaulting to read-only.
+     *
      * The new transaction ID will be returned as the first response in the
      * stream.
      * 
@@ -1555,6 +1575,7 @@ public Builder clearNewTransaction() { * *
      * Starts a new transaction as part of the query, defaulting to read-only.
+     *
      * The new transaction ID will be returned as the first response in the
      * stream.
      * 
@@ -1569,6 +1590,7 @@ public com.google.firestore.v1.TransactionOptions.Builder getNewTransactionBuild * *
      * Starts a new transaction as part of the query, defaulting to read-only.
+     *
      * The new transaction ID will be returned as the first response in the
      * stream.
      * 
@@ -1591,6 +1613,7 @@ public com.google.firestore.v1.TransactionOptionsOrBuilder getNewTransactionOrBu * *
      * Starts a new transaction as part of the query, defaulting to read-only.
+     *
      * The new transaction ID will be returned as the first response in the
      * stream.
      * 
@@ -1631,8 +1654,10 @@ public com.google.firestore.v1.TransactionOptionsOrBuilder getNewTransactionOrBu * *
      * Executes the query at the given timestamp.
-     * Requires:
-     * * Cannot be more than 270 seconds in the past.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1648,8 +1673,10 @@ public boolean hasReadTime() { * *
      * Executes the query at the given timestamp.
-     * Requires:
-     * * Cannot be more than 270 seconds in the past.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1675,8 +1702,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
      * Executes the query at the given timestamp.
-     * Requires:
-     * * Cannot be more than 270 seconds in the past.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1699,8 +1728,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *
      * Executes the query at the given timestamp.
-     * Requires:
-     * * Cannot be more than 270 seconds in the past.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1720,8 +1751,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * *
      * Executes the query at the given timestamp.
-     * Requires:
-     * * Cannot be more than 270 seconds in the past.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1754,8 +1787,10 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * *
      * Executes the query at the given timestamp.
-     * Requires:
-     * * Cannot be more than 270 seconds in the past.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1781,8 +1816,10 @@ public Builder clearReadTime() { * *
      * Executes the query at the given timestamp.
-     * Requires:
-     * * Cannot be more than 270 seconds in the past.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1795,8 +1832,10 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * *
      * Executes the query at the given timestamp.
-     * Requires:
-     * * Cannot be more than 270 seconds in the past.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; @@ -1817,8 +1856,10 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
      * Executes the query at the given timestamp.
-     * Requires:
-     * * Cannot be more than 270 seconds in the past.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 6; diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequestOrBuilder.java index ff91dc2fa..8f46e3c0a 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -99,6 +99,7 @@ public interface RunAggregationQueryRequestOrBuilder * *
    * Run the aggregation within an already active transaction.
+   *
    * The value here is the opaque transaction ID to execute the query in.
    * 
* @@ -112,6 +113,7 @@ public interface RunAggregationQueryRequestOrBuilder * *
    * Run the aggregation within an already active transaction.
+   *
    * The value here is the opaque transaction ID to execute the query in.
    * 
* @@ -126,6 +128,7 @@ public interface RunAggregationQueryRequestOrBuilder * *
    * Starts a new transaction as part of the query, defaulting to read-only.
+   *
    * The new transaction ID will be returned as the first response in the
    * stream.
    * 
@@ -140,6 +143,7 @@ public interface RunAggregationQueryRequestOrBuilder * *
    * Starts a new transaction as part of the query, defaulting to read-only.
+   *
    * The new transaction ID will be returned as the first response in the
    * stream.
    * 
@@ -154,6 +158,7 @@ public interface RunAggregationQueryRequestOrBuilder * *
    * Starts a new transaction as part of the query, defaulting to read-only.
+   *
    * The new transaction ID will be returned as the first response in the
    * stream.
    * 
@@ -167,8 +172,10 @@ public interface RunAggregationQueryRequestOrBuilder * *
    * Executes the query at the given timestamp.
-   * Requires:
-   * * Cannot be more than 270 seconds in the past.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 6; @@ -181,8 +188,10 @@ public interface RunAggregationQueryRequestOrBuilder * *
    * Executes the query at the given timestamp.
-   * Requires:
-   * * Cannot be more than 270 seconds in the past.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 6; @@ -195,16 +204,18 @@ public interface RunAggregationQueryRequestOrBuilder * *
    * Executes the query at the given timestamp.
-   * Requires:
-   * * Cannot be more than 270 seconds in the past.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 6; */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); - public com.google.firestore.v1.RunAggregationQueryRequest.QueryTypeCase getQueryTypeCase(); + com.google.firestore.v1.RunAggregationQueryRequest.QueryTypeCase getQueryTypeCase(); - public com.google.firestore.v1.RunAggregationQueryRequest.ConsistencySelectorCase + com.google.firestore.v1.RunAggregationQueryRequest.ConsistencySelectorCase getConsistencySelectorCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponse.java index d26e887ed..083525ad4 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponse.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunAggregationQueryResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_RunAggregationQueryResponse_descriptor; @@ -75,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * A single aggregation result.
+   *
    * Not present when reporting partial progress.
    * 
* @@ -91,6 +87,7 @@ public boolean hasResult() { * *
    * A single aggregation result.
+   *
    * Not present when reporting partial progress.
    * 
* @@ -109,6 +106,7 @@ public com.google.firestore.v1.AggregationResult getResult() { * *
    * A single aggregation result.
+   *
    * Not present when reporting partial progress.
    * 
* @@ -128,6 +126,7 @@ public com.google.firestore.v1.AggregationResultOrBuilder getResultOrBuilder() { * *
    * The transaction that was started as part of this request.
+   *
    * Only present on the first response when the request requested to start
    * a new transaction.
    * 
@@ -151,6 +150,7 @@ public com.google.protobuf.ByteString getTransaction() { * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -172,6 +172,7 @@ public boolean hasReadTime() { * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -193,6 +194,7 @@ public com.google.protobuf.Timestamp getReadTime() { * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -619,6 +621,7 @@ public Builder mergeFrom( * *
      * A single aggregation result.
+     *
      * Not present when reporting partial progress.
      * 
* @@ -634,6 +637,7 @@ public boolean hasResult() { * *
      * A single aggregation result.
+     *
      * Not present when reporting partial progress.
      * 
* @@ -655,6 +659,7 @@ public com.google.firestore.v1.AggregationResult getResult() { * *
      * A single aggregation result.
+     *
      * Not present when reporting partial progress.
      * 
* @@ -678,6 +683,7 @@ public Builder setResult(com.google.firestore.v1.AggregationResult value) { * *
      * A single aggregation result.
+     *
      * Not present when reporting partial progress.
      * 
* @@ -698,6 +704,7 @@ public Builder setResult(com.google.firestore.v1.AggregationResult.Builder build * *
      * A single aggregation result.
+     *
      * Not present when reporting partial progress.
      * 
* @@ -724,6 +731,7 @@ public Builder mergeResult(com.google.firestore.v1.AggregationResult value) { * *
      * A single aggregation result.
+     *
      * Not present when reporting partial progress.
      * 
* @@ -744,6 +752,7 @@ public Builder clearResult() { * *
      * A single aggregation result.
+     *
      * Not present when reporting partial progress.
      * 
* @@ -759,6 +768,7 @@ public com.google.firestore.v1.AggregationResult.Builder getResultBuilder() { * *
      * A single aggregation result.
+     *
      * Not present when reporting partial progress.
      * 
* @@ -778,6 +788,7 @@ public com.google.firestore.v1.AggregationResultOrBuilder getResultOrBuilder() { * *
      * A single aggregation result.
+     *
      * Not present when reporting partial progress.
      * 
* @@ -806,6 +817,7 @@ public com.google.firestore.v1.AggregationResultOrBuilder getResultOrBuilder() { * *
      * The transaction that was started as part of this request.
+     *
      * Only present on the first response when the request requested to start
      * a new transaction.
      * 
@@ -823,6 +835,7 @@ public com.google.protobuf.ByteString getTransaction() { * *
      * The transaction that was started as part of this request.
+     *
      * Only present on the first response when the request requested to start
      * a new transaction.
      * 
@@ -846,6 +859,7 @@ public Builder setTransaction(com.google.protobuf.ByteString value) { * *
      * The transaction that was started as part of this request.
+     *
      * Only present on the first response when the request requested to start
      * a new transaction.
      * 
@@ -875,6 +889,7 @@ public Builder clearTransaction() { * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -895,6 +910,7 @@ public boolean hasReadTime() { * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -919,6 +935,7 @@ public com.google.protobuf.Timestamp getReadTime() { * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -947,6 +964,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -972,6 +990,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -1003,6 +1022,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -1028,6 +1048,7 @@ public Builder clearReadTime() { * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -1048,6 +1069,7 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -1070,6 +1092,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponseOrBuilder.java index e6c7fb085..3c257e0c8 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponseOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -28,6 +28,7 @@ public interface RunAggregationQueryResponseOrBuilder * *
    * A single aggregation result.
+   *
    * Not present when reporting partial progress.
    * 
* @@ -41,6 +42,7 @@ public interface RunAggregationQueryResponseOrBuilder * *
    * A single aggregation result.
+   *
    * Not present when reporting partial progress.
    * 
* @@ -54,6 +56,7 @@ public interface RunAggregationQueryResponseOrBuilder * *
    * A single aggregation result.
+   *
    * Not present when reporting partial progress.
    * 
* @@ -66,6 +69,7 @@ public interface RunAggregationQueryResponseOrBuilder * *
    * The transaction that was started as part of this request.
+   *
    * Only present on the first response when the request requested to start
    * a new transaction.
    * 
@@ -84,6 +88,7 @@ public interface RunAggregationQueryResponseOrBuilder * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -102,6 +107,7 @@ public interface RunAggregationQueryResponseOrBuilder * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. @@ -120,6 +126,7 @@ public interface RunAggregationQueryResponseOrBuilder * monotonically increasing; in this case, the previous AggregationResult in * the result stream are guaranteed not to have changed between their * `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `result` will be sent, and this represents the time at which the query * was run. diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequest.java index 18b627e12..8d246bd91 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunQueryRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_RunQueryRequest_descriptor; @@ -68,6 +63,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int queryTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object queryType_; public enum QueryTypeCase @@ -112,6 +109,8 @@ public QueryTypeCase getQueryTypeCase() { } private int consistencySelectorCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object consistencySelector_; public enum ConsistencySelectorCase @@ -279,6 +278,7 @@ public com.google.firestore.v1.StructuredQueryOrBuilder getStructuredQueryOrBuil * *
    * Run the query within an already active transaction.
+   *
    * The value here is the opaque transaction ID to execute the query in.
    * 
* @@ -295,6 +295,7 @@ public boolean hasTransaction() { * *
    * Run the query within an already active transaction.
+   *
    * The value here is the opaque transaction ID to execute the query in.
    * 
* @@ -376,7 +377,10 @@ public com.google.firestore.v1.TransactionOptionsOrBuilder getNewTransactionOrBu * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 7; @@ -392,7 +396,10 @@ public boolean hasReadTime() { * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 7; @@ -411,7 +418,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1301,6 +1311,7 @@ public com.google.firestore.v1.StructuredQueryOrBuilder getStructuredQueryOrBuil * *
      * Run the query within an already active transaction.
+     *
      * The value here is the opaque transaction ID to execute the query in.
      * 
* @@ -1316,6 +1327,7 @@ public boolean hasTransaction() { * *
      * Run the query within an already active transaction.
+     *
      * The value here is the opaque transaction ID to execute the query in.
      * 
* @@ -1334,6 +1346,7 @@ public com.google.protobuf.ByteString getTransaction() { * *
      * Run the query within an already active transaction.
+     *
      * The value here is the opaque transaction ID to execute the query in.
      * 
* @@ -1356,6 +1369,7 @@ public Builder setTransaction(com.google.protobuf.ByteString value) { * *
      * Run the query within an already active transaction.
+     *
      * The value here is the opaque transaction ID to execute the query in.
      * 
* @@ -1619,7 +1633,10 @@ public com.google.firestore.v1.TransactionOptionsOrBuilder getNewTransactionOrBu * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1635,7 +1652,10 @@ public boolean hasReadTime() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1661,7 +1681,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1684,7 +1707,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1704,7 +1730,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1737,7 +1766,10 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1763,7 +1795,10 @@ public Builder clearReadTime() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1776,7 +1811,10 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; @@ -1797,7 +1835,10 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
      * Reads documents as they were at the given time.
-     * This may not be older than 270 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one hour,
+     * or if Point-in-Time Recovery is enabled, can additionally be a whole
+     * minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 7; diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequestOrBuilder.java index b6c813a6b..beb2dc58e 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -98,6 +98,7 @@ public interface RunQueryRequestOrBuilder * *
    * Run the query within an already active transaction.
+   *
    * The value here is the opaque transaction ID to execute the query in.
    * 
* @@ -111,6 +112,7 @@ public interface RunQueryRequestOrBuilder * *
    * Run the query within an already active transaction.
+   *
    * The value here is the opaque transaction ID to execute the query in.
    * 
* @@ -169,7 +171,10 @@ public interface RunQueryRequestOrBuilder * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 7; @@ -182,7 +187,10 @@ public interface RunQueryRequestOrBuilder * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 7; @@ -195,15 +203,17 @@ public interface RunQueryRequestOrBuilder * *
    * Reads documents as they were at the given time.
-   * This may not be older than 270 seconds.
+   *
+   * This must be a microsecond precision timestamp within the past one hour,
+   * or if Point-in-Time Recovery is enabled, can additionally be a whole
+   * minute timestamp within the past 7 days.
    * 
* * .google.protobuf.Timestamp read_time = 7; */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); - public com.google.firestore.v1.RunQueryRequest.QueryTypeCase getQueryTypeCase(); + com.google.firestore.v1.RunQueryRequest.QueryTypeCase getQueryTypeCase(); - public com.google.firestore.v1.RunQueryRequest.ConsistencySelectorCase - getConsistencySelectorCase(); + com.google.firestore.v1.RunQueryRequest.ConsistencySelectorCase getConsistencySelectorCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponse.java index edff7d0c5..75ba7686d 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponse.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunQueryResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_RunQueryResponse_descriptor; @@ -69,6 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int continuationSelectorCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object continuationSelector_; public enum ContinuationSelectorCase @@ -189,6 +186,7 @@ public com.google.firestore.v1.DocumentOrBuilder getDocumentOrBuilder() { * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -209,6 +207,7 @@ public boolean hasReadTime() { * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -229,6 +228,7 @@ public com.google.protobuf.Timestamp getReadTime() { * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -1046,6 +1046,7 @@ public com.google.firestore.v1.DocumentOrBuilder getDocumentOrBuilder() { * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -1065,6 +1066,7 @@ public boolean hasReadTime() { * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -1088,6 +1090,7 @@ public com.google.protobuf.Timestamp getReadTime() { * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -1115,6 +1118,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -1139,6 +1143,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -1169,6 +1174,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -1193,6 +1199,7 @@ public Builder clearReadTime() { * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -1212,6 +1219,7 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -1233,6 +1241,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponseOrBuilder.java index 01dcbd7e6..dab4a7f2b 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponseOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -82,6 +82,7 @@ public interface RunQueryResponseOrBuilder * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -99,6 +100,7 @@ public interface RunQueryResponseOrBuilder * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -116,6 +118,7 @@ public interface RunQueryResponseOrBuilder * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are * guaranteed not to have changed between their `read_time` and this one. + * * If the query returns no results, a response with `read_time` and no * `document` will be sent, and this represents the time at which the query * was run. @@ -166,6 +169,5 @@ public interface RunQueryResponseOrBuilder */ boolean getDone(); - public com.google.firestore.v1.RunQueryResponse.ContinuationSelectorCase - getContinuationSelectorCase(); + com.google.firestore.v1.RunQueryResponse.ContinuationSelectorCase getContinuationSelectorCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQuery.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQuery.java index 4713859cd..d054b4051 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQuery.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StructuredAggregationQuery(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto .internal_static_google_firestore_v1_StructuredAggregationQuery_descriptor; @@ -109,14 +104,86 @@ public interface AggregationOrBuilder com.google.firestore.v1.StructuredAggregationQuery.Aggregation.CountOrBuilder getCountOrBuilder(); + /** + * + * + *
+     * Sum aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + * + * @return Whether the sum field is set. + */ + boolean hasSum(); + /** + * + * + *
+     * Sum aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + * + * @return The sum. + */ + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum getSum(); + /** + * + * + *
+     * Sum aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + */ + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.SumOrBuilder getSumOrBuilder(); + + /** + * + * + *
+     * Average aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; + * + * @return Whether the avg field is set. + */ + boolean hasAvg(); + /** + * + * + *
+     * Average aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; + * + * @return The avg. + */ + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg getAvg(); + /** + * + * + *
+     * Average aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; + */ + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.AvgOrBuilder getAvgOrBuilder(); + /** * * *
      * Optional. Optional name of the field to store the result of the
      * aggregation into.
+     *
      * If not provided, Firestore will pick a default name following the format
      * `field_<incremental_id++>`. For example:
+     *
      * ```
      * AGGREGATE
      *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -127,7 +194,9 @@ public interface AggregationOrBuilder
      *   ...
      * );
      * ```
+     *
      * becomes:
+     *
      * ```
      * AGGREGATE
      *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -138,7 +207,9 @@ public interface AggregationOrBuilder
      *   ...
      * );
      * ```
+     *
      * Requires:
+     *
      * * Must be unique across all aggregation aliases.
      * * Conform to [document field name][google.firestore.v1.Document.fields]
      * limitations.
@@ -155,8 +226,10 @@ public interface AggregationOrBuilder
      * 
      * Optional. Optional name of the field to store the result of the
      * aggregation into.
+     *
      * If not provided, Firestore will pick a default name following the format
      * `field_<incremental_id++>`. For example:
+     *
      * ```
      * AGGREGATE
      *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -167,7 +240,9 @@ public interface AggregationOrBuilder
      *   ...
      * );
      * ```
+     *
      * becomes:
+     *
      * ```
      * AGGREGATE
      *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -178,7 +253,9 @@ public interface AggregationOrBuilder
      *   ...
      * );
      * ```
+     *
      * Requires:
+     *
      * * Must be unique across all aggregation aliases.
      * * Conform to [document field name][google.firestore.v1.Document.fields]
      * limitations.
@@ -190,8 +267,7 @@ public interface AggregationOrBuilder
      */
     com.google.protobuf.ByteString getAliasBytes();
 
-    public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.OperatorCase
-        getOperatorCase();
+    com.google.firestore.v1.StructuredAggregationQuery.Aggregation.OperatorCase getOperatorCase();
   }
   /**
    *
@@ -222,11 +298,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Aggregation();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.firestore.v1.QueryProto
           .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_descriptor;
@@ -253,14 +324,20 @@ public interface CountOrBuilder
        * 
        * Optional. Optional constraint on the maximum number of documents to
        * count.
+       *
        * This provides a way to set an upper bound on the number of documents
        * to scan, limiting latency, and cost.
+       *
        * Unspecified is interpreted as no bound.
+       *
        * High-Level Example:
+       *
        * ```
        * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
        * ```
+       *
        * Requires:
+       *
        * * Must be greater than zero when present.
        * 
* @@ -276,14 +353,20 @@ public interface CountOrBuilder *
        * Optional. Optional constraint on the maximum number of documents to
        * count.
+       *
        * This provides a way to set an upper bound on the number of documents
        * to scan, limiting latency, and cost.
+       *
        * Unspecified is interpreted as no bound.
+       *
        * High-Level Example:
+       *
        * ```
        * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
        * ```
+       *
        * Requires:
+       *
        * * Must be greater than zero when present.
        * 
* @@ -299,14 +382,20 @@ public interface CountOrBuilder *
        * Optional. Optional constraint on the maximum number of documents to
        * count.
+       *
        * This provides a way to set an upper bound on the number of documents
        * to scan, limiting latency, and cost.
+       *
        * Unspecified is interpreted as no bound.
+       *
        * High-Level Example:
+       *
        * ```
        * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
        * ```
+       *
        * Requires:
+       *
        * * Must be greater than zero when present.
        * 
* @@ -320,6 +409,7 @@ public interface CountOrBuilder * *
      * Count of documents that match the query.
+     *
      * The `COUNT(*)` aggregation function operates on the entire document
      * so it does not require a field reference.
      * 
@@ -344,11 +434,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Count(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Count_descriptor; @@ -372,14 +457,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
        * Optional. Optional constraint on the maximum number of documents to
        * count.
+       *
        * This provides a way to set an upper bound on the number of documents
        * to scan, limiting latency, and cost.
+       *
        * Unspecified is interpreted as no bound.
+       *
        * High-Level Example:
+       *
        * ```
        * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
        * ```
+       *
        * Requires:
+       *
        * * Must be greater than zero when present.
        * 
* @@ -398,14 +489,20 @@ public boolean hasUpTo() { *
        * Optional. Optional constraint on the maximum number of documents to
        * count.
+       *
        * This provides a way to set an upper bound on the number of documents
        * to scan, limiting latency, and cost.
+       *
        * Unspecified is interpreted as no bound.
+       *
        * High-Level Example:
+       *
        * ```
        * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
        * ```
+       *
        * Requires:
+       *
        * * Must be greater than zero when present.
        * 
* @@ -424,14 +521,20 @@ public com.google.protobuf.Int64Value getUpTo() { *
        * Optional. Optional constraint on the maximum number of documents to
        * count.
+       *
        * This provides a way to set an upper bound on the number of documents
        * to scan, limiting latency, and cost.
+       *
        * Unspecified is interpreted as no bound.
+       *
        * High-Level Example:
+       *
        * ```
        * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
        * ```
+       *
        * Requires:
+       *
        * * Must be greater than zero when present.
        * 
* @@ -617,6 +720,7 @@ protected Builder newBuilderForType( * *
        * Count of documents that match the query.
+       *
        * The `COUNT(*)` aggregation function operates on the entire document
        * so it does not require a field reference.
        * 
@@ -824,14 +928,20 @@ public Builder mergeFrom( *
          * Optional. Optional constraint on the maximum number of documents to
          * count.
+         *
          * This provides a way to set an upper bound on the number of documents
          * to scan, limiting latency, and cost.
+         *
          * Unspecified is interpreted as no bound.
+         *
          * High-Level Example:
+         *
          * ```
          * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
          * ```
+         *
          * Requires:
+         *
          * * Must be greater than zero when present.
          * 
* @@ -849,14 +959,20 @@ public boolean hasUpTo() { *
          * Optional. Optional constraint on the maximum number of documents to
          * count.
+         *
          * This provides a way to set an upper bound on the number of documents
          * to scan, limiting latency, and cost.
+         *
          * Unspecified is interpreted as no bound.
+         *
          * High-Level Example:
+         *
          * ```
          * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
          * ```
+         *
          * Requires:
+         *
          * * Must be greater than zero when present.
          * 
* @@ -878,14 +994,20 @@ public com.google.protobuf.Int64Value getUpTo() { *
          * Optional. Optional constraint on the maximum number of documents to
          * count.
+         *
          * This provides a way to set an upper bound on the number of documents
          * to scan, limiting latency, and cost.
+         *
          * Unspecified is interpreted as no bound.
+         *
          * High-Level Example:
+         *
          * ```
          * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
          * ```
+         *
          * Requires:
+         *
          * * Must be greater than zero when present.
          * 
* @@ -911,14 +1033,20 @@ public Builder setUpTo(com.google.protobuf.Int64Value value) { *
          * Optional. Optional constraint on the maximum number of documents to
          * count.
+         *
          * This provides a way to set an upper bound on the number of documents
          * to scan, limiting latency, and cost.
+         *
          * Unspecified is interpreted as no bound.
+         *
          * High-Level Example:
+         *
          * ```
          * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
          * ```
+         *
          * Requires:
+         *
          * * Must be greater than zero when present.
          * 
* @@ -941,14 +1069,20 @@ public Builder setUpTo(com.google.protobuf.Int64Value.Builder builderForValue) { *
          * Optional. Optional constraint on the maximum number of documents to
          * count.
+         *
          * This provides a way to set an upper bound on the number of documents
          * to scan, limiting latency, and cost.
+         *
          * Unspecified is interpreted as no bound.
+         *
          * High-Level Example:
+         *
          * ```
          * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
          * ```
+         *
          * Requires:
+         *
          * * Must be greater than zero when present.
          * 
* @@ -977,14 +1111,20 @@ public Builder mergeUpTo(com.google.protobuf.Int64Value value) { *
          * Optional. Optional constraint on the maximum number of documents to
          * count.
+         *
          * This provides a way to set an upper bound on the number of documents
          * to scan, limiting latency, and cost.
+         *
          * Unspecified is interpreted as no bound.
+         *
          * High-Level Example:
+         *
          * ```
          * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
          * ```
+         *
          * Requires:
+         *
          * * Must be greater than zero when present.
          * 
* @@ -1007,14 +1147,20 @@ public Builder clearUpTo() { *
          * Optional. Optional constraint on the maximum number of documents to
          * count.
+         *
          * This provides a way to set an upper bound on the number of documents
          * to scan, limiting latency, and cost.
+         *
          * Unspecified is interpreted as no bound.
+         *
          * High-Level Example:
+         *
          * ```
          * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
          * ```
+         *
          * Requires:
+         *
          * * Must be greater than zero when present.
          * 
* @@ -1032,14 +1178,20 @@ public com.google.protobuf.Int64Value.Builder getUpToBuilder() { *
          * Optional. Optional constraint on the maximum number of documents to
          * count.
+         *
          * This provides a way to set an upper bound on the number of documents
          * to scan, limiting latency, and cost.
+         *
          * Unspecified is interpreted as no bound.
+         *
          * High-Level Example:
+         *
          * ```
          * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
          * ```
+         *
          * Requires:
+         *
          * * Must be greater than zero when present.
          * 
* @@ -1059,14 +1211,20 @@ public com.google.protobuf.Int64ValueOrBuilder getUpToOrBuilder() { *
          * Optional. Optional constraint on the maximum number of documents to
          * count.
+         *
          * This provides a way to set an upper bound on the number of documents
          * to scan, limiting latency, and cost.
+         *
          * Unspecified is interpreted as no bound.
+         *
          * High-Level Example:
+         *
          * ```
          * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
          * ```
+         *
          * Requires:
+         *
          * * Must be greater than zero when present.
          * 
* @@ -1158,526 +1316,2256 @@ public com.google.protobuf.Parser getParserForType() { } } - private int operatorCase_ = 0; - private java.lang.Object operator_; - - public enum OperatorCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - COUNT(1), - OPERATOR_NOT_SET(0); - private final int value; + public interface SumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) + com.google.protobuf.MessageOrBuilder { - private OperatorCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+       * The field to aggregate on.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + * + * @return Whether the field field is set. */ - @java.lang.Deprecated - public static OperatorCase valueOf(int value) { - return forNumber(value); - } - - public static OperatorCase forNumber(int value) { - switch (value) { - case 1: - return COUNT; - case 0: - return OPERATOR_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OperatorCase getOperatorCase() { - return OperatorCase.forNumber(operatorCase_); + boolean hasField(); + /** + * + * + *
+       * The field to aggregate on.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + * + * @return The field. + */ + com.google.firestore.v1.StructuredQuery.FieldReference getField(); + /** + * + * + *
+       * The field to aggregate on.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder(); } - - public static final int COUNT_FIELD_NUMBER = 1; /** * * *
-     * Count aggregator.
-     * 
- * - * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; - * - * @return Whether the count field is set. - */ - @java.lang.Override - public boolean hasCount() { - return operatorCase_ == 1; - } - /** - * + * Sum of the values of the requested field. * - *
-     * Count aggregator.
-     * 
+ * * Only numeric values will be aggregated. All non-numeric values + * including `NULL` are skipped. * - * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * * If the aggregated values contain `NaN`, returns `NaN`. Infinity math + * follows IEEE-754 standards. * - * @return The count. - */ - @java.lang.Override - public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count getCount() { - if (operatorCase_ == 1) { - return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_; - } - return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count - .getDefaultInstance(); - } - /** + * * If the aggregated value set is empty, returns 0. * + * * Returns a 64-bit integer if all aggregated numbers are integers and the + * sum result does not overflow. Otherwise, the result is returned as a + * double. Note that even if all the aggregated values are integers, the + * result is returned as a double if it cannot fit within a 64-bit signed + * integer. When this occurs, the returned value will lose precision. * - *
-     * Count aggregator.
+     * * When underflow occurs, floating-point aggregation is non-deterministic.
+     * This means that running the same query repeatedly without any changes to
+     * the underlying values could produce slightly different results each
+     * time. In those cases, values should be stored as integers over
+     * floating-point numbers.
      * 
* - * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * Protobuf type {@code google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum} */ - @java.lang.Override - public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.CountOrBuilder - getCountOrBuilder() { - if (operatorCase_ == 1) { - return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_; + public static final class Sum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) + SumOrBuilder { + private static final long serialVersionUID = 0L; + // Use Sum.newBuilder() to construct. + private Sum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count - .getDefaultInstance(); - } - public static final int ALIAS_FIELD_NUMBER = 7; + private Sum() {} - @SuppressWarnings("serial") - private volatile java.lang.Object alias_ = ""; - /** - * - * - *
-     * Optional. Optional name of the field to store the result of the
-     * aggregation into.
-     * If not provided, Firestore will pick a default name following the format
-     * `field_<incremental_id++>`. For example:
-     * ```
-     * AGGREGATE
-     *   COUNT_UP_TO(1) AS count_up_to_1,
-     *   COUNT_UP_TO(2),
-     *   COUNT_UP_TO(3) AS count_up_to_3,
-     *   COUNT(*)
-     * OVER (
-     *   ...
-     * );
-     * ```
-     * becomes:
-     * ```
-     * AGGREGATE
-     *   COUNT_UP_TO(1) AS count_up_to_1,
-     *   COUNT_UP_TO(2) AS field_1,
-     *   COUNT_UP_TO(3) AS count_up_to_3,
-     *   COUNT(*) AS field_2
-     * OVER (
-     *   ...
-     * );
-     * ```
-     * Requires:
-     * * Must be unique across all aggregation aliases.
-     * * Conform to [document field name][google.firestore.v1.Document.fields]
-     * limitations.
-     * 
- * - * string alias = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The alias. - */ - @java.lang.Override - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Sum(); } - } - /** - * - * - *
-     * Optional. Optional name of the field to store the result of the
-     * aggregation into.
-     * If not provided, Firestore will pick a default name following the format
-     * `field_<incremental_id++>`. For example:
-     * ```
-     * AGGREGATE
-     *   COUNT_UP_TO(1) AS count_up_to_1,
-     *   COUNT_UP_TO(2),
-     *   COUNT_UP_TO(3) AS count_up_to_3,
-     *   COUNT(*)
-     * OVER (
-     *   ...
-     * );
-     * ```
-     * becomes:
-     * ```
-     * AGGREGATE
-     *   COUNT_UP_TO(1) AS count_up_to_1,
-     *   COUNT_UP_TO(2) AS field_1,
-     *   COUNT_UP_TO(3) AS count_up_to_3,
-     *   COUNT(*) AS field_2
-     * OVER (
-     *   ...
-     * );
-     * ```
-     * Requires:
-     * * Must be unique across all aggregation aliases.
-     * * Conform to [document field name][google.firestore.v1.Document.fields]
-     * limitations.
-     * 
- * - * string alias = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for alias. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Sum_descriptor; } - } - private byte memoizedIsInitialized = -1; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Sum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.class, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.Builder.class); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int FIELD_FIELD_NUMBER = 1; + private com.google.firestore.v1.StructuredQuery.FieldReference field_; + /** + * + * + *
+       * The field to aggregate on.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + * + * @return Whether the field field is set. + */ + @java.lang.Override + public boolean hasField() { + return field_ != null; + } + /** + * + * + *
+       * The field to aggregate on.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + * + * @return The field. + */ + @java.lang.Override + public com.google.firestore.v1.StructuredQuery.FieldReference getField() { + return field_ == null + ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; + } + /** + * + * + *
+       * The field to aggregate on.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + @java.lang.Override + public com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder() { + return field_ == null + ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; + } - memoizedIsInitialized = 1; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operatorCase_ == 1) { - output.writeMessage( - 1, (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, alias_); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (field_ != null) { + output.writeMessage(1, getField()); + } + getUnknownFields().writeTo(output); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - size = 0; - if (operatorCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, alias_); + size = 0; + if (field_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getField()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum)) { + return super.equals(obj); + } + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum other = + (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) obj; + + if (hasField() != other.hasField()) return false; + if (hasField()) { + if (!getField().equals(other.getField())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } - if (!(obj instanceof com.google.firestore.v1.StructuredAggregationQuery.Aggregation)) { - return super.equals(obj); + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasField()) { + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - com.google.firestore.v1.StructuredAggregationQuery.Aggregation other = - (com.google.firestore.v1.StructuredAggregationQuery.Aggregation) obj; - if (!getAlias().equals(other.getAlias())) return false; - if (!getOperatorCase().equals(other.getOperatorCase())) return false; - switch (operatorCase_) { - case 1: - if (!getCount().equals(other.getCount())) return false; - break; - case 0: - default: + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ALIAS_FIELD_NUMBER; - hash = (53 * hash) + getAlias().hashCode(); - switch (operatorCase_) { - case 1: - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCount().hashCode(); - break; - case 0: - default: + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.firestore.v1.StructuredAggregationQuery.Aggregation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Defines an aggregation that produces a single result.
-     * 
- * - * Protobuf type {@code google.firestore.v1.StructuredAggregationQuery.Aggregation} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.firestore.v1.StructuredAggregationQuery.Aggregation) - com.google.firestore.v1.StructuredAggregationQuery.AggregationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_descriptor; + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.class, - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Builder.class); + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - // Construct using com.google.firestore.v1.StructuredAggregationQuery.Aggregation.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (countBuilder_ != null) { - countBuilder_.clear(); - } - alias_ = ""; - operatorCase_ = 0; - operator_ = null; - return this; + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.firestore.v1.QueryProto - .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_descriptor; + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - @java.lang.Override - public com.google.firestore.v1.StructuredAggregationQuery.Aggregation - getDefaultInstanceForType() { - return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.getDefaultInstance(); + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - @java.lang.Override - public com.google.firestore.v1.StructuredAggregationQuery.Aggregation build() { - com.google.firestore.v1.StructuredAggregationQuery.Aggregation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - @java.lang.Override - public com.google.firestore.v1.StructuredAggregationQuery.Aggregation buildPartial() { - com.google.firestore.v1.StructuredAggregationQuery.Aggregation result = - new com.google.firestore.v1.StructuredAggregationQuery.Aggregation(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - private void buildPartial0( - com.google.firestore.v1.StructuredAggregationQuery.Aggregation result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.alias_ = alias_; - } + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - private void buildPartialOneofs( - com.google.firestore.v1.StructuredAggregationQuery.Aggregation result) { - result.operatorCase_ = operatorCase_; - result.operator_ = this.operator_; - if (operatorCase_ == 1 && countBuilder_ != null) { - result.operator_ = countBuilder_.build(); - } + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder clone() { - return super.clone(); + public Builder newBuilderForType() { + return newBuilder(); } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public static Builder newBuilder( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Sum of the values of the requested field.
+       *
+       * * Only numeric values will be aggregated. All non-numeric values
+       * including `NULL` are skipped.
+       *
+       * * If the aggregated values contain `NaN`, returns `NaN`. Infinity math
+       * follows IEEE-754 standards.
+       *
+       * * If the aggregated value set is empty, returns 0.
+       *
+       * * Returns a 64-bit integer if all aggregated numbers are integers and the
+       * sum result does not overflow. Otherwise, the result is returned as a
+       * double. Note that even if all the aggregated values are integers, the
+       * result is returned as a double if it cannot fit within a 64-bit signed
+       * integer. When this occurs, the returned value will lose precision.
+       *
+       * * When underflow occurs, floating-point aggregation is non-deterministic.
+       * This means that running the same query repeatedly without any changes to
+       * the underlying values could produce slightly different results each
+       * time. In those cases, values should be stored as integers over
+       * floating-point numbers.
+       * 
+ * + * Protobuf type {@code google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.SumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Sum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Sum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.class, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.Builder.class); + } + + // Construct using + // com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + field_ = null; + if (fieldBuilder_ != null) { + fieldBuilder_.dispose(); + fieldBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Sum_descriptor; + } + + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + getDefaultInstanceForType() { + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum build() { + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum buildPartial() { + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum result = + new com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.field_ = fieldBuilder_ == null ? field_ : fieldBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) { + return mergeFrom( + (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum other) { + if (other + == com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + .getDefaultInstance()) return this; + if (other.hasField()) { + mergeField(other.getField()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFieldFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.firestore.v1.StructuredQuery.FieldReference field_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredQuery.FieldReference, + com.google.firestore.v1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder> + fieldBuilder_; + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + * + * @return Whether the field field is set. + */ + public boolean hasField() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + * + * @return The field. + */ + public com.google.firestore.v1.StructuredQuery.FieldReference getField() { + if (fieldBuilder_ == null) { + return field_ == null + ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; + } else { + return fieldBuilder_.getMessage(); + } + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public Builder setField(com.google.firestore.v1.StructuredQuery.FieldReference value) { + if (fieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + } else { + fieldBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public Builder setField( + com.google.firestore.v1.StructuredQuery.FieldReference.Builder builderForValue) { + if (fieldBuilder_ == null) { + field_ = builderForValue.build(); + } else { + fieldBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public Builder mergeField(com.google.firestore.v1.StructuredQuery.FieldReference value) { + if (fieldBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && field_ != null + && field_ + != com.google.firestore.v1.StructuredQuery.FieldReference + .getDefaultInstance()) { + getFieldBuilder().mergeFrom(value); + } else { + field_ = value; + } + } else { + fieldBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public Builder clearField() { + bitField0_ = (bitField0_ & ~0x00000001); + field_ = null; + if (fieldBuilder_ != null) { + fieldBuilder_.dispose(); + fieldBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1.StructuredQuery.FieldReference.Builder getFieldBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFieldFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder() { + if (fieldBuilder_ != null) { + return fieldBuilder_.getMessageOrBuilder(); + } else { + return field_ == null + ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; + } + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredQuery.FieldReference, + com.google.firestore.v1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder> + getFieldFieldBuilder() { + if (fieldBuilder_ == null) { + fieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredQuery.FieldReference, + com.google.firestore.v1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder>( + getField(), getParentForChildren(), isClean()); + field_ = null; + } + return fieldBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) + } + + // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) + private static final com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum(); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AvgOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The field to aggregate on.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + * + * @return Whether the field field is set. + */ + boolean hasField(); + /** + * + * + *
+       * The field to aggregate on.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + * + * @return The field. + */ + com.google.firestore.v1.StructuredQuery.FieldReference getField(); + /** + * + * + *
+       * The field to aggregate on.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder(); + } + /** + * + * + *
+     * Average of the values of the requested field.
+     *
+     * * Only numeric values will be aggregated. All non-numeric values
+     * including `NULL` are skipped.
+     *
+     * * If the aggregated values contain `NaN`, returns `NaN`. Infinity math
+     * follows IEEE-754 standards.
+     *
+     * * If the aggregated value set is empty, returns `NULL`.
+     *
+     * * Always returns the result as a double.
+     * 
+ * + * Protobuf type {@code google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg} + */ + public static final class Avg extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) + AvgOrBuilder { + private static final long serialVersionUID = 0L; + // Use Avg.newBuilder() to construct. + private Avg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Avg() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Avg(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Avg_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Avg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.class, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.Builder.class); + } + + public static final int FIELD_FIELD_NUMBER = 1; + private com.google.firestore.v1.StructuredQuery.FieldReference field_; + /** + * + * + *
+       * The field to aggregate on.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + * + * @return Whether the field field is set. + */ + @java.lang.Override + public boolean hasField() { + return field_ != null; + } + /** + * + * + *
+       * The field to aggregate on.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + * + * @return The field. + */ + @java.lang.Override + public com.google.firestore.v1.StructuredQuery.FieldReference getField() { + return field_ == null + ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; + } + /** + * + * + *
+       * The field to aggregate on.
+       * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + @java.lang.Override + public com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder() { + return field_ == null + ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (field_ != null) { + output.writeMessage(1, getField()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (field_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getField()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg)) { + return super.equals(obj); + } + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg other = + (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) obj; + + if (hasField() != other.hasField()) return false; + if (hasField()) { + if (!getField().equals(other.getField())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasField()) { + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Average of the values of the requested field.
+       *
+       * * Only numeric values will be aggregated. All non-numeric values
+       * including `NULL` are skipped.
+       *
+       * * If the aggregated values contain `NaN`, returns `NaN`. Infinity math
+       * follows IEEE-754 standards.
+       *
+       * * If the aggregated value set is empty, returns `NULL`.
+       *
+       * * Always returns the result as a double.
+       * 
+ * + * Protobuf type {@code google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.AvgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Avg_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Avg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.class, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.Builder.class); + } + + // Construct using + // com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + field_ = null; + if (fieldBuilder_ != null) { + fieldBuilder_.dispose(); + fieldBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_Avg_descriptor; + } + + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg + getDefaultInstanceForType() { + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg build() { + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg buildPartial() { + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg result = + new com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.field_ = fieldBuilder_ == null ? field_ : fieldBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) { + return mergeFrom( + (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg other) { + if (other + == com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg + .getDefaultInstance()) return this; + if (other.hasField()) { + mergeField(other.getField()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFieldFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.firestore.v1.StructuredQuery.FieldReference field_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredQuery.FieldReference, + com.google.firestore.v1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder> + fieldBuilder_; + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + * + * @return Whether the field field is set. + */ + public boolean hasField() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + * + * @return The field. + */ + public com.google.firestore.v1.StructuredQuery.FieldReference getField() { + if (fieldBuilder_ == null) { + return field_ == null + ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; + } else { + return fieldBuilder_.getMessage(); + } + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public Builder setField(com.google.firestore.v1.StructuredQuery.FieldReference value) { + if (fieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + } else { + fieldBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public Builder setField( + com.google.firestore.v1.StructuredQuery.FieldReference.Builder builderForValue) { + if (fieldBuilder_ == null) { + field_ = builderForValue.build(); + } else { + fieldBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public Builder mergeField(com.google.firestore.v1.StructuredQuery.FieldReference value) { + if (fieldBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && field_ != null + && field_ + != com.google.firestore.v1.StructuredQuery.FieldReference + .getDefaultInstance()) { + getFieldBuilder().mergeFrom(value); + } else { + field_ = value; + } + } else { + fieldBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public Builder clearField() { + bitField0_ = (bitField0_ & ~0x00000001); + field_ = null; + if (fieldBuilder_ != null) { + fieldBuilder_.dispose(); + fieldBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1.StructuredQuery.FieldReference.Builder getFieldBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFieldFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + public com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder() { + if (fieldBuilder_ != null) { + return fieldBuilder_.getMessageOrBuilder(); + } else { + return field_ == null + ? com.google.firestore.v1.StructuredQuery.FieldReference.getDefaultInstance() + : field_; + } + } + /** + * + * + *
+         * The field to aggregate on.
+         * 
+ * + * .google.firestore.v1.StructuredQuery.FieldReference field = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredQuery.FieldReference, + com.google.firestore.v1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder> + getFieldFieldBuilder() { + if (fieldBuilder_ == null) { + fieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredQuery.FieldReference, + com.google.firestore.v1.StructuredQuery.FieldReference.Builder, + com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder>( + getField(), getParentForChildren(), isClean()); + field_ = null; + } + return fieldBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) + } + + // @@protoc_insertion_point(class_scope:google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) + private static final com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg(); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Avg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int operatorCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object operator_; + + public enum OperatorCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + COUNT(1), + SUM(2), + AVG(3), + OPERATOR_NOT_SET(0); + private final int value; + + private OperatorCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperatorCase valueOf(int value) { + return forNumber(value); + } + + public static OperatorCase forNumber(int value) { + switch (value) { + case 1: + return COUNT; + case 2: + return SUM; + case 3: + return AVG; + case 0: + return OPERATOR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OperatorCase getOperatorCase() { + return OperatorCase.forNumber(operatorCase_); + } + + public static final int COUNT_FIELD_NUMBER = 1; + /** + * + * + *
+     * Count aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * + * @return Whether the count field is set. + */ + @java.lang.Override + public boolean hasCount() { + return operatorCase_ == 1; + } + /** + * + * + *
+     * Count aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * + * @return The count. + */ + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count getCount() { + if (operatorCase_ == 1) { + return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_; + } + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count + .getDefaultInstance(); + } + /** + * + * + *
+     * Count aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + */ + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.CountOrBuilder + getCountOrBuilder() { + if (operatorCase_ == 1) { + return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_; + } + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count + .getDefaultInstance(); + } + + public static final int SUM_FIELD_NUMBER = 2; + /** + * + * + *
+     * Sum aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + * + * @return Whether the sum field is set. + */ + @java.lang.Override + public boolean hasSum() { + return operatorCase_ == 2; + } + /** + * + * + *
+     * Sum aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + * + * @return The sum. + */ + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum getSum() { + if (operatorCase_ == 2) { + return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) operator_; + } + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + .getDefaultInstance(); + } + /** + * + * + *
+     * Sum aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + */ + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.SumOrBuilder + getSumOrBuilder() { + if (operatorCase_ == 2) { + return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) operator_; + } + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + .getDefaultInstance(); + } + + public static final int AVG_FIELD_NUMBER = 3; + /** + * + * + *
+     * Average aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; + * + * @return Whether the avg field is set. + */ + @java.lang.Override + public boolean hasAvg() { + return operatorCase_ == 3; + } + /** + * + * + *
+     * Average aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; + * + * @return The avg. + */ + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg getAvg() { + if (operatorCase_ == 3) { + return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) operator_; + } + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg + .getDefaultInstance(); + } + /** + * + * + *
+     * Average aggregator.
+     * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; + */ + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.AvgOrBuilder + getAvgOrBuilder() { + if (operatorCase_ == 3) { + return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) operator_; + } + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg + .getDefaultInstance(); + } + + public static final int ALIAS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object alias_ = ""; + /** + * + * + *
+     * Optional. Optional name of the field to store the result of the
+     * aggregation into.
+     *
+     * If not provided, Firestore will pick a default name following the format
+     * `field_<incremental_id++>`. For example:
+     *
+     * ```
+     * AGGREGATE
+     *   COUNT_UP_TO(1) AS count_up_to_1,
+     *   COUNT_UP_TO(2),
+     *   COUNT_UP_TO(3) AS count_up_to_3,
+     *   COUNT(*)
+     * OVER (
+     *   ...
+     * );
+     * ```
+     *
+     * becomes:
+     *
+     * ```
+     * AGGREGATE
+     *   COUNT_UP_TO(1) AS count_up_to_1,
+     *   COUNT_UP_TO(2) AS field_1,
+     *   COUNT_UP_TO(3) AS count_up_to_3,
+     *   COUNT(*) AS field_2
+     * OVER (
+     *   ...
+     * );
+     * ```
+     *
+     * Requires:
+     *
+     * * Must be unique across all aggregation aliases.
+     * * Conform to [document field name][google.firestore.v1.Document.fields]
+     * limitations.
+     * 
+ * + * string alias = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. Optional name of the field to store the result of the
+     * aggregation into.
+     *
+     * If not provided, Firestore will pick a default name following the format
+     * `field_<incremental_id++>`. For example:
+     *
+     * ```
+     * AGGREGATE
+     *   COUNT_UP_TO(1) AS count_up_to_1,
+     *   COUNT_UP_TO(2),
+     *   COUNT_UP_TO(3) AS count_up_to_3,
+     *   COUNT(*)
+     * OVER (
+     *   ...
+     * );
+     * ```
+     *
+     * becomes:
+     *
+     * ```
+     * AGGREGATE
+     *   COUNT_UP_TO(1) AS count_up_to_1,
+     *   COUNT_UP_TO(2) AS field_1,
+     *   COUNT_UP_TO(3) AS count_up_to_3,
+     *   COUNT(*) AS field_2
+     * OVER (
+     *   ...
+     * );
+     * ```
+     *
+     * Requires:
+     *
+     * * Must be unique across all aggregation aliases.
+     * * Conform to [document field name][google.firestore.v1.Document.fields]
+     * limitations.
+     * 
+ * + * string alias = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (operatorCase_ == 1) { + output.writeMessage( + 1, (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_); + } + if (operatorCase_ == 2) { + output.writeMessage( + 2, (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) operator_); + } + if (operatorCase_ == 3) { + output.writeMessage( + 3, (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) operator_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, alias_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operatorCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_); + } + if (operatorCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) operator_); + } + if (operatorCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) operator_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, alias_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.v1.StructuredAggregationQuery.Aggregation)) { + return super.equals(obj); + } + com.google.firestore.v1.StructuredAggregationQuery.Aggregation other = + (com.google.firestore.v1.StructuredAggregationQuery.Aggregation) obj; + + if (!getAlias().equals(other.getAlias())) return false; + if (!getOperatorCase().equals(other.getOperatorCase())) return false; + switch (operatorCase_) { + case 1: + if (!getCount().equals(other.getCount())) return false; + break; + case 2: + if (!getSum().equals(other.getSum())) return false; + break; + case 3: + if (!getAvg().equals(other.getAvg())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + switch (operatorCase_) { + case 1: + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCount().hashCode(); + break; + case 2: + hash = (37 * hash) + SUM_FIELD_NUMBER; + hash = (53 * hash) + getSum().hashCode(); + break; + case 3: + hash = (37 * hash) + AVG_FIELD_NUMBER; + hash = (53 * hash) + getAvg().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.v1.StructuredAggregationQuery.Aggregation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Defines an aggregation that produces a single result.
+     * 
+ * + * Protobuf type {@code google.firestore.v1.StructuredAggregationQuery.Aggregation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.firestore.v1.StructuredAggregationQuery.Aggregation) + com.google.firestore.v1.StructuredAggregationQuery.AggregationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.class, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Builder.class); + } + + // Construct using com.google.firestore.v1.StructuredAggregationQuery.Aggregation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (countBuilder_ != null) { + countBuilder_.clear(); + } + if (sumBuilder_ != null) { + sumBuilder_.clear(); + } + if (avgBuilder_ != null) { + avgBuilder_.clear(); + } + alias_ = ""; + operatorCase_ = 0; + operator_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.v1.QueryProto + .internal_static_google_firestore_v1_StructuredAggregationQuery_Aggregation_descriptor; + } + + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation + getDefaultInstanceForType() { + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation build() { + com.google.firestore.v1.StructuredAggregationQuery.Aggregation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation buildPartial() { + com.google.firestore.v1.StructuredAggregationQuery.Aggregation result = + new com.google.firestore.v1.StructuredAggregationQuery.Aggregation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.alias_ = alias_; + } + } + + private void buildPartialOneofs( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation result) { + result.operatorCase_ = operatorCase_; + result.operator_ = this.operator_; + if (operatorCase_ == 1 && countBuilder_ != null) { + result.operator_ = countBuilder_.build(); + } + if (operatorCase_ == 2 && sumBuilder_ != null) { + result.operator_ = sumBuilder_.build(); + } + if (operatorCase_ == 3 && avgBuilder_ != null) { + result.operator_ = avgBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { @@ -1689,147 +3577,613 @@ public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.firestore.v1.StructuredAggregationQuery.Aggregation) { return mergeFrom((com.google.firestore.v1.StructuredAggregationQuery.Aggregation) other); } else { - super.mergeFrom(other); - return this; + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation other) { + if (other + == com.google.firestore.v1.StructuredAggregationQuery.Aggregation.getDefaultInstance()) + return this; + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + bitField0_ |= 0x00000008; + onChanged(); + } + switch (other.getOperatorCase()) { + case COUNT: + { + mergeCount(other.getCount()); + break; + } + case SUM: + { + mergeSum(other.getSum()); + break; + } + case AVG: + { + mergeAvg(other.getAvg()); + break; + } + case OPERATOR_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCountFieldBuilder().getBuilder(), extensionRegistry); + operatorCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getSumFieldBuilder().getBuilder(), extensionRegistry); + operatorCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getAvgFieldBuilder().getBuilder(), extensionRegistry); + operatorCase_ = 3; + break; + } // case 26 + case 58: + { + alias_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int operatorCase_ = 0; + private java.lang.Object operator_; + + public OperatorCase getOperatorCase() { + return OperatorCase.forNumber(operatorCase_); + } + + public Builder clearOperator() { + operatorCase_ = 0; + operator_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.Builder, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.CountOrBuilder> + countBuilder_; + /** + * + * + *
+       * Count aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * + * @return Whether the count field is set. + */ + @java.lang.Override + public boolean hasCount() { + return operatorCase_ == 1; + } + /** + * + * + *
+       * Count aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * + * @return The count. + */ + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count getCount() { + if (countBuilder_ == null) { + if (operatorCase_ == 1) { + return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_; + } + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count + .getDefaultInstance(); + } else { + if (operatorCase_ == 1) { + return countBuilder_.getMessage(); + } + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Count aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + */ + public Builder setCount( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count value) { + if (countBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operator_ = value; + onChanged(); + } else { + countBuilder_.setMessage(value); + } + operatorCase_ = 1; + return this; + } + /** + * + * + *
+       * Count aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + */ + public Builder setCount( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.Builder + builderForValue) { + if (countBuilder_ == null) { + operator_ = builderForValue.build(); + onChanged(); + } else { + countBuilder_.setMessage(builderForValue.build()); } + operatorCase_ = 1; + return this; } - - public Builder mergeFrom( - com.google.firestore.v1.StructuredAggregationQuery.Aggregation other) { - if (other - == com.google.firestore.v1.StructuredAggregationQuery.Aggregation.getDefaultInstance()) - return this; - if (!other.getAlias().isEmpty()) { - alias_ = other.alias_; - bitField0_ |= 0x00000002; + /** + * + * + *
+       * Count aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + */ + public Builder mergeCount( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count value) { + if (countBuilder_ == null) { + if (operatorCase_ == 1 + && operator_ + != com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count + .getDefaultInstance()) { + operator_ = + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.newBuilder( + (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) + operator_) + .mergeFrom(value) + .buildPartial(); + } else { + operator_ = value; + } onChanged(); + } else { + if (operatorCase_ == 1) { + countBuilder_.mergeFrom(value); + } else { + countBuilder_.setMessage(value); + } } - switch (other.getOperatorCase()) { - case COUNT: - { - mergeCount(other.getCount()); - break; - } - case OPERATOR_NOT_SET: - { - break; - } + operatorCase_ = 1; + return this; + } + /** + * + * + *
+       * Count aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + */ + public Builder clearCount() { + if (countBuilder_ == null) { + if (operatorCase_ == 1) { + operatorCase_ = 0; + operator_ = null; + onChanged(); + } + } else { + if (operatorCase_ == 1) { + operatorCase_ = 0; + operator_ = null; + } + countBuilder_.clear(); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - + /** + * + * + *
+       * Count aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + */ + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.Builder + getCountBuilder() { + return getCountFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Count aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.CountOrBuilder + getCountOrBuilder() { + if ((operatorCase_ == 1) && (countBuilder_ != null)) { + return countBuilder_.getMessageOrBuilder(); + } else { + if (operatorCase_ == 1) { + return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_; + } + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Count aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.Builder, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.CountOrBuilder> + getCountFieldBuilder() { + if (countBuilder_ == null) { + if (!(operatorCase_ == 1)) { + operator_ = + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count + .getDefaultInstance(); + } + countBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.Builder, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.CountOrBuilder>( + (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_, + getParentForChildren(), + isClean()); + operator_ = null; + } + operatorCase_ = 1; + onChanged(); + return countBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.Builder, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.SumOrBuilder> + sumBuilder_; + /** + * + * + *
+       * Sum aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + * + * @return Whether the sum field is set. + */ @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + public boolean hasSum() { + return operatorCase_ == 2; + } + /** + * + * + *
+       * Sum aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + * + * @return The sum. + */ + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum getSum() { + if (sumBuilder_ == null) { + if (operatorCase_ == 2) { + return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) operator_; + } + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + .getDefaultInstance(); + } else { + if (operatorCase_ == 2) { + return sumBuilder_.getMessage(); + } + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + .getDefaultInstance(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getCountFieldBuilder().getBuilder(), extensionRegistry); - operatorCase_ = 1; - break; - } // case 10 - case 58: - { - alias_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + } + /** + * + * + *
+       * Sum aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + */ + public Builder setSum( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum value) { + if (sumBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operator_ = value; + onChanged(); + } else { + sumBuilder_.setMessage(value); + } + operatorCase_ = 2; + return this; + } + /** + * + * + *
+       * Sum aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + */ + public Builder setSum( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.Builder + builderForValue) { + if (sumBuilder_ == null) { + operator_ = builderForValue.build(); + onChanged(); + } else { + sumBuilder_.setMessage(builderForValue.build()); + } + operatorCase_ = 2; + return this; + } + /** + * + * + *
+       * Sum aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + */ + public Builder mergeSum( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum value) { + if (sumBuilder_ == null) { + if (operatorCase_ == 2 + && operator_ + != com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + .getDefaultInstance()) { + operator_ = + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.newBuilder( + (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) + operator_) + .mergeFrom(value) + .buildPartial(); + } else { + operator_ = value; + } onChanged(); - } // finally + } else { + if (operatorCase_ == 2) { + sumBuilder_.mergeFrom(value); + } else { + sumBuilder_.setMessage(value); + } + } + operatorCase_ = 2; return this; } - - private int operatorCase_ = 0; - private java.lang.Object operator_; - - public OperatorCase getOperatorCase() { - return OperatorCase.forNumber(operatorCase_); + /** + * + * + *
+       * Sum aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + */ + public Builder clearSum() { + if (sumBuilder_ == null) { + if (operatorCase_ == 2) { + operatorCase_ = 0; + operator_ = null; + onChanged(); + } + } else { + if (operatorCase_ == 2) { + operatorCase_ = 0; + operator_ = null; + } + sumBuilder_.clear(); + } + return this; } - - public Builder clearOperator() { - operatorCase_ = 0; - operator_ = null; + /** + * + * + *
+       * Sum aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + */ + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.Builder + getSumBuilder() { + return getSumFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Sum aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + */ + @java.lang.Override + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.SumOrBuilder + getSumOrBuilder() { + if ((operatorCase_ == 2) && (sumBuilder_ != null)) { + return sumBuilder_.getMessageOrBuilder(); + } else { + if (operatorCase_ == 2) { + return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) operator_; + } + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Sum aggregator.
+       * 
+ * + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.Builder, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.SumOrBuilder> + getSumFieldBuilder() { + if (sumBuilder_ == null) { + if (!(operatorCase_ == 2)) { + operator_ = + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum + .getDefaultInstance(); + } + sumBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.Builder, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.SumOrBuilder>( + (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum) operator_, + getParentForChildren(), + isClean()); + operator_ = null; + } + operatorCase_ = 2; onChanged(); - return this; + return sumBuilder_; } - private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count, - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.Builder, - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.CountOrBuilder> - countBuilder_; + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.Builder, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.AvgOrBuilder> + avgBuilder_; /** * * *
-       * Count aggregator.
+       * Average aggregator.
        * 
* - * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; * - * @return Whether the count field is set. + * @return Whether the avg field is set. */ @java.lang.Override - public boolean hasCount() { - return operatorCase_ == 1; + public boolean hasAvg() { + return operatorCase_ == 3; } /** * * *
-       * Count aggregator.
+       * Average aggregator.
        * 
* - * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; * - * @return The count. + * @return The avg. */ @java.lang.Override - public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count getCount() { - if (countBuilder_ == null) { - if (operatorCase_ == 1) { - return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_; + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg getAvg() { + if (avgBuilder_ == null) { + if (operatorCase_ == 3) { + return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) operator_; } - return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg .getDefaultInstance(); } else { - if (operatorCase_ == 1) { - return countBuilder_.getMessage(); + if (operatorCase_ == 3) { + return avgBuilder_.getMessage(); } - return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg .getDefaultInstance(); } } @@ -1837,65 +4191,65 @@ public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count getC * * *
-       * Count aggregator.
+       * Average aggregator.
        * 
* - * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; */ - public Builder setCount( - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count value) { - if (countBuilder_ == null) { + public Builder setAvg( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg value) { + if (avgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operator_ = value; onChanged(); } else { - countBuilder_.setMessage(value); + avgBuilder_.setMessage(value); } - operatorCase_ = 1; + operatorCase_ = 3; return this; } /** * * *
-       * Count aggregator.
+       * Average aggregator.
        * 
* - * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; */ - public Builder setCount( - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.Builder + public Builder setAvg( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.Builder builderForValue) { - if (countBuilder_ == null) { + if (avgBuilder_ == null) { operator_ = builderForValue.build(); onChanged(); } else { - countBuilder_.setMessage(builderForValue.build()); + avgBuilder_.setMessage(builderForValue.build()); } - operatorCase_ = 1; + operatorCase_ = 3; return this; } /** * * *
-       * Count aggregator.
+       * Average aggregator.
        * 
* - * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; */ - public Builder mergeCount( - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count value) { - if (countBuilder_ == null) { - if (operatorCase_ == 1 + public Builder mergeAvg( + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg value) { + if (avgBuilder_ == null) { + if (operatorCase_ == 3 && operator_ - != com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count + != com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg .getDefaultInstance()) { operator_ = - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.newBuilder( - (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.newBuilder( + (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) operator_) .mergeFrom(value) .buildPartial(); @@ -1904,37 +4258,37 @@ public Builder mergeCount( } onChanged(); } else { - if (operatorCase_ == 1) { - countBuilder_.mergeFrom(value); + if (operatorCase_ == 3) { + avgBuilder_.mergeFrom(value); } else { - countBuilder_.setMessage(value); + avgBuilder_.setMessage(value); } } - operatorCase_ = 1; + operatorCase_ = 3; return this; } /** * * *
-       * Count aggregator.
+       * Average aggregator.
        * 
* - * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; */ - public Builder clearCount() { - if (countBuilder_ == null) { - if (operatorCase_ == 1) { + public Builder clearAvg() { + if (avgBuilder_ == null) { + if (operatorCase_ == 3) { operatorCase_ = 0; operator_ = null; onChanged(); } } else { - if (operatorCase_ == 1) { + if (operatorCase_ == 3) { operatorCase_ = 0; operator_ = null; } - countBuilder_.clear(); + avgBuilder_.clear(); } return this; } @@ -1942,34 +4296,34 @@ public Builder clearCount() { * * *
-       * Count aggregator.
+       * Average aggregator.
        * 
* - * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; */ - public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.Builder - getCountBuilder() { - return getCountFieldBuilder().getBuilder(); + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.Builder + getAvgBuilder() { + return getAvgFieldBuilder().getBuilder(); } /** * * *
-       * Count aggregator.
+       * Average aggregator.
        * 
* - * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; */ @java.lang.Override - public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.CountOrBuilder - getCountOrBuilder() { - if ((operatorCase_ == 1) && (countBuilder_ != null)) { - return countBuilder_.getMessageOrBuilder(); + public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.AvgOrBuilder + getAvgOrBuilder() { + if ((operatorCase_ == 3) && (avgBuilder_ != null)) { + return avgBuilder_.getMessageOrBuilder(); } else { - if (operatorCase_ == 1) { - return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_; + if (operatorCase_ == 3) { + return (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) operator_; } - return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count + return com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg .getDefaultInstance(); } } @@ -1977,35 +4331,35 @@ public Builder clearCount() { * * *
-       * Count aggregator.
+       * Average aggregator.
        * 
* - * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1; + * .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count, - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.Builder, - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.CountOrBuilder> - getCountFieldBuilder() { - if (countBuilder_ == null) { - if (!(operatorCase_ == 1)) { + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.Builder, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.AvgOrBuilder> + getAvgFieldBuilder() { + if (avgBuilder_ == null) { + if (!(operatorCase_ == 3)) { operator_ = - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg .getDefaultInstance(); } - countBuilder_ = + avgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count, - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.Builder, - com.google.firestore.v1.StructuredAggregationQuery.Aggregation.CountOrBuilder>( - (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count) operator_, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.Builder, + com.google.firestore.v1.StructuredAggregationQuery.Aggregation.AvgOrBuilder>( + (com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg) operator_, getParentForChildren(), isClean()); operator_ = null; } - operatorCase_ = 1; + operatorCase_ = 3; onChanged(); - return countBuilder_; + return avgBuilder_; } private java.lang.Object alias_ = ""; @@ -2015,8 +4369,10 @@ public Builder clearCount() { *
        * Optional. Optional name of the field to store the result of the
        * aggregation into.
+       *
        * If not provided, Firestore will pick a default name following the format
        * `field_<incremental_id++>`. For example:
+       *
        * ```
        * AGGREGATE
        *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -2027,7 +4383,9 @@ public Builder clearCount() {
        *   ...
        * );
        * ```
+       *
        * becomes:
+       *
        * ```
        * AGGREGATE
        *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -2038,7 +4396,9 @@ public Builder clearCount() {
        *   ...
        * );
        * ```
+       *
        * Requires:
+       *
        * * Must be unique across all aggregation aliases.
        * * Conform to [document field name][google.firestore.v1.Document.fields]
        * limitations.
@@ -2065,8 +4425,10 @@ public java.lang.String getAlias() {
        * 
        * Optional. Optional name of the field to store the result of the
        * aggregation into.
+       *
        * If not provided, Firestore will pick a default name following the format
        * `field_<incremental_id++>`. For example:
+       *
        * ```
        * AGGREGATE
        *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -2077,7 +4439,9 @@ public java.lang.String getAlias() {
        *   ...
        * );
        * ```
+       *
        * becomes:
+       *
        * ```
        * AGGREGATE
        *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -2088,7 +4452,9 @@ public java.lang.String getAlias() {
        *   ...
        * );
        * ```
+       *
        * Requires:
+       *
        * * Must be unique across all aggregation aliases.
        * * Conform to [document field name][google.firestore.v1.Document.fields]
        * limitations.
@@ -2115,8 +4481,10 @@ public com.google.protobuf.ByteString getAliasBytes() {
        * 
        * Optional. Optional name of the field to store the result of the
        * aggregation into.
+       *
        * If not provided, Firestore will pick a default name following the format
        * `field_<incremental_id++>`. For example:
+       *
        * ```
        * AGGREGATE
        *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -2127,7 +4495,9 @@ public com.google.protobuf.ByteString getAliasBytes() {
        *   ...
        * );
        * ```
+       *
        * becomes:
+       *
        * ```
        * AGGREGATE
        *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -2138,7 +4508,9 @@ public com.google.protobuf.ByteString getAliasBytes() {
        *   ...
        * );
        * ```
+       *
        * Requires:
+       *
        * * Must be unique across all aggregation aliases.
        * * Conform to [document field name][google.firestore.v1.Document.fields]
        * limitations.
@@ -2154,7 +4526,7 @@ public Builder setAlias(java.lang.String value) {
           throw new NullPointerException();
         }
         alias_ = value;
-        bitField0_ |= 0x00000002;
+        bitField0_ |= 0x00000008;
         onChanged();
         return this;
       }
@@ -2164,8 +4536,10 @@ public Builder setAlias(java.lang.String value) {
        * 
        * Optional. Optional name of the field to store the result of the
        * aggregation into.
+       *
        * If not provided, Firestore will pick a default name following the format
        * `field_<incremental_id++>`. For example:
+       *
        * ```
        * AGGREGATE
        *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -2176,7 +4550,9 @@ public Builder setAlias(java.lang.String value) {
        *   ...
        * );
        * ```
+       *
        * becomes:
+       *
        * ```
        * AGGREGATE
        *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -2187,7 +4563,9 @@ public Builder setAlias(java.lang.String value) {
        *   ...
        * );
        * ```
+       *
        * Requires:
+       *
        * * Must be unique across all aggregation aliases.
        * * Conform to [document field name][google.firestore.v1.Document.fields]
        * limitations.
@@ -2199,7 +4577,7 @@ public Builder setAlias(java.lang.String value) {
        */
       public Builder clearAlias() {
         alias_ = getDefaultInstance().getAlias();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000008);
         onChanged();
         return this;
       }
@@ -2209,8 +4587,10 @@ public Builder clearAlias() {
        * 
        * Optional. Optional name of the field to store the result of the
        * aggregation into.
+       *
        * If not provided, Firestore will pick a default name following the format
        * `field_<incremental_id++>`. For example:
+       *
        * ```
        * AGGREGATE
        *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -2221,7 +4601,9 @@ public Builder clearAlias() {
        *   ...
        * );
        * ```
+       *
        * becomes:
+       *
        * ```
        * AGGREGATE
        *   COUNT_UP_TO(1) AS count_up_to_1,
@@ -2232,7 +4614,9 @@ public Builder clearAlias() {
        *   ...
        * );
        * ```
+       *
        * Requires:
+       *
        * * Must be unique across all aggregation aliases.
        * * Conform to [document field name][google.firestore.v1.Document.fields]
        * limitations.
@@ -2249,7 +4633,7 @@ public Builder setAliasBytes(com.google.protobuf.ByteString value) {
         }
         checkByteStringIsUtf8(value);
         alias_ = value;
-        bitField0_ |= 0x00000002;
+        bitField0_ |= 0x00000008;
         onChanged();
         return this;
       }
@@ -2322,6 +4706,8 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   private int queryTypeCase_ = 0;
+
+  @SuppressWarnings("serial")
   private java.lang.Object queryType_;
 
   public enum QueryTypeCase
@@ -2427,7 +4813,9 @@ public com.google.firestore.v1.StructuredQueryOrBuilder getStructuredQueryOrBuil
    * 
    * Optional. Series of aggregations to apply over the results of the
    * `structured_query`.
+   *
    * Requires:
+   *
    * * A minimum of one and maximum of five aggregations per query.
    * 
* @@ -2446,7 +4834,9 @@ public com.google.firestore.v1.StructuredQueryOrBuilder getStructuredQueryOrBuil *
    * Optional. Series of aggregations to apply over the results of the
    * `structured_query`.
+   *
    * Requires:
+   *
    * * A minimum of one and maximum of five aggregations per query.
    * 
* @@ -2466,7 +4856,9 @@ public com.google.firestore.v1.StructuredQueryOrBuilder getStructuredQueryOrBuil *
    * Optional. Series of aggregations to apply over the results of the
    * `structured_query`.
+   *
    * Requires:
+   *
    * * A minimum of one and maximum of five aggregations per query.
    * 
* @@ -2484,7 +4876,9 @@ public int getAggregationsCount() { *
    * Optional. Series of aggregations to apply over the results of the
    * `structured_query`.
+   *
    * Requires:
+   *
    * * A minimum of one and maximum of five aggregations per query.
    * 
* @@ -2502,7 +4896,9 @@ public com.google.firestore.v1.StructuredAggregationQuery.Aggregation getAggrega *
    * Optional. Series of aggregations to apply over the results of the
    * `structured_query`.
+   *
    * Requires:
+   *
    * * A minimum of one and maximum of five aggregations per query.
    * 
* @@ -3210,7 +5606,9 @@ private void ensureAggregationsIsMutable() { *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3232,7 +5630,9 @@ private void ensureAggregationsIsMutable() { *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3253,7 +5653,9 @@ public int getAggregationsCount() { *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3275,7 +5677,9 @@ public com.google.firestore.v1.StructuredAggregationQuery.Aggregation getAggrega *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3303,7 +5707,9 @@ public Builder setAggregations( *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3329,7 +5735,9 @@ public Builder setAggregations( *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3357,7 +5765,9 @@ public Builder addAggregations( *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3385,7 +5795,9 @@ public Builder addAggregations( *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3410,7 +5822,9 @@ public Builder addAggregations( *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3436,7 +5850,9 @@ public Builder addAggregations( *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3462,7 +5878,9 @@ public Builder addAllAggregations( *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3486,7 +5904,9 @@ public Builder clearAggregations() { *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3510,7 +5930,9 @@ public Builder removeAggregations(int index) { *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3528,7 +5950,9 @@ public Builder removeAggregations(int index) { *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3550,7 +5974,9 @@ public Builder removeAggregations(int index) { *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3573,7 +5999,9 @@ public Builder removeAggregations(int index) { *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3593,7 +6021,9 @@ public Builder removeAggregations(int index) { *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* @@ -3614,7 +6044,9 @@ public Builder removeAggregations(int index) { *
      * Optional. Series of aggregations to apply over the results of the
      * `structured_query`.
+     *
      * Requires:
+     *
      * * A minimum of one and maximum of five aggregations per query.
      * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQueryOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQueryOrBuilder.java index c57d69e11..d8b824c29 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQueryOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQueryOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -64,7 +64,9 @@ public interface StructuredAggregationQueryOrBuilder *
    * Optional. Series of aggregations to apply over the results of the
    * `structured_query`.
+   *
    * Requires:
+   *
    * * A minimum of one and maximum of five aggregations per query.
    * 
* @@ -80,7 +82,9 @@ public interface StructuredAggregationQueryOrBuilder *
    * Optional. Series of aggregations to apply over the results of the
    * `structured_query`.
+   *
    * Requires:
+   *
    * * A minimum of one and maximum of five aggregations per query.
    * 
* @@ -95,7 +99,9 @@ public interface StructuredAggregationQueryOrBuilder *
    * Optional. Series of aggregations to apply over the results of the
    * `structured_query`.
+   *
    * Requires:
+   *
    * * A minimum of one and maximum of five aggregations per query.
    * 
* @@ -110,7 +116,9 @@ public interface StructuredAggregationQueryOrBuilder *
    * Optional. Series of aggregations to apply over the results of the
    * `structured_query`.
+   *
    * Requires:
+   *
    * * A minimum of one and maximum of five aggregations per query.
    * 
* @@ -126,7 +134,9 @@ public interface StructuredAggregationQueryOrBuilder *
    * Optional. Series of aggregations to apply over the results of the
    * `structured_query`.
+   *
    * Requires:
+   *
    * * A minimum of one and maximum of five aggregations per query.
    * 
* @@ -137,5 +147,5 @@ public interface StructuredAggregationQueryOrBuilder com.google.firestore.v1.StructuredAggregationQuery.AggregationOrBuilder getAggregationsOrBuilder( int index); - public com.google.firestore.v1.StructuredAggregationQuery.QueryTypeCase getQueryTypeCase(); + com.google.firestore.v1.StructuredAggregationQuery.QueryTypeCase getQueryTypeCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java index 370084e48..b59d625d7 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StructuredQuery(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto .internal_static_google_firestore_v1_StructuredQuery_descriptor; @@ -301,11 +296,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CollectionSelector(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto .internal_static_google_firestore_v1_StructuredQuery_CollectionSelector_descriptor; @@ -1111,7 +1101,7 @@ public interface FilterOrBuilder */ com.google.firestore.v1.StructuredQuery.UnaryFilterOrBuilder getUnaryFilterOrBuilder(); - public com.google.firestore.v1.StructuredQuery.Filter.FilterTypeCase getFilterTypeCase(); + com.google.firestore.v1.StructuredQuery.Filter.FilterTypeCase getFilterTypeCase(); } /** * @@ -1140,11 +1130,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Filter(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto .internal_static_google_firestore_v1_StructuredQuery_Filter_descriptor; @@ -1161,6 +1146,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int filterTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object filterType_; public enum FilterTypeCase @@ -2557,7 +2544,9 @@ public interface CompositeFilterOrBuilder * *
      * The list of filters to combine.
+     *
      * Requires:
+     *
      * * At least one filter is present.
      * 
* @@ -2569,7 +2558,9 @@ public interface CompositeFilterOrBuilder * *
      * The list of filters to combine.
+     *
      * Requires:
+     *
      * * At least one filter is present.
      * 
* @@ -2581,7 +2572,9 @@ public interface CompositeFilterOrBuilder * *
      * The list of filters to combine.
+     *
      * Requires:
+     *
      * * At least one filter is present.
      * 
* @@ -2593,7 +2586,9 @@ public interface CompositeFilterOrBuilder * *
      * The list of filters to combine.
+     *
      * Requires:
+     *
      * * At least one filter is present.
      * 
* @@ -2606,7 +2601,9 @@ public interface CompositeFilterOrBuilder * *
      * The list of filters to combine.
+     *
      * Requires:
+     *
      * * At least one filter is present.
      * 
* @@ -2644,11 +2641,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CompositeFilter(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto .internal_static_google_firestore_v1_StructuredQuery_CompositeFilter_descriptor; @@ -2869,7 +2861,9 @@ public com.google.firestore.v1.StructuredQuery.CompositeFilter.Operator getOp() * *
      * The list of filters to combine.
+     *
      * Requires:
+     *
      * * At least one filter is present.
      * 
* @@ -2884,7 +2878,9 @@ public java.util.List getFilters * *
      * The list of filters to combine.
+     *
      * Requires:
+     *
      * * At least one filter is present.
      * 
* @@ -2900,7 +2896,9 @@ public java.util.List getFilters * *
      * The list of filters to combine.
+     *
      * Requires:
+     *
      * * At least one filter is present.
      * 
* @@ -2915,7 +2913,9 @@ public int getFiltersCount() { * *
      * The list of filters to combine.
+     *
      * Requires:
+     *
      * * At least one filter is present.
      * 
* @@ -2930,7 +2930,9 @@ public com.google.firestore.v1.StructuredQuery.Filter getFilters(int index) { * *
      * The list of filters to combine.
+     *
      * Requires:
+     *
      * * At least one filter is present.
      * 
* @@ -3477,7 +3479,9 @@ private void ensureFiltersIsMutable() { * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3495,7 +3499,9 @@ public java.util.List getFilters * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3513,7 +3519,9 @@ public int getFiltersCount() { * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3531,7 +3539,9 @@ public com.google.firestore.v1.StructuredQuery.Filter getFilters(int index) { * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3555,7 +3565,9 @@ public Builder setFilters(int index, com.google.firestore.v1.StructuredQuery.Fil * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3577,7 +3589,9 @@ public Builder setFilters( * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3601,7 +3615,9 @@ public Builder addFilters(com.google.firestore.v1.StructuredQuery.Filter value) * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3625,7 +3641,9 @@ public Builder addFilters(int index, com.google.firestore.v1.StructuredQuery.Fil * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3647,7 +3665,9 @@ public Builder addFilters( * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3669,7 +3689,9 @@ public Builder addFilters( * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3691,7 +3713,9 @@ public Builder addAllFilters( * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3712,7 +3736,9 @@ public Builder clearFilters() { * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3733,7 +3759,9 @@ public Builder removeFilters(int index) { * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3747,7 +3775,9 @@ public com.google.firestore.v1.StructuredQuery.Filter.Builder getFiltersBuilder( * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3766,7 +3796,9 @@ public com.google.firestore.v1.StructuredQuery.FilterOrBuilder getFiltersOrBuild * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3785,7 +3817,9 @@ public com.google.firestore.v1.StructuredQuery.FilterOrBuilder getFiltersOrBuild * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3800,7 +3834,9 @@ public com.google.firestore.v1.StructuredQuery.Filter.Builder addFiltersBuilder( * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -3815,7 +3851,9 @@ public com.google.firestore.v1.StructuredQuery.Filter.Builder addFiltersBuilder( * *
        * The list of filters to combine.
+       *
        * Requires:
+       *
        * * At least one filter is present.
        * 
* @@ -4036,11 +4074,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FieldFilter(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto .internal_static_google_firestore_v1_StructuredQuery_FieldFilter_descriptor; @@ -4081,7 +4114,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is less than the given `value`.
+       *
        * Requires:
+       *
        * * That `field` come first in `order_by`.
        * 
* @@ -4093,7 +4128,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is less than or equal to the given `value`.
+       *
        * Requires:
+       *
        * * That `field` come first in `order_by`.
        * 
* @@ -4105,7 +4142,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is greater than the given `value`.
+       *
        * Requires:
+       *
        * * That `field` come first in `order_by`.
        * 
* @@ -4117,7 +4156,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is greater than or equal to the given `value`.
+       *
        * Requires:
+       *
        * * That `field` come first in `order_by`.
        * 
* @@ -4139,7 +4180,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is not equal to the given `value`.
+       *
        * Requires:
+       *
        * * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
        * * That `field` comes first in the `order_by`.
        * 
@@ -4162,7 +4205,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is equal to at least one value in the given array.
+       *
        * Requires:
+       *
        * * That `value` is a non-empty `ArrayValue`, subject to disjunction
        *   limits.
        * * No `NOT_IN` filters in the same query.
@@ -4177,7 +4222,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
        * 
        * The given `field` is an array that contains any of the values in the
        * given array.
+       *
        * Requires:
+       *
        * * That `value` is a non-empty `ArrayValue`, subject to disjunction
        *   limits.
        * * No other `ARRAY_CONTAINS_ANY` filters within the same disjunction.
@@ -4192,7 +4239,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
        *
        * 
        * The value of the `field` is not in the given array.
+       *
        * Requires:
+       *
        * * That `value` is a non-empty `ArrayValue` with at most 10 values.
        * * No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`,
        *   `IS_NOT_NULL`, or `IS_NOT_NAN`.
@@ -4220,7 +4269,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
        *
        * 
        * The given `field` is less than the given `value`.
+       *
        * Requires:
+       *
        * * That `field` come first in `order_by`.
        * 
* @@ -4232,7 +4283,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is less than or equal to the given `value`.
+       *
        * Requires:
+       *
        * * That `field` come first in `order_by`.
        * 
* @@ -4244,7 +4297,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is greater than the given `value`.
+       *
        * Requires:
+       *
        * * That `field` come first in `order_by`.
        * 
* @@ -4256,7 +4311,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is greater than or equal to the given `value`.
+       *
        * Requires:
+       *
        * * That `field` come first in `order_by`.
        * 
* @@ -4278,7 +4335,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is not equal to the given `value`.
+       *
        * Requires:
+       *
        * * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
        * * That `field` comes first in the `order_by`.
        * 
@@ -4301,7 +4360,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is equal to at least one value in the given array.
+       *
        * Requires:
+       *
        * * That `value` is a non-empty `ArrayValue`, subject to disjunction
        *   limits.
        * * No `NOT_IN` filters in the same query.
@@ -4316,7 +4377,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
        * 
        * The given `field` is an array that contains any of the values in the
        * given array.
+       *
        * Requires:
+       *
        * * That `value` is a non-empty `ArrayValue`, subject to disjunction
        *   limits.
        * * No other `ARRAY_CONTAINS_ANY` filters within the same disjunction.
@@ -4331,7 +4394,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
        *
        * 
        * The value of the `field` is not in the given array.
+       *
        * Requires:
+       *
        * * That `value` is a non-empty `ArrayValue` with at most 10 values.
        * * No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`,
        *   `IS_NOT_NULL`, or `IS_NOT_NAN`.
@@ -5572,7 +5637,7 @@ public interface UnaryFilterOrBuilder
      */
     com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder();
 
-    public com.google.firestore.v1.StructuredQuery.UnaryFilter.OperandTypeCase getOperandTypeCase();
+    com.google.firestore.v1.StructuredQuery.UnaryFilter.OperandTypeCase getOperandTypeCase();
   }
   /**
    *
@@ -5603,11 +5668,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new UnaryFilter();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.firestore.v1.QueryProto
           .internal_static_google_firestore_v1_StructuredQuery_UnaryFilter_descriptor;
@@ -5668,7 +5728,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
        *
        * 
        * The given `field` is not equal to `NaN`.
+       *
        * Requires:
+       *
        * * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
        * * That `field` comes first in the `order_by`.
        * 
@@ -5681,7 +5743,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is not equal to `NULL`.
+       *
        * Requires:
+       *
        * * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
        * * That `field` comes first in the `order_by`.
        * 
@@ -5727,7 +5791,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is not equal to `NaN`.
+       *
        * Requires:
+       *
        * * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
        * * That `field` comes first in the `order_by`.
        * 
@@ -5740,7 +5806,9 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { * *
        * The given `field` is not equal to `NULL`.
+       *
        * Requires:
+       *
        * * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
        * * That `field` comes first in the `order_by`.
        * 
@@ -5839,6 +5907,8 @@ private Operator(int value) { } private int operandTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object operandType_; public enum OperandTypeCase @@ -6850,11 +6920,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Order(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto .internal_static_google_firestore_v1_StructuredQuery_Order_descriptor; @@ -7685,7 +7750,9 @@ public interface FieldReferenceOrBuilder * *
      * The relative path of the document being referenced.
+     *
      * Requires:
+     *
      * * Conform to [document field name][google.firestore.v1.Document.fields]
      * limitations.
      * 
@@ -7700,7 +7767,9 @@ public interface FieldReferenceOrBuilder * *
      * The relative path of the document being referenced.
+     *
      * Requires:
+     *
      * * Conform to [document field name][google.firestore.v1.Document.fields]
      * limitations.
      * 
@@ -7740,11 +7809,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FieldReference(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto .internal_static_google_firestore_v1_StructuredQuery_FieldReference_descriptor; @@ -7769,7 +7833,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
      * The relative path of the document being referenced.
+     *
      * Requires:
+     *
      * * Conform to [document field name][google.firestore.v1.Document.fields]
      * limitations.
      * 
@@ -7795,7 +7861,9 @@ public java.lang.String getFieldPath() { * *
      * The relative path of the document being referenced.
+     *
      * Requires:
+     *
      * * Conform to [document field name][google.firestore.v1.Document.fields]
      * limitations.
      * 
@@ -8170,7 +8238,9 @@ public Builder mergeFrom( * *
        * The relative path of the document being referenced.
+       *
        * Requires:
+       *
        * * Conform to [document field name][google.firestore.v1.Document.fields]
        * limitations.
        * 
@@ -8195,7 +8265,9 @@ public java.lang.String getFieldPath() { * *
        * The relative path of the document being referenced.
+       *
        * Requires:
+       *
        * * Conform to [document field name][google.firestore.v1.Document.fields]
        * limitations.
        * 
@@ -8220,7 +8292,9 @@ public com.google.protobuf.ByteString getFieldPathBytes() { * *
        * The relative path of the document being referenced.
+       *
        * Requires:
+       *
        * * Conform to [document field name][google.firestore.v1.Document.fields]
        * limitations.
        * 
@@ -8244,7 +8318,9 @@ public Builder setFieldPath(java.lang.String value) { * *
        * The relative path of the document being referenced.
+       *
        * Requires:
+       *
        * * Conform to [document field name][google.firestore.v1.Document.fields]
        * limitations.
        * 
@@ -8264,7 +8340,9 @@ public Builder clearFieldPath() { * *
        * The relative path of the document being referenced.
+       *
        * Requires:
+       *
        * * Conform to [document field name][google.firestore.v1.Document.fields]
        * limitations.
        * 
@@ -8359,6 +8437,7 @@ public interface ProjectionOrBuilder * *
      * The fields to return.
+     *
      * If empty, all fields are returned. To only return the name
      * of the document, use `['__name__']`.
      * 
@@ -8371,6 +8450,7 @@ public interface ProjectionOrBuilder * *
      * The fields to return.
+     *
      * If empty, all fields are returned. To only return the name
      * of the document, use `['__name__']`.
      * 
@@ -8383,6 +8463,7 @@ public interface ProjectionOrBuilder * *
      * The fields to return.
+     *
      * If empty, all fields are returned. To only return the name
      * of the document, use `['__name__']`.
      * 
@@ -8395,6 +8476,7 @@ public interface ProjectionOrBuilder * *
      * The fields to return.
+     *
      * If empty, all fields are returned. To only return the name
      * of the document, use `['__name__']`.
      * 
@@ -8408,6 +8490,7 @@ public interface ProjectionOrBuilder * *
      * The fields to return.
+     *
      * If empty, all fields are returned. To only return the name
      * of the document, use `['__name__']`.
      * 
@@ -8445,11 +8528,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Projection(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.QueryProto .internal_static_google_firestore_v1_StructuredQuery_Projection_descriptor; @@ -8474,6 +8552,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
      * The fields to return.
+     *
      * If empty, all fields are returned. To only return the name
      * of the document, use `['__name__']`.
      * 
@@ -8489,6 +8568,7 @@ public java.util.List ge * *
      * The fields to return.
+     *
      * If empty, all fields are returned. To only return the name
      * of the document, use `['__name__']`.
      * 
@@ -8505,6 +8585,7 @@ public java.util.List ge * *
      * The fields to return.
+     *
      * If empty, all fields are returned. To only return the name
      * of the document, use `['__name__']`.
      * 
@@ -8520,6 +8601,7 @@ public int getFieldsCount() { * *
      * The fields to return.
+     *
      * If empty, all fields are returned. To only return the name
      * of the document, use `['__name__']`.
      * 
@@ -8535,6 +8617,7 @@ public com.google.firestore.v1.StructuredQuery.FieldReference getFields(int inde * *
      * The fields to return.
+     *
      * If empty, all fields are returned. To only return the name
      * of the document, use `['__name__']`.
      * 
@@ -8965,6 +9048,7 @@ private void ensureFieldsIsMutable() { * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -8984,6 +9068,7 @@ private void ensureFieldsIsMutable() { * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9002,6 +9087,7 @@ public int getFieldsCount() { * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9020,6 +9106,7 @@ public com.google.firestore.v1.StructuredQuery.FieldReference getFields(int inde * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9045,6 +9132,7 @@ public Builder setFields( * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9068,6 +9156,7 @@ public Builder setFields( * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9092,6 +9181,7 @@ public Builder addFields(com.google.firestore.v1.StructuredQuery.FieldReference * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9117,6 +9207,7 @@ public Builder addFields( * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9139,6 +9230,7 @@ public Builder addFields( * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9162,6 +9254,7 @@ public Builder addFields( * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9185,6 +9278,7 @@ public Builder addAllFields( * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9206,6 +9300,7 @@ public Builder clearFields() { * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9227,6 +9322,7 @@ public Builder removeFields(int index) { * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9242,6 +9338,7 @@ public com.google.firestore.v1.StructuredQuery.FieldReference.Builder getFieldsB * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9261,6 +9358,7 @@ public com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFields * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9281,6 +9379,7 @@ public com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder getFields * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9297,6 +9396,7 @@ public com.google.firestore.v1.StructuredQuery.FieldReference.Builder addFieldsB * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9314,6 +9414,7 @@ public com.google.firestore.v1.StructuredQuery.FieldReference.Builder addFieldsB * *
        * The fields to return.
+       *
        * If empty, all fields are returned. To only return the name
        * of the document, use `['__name__']`.
        * 
@@ -9413,6 +9514,7 @@ public com.google.firestore.v1.StructuredQuery.Projection getDefaultInstanceForT * *
    * Optional sub-set of the fields to return.
+   *
    * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
    * documents returned from a query. When not set, assumes that the caller
    * wants all fields returned.
@@ -9431,6 +9533,7 @@ public boolean hasSelect() {
    *
    * 
    * Optional sub-set of the fields to return.
+   *
    * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
    * documents returned from a query. When not set, assumes that the caller
    * wants all fields returned.
@@ -9451,6 +9554,7 @@ public com.google.firestore.v1.StructuredQuery.Projection getSelect() {
    *
    * 
    * Optional sub-set of the fields to return.
+   *
    * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
    * documents returned from a query. When not set, assumes that the caller
    * wants all fields returned.
@@ -9597,16 +9701,20 @@ public com.google.firestore.v1.StructuredQuery.FilterOrBuilder getWhereOrBuilder
    *
    * 
    * The order to apply to the query results.
+   *
    * Firestore allows callers to provide a full ordering, a partial ordering, or
    * no ordering at all. In all cases, Firestore guarantees a stable ordering
    * through the following rules:
+   *
    *  * The `order_by` is required to reference all fields used with an
    *    inequality filter.
    *  * All fields that are required to be in the `order_by` but are not already
    *    present are appended in lexicographical ordering of the field name.
    *  * If an order on `__name__` is not specified, it is appended by default.
+   *
    * Fields are appended with the same sort direction as the last order
    * specified, or 'ASCENDING' if no order was specified. For example:
+   *
    *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
    *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
    *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -9625,16 +9733,20 @@ public java.util.List getOrderByL
    *
    * 
    * The order to apply to the query results.
+   *
    * Firestore allows callers to provide a full ordering, a partial ordering, or
    * no ordering at all. In all cases, Firestore guarantees a stable ordering
    * through the following rules:
+   *
    *  * The `order_by` is required to reference all fields used with an
    *    inequality filter.
    *  * All fields that are required to be in the `order_by` but are not already
    *    present are appended in lexicographical ordering of the field name.
    *  * If an order on `__name__` is not specified, it is appended by default.
+   *
    * Fields are appended with the same sort direction as the last order
    * specified, or 'ASCENDING' if no order was specified. For example:
+   *
    *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
    *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
    *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -9654,16 +9766,20 @@ public java.util.List getOrderByL
    *
    * 
    * The order to apply to the query results.
+   *
    * Firestore allows callers to provide a full ordering, a partial ordering, or
    * no ordering at all. In all cases, Firestore guarantees a stable ordering
    * through the following rules:
+   *
    *  * The `order_by` is required to reference all fields used with an
    *    inequality filter.
    *  * All fields that are required to be in the `order_by` but are not already
    *    present are appended in lexicographical ordering of the field name.
    *  * If an order on `__name__` is not specified, it is appended by default.
+   *
    * Fields are appended with the same sort direction as the last order
    * specified, or 'ASCENDING' if no order was specified. For example:
+   *
    *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
    *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
    *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -9682,16 +9798,20 @@ public int getOrderByCount() {
    *
    * 
    * The order to apply to the query results.
+   *
    * Firestore allows callers to provide a full ordering, a partial ordering, or
    * no ordering at all. In all cases, Firestore guarantees a stable ordering
    * through the following rules:
+   *
    *  * The `order_by` is required to reference all fields used with an
    *    inequality filter.
    *  * All fields that are required to be in the `order_by` but are not already
    *    present are appended in lexicographical ordering of the field name.
    *  * If an order on `__name__` is not specified, it is appended by default.
+   *
    * Fields are appended with the same sort direction as the last order
    * specified, or 'ASCENDING' if no order was specified. For example:
+   *
    *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
    *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
    *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -9710,16 +9830,20 @@ public com.google.firestore.v1.StructuredQuery.Order getOrderBy(int index) {
    *
    * 
    * The order to apply to the query results.
+   *
    * Firestore allows callers to provide a full ordering, a partial ordering, or
    * no ordering at all. In all cases, Firestore guarantees a stable ordering
    * through the following rules:
+   *
    *  * The `order_by` is required to reference all fields used with an
    *    inequality filter.
    *  * All fields that are required to be in the `order_by` but are not already
    *    present are appended in lexicographical ordering of the field name.
    *  * If an order on `__name__` is not specified, it is appended by default.
+   *
    * Fields are appended with the same sort direction as the last order
    * specified, or 'ASCENDING' if no order was specified. For example:
+   *
    *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
    *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
    *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -9741,25 +9865,34 @@ public com.google.firestore.v1.StructuredQuery.OrderOrBuilder getOrderByOrBuilde
    *
    * 
    * A potential prefix of a position in the result set to start the query at.
+   *
    * The ordering of the result set is based on the `ORDER BY` clause of the
    * original query.
+   *
    * ```
    * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
    * ```
+   *
    * This query's results are ordered by `(b ASC, __name__ ASC)`.
+   *
    * Cursors can reference either the full ordering or a prefix of the location,
    * though it cannot reference more fields than what are in the provided
    * `ORDER BY`.
+   *
    * Continuing off the example above, attaching the following start cursors
    * will have varying impact:
+   *
    * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
    *    b > 2 AND __name__ > /k/123`.
    * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+   *
    * Unlike `OFFSET` which requires scanning over the first N results to skip,
    * a start cursor allows the query to begin at a logical position. This
    * position is not required to match an actual result, it will scan forward
    * from this position to find the next document.
+   *
    * Requires:
+   *
    * * The number of values cannot be greater than the number of fields
    *   specified in the `ORDER BY` clause.
    * 
@@ -9777,25 +9910,34 @@ public boolean hasStartAt() { * *
    * A potential prefix of a position in the result set to start the query at.
+   *
    * The ordering of the result set is based on the `ORDER BY` clause of the
    * original query.
+   *
    * ```
    * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
    * ```
+   *
    * This query's results are ordered by `(b ASC, __name__ ASC)`.
+   *
    * Cursors can reference either the full ordering or a prefix of the location,
    * though it cannot reference more fields than what are in the provided
    * `ORDER BY`.
+   *
    * Continuing off the example above, attaching the following start cursors
    * will have varying impact:
+   *
    * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
    *    b > 2 AND __name__ > /k/123`.
    * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+   *
    * Unlike `OFFSET` which requires scanning over the first N results to skip,
    * a start cursor allows the query to begin at a logical position. This
    * position is not required to match an actual result, it will scan forward
    * from this position to find the next document.
+   *
    * Requires:
+   *
    * * The number of values cannot be greater than the number of fields
    *   specified in the `ORDER BY` clause.
    * 
@@ -9813,25 +9955,34 @@ public com.google.firestore.v1.Cursor getStartAt() { * *
    * A potential prefix of a position in the result set to start the query at.
+   *
    * The ordering of the result set is based on the `ORDER BY` clause of the
    * original query.
+   *
    * ```
    * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
    * ```
+   *
    * This query's results are ordered by `(b ASC, __name__ ASC)`.
+   *
    * Cursors can reference either the full ordering or a prefix of the location,
    * though it cannot reference more fields than what are in the provided
    * `ORDER BY`.
+   *
    * Continuing off the example above, attaching the following start cursors
    * will have varying impact:
+   *
    * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
    *    b > 2 AND __name__ > /k/123`.
    * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+   *
    * Unlike `OFFSET` which requires scanning over the first N results to skip,
    * a start cursor allows the query to begin at a logical position. This
    * position is not required to match an actual result, it will scan forward
    * from this position to find the next document.
+   *
    * Requires:
+   *
    * * The number of values cannot be greater than the number of fields
    *   specified in the `ORDER BY` clause.
    * 
@@ -9850,9 +10001,12 @@ public com.google.firestore.v1.CursorOrBuilder getStartAtOrBuilder() { * *
    * A potential prefix of a position in the result set to end the query at.
+   *
    * This is similar to `START_AT` but with it controlling the end position
    * rather than the start position.
+   *
    * Requires:
+   *
    * * The number of values cannot be greater than the number of fields
    *   specified in the `ORDER BY` clause.
    * 
@@ -9870,9 +10024,12 @@ public boolean hasEndAt() { * *
    * A potential prefix of a position in the result set to end the query at.
+   *
    * This is similar to `START_AT` but with it controlling the end position
    * rather than the start position.
+   *
    * Requires:
+   *
    * * The number of values cannot be greater than the number of fields
    *   specified in the `ORDER BY` clause.
    * 
@@ -9890,9 +10047,12 @@ public com.google.firestore.v1.Cursor getEndAt() { * *
    * A potential prefix of a position in the result set to end the query at.
+   *
    * This is similar to `START_AT` but with it controlling the end position
    * rather than the start position.
+   *
    * Requires:
+   *
    * * The number of values cannot be greater than the number of fields
    *   specified in the `ORDER BY` clause.
    * 
@@ -9911,9 +10071,12 @@ public com.google.firestore.v1.CursorOrBuilder getEndAtOrBuilder() { * *
    * The number of documents to skip before returning the first result.
+   *
    * This applies after the constraints specified by the `WHERE`, `START AT`, &
    * `END AT` but before the `LIMIT` clause.
+   *
    * Requires:
+   *
    * * The value must be greater than or equal to zero if specified.
    * 
* @@ -9933,8 +10096,11 @@ public int getOffset() { * *
    * The maximum number of results to return.
+   *
    * Applies after all other constraints.
+   *
    * Requires:
+   *
    * * The value must be greater than or equal to zero if specified.
    * 
* @@ -9951,8 +10117,11 @@ public boolean hasLimit() { * *
    * The maximum number of results to return.
+   *
    * Applies after all other constraints.
+   *
    * Requires:
+   *
    * * The value must be greater than or equal to zero if specified.
    * 
* @@ -9969,8 +10138,11 @@ public com.google.protobuf.Int32Value getLimit() { * *
    * The maximum number of results to return.
+   *
    * Applies after all other constraints.
+   *
    * Requires:
+   *
    * * The value must be greater than or equal to zero if specified.
    * 
* @@ -10624,6 +10796,7 @@ public Builder mergeFrom( * *
      * Optional sub-set of the fields to return.
+     *
      * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
      * documents returned from a query. When not set, assumes that the caller
      * wants all fields returned.
@@ -10641,6 +10814,7 @@ public boolean hasSelect() {
      *
      * 
      * Optional sub-set of the fields to return.
+     *
      * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
      * documents returned from a query. When not set, assumes that the caller
      * wants all fields returned.
@@ -10664,6 +10838,7 @@ public com.google.firestore.v1.StructuredQuery.Projection getSelect() {
      *
      * 
      * Optional sub-set of the fields to return.
+     *
      * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
      * documents returned from a query. When not set, assumes that the caller
      * wants all fields returned.
@@ -10689,6 +10864,7 @@ public Builder setSelect(com.google.firestore.v1.StructuredQuery.Projection valu
      *
      * 
      * Optional sub-set of the fields to return.
+     *
      * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
      * documents returned from a query. When not set, assumes that the caller
      * wants all fields returned.
@@ -10712,6 +10888,7 @@ public Builder setSelect(
      *
      * 
      * Optional sub-set of the fields to return.
+     *
      * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
      * documents returned from a query. When not set, assumes that the caller
      * wants all fields returned.
@@ -10740,6 +10917,7 @@ public Builder mergeSelect(com.google.firestore.v1.StructuredQuery.Projection va
      *
      * 
      * Optional sub-set of the fields to return.
+     *
      * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
      * documents returned from a query. When not set, assumes that the caller
      * wants all fields returned.
@@ -10762,6 +10940,7 @@ public Builder clearSelect() {
      *
      * 
      * Optional sub-set of the fields to return.
+     *
      * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
      * documents returned from a query. When not set, assumes that the caller
      * wants all fields returned.
@@ -10779,6 +10958,7 @@ public com.google.firestore.v1.StructuredQuery.Projection.Builder getSelectBuild
      *
      * 
      * Optional sub-set of the fields to return.
+     *
      * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
      * documents returned from a query. When not set, assumes that the caller
      * wants all fields returned.
@@ -10800,6 +10980,7 @@ public com.google.firestore.v1.StructuredQuery.ProjectionOrBuilder getSelectOrBu
      *
      * 
      * Optional sub-set of the fields to return.
+     *
      * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
      * documents returned from a query. When not set, assumes that the caller
      * wants all fields returned.
@@ -11394,16 +11575,20 @@ private void ensureOrderByIsMutable() {
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11425,16 +11610,20 @@ public java.util.List getOrderByL
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11456,16 +11645,20 @@ public int getOrderByCount() {
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11487,16 +11680,20 @@ public com.google.firestore.v1.StructuredQuery.Order getOrderBy(int index) {
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11524,16 +11721,20 @@ public Builder setOrderBy(int index, com.google.firestore.v1.StructuredQuery.Ord
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11559,16 +11760,20 @@ public Builder setOrderBy(
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11596,16 +11801,20 @@ public Builder addOrderBy(com.google.firestore.v1.StructuredQuery.Order value) {
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11633,16 +11842,20 @@ public Builder addOrderBy(int index, com.google.firestore.v1.StructuredQuery.Ord
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11668,16 +11881,20 @@ public Builder addOrderBy(
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11703,16 +11920,20 @@ public Builder addOrderBy(
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11738,16 +11959,20 @@ public Builder addAllOrderBy(
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11772,16 +11997,20 @@ public Builder clearOrderBy() {
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11806,16 +12035,20 @@ public Builder removeOrderBy(int index) {
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11833,16 +12066,20 @@ public com.google.firestore.v1.StructuredQuery.Order.Builder getOrderByBuilder(i
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11864,16 +12101,20 @@ public com.google.firestore.v1.StructuredQuery.OrderOrBuilder getOrderByOrBuilde
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11896,16 +12137,20 @@ public com.google.firestore.v1.StructuredQuery.OrderOrBuilder getOrderByOrBuilde
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11924,16 +12169,20 @@ public com.google.firestore.v1.StructuredQuery.Order.Builder addOrderByBuilder()
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -11952,16 +12201,20 @@ public com.google.firestore.v1.StructuredQuery.Order.Builder addOrderByBuilder(i
      *
      * 
      * The order to apply to the query results.
+     *
      * Firestore allows callers to provide a full ordering, a partial ordering, or
      * no ordering at all. In all cases, Firestore guarantees a stable ordering
      * through the following rules:
+     *
      *  * The `order_by` is required to reference all fields used with an
      *    inequality filter.
      *  * All fields that are required to be in the `order_by` but are not already
      *    present are appended in lexicographical ordering of the field name.
      *  * If an order on `__name__` is not specified, it is appended by default.
+     *
      * Fields are appended with the same sort direction as the last order
      * specified, or 'ASCENDING' if no order was specified. For example:
+     *
      *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
      *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
      *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -12004,25 +12257,34 @@ public com.google.firestore.v1.StructuredQuery.Order.Builder addOrderByBuilder(i
      *
      * 
      * A potential prefix of a position in the result set to start the query at.
+     *
      * The ordering of the result set is based on the `ORDER BY` clause of the
      * original query.
+     *
      * ```
      * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
      * ```
+     *
      * This query's results are ordered by `(b ASC, __name__ ASC)`.
+     *
      * Cursors can reference either the full ordering or a prefix of the location,
      * though it cannot reference more fields than what are in the provided
      * `ORDER BY`.
+     *
      * Continuing off the example above, attaching the following start cursors
      * will have varying impact:
+     *
      * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
      *    b > 2 AND __name__ > /k/123`.
      * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+     *
      * Unlike `OFFSET` which requires scanning over the first N results to skip,
      * a start cursor allows the query to begin at a logical position. This
      * position is not required to match an actual result, it will scan forward
      * from this position to find the next document.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12039,25 +12301,34 @@ public boolean hasStartAt() { * *
      * A potential prefix of a position in the result set to start the query at.
+     *
      * The ordering of the result set is based on the `ORDER BY` clause of the
      * original query.
+     *
      * ```
      * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
      * ```
+     *
      * This query's results are ordered by `(b ASC, __name__ ASC)`.
+     *
      * Cursors can reference either the full ordering or a prefix of the location,
      * though it cannot reference more fields than what are in the provided
      * `ORDER BY`.
+     *
      * Continuing off the example above, attaching the following start cursors
      * will have varying impact:
+     *
      * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
      *    b > 2 AND __name__ > /k/123`.
      * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+     *
      * Unlike `OFFSET` which requires scanning over the first N results to skip,
      * a start cursor allows the query to begin at a logical position. This
      * position is not required to match an actual result, it will scan forward
      * from this position to find the next document.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12078,25 +12349,34 @@ public com.google.firestore.v1.Cursor getStartAt() { * *
      * A potential prefix of a position in the result set to start the query at.
+     *
      * The ordering of the result set is based on the `ORDER BY` clause of the
      * original query.
+     *
      * ```
      * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
      * ```
+     *
      * This query's results are ordered by `(b ASC, __name__ ASC)`.
+     *
      * Cursors can reference either the full ordering or a prefix of the location,
      * though it cannot reference more fields than what are in the provided
      * `ORDER BY`.
+     *
      * Continuing off the example above, attaching the following start cursors
      * will have varying impact:
+     *
      * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
      *    b > 2 AND __name__ > /k/123`.
      * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+     *
      * Unlike `OFFSET` which requires scanning over the first N results to skip,
      * a start cursor allows the query to begin at a logical position. This
      * position is not required to match an actual result, it will scan forward
      * from this position to find the next document.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12121,25 +12401,34 @@ public Builder setStartAt(com.google.firestore.v1.Cursor value) { * *
      * A potential prefix of a position in the result set to start the query at.
+     *
      * The ordering of the result set is based on the `ORDER BY` clause of the
      * original query.
+     *
      * ```
      * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
      * ```
+     *
      * This query's results are ordered by `(b ASC, __name__ ASC)`.
+     *
      * Cursors can reference either the full ordering or a prefix of the location,
      * though it cannot reference more fields than what are in the provided
      * `ORDER BY`.
+     *
      * Continuing off the example above, attaching the following start cursors
      * will have varying impact:
+     *
      * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
      *    b > 2 AND __name__ > /k/123`.
      * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+     *
      * Unlike `OFFSET` which requires scanning over the first N results to skip,
      * a start cursor allows the query to begin at a logical position. This
      * position is not required to match an actual result, it will scan forward
      * from this position to find the next document.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12161,25 +12450,34 @@ public Builder setStartAt(com.google.firestore.v1.Cursor.Builder builderForValue * *
      * A potential prefix of a position in the result set to start the query at.
+     *
      * The ordering of the result set is based on the `ORDER BY` clause of the
      * original query.
+     *
      * ```
      * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
      * ```
+     *
      * This query's results are ordered by `(b ASC, __name__ ASC)`.
+     *
      * Cursors can reference either the full ordering or a prefix of the location,
      * though it cannot reference more fields than what are in the provided
      * `ORDER BY`.
+     *
      * Continuing off the example above, attaching the following start cursors
      * will have varying impact:
+     *
      * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
      *    b > 2 AND __name__ > /k/123`.
      * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+     *
      * Unlike `OFFSET` which requires scanning over the first N results to skip,
      * a start cursor allows the query to begin at a logical position. This
      * position is not required to match an actual result, it will scan forward
      * from this position to find the next document.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12207,25 +12505,34 @@ public Builder mergeStartAt(com.google.firestore.v1.Cursor value) { * *
      * A potential prefix of a position in the result set to start the query at.
+     *
      * The ordering of the result set is based on the `ORDER BY` clause of the
      * original query.
+     *
      * ```
      * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
      * ```
+     *
      * This query's results are ordered by `(b ASC, __name__ ASC)`.
+     *
      * Cursors can reference either the full ordering or a prefix of the location,
      * though it cannot reference more fields than what are in the provided
      * `ORDER BY`.
+     *
      * Continuing off the example above, attaching the following start cursors
      * will have varying impact:
+     *
      * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
      *    b > 2 AND __name__ > /k/123`.
      * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+     *
      * Unlike `OFFSET` which requires scanning over the first N results to skip,
      * a start cursor allows the query to begin at a logical position. This
      * position is not required to match an actual result, it will scan forward
      * from this position to find the next document.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12247,25 +12554,34 @@ public Builder clearStartAt() { * *
      * A potential prefix of a position in the result set to start the query at.
+     *
      * The ordering of the result set is based on the `ORDER BY` clause of the
      * original query.
+     *
      * ```
      * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
      * ```
+     *
      * This query's results are ordered by `(b ASC, __name__ ASC)`.
+     *
      * Cursors can reference either the full ordering or a prefix of the location,
      * though it cannot reference more fields than what are in the provided
      * `ORDER BY`.
+     *
      * Continuing off the example above, attaching the following start cursors
      * will have varying impact:
+     *
      * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
      *    b > 2 AND __name__ > /k/123`.
      * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+     *
      * Unlike `OFFSET` which requires scanning over the first N results to skip,
      * a start cursor allows the query to begin at a logical position. This
      * position is not required to match an actual result, it will scan forward
      * from this position to find the next document.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12282,25 +12598,34 @@ public com.google.firestore.v1.Cursor.Builder getStartAtBuilder() { * *
      * A potential prefix of a position in the result set to start the query at.
+     *
      * The ordering of the result set is based on the `ORDER BY` clause of the
      * original query.
+     *
      * ```
      * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
      * ```
+     *
      * This query's results are ordered by `(b ASC, __name__ ASC)`.
+     *
      * Cursors can reference either the full ordering or a prefix of the location,
      * though it cannot reference more fields than what are in the provided
      * `ORDER BY`.
+     *
      * Continuing off the example above, attaching the following start cursors
      * will have varying impact:
+     *
      * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
      *    b > 2 AND __name__ > /k/123`.
      * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+     *
      * Unlike `OFFSET` which requires scanning over the first N results to skip,
      * a start cursor allows the query to begin at a logical position. This
      * position is not required to match an actual result, it will scan forward
      * from this position to find the next document.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12319,25 +12644,34 @@ public com.google.firestore.v1.CursorOrBuilder getStartAtOrBuilder() { * *
      * A potential prefix of a position in the result set to start the query at.
+     *
      * The ordering of the result set is based on the `ORDER BY` clause of the
      * original query.
+     *
      * ```
      * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
      * ```
+     *
      * This query's results are ordered by `(b ASC, __name__ ASC)`.
+     *
      * Cursors can reference either the full ordering or a prefix of the location,
      * though it cannot reference more fields than what are in the provided
      * `ORDER BY`.
+     *
      * Continuing off the example above, attaching the following start cursors
      * will have varying impact:
+     *
      * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
      *    b > 2 AND __name__ > /k/123`.
      * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+     *
      * Unlike `OFFSET` which requires scanning over the first N results to skip,
      * a start cursor allows the query to begin at a logical position. This
      * position is not required to match an actual result, it will scan forward
      * from this position to find the next document.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12372,9 +12706,12 @@ public com.google.firestore.v1.CursorOrBuilder getStartAtOrBuilder() { * *
      * A potential prefix of a position in the result set to end the query at.
+     *
      * This is similar to `START_AT` but with it controlling the end position
      * rather than the start position.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12391,9 +12728,12 @@ public boolean hasEndAt() { * *
      * A potential prefix of a position in the result set to end the query at.
+     *
      * This is similar to `START_AT` but with it controlling the end position
      * rather than the start position.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12414,9 +12754,12 @@ public com.google.firestore.v1.Cursor getEndAt() { * *
      * A potential prefix of a position in the result set to end the query at.
+     *
      * This is similar to `START_AT` but with it controlling the end position
      * rather than the start position.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12441,9 +12784,12 @@ public Builder setEndAt(com.google.firestore.v1.Cursor value) { * *
      * A potential prefix of a position in the result set to end the query at.
+     *
      * This is similar to `START_AT` but with it controlling the end position
      * rather than the start position.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12465,9 +12811,12 @@ public Builder setEndAt(com.google.firestore.v1.Cursor.Builder builderForValue) * *
      * A potential prefix of a position in the result set to end the query at.
+     *
      * This is similar to `START_AT` but with it controlling the end position
      * rather than the start position.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12495,9 +12844,12 @@ public Builder mergeEndAt(com.google.firestore.v1.Cursor value) { * *
      * A potential prefix of a position in the result set to end the query at.
+     *
      * This is similar to `START_AT` but with it controlling the end position
      * rather than the start position.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12519,9 +12871,12 @@ public Builder clearEndAt() { * *
      * A potential prefix of a position in the result set to end the query at.
+     *
      * This is similar to `START_AT` but with it controlling the end position
      * rather than the start position.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12538,9 +12893,12 @@ public com.google.firestore.v1.Cursor.Builder getEndAtBuilder() { * *
      * A potential prefix of a position in the result set to end the query at.
+     *
      * This is similar to `START_AT` but with it controlling the end position
      * rather than the start position.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12559,9 +12917,12 @@ public com.google.firestore.v1.CursorOrBuilder getEndAtOrBuilder() { * *
      * A potential prefix of a position in the result set to end the query at.
+     *
      * This is similar to `START_AT` but with it controlling the end position
      * rather than the start position.
+     *
      * Requires:
+     *
      * * The number of values cannot be greater than the number of fields
      *   specified in the `ORDER BY` clause.
      * 
@@ -12591,9 +12952,12 @@ public com.google.firestore.v1.CursorOrBuilder getEndAtOrBuilder() { * *
      * The number of documents to skip before returning the first result.
+     *
      * This applies after the constraints specified by the `WHERE`, `START AT`, &
      * `END AT` but before the `LIMIT` clause.
+     *
      * Requires:
+     *
      * * The value must be greater than or equal to zero if specified.
      * 
* @@ -12610,9 +12974,12 @@ public int getOffset() { * *
      * The number of documents to skip before returning the first result.
+     *
      * This applies after the constraints specified by the `WHERE`, `START AT`, &
      * `END AT` but before the `LIMIT` clause.
+     *
      * Requires:
+     *
      * * The value must be greater than or equal to zero if specified.
      * 
* @@ -12633,9 +13000,12 @@ public Builder setOffset(int value) { * *
      * The number of documents to skip before returning the first result.
+     *
      * This applies after the constraints specified by the `WHERE`, `START AT`, &
      * `END AT` but before the `LIMIT` clause.
+     *
      * Requires:
+     *
      * * The value must be greater than or equal to zero if specified.
      * 
* @@ -12661,8 +13031,11 @@ public Builder clearOffset() { * *
      * The maximum number of results to return.
+     *
      * Applies after all other constraints.
+     *
      * Requires:
+     *
      * * The value must be greater than or equal to zero if specified.
      * 
* @@ -12678,8 +13051,11 @@ public boolean hasLimit() { * *
      * The maximum number of results to return.
+     *
      * Applies after all other constraints.
+     *
      * Requires:
+     *
      * * The value must be greater than or equal to zero if specified.
      * 
* @@ -12699,8 +13075,11 @@ public com.google.protobuf.Int32Value getLimit() { * *
      * The maximum number of results to return.
+     *
      * Applies after all other constraints.
+     *
      * Requires:
+     *
      * * The value must be greater than or equal to zero if specified.
      * 
* @@ -12724,8 +13103,11 @@ public Builder setLimit(com.google.protobuf.Int32Value value) { * *
      * The maximum number of results to return.
+     *
      * Applies after all other constraints.
+     *
      * Requires:
+     *
      * * The value must be greater than or equal to zero if specified.
      * 
* @@ -12746,8 +13128,11 @@ public Builder setLimit(com.google.protobuf.Int32Value.Builder builderForValue) * *
      * The maximum number of results to return.
+     *
      * Applies after all other constraints.
+     *
      * Requires:
+     *
      * * The value must be greater than or equal to zero if specified.
      * 
* @@ -12774,8 +13159,11 @@ public Builder mergeLimit(com.google.protobuf.Int32Value value) { * *
      * The maximum number of results to return.
+     *
      * Applies after all other constraints.
+     *
      * Requires:
+     *
      * * The value must be greater than or equal to zero if specified.
      * 
* @@ -12796,8 +13184,11 @@ public Builder clearLimit() { * *
      * The maximum number of results to return.
+     *
      * Applies after all other constraints.
+     *
      * Requires:
+     *
      * * The value must be greater than or equal to zero if specified.
      * 
* @@ -12813,8 +13204,11 @@ public com.google.protobuf.Int32Value.Builder getLimitBuilder() { * *
      * The maximum number of results to return.
+     *
      * Applies after all other constraints.
+     *
      * Requires:
+     *
      * * The value must be greater than or equal to zero if specified.
      * 
* @@ -12832,8 +13226,11 @@ public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder() { * *
      * The maximum number of results to return.
+     *
      * Applies after all other constraints.
+     *
      * Requires:
+     *
      * * The value must be greater than or equal to zero if specified.
      * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQueryOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQueryOrBuilder.java index 97885b040..9858170af 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQueryOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQueryOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -28,6 +28,7 @@ public interface StructuredQueryOrBuilder * *
    * Optional sub-set of the fields to return.
+   *
    * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
    * documents returned from a query. When not set, assumes that the caller
    * wants all fields returned.
@@ -43,6 +44,7 @@ public interface StructuredQueryOrBuilder
    *
    * 
    * Optional sub-set of the fields to return.
+   *
    * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
    * documents returned from a query. When not set, assumes that the caller
    * wants all fields returned.
@@ -58,6 +60,7 @@ public interface StructuredQueryOrBuilder
    *
    * 
    * Optional sub-set of the fields to return.
+   *
    * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
    * documents returned from a query. When not set, assumes that the caller
    * wants all fields returned.
@@ -159,16 +162,20 @@ public interface StructuredQueryOrBuilder
    *
    * 
    * The order to apply to the query results.
+   *
    * Firestore allows callers to provide a full ordering, a partial ordering, or
    * no ordering at all. In all cases, Firestore guarantees a stable ordering
    * through the following rules:
+   *
    *  * The `order_by` is required to reference all fields used with an
    *    inequality filter.
    *  * All fields that are required to be in the `order_by` but are not already
    *    present are appended in lexicographical ordering of the field name.
    *  * If an order on `__name__` is not specified, it is appended by default.
+   *
    * Fields are appended with the same sort direction as the last order
    * specified, or 'ASCENDING' if no order was specified. For example:
+   *
    *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
    *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
    *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -184,16 +191,20 @@ public interface StructuredQueryOrBuilder
    *
    * 
    * The order to apply to the query results.
+   *
    * Firestore allows callers to provide a full ordering, a partial ordering, or
    * no ordering at all. In all cases, Firestore guarantees a stable ordering
    * through the following rules:
+   *
    *  * The `order_by` is required to reference all fields used with an
    *    inequality filter.
    *  * All fields that are required to be in the `order_by` but are not already
    *    present are appended in lexicographical ordering of the field name.
    *  * If an order on `__name__` is not specified, it is appended by default.
+   *
    * Fields are appended with the same sort direction as the last order
    * specified, or 'ASCENDING' if no order was specified. For example:
+   *
    *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
    *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
    *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -209,16 +220,20 @@ public interface StructuredQueryOrBuilder
    *
    * 
    * The order to apply to the query results.
+   *
    * Firestore allows callers to provide a full ordering, a partial ordering, or
    * no ordering at all. In all cases, Firestore guarantees a stable ordering
    * through the following rules:
+   *
    *  * The `order_by` is required to reference all fields used with an
    *    inequality filter.
    *  * All fields that are required to be in the `order_by` but are not already
    *    present are appended in lexicographical ordering of the field name.
    *  * If an order on `__name__` is not specified, it is appended by default.
+   *
    * Fields are appended with the same sort direction as the last order
    * specified, or 'ASCENDING' if no order was specified. For example:
+   *
    *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
    *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
    *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -234,16 +249,20 @@ public interface StructuredQueryOrBuilder
    *
    * 
    * The order to apply to the query results.
+   *
    * Firestore allows callers to provide a full ordering, a partial ordering, or
    * no ordering at all. In all cases, Firestore guarantees a stable ordering
    * through the following rules:
+   *
    *  * The `order_by` is required to reference all fields used with an
    *    inequality filter.
    *  * All fields that are required to be in the `order_by` but are not already
    *    present are appended in lexicographical ordering of the field name.
    *  * If an order on `__name__` is not specified, it is appended by default.
+   *
    * Fields are appended with the same sort direction as the last order
    * specified, or 'ASCENDING' if no order was specified. For example:
+   *
    *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
    *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
    *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -260,16 +279,20 @@ public interface StructuredQueryOrBuilder
    *
    * 
    * The order to apply to the query results.
+   *
    * Firestore allows callers to provide a full ordering, a partial ordering, or
    * no ordering at all. In all cases, Firestore guarantees a stable ordering
    * through the following rules:
+   *
    *  * The `order_by` is required to reference all fields used with an
    *    inequality filter.
    *  * All fields that are required to be in the `order_by` but are not already
    *    present are appended in lexicographical ordering of the field name.
    *  * If an order on `__name__` is not specified, it is appended by default.
+   *
    * Fields are appended with the same sort direction as the last order
    * specified, or 'ASCENDING' if no order was specified. For example:
+   *
    *  * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
    *  * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
    *  * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
@@ -286,25 +309,34 @@ public interface StructuredQueryOrBuilder
    *
    * 
    * A potential prefix of a position in the result set to start the query at.
+   *
    * The ordering of the result set is based on the `ORDER BY` clause of the
    * original query.
+   *
    * ```
    * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
    * ```
+   *
    * This query's results are ordered by `(b ASC, __name__ ASC)`.
+   *
    * Cursors can reference either the full ordering or a prefix of the location,
    * though it cannot reference more fields than what are in the provided
    * `ORDER BY`.
+   *
    * Continuing off the example above, attaching the following start cursors
    * will have varying impact:
+   *
    * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
    *    b > 2 AND __name__ > /k/123`.
    * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+   *
    * Unlike `OFFSET` which requires scanning over the first N results to skip,
    * a start cursor allows the query to begin at a logical position. This
    * position is not required to match an actual result, it will scan forward
    * from this position to find the next document.
+   *
    * Requires:
+   *
    * * The number of values cannot be greater than the number of fields
    *   specified in the `ORDER BY` clause.
    * 
@@ -319,25 +351,34 @@ public interface StructuredQueryOrBuilder * *
    * A potential prefix of a position in the result set to start the query at.
+   *
    * The ordering of the result set is based on the `ORDER BY` clause of the
    * original query.
+   *
    * ```
    * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
    * ```
+   *
    * This query's results are ordered by `(b ASC, __name__ ASC)`.
+   *
    * Cursors can reference either the full ordering or a prefix of the location,
    * though it cannot reference more fields than what are in the provided
    * `ORDER BY`.
+   *
    * Continuing off the example above, attaching the following start cursors
    * will have varying impact:
+   *
    * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
    *    b > 2 AND __name__ > /k/123`.
    * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+   *
    * Unlike `OFFSET` which requires scanning over the first N results to skip,
    * a start cursor allows the query to begin at a logical position. This
    * position is not required to match an actual result, it will scan forward
    * from this position to find the next document.
+   *
    * Requires:
+   *
    * * The number of values cannot be greater than the number of fields
    *   specified in the `ORDER BY` clause.
    * 
@@ -352,25 +393,34 @@ public interface StructuredQueryOrBuilder * *
    * A potential prefix of a position in the result set to start the query at.
+   *
    * The ordering of the result set is based on the `ORDER BY` clause of the
    * original query.
+   *
    * ```
    * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
    * ```
+   *
    * This query's results are ordered by `(b ASC, __name__ ASC)`.
+   *
    * Cursors can reference either the full ordering or a prefix of the location,
    * though it cannot reference more fields than what are in the provided
    * `ORDER BY`.
+   *
    * Continuing off the example above, attaching the following start cursors
    * will have varying impact:
+   *
    * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
    *    b > 2 AND __name__ > /k/123`.
    * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+   *
    * Unlike `OFFSET` which requires scanning over the first N results to skip,
    * a start cursor allows the query to begin at a logical position. This
    * position is not required to match an actual result, it will scan forward
    * from this position to find the next document.
+   *
    * Requires:
+   *
    * * The number of values cannot be greater than the number of fields
    *   specified in the `ORDER BY` clause.
    * 
@@ -384,9 +434,12 @@ public interface StructuredQueryOrBuilder * *
    * A potential prefix of a position in the result set to end the query at.
+   *
    * This is similar to `START_AT` but with it controlling the end position
    * rather than the start position.
+   *
    * Requires:
+   *
    * * The number of values cannot be greater than the number of fields
    *   specified in the `ORDER BY` clause.
    * 
@@ -401,9 +454,12 @@ public interface StructuredQueryOrBuilder * *
    * A potential prefix of a position in the result set to end the query at.
+   *
    * This is similar to `START_AT` but with it controlling the end position
    * rather than the start position.
+   *
    * Requires:
+   *
    * * The number of values cannot be greater than the number of fields
    *   specified in the `ORDER BY` clause.
    * 
@@ -418,9 +474,12 @@ public interface StructuredQueryOrBuilder * *
    * A potential prefix of a position in the result set to end the query at.
+   *
    * This is similar to `START_AT` but with it controlling the end position
    * rather than the start position.
+   *
    * Requires:
+   *
    * * The number of values cannot be greater than the number of fields
    *   specified in the `ORDER BY` clause.
    * 
@@ -434,9 +493,12 @@ public interface StructuredQueryOrBuilder * *
    * The number of documents to skip before returning the first result.
+   *
    * This applies after the constraints specified by the `WHERE`, `START AT`, &
    * `END AT` but before the `LIMIT` clause.
+   *
    * Requires:
+   *
    * * The value must be greater than or equal to zero if specified.
    * 
* @@ -451,8 +513,11 @@ public interface StructuredQueryOrBuilder * *
    * The maximum number of results to return.
+   *
    * Applies after all other constraints.
+   *
    * Requires:
+   *
    * * The value must be greater than or equal to zero if specified.
    * 
* @@ -466,8 +531,11 @@ public interface StructuredQueryOrBuilder * *
    * The maximum number of results to return.
+   *
    * Applies after all other constraints.
+   *
    * Requires:
+   *
    * * The value must be greater than or equal to zero if specified.
    * 
* @@ -481,8 +549,11 @@ public interface StructuredQueryOrBuilder * *
    * The maximum number of results to return.
+   *
    * Applies after all other constraints.
+   *
    * Requires:
+   *
    * * The value must be greater than or equal to zero if specified.
    * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Target.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Target.java index 42d845260..a8bbb22a8 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Target.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Target.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Target(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_Target_descriptor; @@ -152,7 +147,7 @@ private DocumentsTarget(com.google.protobuf.GeneratedMessageV3.Builder builde } private DocumentsTarget() { - documents_ = com.google.protobuf.LazyStringArrayList.EMPTY; + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -161,11 +156,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentsTarget(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_Target_DocumentsTarget_descriptor; @@ -184,7 +174,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int DOCUMENTS_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList documents_; + private com.google.protobuf.LazyStringArrayList documents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -463,8 +454,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - documents_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -492,7 +482,6 @@ public com.google.firestore.v1.Target.DocumentsTarget build() { public com.google.firestore.v1.Target.DocumentsTarget buildPartial() { com.google.firestore.v1.Target.DocumentsTarget result = new com.google.firestore.v1.Target.DocumentsTarget(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -500,17 +489,12 @@ public com.google.firestore.v1.Target.DocumentsTarget buildPartial() { return result; } - private void buildPartialRepeatedFields( - com.google.firestore.v1.Target.DocumentsTarget result) { - if (((bitField0_ & 0x00000001) != 0)) { - documents_ = documents_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.documents_ = documents_; - } - private void buildPartial0(com.google.firestore.v1.Target.DocumentsTarget result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + documents_.makeImmutable(); + result.documents_ = documents_; + } } @java.lang.Override @@ -564,7 +548,7 @@ public Builder mergeFrom(com.google.firestore.v1.Target.DocumentsTarget other) { if (!other.documents_.isEmpty()) { if (documents_.isEmpty()) { documents_ = other.documents_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureDocumentsIsMutable(); documents_.addAll(other.documents_); @@ -623,14 +607,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList documents_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList documents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDocumentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!documents_.isModifiable()) { documents_ = new com.google.protobuf.LazyStringArrayList(documents_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -647,7 +631,8 @@ private void ensureDocumentsIsMutable() { * @return A list containing the documents. */ public com.google.protobuf.ProtocolStringList getDocumentsList() { - return documents_.getUnmodifiableView(); + documents_.makeImmutable(); + return documents_; } /** * @@ -724,6 +709,7 @@ public Builder setDocuments(int index, java.lang.String value) { } ensureDocumentsIsMutable(); documents_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -748,6 +734,7 @@ public Builder addDocuments(java.lang.String value) { } ensureDocumentsIsMutable(); documents_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -769,6 +756,7 @@ public Builder addDocuments(java.lang.String value) { public Builder addAllDocuments(java.lang.Iterable values) { ensureDocumentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -787,8 +775,9 @@ public Builder addAllDocuments(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearDocuments() { - documents_ = com.google.protobuf.LazyStringArrayList.EMPTY; + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -814,6 +803,7 @@ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureDocumentsIsMutable(); documents_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -957,7 +947,7 @@ public interface QueryTargetOrBuilder */ com.google.firestore.v1.StructuredQueryOrBuilder getStructuredQueryOrBuilder(); - public com.google.firestore.v1.Target.QueryTarget.QueryTypeCase getQueryTypeCase(); + com.google.firestore.v1.Target.QueryTarget.QueryTypeCase getQueryTypeCase(); } /** * @@ -988,11 +978,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryTarget(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_Target_QueryTarget_descriptor; @@ -1009,6 +994,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int queryTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object queryType_; public enum QueryTypeCase @@ -1984,6 +1971,8 @@ public com.google.firestore.v1.Target.QueryTarget getDefaultInstanceForType() { } private int targetTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object targetType_; public enum TargetTypeCase @@ -2031,6 +2020,8 @@ public TargetTypeCase getTargetTypeCase() { } private int resumeTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object resumeType_; public enum ResumeTypeCase @@ -2186,6 +2177,7 @@ public com.google.firestore.v1.Target.DocumentsTargetOrBuilder getDocumentsOrBui *
    * A resume token from a prior
    * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+   *
    * Using a resume token with a different target is unsupported and may fail.
    * 
* @@ -2203,6 +2195,7 @@ public boolean hasResumeToken() { *
    * A resume token from a prior
    * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+   *
    * Using a resume token with a different target is unsupported and may fail.
    * 
* @@ -2224,6 +2217,7 @@ public com.google.protobuf.ByteString getResumeToken() { * *
    * Start listening after a specific `read_time`.
+   *
    * The client must know the state of matching documents at this time.
    * 
* @@ -2240,6 +2234,7 @@ public boolean hasReadTime() { * *
    * Start listening after a specific `read_time`.
+   *
    * The client must know the state of matching documents at this time.
    * 
* @@ -2259,6 +2254,7 @@ public com.google.protobuf.Timestamp getReadTime() { * *
    * Start listening after a specific `read_time`.
+   *
    * The client must know the state of matching documents at this time.
    * 
* @@ -2317,6 +2313,7 @@ public boolean getOnce() { *
    * The number of documents that last matched the query at the resume token or
    * read time.
+   *
    * This value is only relevant when a `resume_type` is provided. This value
    * being present and greater than zero signals that the client wants
    * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -2336,6 +2333,7 @@ public boolean hasExpectedCount() {
    * 
    * The number of documents that last matched the query at the resume token or
    * read time.
+   *
    * This value is only relevant when a `resume_type` is provided. This value
    * being present and greater than zero signals that the client wants
    * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -2357,6 +2355,7 @@ public com.google.protobuf.Int32Value getExpectedCount() {
    * 
    * The number of documents that last matched the query at the resume token or
    * read time.
+   *
    * This value is only relevant when a `resume_type` is provided. This value
    * being present and greater than zero signals that the client wants
    * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -3375,6 +3374,7 @@ public com.google.firestore.v1.Target.DocumentsTargetOrBuilder getDocumentsOrBui
      * 
      * A resume token from a prior
      * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+     *
      * Using a resume token with a different target is unsupported and may fail.
      * 
* @@ -3391,6 +3391,7 @@ public boolean hasResumeToken() { *
      * A resume token from a prior
      * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+     *
      * Using a resume token with a different target is unsupported and may fail.
      * 
* @@ -3410,6 +3411,7 @@ public com.google.protobuf.ByteString getResumeToken() { *
      * A resume token from a prior
      * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+     *
      * Using a resume token with a different target is unsupported and may fail.
      * 
* @@ -3433,6 +3435,7 @@ public Builder setResumeToken(com.google.protobuf.ByteString value) { *
      * A resume token from a prior
      * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+     *
      * Using a resume token with a different target is unsupported and may fail.
      * 
* @@ -3459,6 +3462,7 @@ public Builder clearResumeToken() { * *
      * Start listening after a specific `read_time`.
+     *
      * The client must know the state of matching documents at this time.
      * 
* @@ -3475,6 +3479,7 @@ public boolean hasReadTime() { * *
      * Start listening after a specific `read_time`.
+     *
      * The client must know the state of matching documents at this time.
      * 
* @@ -3501,6 +3506,7 @@ public com.google.protobuf.Timestamp getReadTime() { * *
      * Start listening after a specific `read_time`.
+     *
      * The client must know the state of matching documents at this time.
      * 
* @@ -3524,6 +3530,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *
      * Start listening after a specific `read_time`.
+     *
      * The client must know the state of matching documents at this time.
      * 
* @@ -3544,6 +3551,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * *
      * Start listening after a specific `read_time`.
+     *
      * The client must know the state of matching documents at this time.
      * 
* @@ -3576,6 +3584,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * *
      * Start listening after a specific `read_time`.
+     *
      * The client must know the state of matching documents at this time.
      * 
* @@ -3602,6 +3611,7 @@ public Builder clearReadTime() { * *
      * Start listening after a specific `read_time`.
+     *
      * The client must know the state of matching documents at this time.
      * 
* @@ -3615,6 +3625,7 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * *
      * Start listening after a specific `read_time`.
+     *
      * The client must know the state of matching documents at this time.
      * 
* @@ -3636,6 +3647,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
      * Start listening after a specific `read_time`.
+     *
      * The client must know the state of matching documents at this time.
      * 
* @@ -3784,6 +3796,7 @@ public Builder clearOnce() { *
      * The number of documents that last matched the query at the resume token or
      * read time.
+     *
      * This value is only relevant when a `resume_type` is provided. This value
      * being present and greater than zero signals that the client wants
      * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -3802,6 +3815,7 @@ public boolean hasExpectedCount() {
      * 
      * The number of documents that last matched the query at the resume token or
      * read time.
+     *
      * This value is only relevant when a `resume_type` is provided. This value
      * being present and greater than zero signals that the client wants
      * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -3826,6 +3840,7 @@ public com.google.protobuf.Int32Value getExpectedCount() {
      * 
      * The number of documents that last matched the query at the resume token or
      * read time.
+     *
      * This value is only relevant when a `resume_type` is provided. This value
      * being present and greater than zero signals that the client wants
      * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -3852,6 +3867,7 @@ public Builder setExpectedCount(com.google.protobuf.Int32Value value) {
      * 
      * The number of documents that last matched the query at the resume token or
      * read time.
+     *
      * This value is only relevant when a `resume_type` is provided. This value
      * being present and greater than zero signals that the client wants
      * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -3875,6 +3891,7 @@ public Builder setExpectedCount(com.google.protobuf.Int32Value.Builder builderFo
      * 
      * The number of documents that last matched the query at the resume token or
      * read time.
+     *
      * This value is only relevant when a `resume_type` is provided. This value
      * being present and greater than zero signals that the client wants
      * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -3904,6 +3921,7 @@ public Builder mergeExpectedCount(com.google.protobuf.Int32Value value) {
      * 
      * The number of documents that last matched the query at the resume token or
      * read time.
+     *
      * This value is only relevant when a `resume_type` is provided. This value
      * being present and greater than zero signals that the client wants
      * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -3927,6 +3945,7 @@ public Builder clearExpectedCount() {
      * 
      * The number of documents that last matched the query at the resume token or
      * read time.
+     *
      * This value is only relevant when a `resume_type` is provided. This value
      * being present and greater than zero signals that the client wants
      * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -3945,6 +3964,7 @@ public com.google.protobuf.Int32Value.Builder getExpectedCountBuilder() {
      * 
      * The number of documents that last matched the query at the resume token or
      * read time.
+     *
      * This value is only relevant when a `resume_type` is provided. This value
      * being present and greater than zero signals that the client wants
      * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -3967,6 +3987,7 @@ public com.google.protobuf.Int32ValueOrBuilder getExpectedCountOrBuilder() {
      * 
      * The number of documents that last matched the query at the resume token or
      * read time.
+     *
      * This value is only relevant when a `resume_type` is provided. This value
      * being present and greater than zero signals that the client wants
      * `ExistenceFilter.unchanged_names` to be included in the response.
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChange.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChange.java
index 7d8f13d1a..24d2d5105 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChange.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChange.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TargetChange();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.firestore.v1.FirestoreProto
         .internal_static_google_firestore_v1_TargetChange_descriptor;
@@ -115,8 +110,10 @@ public enum TargetChangeType implements com.google.protobuf.ProtocolMessageEnum
      * 
      * The targets reflect all changes committed before the targets were added
      * to the stream.
+     *
      * This will be sent after or with a `read_time` that is greater than or
      * equal to the time at which the targets were added.
+     *
      * Listeners can wait for this change if read-after-write semantics
      * are desired.
      * 
@@ -130,6 +127,7 @@ public enum TargetChangeType implements com.google.protobuf.ProtocolMessageEnum *
      * The targets have been reset, and a new initial state for the targets
      * will be returned in subsequent changes.
+     *
      * After the initial state is complete, `CURRENT` will be returned even
      * if the target was previously indicated to be `CURRENT`.
      * 
@@ -176,8 +174,10 @@ public enum TargetChangeType implements com.google.protobuf.ProtocolMessageEnum *
      * The targets reflect all changes committed before the targets were added
      * to the stream.
+     *
      * This will be sent after or with a `read_time` that is greater than or
      * equal to the time at which the targets were added.
+     *
      * Listeners can wait for this change if read-after-write semantics
      * are desired.
      * 
@@ -191,6 +191,7 @@ public enum TargetChangeType implements com.google.protobuf.ProtocolMessageEnum *
      * The targets have been reset, and a new initial state for the targets
      * will be returned in subsequent changes.
+     *
      * After the initial state is complete, `CURRENT` will be returned even
      * if the target was previously indicated to be `CURRENT`.
      * 
@@ -334,7 +335,9 @@ public com.google.firestore.v1.TargetChange.TargetChangeType getTargetChangeType * *
    * The target IDs of targets that have changed.
+   *
    * If empty, the change applies to all targets.
+   *
    * The order of the target IDs is not defined.
    * 
* @@ -351,7 +354,9 @@ public java.util.List getTargetIdsList() { * *
    * The target IDs of targets that have changed.
+   *
    * If empty, the change applies to all targets.
+   *
    * The order of the target IDs is not defined.
    * 
* @@ -367,7 +372,9 @@ public int getTargetIdsCount() { * *
    * The target IDs of targets that have changed.
+   *
    * If empty, the change applies to all targets.
+   *
    * The order of the target IDs is not defined.
    * 
* @@ -436,6 +443,7 @@ public com.google.rpc.StatusOrBuilder getCauseOrBuilder() { *
    * A token that can be used to resume the stream for the given `target_ids`,
    * or all targets if `target_ids` is empty.
+   *
    * Not set on every target change.
    * 
* @@ -456,10 +464,12 @@ public com.google.protobuf.ByteString getResumeToken() { *
    * The consistent `read_time` for the given `target_ids` (omitted when the
    * target_ids are not at a consistent snapshot).
+   *
    * The stream is guaranteed to send a `read_time` with `target_ids` empty
    * whenever the entire stream reaches a new consistent snapshot. ADD,
    * CURRENT, and RESET messages are guaranteed to (eventually) result in a
    * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+   *
    * For a given stream, `read_time` is guaranteed to be monotonically
    * increasing.
    * 
@@ -478,10 +488,12 @@ public boolean hasReadTime() { *
    * The consistent `read_time` for the given `target_ids` (omitted when the
    * target_ids are not at a consistent snapshot).
+   *
    * The stream is guaranteed to send a `read_time` with `target_ids` empty
    * whenever the entire stream reaches a new consistent snapshot. ADD,
    * CURRENT, and RESET messages are guaranteed to (eventually) result in a
    * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+   *
    * For a given stream, `read_time` is guaranteed to be monotonically
    * increasing.
    * 
@@ -500,10 +512,12 @@ public com.google.protobuf.Timestamp getReadTime() { *
    * The consistent `read_time` for the given `target_ids` (omitted when the
    * target_ids are not at a consistent snapshot).
+   *
    * The stream is guaranteed to send a `read_time` with `target_ids` empty
    * whenever the entire stream reaches a new consistent snapshot. ADD,
    * CURRENT, and RESET messages are guaranteed to (eventually) result in a
    * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+   *
    * For a given stream, `read_time` is guaranteed to be monotonically
    * increasing.
    * 
@@ -1107,7 +1121,9 @@ private void ensureTargetIdsIsMutable() { * *
      * The target IDs of targets that have changed.
+     *
      * If empty, the change applies to all targets.
+     *
      * The order of the target IDs is not defined.
      * 
* @@ -1125,7 +1141,9 @@ public java.util.List getTargetIdsList() { * *
      * The target IDs of targets that have changed.
+     *
      * If empty, the change applies to all targets.
+     *
      * The order of the target IDs is not defined.
      * 
* @@ -1141,7 +1159,9 @@ public int getTargetIdsCount() { * *
      * The target IDs of targets that have changed.
+     *
      * If empty, the change applies to all targets.
+     *
      * The order of the target IDs is not defined.
      * 
* @@ -1158,7 +1178,9 @@ public int getTargetIds(int index) { * *
      * The target IDs of targets that have changed.
+     *
      * If empty, the change applies to all targets.
+     *
      * The order of the target IDs is not defined.
      * 
* @@ -1180,7 +1202,9 @@ public Builder setTargetIds(int index, int value) { * *
      * The target IDs of targets that have changed.
+     *
      * If empty, the change applies to all targets.
+     *
      * The order of the target IDs is not defined.
      * 
* @@ -1201,7 +1225,9 @@ public Builder addTargetIds(int value) { * *
      * The target IDs of targets that have changed.
+     *
      * If empty, the change applies to all targets.
+     *
      * The order of the target IDs is not defined.
      * 
* @@ -1221,7 +1247,9 @@ public Builder addAllTargetIds(java.lang.Iterable v * *
      * The target IDs of targets that have changed.
+     *
      * If empty, the change applies to all targets.
+     *
      * The order of the target IDs is not defined.
      * 
* @@ -1417,6 +1445,7 @@ public com.google.rpc.StatusOrBuilder getCauseOrBuilder() { *
      * A token that can be used to resume the stream for the given `target_ids`,
      * or all targets if `target_ids` is empty.
+     *
      * Not set on every target change.
      * 
* @@ -1434,6 +1463,7 @@ public com.google.protobuf.ByteString getResumeToken() { *
      * A token that can be used to resume the stream for the given `target_ids`,
      * or all targets if `target_ids` is empty.
+     *
      * Not set on every target change.
      * 
* @@ -1457,6 +1487,7 @@ public Builder setResumeToken(com.google.protobuf.ByteString value) { *
      * A token that can be used to resume the stream for the given `target_ids`,
      * or all targets if `target_ids` is empty.
+     *
      * Not set on every target change.
      * 
* @@ -1483,10 +1514,12 @@ public Builder clearResumeToken() { *
      * The consistent `read_time` for the given `target_ids` (omitted when the
      * target_ids are not at a consistent snapshot).
+     *
      * The stream is guaranteed to send a `read_time` with `target_ids` empty
      * whenever the entire stream reaches a new consistent snapshot. ADD,
      * CURRENT, and RESET messages are guaranteed to (eventually) result in a
      * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+     *
      * For a given stream, `read_time` is guaranteed to be monotonically
      * increasing.
      * 
@@ -1504,10 +1537,12 @@ public boolean hasReadTime() { *
      * The consistent `read_time` for the given `target_ids` (omitted when the
      * target_ids are not at a consistent snapshot).
+     *
      * The stream is guaranteed to send a `read_time` with `target_ids` empty
      * whenever the entire stream reaches a new consistent snapshot. ADD,
      * CURRENT, and RESET messages are guaranteed to (eventually) result in a
      * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+     *
      * For a given stream, `read_time` is guaranteed to be monotonically
      * increasing.
      * 
@@ -1529,10 +1564,12 @@ public com.google.protobuf.Timestamp getReadTime() { *
      * The consistent `read_time` for the given `target_ids` (omitted when the
      * target_ids are not at a consistent snapshot).
+     *
      * The stream is guaranteed to send a `read_time` with `target_ids` empty
      * whenever the entire stream reaches a new consistent snapshot. ADD,
      * CURRENT, and RESET messages are guaranteed to (eventually) result in a
      * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+     *
      * For a given stream, `read_time` is guaranteed to be monotonically
      * increasing.
      * 
@@ -1558,10 +1595,12 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { *
      * The consistent `read_time` for the given `target_ids` (omitted when the
      * target_ids are not at a consistent snapshot).
+     *
      * The stream is guaranteed to send a `read_time` with `target_ids` empty
      * whenever the entire stream reaches a new consistent snapshot. ADD,
      * CURRENT, and RESET messages are guaranteed to (eventually) result in a
      * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+     *
      * For a given stream, `read_time` is guaranteed to be monotonically
      * increasing.
      * 
@@ -1584,10 +1623,12 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue *
      * The consistent `read_time` for the given `target_ids` (omitted when the
      * target_ids are not at a consistent snapshot).
+     *
      * The stream is guaranteed to send a `read_time` with `target_ids` empty
      * whenever the entire stream reaches a new consistent snapshot. ADD,
      * CURRENT, and RESET messages are guaranteed to (eventually) result in a
      * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+     *
      * For a given stream, `read_time` is guaranteed to be monotonically
      * increasing.
      * 
@@ -1616,10 +1657,12 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { *
      * The consistent `read_time` for the given `target_ids` (omitted when the
      * target_ids are not at a consistent snapshot).
+     *
      * The stream is guaranteed to send a `read_time` with `target_ids` empty
      * whenever the entire stream reaches a new consistent snapshot. ADD,
      * CURRENT, and RESET messages are guaranteed to (eventually) result in a
      * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+     *
      * For a given stream, `read_time` is guaranteed to be monotonically
      * increasing.
      * 
@@ -1642,10 +1685,12 @@ public Builder clearReadTime() { *
      * The consistent `read_time` for the given `target_ids` (omitted when the
      * target_ids are not at a consistent snapshot).
+     *
      * The stream is guaranteed to send a `read_time` with `target_ids` empty
      * whenever the entire stream reaches a new consistent snapshot. ADD,
      * CURRENT, and RESET messages are guaranteed to (eventually) result in a
      * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+     *
      * For a given stream, `read_time` is guaranteed to be monotonically
      * increasing.
      * 
@@ -1663,10 +1708,12 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { *
      * The consistent `read_time` for the given `target_ids` (omitted when the
      * target_ids are not at a consistent snapshot).
+     *
      * The stream is guaranteed to send a `read_time` with `target_ids` empty
      * whenever the entire stream reaches a new consistent snapshot. ADD,
      * CURRENT, and RESET messages are guaranteed to (eventually) result in a
      * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+     *
      * For a given stream, `read_time` is guaranteed to be monotonically
      * increasing.
      * 
@@ -1686,10 +1733,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { *
      * The consistent `read_time` for the given `target_ids` (omitted when the
      * target_ids are not at a consistent snapshot).
+     *
      * The stream is guaranteed to send a `read_time` with `target_ids` empty
      * whenever the entire stream reaches a new consistent snapshot. ADD,
      * CURRENT, and RESET messages are guaranteed to (eventually) result in a
      * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+     *
      * For a given stream, `read_time` is guaranteed to be monotonically
      * increasing.
      * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChangeOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChangeOrBuilder.java index 2c36f37e4..20c9e679b 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChangeOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChangeOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -53,7 +53,9 @@ public interface TargetChangeOrBuilder * *
    * The target IDs of targets that have changed.
+   *
    * If empty, the change applies to all targets.
+   *
    * The order of the target IDs is not defined.
    * 
* @@ -67,7 +69,9 @@ public interface TargetChangeOrBuilder * *
    * The target IDs of targets that have changed.
+   *
    * If empty, the change applies to all targets.
+   *
    * The order of the target IDs is not defined.
    * 
* @@ -81,7 +85,9 @@ public interface TargetChangeOrBuilder * *
    * The target IDs of targets that have changed.
+   *
    * If empty, the change applies to all targets.
+   *
    * The order of the target IDs is not defined.
    * 
* @@ -133,6 +139,7 @@ public interface TargetChangeOrBuilder *
    * A token that can be used to resume the stream for the given `target_ids`,
    * or all targets if `target_ids` is empty.
+   *
    * Not set on every target change.
    * 
* @@ -148,10 +155,12 @@ public interface TargetChangeOrBuilder *
    * The consistent `read_time` for the given `target_ids` (omitted when the
    * target_ids are not at a consistent snapshot).
+   *
    * The stream is guaranteed to send a `read_time` with `target_ids` empty
    * whenever the entire stream reaches a new consistent snapshot. ADD,
    * CURRENT, and RESET messages are guaranteed to (eventually) result in a
    * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+   *
    * For a given stream, `read_time` is guaranteed to be monotonically
    * increasing.
    * 
@@ -167,10 +176,12 @@ public interface TargetChangeOrBuilder *
    * The consistent `read_time` for the given `target_ids` (omitted when the
    * target_ids are not at a consistent snapshot).
+   *
    * The stream is guaranteed to send a `read_time` with `target_ids` empty
    * whenever the entire stream reaches a new consistent snapshot. ADD,
    * CURRENT, and RESET messages are guaranteed to (eventually) result in a
    * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+   *
    * For a given stream, `read_time` is guaranteed to be monotonically
    * increasing.
    * 
@@ -186,10 +197,12 @@ public interface TargetChangeOrBuilder *
    * The consistent `read_time` for the given `target_ids` (omitted when the
    * target_ids are not at a consistent snapshot).
+   *
    * The stream is guaranteed to send a `read_time` with `target_ids` empty
    * whenever the entire stream reaches a new consistent snapshot. ADD,
    * CURRENT, and RESET messages are guaranteed to (eventually) result in a
    * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+   *
    * For a given stream, `read_time` is guaranteed to be monotonically
    * increasing.
    * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetOrBuilder.java index 4f183c645..877b79342 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -99,6 +99,7 @@ public interface TargetOrBuilder *
    * A resume token from a prior
    * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+   *
    * Using a resume token with a different target is unsupported and may fail.
    * 
* @@ -113,6 +114,7 @@ public interface TargetOrBuilder *
    * A resume token from a prior
    * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+   *
    * Using a resume token with a different target is unsupported and may fail.
    * 
* @@ -127,6 +129,7 @@ public interface TargetOrBuilder * *
    * Start listening after a specific `read_time`.
+   *
    * The client must know the state of matching documents at this time.
    * 
* @@ -140,6 +143,7 @@ public interface TargetOrBuilder * *
    * Start listening after a specific `read_time`.
+   *
    * The client must know the state of matching documents at this time.
    * 
* @@ -153,6 +157,7 @@ public interface TargetOrBuilder * *
    * Start listening after a specific `read_time`.
+   *
    * The client must know the state of matching documents at this time.
    * 
* @@ -193,6 +198,7 @@ public interface TargetOrBuilder *
    * The number of documents that last matched the query at the resume token or
    * read time.
+   *
    * This value is only relevant when a `resume_type` is provided. This value
    * being present and greater than zero signals that the client wants
    * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -209,6 +215,7 @@ public interface TargetOrBuilder
    * 
    * The number of documents that last matched the query at the resume token or
    * read time.
+   *
    * This value is only relevant when a `resume_type` is provided. This value
    * being present and greater than zero signals that the client wants
    * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -225,6 +232,7 @@ public interface TargetOrBuilder
    * 
    * The number of documents that last matched the query at the resume token or
    * read time.
+   *
    * This value is only relevant when a `resume_type` is provided. This value
    * being present and greater than zero signals that the client wants
    * `ExistenceFilter.unchanged_names` to be included in the response.
@@ -234,7 +242,7 @@ public interface TargetOrBuilder
    */
   com.google.protobuf.Int32ValueOrBuilder getExpectedCountOrBuilder();
 
-  public com.google.firestore.v1.Target.TargetTypeCase getTargetTypeCase();
+  com.google.firestore.v1.Target.TargetTypeCase getTargetTypeCase();
 
-  public com.google.firestore.v1.Target.ResumeTypeCase getResumeTypeCase();
+  com.google.firestore.v1.Target.ResumeTypeCase getResumeTypeCase();
 }
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptions.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptions.java
index 6e963e87f..91eaabfb5 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptions.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptions.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 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.
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TransactionOptions();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.firestore.v1.CommonProto
         .internal_static_google_firestore_v1_TransactionOptions_descriptor;
@@ -88,6 +83,9 @@ public interface ReadWriteOrBuilder
    *
    * 
    * Options for a transaction that can be used to read and write documents.
+   *
+   * Firestore does not allow 3rd party auth requests to create read-write.
+   * transactions.
    * 
* * Protobuf type {@code google.firestore.v1.TransactionOptions.ReadWrite} @@ -112,11 +110,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadWrite(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.CommonProto .internal_static_google_firestore_v1_TransactionOptions_ReadWrite_descriptor; @@ -316,6 +309,9 @@ protected Builder newBuilderForType( * *
      * Options for a transaction that can be used to read and write documents.
+     *
+     * Firestore does not allow 3rd party auth requests to create read-write.
+     * transactions.
      * 
* * Protobuf type {@code google.firestore.v1.TransactionOptions.ReadWrite} @@ -625,7 +621,10 @@ public interface ReadOnlyOrBuilder * *
      * Reads documents at the given time.
-     * This may not be older than 60 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one
+     * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+     * whole minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -638,7 +637,10 @@ public interface ReadOnlyOrBuilder * *
      * Reads documents at the given time.
-     * This may not be older than 60 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one
+     * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+     * whole minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -651,14 +653,17 @@ public interface ReadOnlyOrBuilder * *
      * Reads documents at the given time.
-     * This may not be older than 60 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one
+     * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+     * whole minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); - public com.google.firestore.v1.TransactionOptions.ReadOnly.ConsistencySelectorCase + com.google.firestore.v1.TransactionOptions.ReadOnly.ConsistencySelectorCase getConsistencySelectorCase(); } /** @@ -688,11 +693,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadOnly(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.CommonProto .internal_static_google_firestore_v1_TransactionOptions_ReadOnly_descriptor; @@ -709,6 +709,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int consistencySelectorCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object consistencySelector_; public enum ConsistencySelectorCase @@ -758,7 +760,10 @@ public ConsistencySelectorCase getConsistencySelectorCase() { * *
      * Reads documents at the given time.
-     * This may not be older than 60 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one
+     * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+     * whole minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -774,7 +779,10 @@ public boolean hasReadTime() { * *
      * Reads documents at the given time.
-     * This may not be older than 60 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one
+     * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+     * whole minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -793,7 +801,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
      * Reads documents at the given time.
-     * This may not be older than 60 seconds.
+     *
+     * This must be a microsecond precision timestamp within the past one
+     * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+     * whole minute timestamp within the past 7 days.
      * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1208,7 +1219,10 @@ public Builder clearConsistencySelector() { * *
        * Reads documents at the given time.
-       * This may not be older than 60 seconds.
+       *
+       * This must be a microsecond precision timestamp within the past one
+       * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+       * whole minute timestamp within the past 7 days.
        * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1224,7 +1238,10 @@ public boolean hasReadTime() { * *
        * Reads documents at the given time.
-       * This may not be older than 60 seconds.
+       *
+       * This must be a microsecond precision timestamp within the past one
+       * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+       * whole minute timestamp within the past 7 days.
        * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1250,7 +1267,10 @@ public com.google.protobuf.Timestamp getReadTime() { * *
        * Reads documents at the given time.
-       * This may not be older than 60 seconds.
+       *
+       * This must be a microsecond precision timestamp within the past one
+       * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+       * whole minute timestamp within the past 7 days.
        * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1273,7 +1293,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *
        * Reads documents at the given time.
-       * This may not be older than 60 seconds.
+       *
+       * This must be a microsecond precision timestamp within the past one
+       * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+       * whole minute timestamp within the past 7 days.
        * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1293,7 +1316,10 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue * *
        * Reads documents at the given time.
-       * This may not be older than 60 seconds.
+       *
+       * This must be a microsecond precision timestamp within the past one
+       * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+       * whole minute timestamp within the past 7 days.
        * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1326,7 +1352,10 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { * *
        * Reads documents at the given time.
-       * This may not be older than 60 seconds.
+       *
+       * This must be a microsecond precision timestamp within the past one
+       * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+       * whole minute timestamp within the past 7 days.
        * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1352,7 +1381,10 @@ public Builder clearReadTime() { * *
        * Reads documents at the given time.
-       * This may not be older than 60 seconds.
+       *
+       * This must be a microsecond precision timestamp within the past one
+       * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+       * whole minute timestamp within the past 7 days.
        * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1365,7 +1397,10 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { * *
        * Reads documents at the given time.
-       * This may not be older than 60 seconds.
+       *
+       * This must be a microsecond precision timestamp within the past one
+       * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+       * whole minute timestamp within the past 7 days.
        * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1386,7 +1421,10 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * *
        * Reads documents at the given time.
-       * This may not be older than 60 seconds.
+       *
+       * This must be a microsecond precision timestamp within the past one
+       * hour, or if Point-in-Time Recovery is enabled, can additionally be a
+       * whole minute timestamp within the past 7 days.
        * 
* * .google.protobuf.Timestamp read_time = 2; @@ -1480,6 +1518,8 @@ public com.google.firestore.v1.TransactionOptions.ReadOnly getDefaultInstanceFor } private int modeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object mode_; public enum ModeCase diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptionsOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptionsOrBuilder.java index 7010d2dba..c8a34322d 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptionsOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptionsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -93,5 +93,5 @@ public interface TransactionOptionsOrBuilder */ com.google.firestore.v1.TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder(); - public com.google.firestore.v1.TransactionOptions.ModeCase getModeCase(); + com.google.firestore.v1.TransactionOptions.ModeCase getModeCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequest.java index c6846f02f..d1fd63ad9 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -46,11 +46,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDocumentRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_UpdateDocumentRequest_descriptor; @@ -126,6 +121,7 @@ public com.google.firestore.v1.DocumentOrBuilder getDocumentOrBuilder() { *
    * The fields to update.
    * None of the field paths in the mask may contain a reserved name.
+   *
    * If the document exists on the server and has fields not referenced in the
    * mask, they are left unchanged.
    * Fields referenced in the mask, but not present in the input document, are
@@ -146,6 +142,7 @@ public boolean hasUpdateMask() {
    * 
    * The fields to update.
    * None of the field paths in the mask may contain a reserved name.
+   *
    * If the document exists on the server and has fields not referenced in the
    * mask, they are left unchanged.
    * Fields referenced in the mask, but not present in the input document, are
@@ -168,6 +165,7 @@ public com.google.firestore.v1.DocumentMask getUpdateMask() {
    * 
    * The fields to update.
    * None of the field paths in the mask may contain a reserved name.
+   *
    * If the document exists on the server and has fields not referenced in the
    * mask, they are left unchanged.
    * Fields referenced in the mask, but not present in the input document, are
@@ -190,6 +188,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getUpdateMaskOrBuilder() {
    *
    * 
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -207,6 +206,7 @@ public boolean hasMask() { * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -224,6 +224,7 @@ public com.google.firestore.v1.DocumentMask getMask() { * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -944,6 +945,7 @@ public com.google.firestore.v1.DocumentOrBuilder getDocumentOrBuilder() { *
      * The fields to update.
      * None of the field paths in the mask may contain a reserved name.
+     *
      * If the document exists on the server and has fields not referenced in the
      * mask, they are left unchanged.
      * Fields referenced in the mask, but not present in the input document, are
@@ -963,6 +965,7 @@ public boolean hasUpdateMask() {
      * 
      * The fields to update.
      * None of the field paths in the mask may contain a reserved name.
+     *
      * If the document exists on the server and has fields not referenced in the
      * mask, they are left unchanged.
      * Fields referenced in the mask, but not present in the input document, are
@@ -988,6 +991,7 @@ public com.google.firestore.v1.DocumentMask getUpdateMask() {
      * 
      * The fields to update.
      * None of the field paths in the mask may contain a reserved name.
+     *
      * If the document exists on the server and has fields not referenced in the
      * mask, they are left unchanged.
      * Fields referenced in the mask, but not present in the input document, are
@@ -1015,6 +1019,7 @@ public Builder setUpdateMask(com.google.firestore.v1.DocumentMask value) {
      * 
      * The fields to update.
      * None of the field paths in the mask may contain a reserved name.
+     *
      * If the document exists on the server and has fields not referenced in the
      * mask, they are left unchanged.
      * Fields referenced in the mask, but not present in the input document, are
@@ -1039,6 +1044,7 @@ public Builder setUpdateMask(com.google.firestore.v1.DocumentMask.Builder builde
      * 
      * The fields to update.
      * None of the field paths in the mask may contain a reserved name.
+     *
      * If the document exists on the server and has fields not referenced in the
      * mask, they are left unchanged.
      * Fields referenced in the mask, but not present in the input document, are
@@ -1069,6 +1075,7 @@ public Builder mergeUpdateMask(com.google.firestore.v1.DocumentMask value) {
      * 
      * The fields to update.
      * None of the field paths in the mask may contain a reserved name.
+     *
      * If the document exists on the server and has fields not referenced in the
      * mask, they are left unchanged.
      * Fields referenced in the mask, but not present in the input document, are
@@ -1093,6 +1100,7 @@ public Builder clearUpdateMask() {
      * 
      * The fields to update.
      * None of the field paths in the mask may contain a reserved name.
+     *
      * If the document exists on the server and has fields not referenced in the
      * mask, they are left unchanged.
      * Fields referenced in the mask, but not present in the input document, are
@@ -1112,6 +1120,7 @@ public com.google.firestore.v1.DocumentMask.Builder getUpdateMaskBuilder() {
      * 
      * The fields to update.
      * None of the field paths in the mask may contain a reserved name.
+     *
      * If the document exists on the server and has fields not referenced in the
      * mask, they are left unchanged.
      * Fields referenced in the mask, but not present in the input document, are
@@ -1135,6 +1144,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
      * The fields to update.
      * None of the field paths in the mask may contain a reserved name.
+     *
      * If the document exists on the server and has fields not referenced in the
      * mask, they are left unchanged.
      * Fields referenced in the mask, but not present in the input document, are
@@ -1171,6 +1181,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getUpdateMaskOrBuilder() {
      *
      * 
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1187,6 +1198,7 @@ public boolean hasMask() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1207,6 +1219,7 @@ public com.google.firestore.v1.DocumentMask getMask() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1231,6 +1244,7 @@ public Builder setMask(com.google.firestore.v1.DocumentMask value) { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1252,6 +1266,7 @@ public Builder setMask(com.google.firestore.v1.DocumentMask.Builder builderForVa * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1279,6 +1294,7 @@ public Builder mergeMask(com.google.firestore.v1.DocumentMask value) { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1300,6 +1316,7 @@ public Builder clearMask() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1316,6 +1333,7 @@ public com.google.firestore.v1.DocumentMask.Builder getMaskBuilder() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
@@ -1334,6 +1352,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getMaskOrBuilder() { * *
      * The fields to return. If not set, returns all fields.
+     *
      * If the document has a field that is not present in this mask, that field
      * will not be returned in the response.
      * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequestOrBuilder.java index bd85f98ec..f6e5e2366 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -70,6 +70,7 @@ public interface UpdateDocumentRequestOrBuilder *
    * The fields to update.
    * None of the field paths in the mask may contain a reserved name.
+   *
    * If the document exists on the server and has fields not referenced in the
    * mask, they are left unchanged.
    * Fields referenced in the mask, but not present in the input document, are
@@ -87,6 +88,7 @@ public interface UpdateDocumentRequestOrBuilder
    * 
    * The fields to update.
    * None of the field paths in the mask may contain a reserved name.
+   *
    * If the document exists on the server and has fields not referenced in the
    * mask, they are left unchanged.
    * Fields referenced in the mask, but not present in the input document, are
@@ -104,6 +106,7 @@ public interface UpdateDocumentRequestOrBuilder
    * 
    * The fields to update.
    * None of the field paths in the mask may contain a reserved name.
+   *
    * If the document exists on the server and has fields not referenced in the
    * mask, they are left unchanged.
    * Fields referenced in the mask, but not present in the input document, are
@@ -119,6 +122,7 @@ public interface UpdateDocumentRequestOrBuilder
    *
    * 
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -133,6 +137,7 @@ public interface UpdateDocumentRequestOrBuilder * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
@@ -147,6 +152,7 @@ public interface UpdateDocumentRequestOrBuilder * *
    * The fields to return. If not set, returns all fields.
+   *
    * If the document has a field that is not present in this mask, that field
    * will not be returned in the response.
    * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Value.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Value.java index d1632b868..9184464e8 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Value.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Value.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Value(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.DocumentProto .internal_static_google_firestore_v1_Value_descriptor; @@ -65,6 +60,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int valueTypeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object valueType_; public enum ValueTypeCase @@ -301,6 +298,7 @@ public double getDoubleValue() { * *
    * A timestamp value.
+   *
    * Precise only to microseconds. When stored, any additional precision is
    * rounded down.
    * 
@@ -318,6 +316,7 @@ public boolean hasTimestampValue() { * *
    * A timestamp value.
+   *
    * Precise only to microseconds. When stored, any additional precision is
    * rounded down.
    * 
@@ -338,6 +337,7 @@ public com.google.protobuf.Timestamp getTimestampValue() { * *
    * A timestamp value.
+   *
    * Precise only to microseconds. When stored, any additional precision is
    * rounded down.
    * 
@@ -358,6 +358,7 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { * *
    * A string value.
+   *
    * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
    * Only the first 1,500 bytes of the UTF-8 representation are considered by
    * queries.
@@ -375,6 +376,7 @@ public boolean hasStringValue() {
    *
    * 
    * A string value.
+   *
    * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
    * Only the first 1,500 bytes of the UTF-8 representation are considered by
    * queries.
@@ -405,6 +407,7 @@ public java.lang.String getStringValue() {
    *
    * 
    * A string value.
+   *
    * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
    * Only the first 1,500 bytes of the UTF-8 representation are considered by
    * queries.
@@ -437,6 +440,7 @@ public com.google.protobuf.ByteString getStringValueBytes() {
    *
    * 
    * A bytes value.
+   *
    * Must not exceed 1 MiB - 89 bytes.
    * Only the first 1,500 bytes are considered by queries.
    * 
@@ -454,6 +458,7 @@ public boolean hasBytesValue() { * *
    * A bytes value.
+   *
    * Must not exceed 1 MiB - 89 bytes.
    * Only the first 1,500 bytes are considered by queries.
    * 
@@ -600,6 +605,7 @@ public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() { * *
    * An array value.
+   *
    * Cannot directly contain another array value, though can contain an
    * map which contains another array.
    * 
@@ -617,6 +623,7 @@ public boolean hasArrayValue() { * *
    * An array value.
+   *
    * Cannot directly contain another array value, though can contain an
    * map which contains another array.
    * 
@@ -637,6 +644,7 @@ public com.google.firestore.v1.ArrayValue getArrayValue() { * *
    * An array value.
+   *
    * Cannot directly contain another array value, though can contain an
    * map which contains another array.
    * 
@@ -1701,6 +1709,7 @@ public Builder clearDoubleValue() { * *
      * A timestamp value.
+     *
      * Precise only to microseconds. When stored, any additional precision is
      * rounded down.
      * 
@@ -1718,6 +1727,7 @@ public boolean hasTimestampValue() { * *
      * A timestamp value.
+     *
      * Precise only to microseconds. When stored, any additional precision is
      * rounded down.
      * 
@@ -1745,6 +1755,7 @@ public com.google.protobuf.Timestamp getTimestampValue() { * *
      * A timestamp value.
+     *
      * Precise only to microseconds. When stored, any additional precision is
      * rounded down.
      * 
@@ -1769,6 +1780,7 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp value) { * *
      * A timestamp value.
+     *
      * Precise only to microseconds. When stored, any additional precision is
      * rounded down.
      * 
@@ -1790,6 +1802,7 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderFo * *
      * A timestamp value.
+     *
      * Precise only to microseconds. When stored, any additional precision is
      * rounded down.
      * 
@@ -1823,6 +1836,7 @@ public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) { * *
      * A timestamp value.
+     *
      * Precise only to microseconds. When stored, any additional precision is
      * rounded down.
      * 
@@ -1850,6 +1864,7 @@ public Builder clearTimestampValue() { * *
      * A timestamp value.
+     *
      * Precise only to microseconds. When stored, any additional precision is
      * rounded down.
      * 
@@ -1864,6 +1879,7 @@ public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder() { * *
      * A timestamp value.
+     *
      * Precise only to microseconds. When stored, any additional precision is
      * rounded down.
      * 
@@ -1886,6 +1902,7 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { * *
      * A timestamp value.
+     *
      * Precise only to microseconds. When stored, any additional precision is
      * rounded down.
      * 
@@ -1919,6 +1936,7 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { * *
      * A string value.
+     *
      * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
      * Only the first 1,500 bytes of the UTF-8 representation are considered by
      * queries.
@@ -1937,6 +1955,7 @@ public boolean hasStringValue() {
      *
      * 
      * A string value.
+     *
      * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
      * Only the first 1,500 bytes of the UTF-8 representation are considered by
      * queries.
@@ -1968,6 +1987,7 @@ public java.lang.String getStringValue() {
      *
      * 
      * A string value.
+     *
      * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
      * Only the first 1,500 bytes of the UTF-8 representation are considered by
      * queries.
@@ -1999,6 +2019,7 @@ public com.google.protobuf.ByteString getStringValueBytes() {
      *
      * 
      * A string value.
+     *
      * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
      * Only the first 1,500 bytes of the UTF-8 representation are considered by
      * queries.
@@ -2023,6 +2044,7 @@ public Builder setStringValue(java.lang.String value) {
      *
      * 
      * A string value.
+     *
      * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
      * Only the first 1,500 bytes of the UTF-8 representation are considered by
      * queries.
@@ -2045,6 +2067,7 @@ public Builder clearStringValue() {
      *
      * 
      * A string value.
+     *
      * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
      * Only the first 1,500 bytes of the UTF-8 representation are considered by
      * queries.
@@ -2071,6 +2094,7 @@ public Builder setStringValueBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * A bytes value.
+     *
      * Must not exceed 1 MiB - 89 bytes.
      * Only the first 1,500 bytes are considered by queries.
      * 
@@ -2087,6 +2111,7 @@ public boolean hasBytesValue() { * *
      * A bytes value.
+     *
      * Must not exceed 1 MiB - 89 bytes.
      * Only the first 1,500 bytes are considered by queries.
      * 
@@ -2106,6 +2131,7 @@ public com.google.protobuf.ByteString getBytesValue() { * *
      * A bytes value.
+     *
      * Must not exceed 1 MiB - 89 bytes.
      * Only the first 1,500 bytes are considered by queries.
      * 
@@ -2129,6 +2155,7 @@ public Builder setBytesValue(com.google.protobuf.ByteString value) { * *
      * A bytes value.
+     *
      * Must not exceed 1 MiB - 89 bytes.
      * Only the first 1,500 bytes are considered by queries.
      * 
@@ -2496,6 +2523,7 @@ public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() { * *
      * An array value.
+     *
      * Cannot directly contain another array value, though can contain an
      * map which contains another array.
      * 
@@ -2513,6 +2541,7 @@ public boolean hasArrayValue() { * *
      * An array value.
+     *
      * Cannot directly contain another array value, though can contain an
      * map which contains another array.
      * 
@@ -2540,6 +2569,7 @@ public com.google.firestore.v1.ArrayValue getArrayValue() { * *
      * An array value.
+     *
      * Cannot directly contain another array value, though can contain an
      * map which contains another array.
      * 
@@ -2564,6 +2594,7 @@ public Builder setArrayValue(com.google.firestore.v1.ArrayValue value) { * *
      * An array value.
+     *
      * Cannot directly contain another array value, though can contain an
      * map which contains another array.
      * 
@@ -2585,6 +2616,7 @@ public Builder setArrayValue(com.google.firestore.v1.ArrayValue.Builder builderF * *
      * An array value.
+     *
      * Cannot directly contain another array value, though can contain an
      * map which contains another array.
      * 
@@ -2619,6 +2651,7 @@ public Builder mergeArrayValue(com.google.firestore.v1.ArrayValue value) { * *
      * An array value.
+     *
      * Cannot directly contain another array value, though can contain an
      * map which contains another array.
      * 
@@ -2646,6 +2679,7 @@ public Builder clearArrayValue() { * *
      * An array value.
+     *
      * Cannot directly contain another array value, though can contain an
      * map which contains another array.
      * 
@@ -2660,6 +2694,7 @@ public com.google.firestore.v1.ArrayValue.Builder getArrayValueBuilder() { * *
      * An array value.
+     *
      * Cannot directly contain another array value, though can contain an
      * map which contains another array.
      * 
@@ -2682,6 +2717,7 @@ public com.google.firestore.v1.ArrayValueOrBuilder getArrayValueOrBuilder() { * *
      * An array value.
+     *
      * Cannot directly contain another array value, though can contain an
      * map which contains another array.
      * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ValueOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ValueOrBuilder.java index 7227b16ac..67e26135f 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ValueOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ValueOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -140,6 +140,7 @@ public interface ValueOrBuilder * *
    * A timestamp value.
+   *
    * Precise only to microseconds. When stored, any additional precision is
    * rounded down.
    * 
@@ -154,6 +155,7 @@ public interface ValueOrBuilder * *
    * A timestamp value.
+   *
    * Precise only to microseconds. When stored, any additional precision is
    * rounded down.
    * 
@@ -168,6 +170,7 @@ public interface ValueOrBuilder * *
    * A timestamp value.
+   *
    * Precise only to microseconds. When stored, any additional precision is
    * rounded down.
    * 
@@ -181,6 +184,7 @@ public interface ValueOrBuilder * *
    * A string value.
+   *
    * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
    * Only the first 1,500 bytes of the UTF-8 representation are considered by
    * queries.
@@ -196,6 +200,7 @@ public interface ValueOrBuilder
    *
    * 
    * A string value.
+   *
    * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
    * Only the first 1,500 bytes of the UTF-8 representation are considered by
    * queries.
@@ -211,6 +216,7 @@ public interface ValueOrBuilder
    *
    * 
    * A string value.
+   *
    * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
    * Only the first 1,500 bytes of the UTF-8 representation are considered by
    * queries.
@@ -227,6 +233,7 @@ public interface ValueOrBuilder
    *
    * 
    * A bytes value.
+   *
    * Must not exceed 1 MiB - 89 bytes.
    * Only the first 1,500 bytes are considered by queries.
    * 
@@ -241,6 +248,7 @@ public interface ValueOrBuilder * *
    * A bytes value.
+   *
    * Must not exceed 1 MiB - 89 bytes.
    * Only the first 1,500 bytes are considered by queries.
    * 
@@ -331,6 +339,7 @@ public interface ValueOrBuilder * *
    * An array value.
+   *
    * Cannot directly contain another array value, though can contain an
    * map which contains another array.
    * 
@@ -345,6 +354,7 @@ public interface ValueOrBuilder * *
    * An array value.
+   *
    * Cannot directly contain another array value, though can contain an
    * map which contains another array.
    * 
@@ -359,6 +369,7 @@ public interface ValueOrBuilder * *
    * An array value.
+   *
    * Cannot directly contain another array value, though can contain an
    * map which contains another array.
    * 
@@ -402,5 +413,5 @@ public interface ValueOrBuilder */ com.google.firestore.v1.MapValueOrBuilder getMapValueOrBuilder(); - public com.google.firestore.v1.Value.ValueTypeCase getValueTypeCase(); + com.google.firestore.v1.Value.ValueTypeCase getValueTypeCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Write.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Write.java index e5ef01d70..2bc362365 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Write.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Write.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Write(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.WriteProto.internal_static_google_firestore_v1_Write_descriptor; } @@ -66,6 +61,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int operationCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object operation_; public enum OperationCase @@ -297,6 +294,7 @@ public com.google.firestore.v1.DocumentTransformOrBuilder getTransformOrBuilder( * *
    * The fields to update in this write.
+   *
    * This field can be set only when the operation is `update`.
    * If the mask is not set for an `update` and the document exists, any
    * existing data will be overwritten.
@@ -320,6 +318,7 @@ public boolean hasUpdateMask() {
    *
    * 
    * The fields to update in this write.
+   *
    * This field can be set only when the operation is `update`.
    * If the mask is not set for an `update` and the document exists, any
    * existing data will be overwritten.
@@ -345,6 +344,7 @@ public com.google.firestore.v1.DocumentMask getUpdateMask() {
    *
    * 
    * The fields to update in this write.
+   *
    * This field can be set only when the operation is `update`.
    * If the mask is not set for an `update` and the document exists, any
    * existing data will be overwritten.
@@ -374,6 +374,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getUpdateMaskOrBuilder() {
    *
    * 
    * The transforms to perform after update.
+   *
    * This field can be set only when the operation is `update`. If present, this
    * write is equivalent to performing `update` and `transform` to the same
    * document atomically and in order.
@@ -392,6 +393,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getUpdateMaskOrBuilder() {
    *
    * 
    * The transforms to perform after update.
+   *
    * This field can be set only when the operation is `update`. If present, this
    * write is equivalent to performing `update` and `transform` to the same
    * document atomically and in order.
@@ -410,6 +412,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getUpdateMaskOrBuilder() {
    *
    * 
    * The transforms to perform after update.
+   *
    * This field can be set only when the operation is `update`. If present, this
    * write is equivalent to performing `update` and `transform` to the same
    * document atomically and in order.
@@ -427,6 +430,7 @@ public int getUpdateTransformsCount() {
    *
    * 
    * The transforms to perform after update.
+   *
    * This field can be set only when the operation is `update`. If present, this
    * write is equivalent to performing `update` and `transform` to the same
    * document atomically and in order.
@@ -444,6 +448,7 @@ public com.google.firestore.v1.DocumentTransform.FieldTransform getUpdateTransfo
    *
    * 
    * The transforms to perform after update.
+   *
    * This field can be set only when the operation is `update`. If present, this
    * write is equivalent to performing `update` and `transform` to the same
    * document atomically and in order.
@@ -465,6 +470,7 @@ public com.google.firestore.v1.DocumentTransform.FieldTransform getUpdateTransfo
    *
    * 
    * An optional precondition on the document.
+   *
    * The write will fail if this is set and not met by the target document.
    * 
* @@ -481,6 +487,7 @@ public boolean hasCurrentDocument() { * *
    * An optional precondition on the document.
+   *
    * The write will fail if this is set and not met by the target document.
    * 
* @@ -499,6 +506,7 @@ public com.google.firestore.v1.Precondition getCurrentDocument() { * *
    * An optional precondition on the document.
+   *
    * The write will fail if this is set and not met by the target document.
    * 
* @@ -1652,6 +1660,7 @@ public com.google.firestore.v1.DocumentTransformOrBuilder getTransformOrBuilder( * *
      * The fields to update in this write.
+     *
      * This field can be set only when the operation is `update`.
      * If the mask is not set for an `update` and the document exists, any
      * existing data will be overwritten.
@@ -1674,6 +1683,7 @@ public boolean hasUpdateMask() {
      *
      * 
      * The fields to update in this write.
+     *
      * This field can be set only when the operation is `update`.
      * If the mask is not set for an `update` and the document exists, any
      * existing data will be overwritten.
@@ -1702,6 +1712,7 @@ public com.google.firestore.v1.DocumentMask getUpdateMask() {
      *
      * 
      * The fields to update in this write.
+     *
      * This field can be set only when the operation is `update`.
      * If the mask is not set for an `update` and the document exists, any
      * existing data will be overwritten.
@@ -1732,6 +1743,7 @@ public Builder setUpdateMask(com.google.firestore.v1.DocumentMask value) {
      *
      * 
      * The fields to update in this write.
+     *
      * This field can be set only when the operation is `update`.
      * If the mask is not set for an `update` and the document exists, any
      * existing data will be overwritten.
@@ -1759,6 +1771,7 @@ public Builder setUpdateMask(com.google.firestore.v1.DocumentMask.Builder builde
      *
      * 
      * The fields to update in this write.
+     *
      * This field can be set only when the operation is `update`.
      * If the mask is not set for an `update` and the document exists, any
      * existing data will be overwritten.
@@ -1792,6 +1805,7 @@ public Builder mergeUpdateMask(com.google.firestore.v1.DocumentMask value) {
      *
      * 
      * The fields to update in this write.
+     *
      * This field can be set only when the operation is `update`.
      * If the mask is not set for an `update` and the document exists, any
      * existing data will be overwritten.
@@ -1819,6 +1833,7 @@ public Builder clearUpdateMask() {
      *
      * 
      * The fields to update in this write.
+     *
      * This field can be set only when the operation is `update`.
      * If the mask is not set for an `update` and the document exists, any
      * existing data will be overwritten.
@@ -1841,6 +1856,7 @@ public com.google.firestore.v1.DocumentMask.Builder getUpdateMaskBuilder() {
      *
      * 
      * The fields to update in this write.
+     *
      * This field can be set only when the operation is `update`.
      * If the mask is not set for an `update` and the document exists, any
      * existing data will be overwritten.
@@ -1867,6 +1883,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getUpdateMaskOrBuilder() {
      *
      * 
      * The fields to update in this write.
+     *
      * This field can be set only when the operation is `update`.
      * If the mask is not set for an `update` and the document exists, any
      * existing data will be overwritten.
@@ -1919,6 +1936,7 @@ private void ensureUpdateTransformsIsMutable() {
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -1940,6 +1958,7 @@ private void ensureUpdateTransformsIsMutable() {
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -1960,6 +1979,7 @@ public int getUpdateTransformsCount() {
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -1980,6 +2000,7 @@ public com.google.firestore.v1.DocumentTransform.FieldTransform getUpdateTransfo
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2007,6 +2028,7 @@ public Builder setUpdateTransforms(
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2032,6 +2054,7 @@ public Builder setUpdateTransforms(
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2059,6 +2082,7 @@ public Builder addUpdateTransforms(
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2086,6 +2110,7 @@ public Builder addUpdateTransforms(
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2110,6 +2135,7 @@ public Builder addUpdateTransforms(
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2135,6 +2161,7 @@ public Builder addUpdateTransforms(
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2160,6 +2187,7 @@ public Builder addAllUpdateTransforms(
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2183,6 +2211,7 @@ public Builder clearUpdateTransforms() {
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2206,6 +2235,7 @@ public Builder removeUpdateTransforms(int index) {
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2223,6 +2253,7 @@ public Builder removeUpdateTransforms(int index) {
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2244,6 +2275,7 @@ public Builder removeUpdateTransforms(int index) {
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2266,6 +2298,7 @@ public Builder removeUpdateTransforms(int index) {
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2285,6 +2318,7 @@ public Builder removeUpdateTransforms(int index) {
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2304,6 +2338,7 @@ public Builder removeUpdateTransforms(int index) {
      *
      * 
      * The transforms to perform after update.
+     *
      * This field can be set only when the operation is `update`. If present, this
      * write is equivalent to performing `update` and `transform` to the same
      * document atomically and in order.
@@ -2348,6 +2383,7 @@ public Builder removeUpdateTransforms(int index) {
      *
      * 
      * An optional precondition on the document.
+     *
      * The write will fail if this is set and not met by the target document.
      * 
* @@ -2363,6 +2399,7 @@ public boolean hasCurrentDocument() { * *
      * An optional precondition on the document.
+     *
      * The write will fail if this is set and not met by the target document.
      * 
* @@ -2384,6 +2421,7 @@ public com.google.firestore.v1.Precondition getCurrentDocument() { * *
      * An optional precondition on the document.
+     *
      * The write will fail if this is set and not met by the target document.
      * 
* @@ -2407,6 +2445,7 @@ public Builder setCurrentDocument(com.google.firestore.v1.Precondition value) { * *
      * An optional precondition on the document.
+     *
      * The write will fail if this is set and not met by the target document.
      * 
* @@ -2428,6 +2467,7 @@ public Builder setCurrentDocument( * *
      * An optional precondition on the document.
+     *
      * The write will fail if this is set and not met by the target document.
      * 
* @@ -2454,6 +2494,7 @@ public Builder mergeCurrentDocument(com.google.firestore.v1.Precondition value) * *
      * An optional precondition on the document.
+     *
      * The write will fail if this is set and not met by the target document.
      * 
* @@ -2474,6 +2515,7 @@ public Builder clearCurrentDocument() { * *
      * An optional precondition on the document.
+     *
      * The write will fail if this is set and not met by the target document.
      * 
* @@ -2489,6 +2531,7 @@ public com.google.firestore.v1.Precondition.Builder getCurrentDocumentBuilder() * *
      * An optional precondition on the document.
+     *
      * The write will fail if this is set and not met by the target document.
      * 
* @@ -2508,6 +2551,7 @@ public com.google.firestore.v1.PreconditionOrBuilder getCurrentDocumentOrBuilder * *
      * An optional precondition on the document.
+     *
      * The write will fail if this is set and not met by the target document.
      * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteOrBuilder.java index 98e1b069c..99f439f40 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -138,6 +138,7 @@ public interface WriteOrBuilder * *
    * The fields to update in this write.
+   *
    * This field can be set only when the operation is `update`.
    * If the mask is not set for an `update` and the document exists, any
    * existing data will be overwritten.
@@ -158,6 +159,7 @@ public interface WriteOrBuilder
    *
    * 
    * The fields to update in this write.
+   *
    * This field can be set only when the operation is `update`.
    * If the mask is not set for an `update` and the document exists, any
    * existing data will be overwritten.
@@ -178,6 +180,7 @@ public interface WriteOrBuilder
    *
    * 
    * The fields to update in this write.
+   *
    * This field can be set only when the operation is `update`.
    * If the mask is not set for an `update` and the document exists, any
    * existing data will be overwritten.
@@ -197,6 +200,7 @@ public interface WriteOrBuilder
    *
    * 
    * The transforms to perform after update.
+   *
    * This field can be set only when the operation is `update`. If present, this
    * write is equivalent to performing `update` and `transform` to the same
    * document atomically and in order.
@@ -212,6 +216,7 @@ public interface WriteOrBuilder
    *
    * 
    * The transforms to perform after update.
+   *
    * This field can be set only when the operation is `update`. If present, this
    * write is equivalent to performing `update` and `transform` to the same
    * document atomically and in order.
@@ -226,6 +231,7 @@ public interface WriteOrBuilder
    *
    * 
    * The transforms to perform after update.
+   *
    * This field can be set only when the operation is `update`. If present, this
    * write is equivalent to performing `update` and `transform` to the same
    * document atomically and in order.
@@ -240,6 +246,7 @@ public interface WriteOrBuilder
    *
    * 
    * The transforms to perform after update.
+   *
    * This field can be set only when the operation is `update`. If present, this
    * write is equivalent to performing `update` and `transform` to the same
    * document atomically and in order.
@@ -255,6 +262,7 @@ public interface WriteOrBuilder
    *
    * 
    * The transforms to perform after update.
+   *
    * This field can be set only when the operation is `update`. If present, this
    * write is equivalent to performing `update` and `transform` to the same
    * document atomically and in order.
@@ -271,6 +279,7 @@ com.google.firestore.v1.DocumentTransform.FieldTransformOrBuilder getUpdateTrans
    *
    * 
    * An optional precondition on the document.
+   *
    * The write will fail if this is set and not met by the target document.
    * 
* @@ -284,6 +293,7 @@ com.google.firestore.v1.DocumentTransform.FieldTransformOrBuilder getUpdateTrans * *
    * An optional precondition on the document.
+   *
    * The write will fail if this is set and not met by the target document.
    * 
* @@ -297,6 +307,7 @@ com.google.firestore.v1.DocumentTransform.FieldTransformOrBuilder getUpdateTrans * *
    * An optional precondition on the document.
+   *
    * The write will fail if this is set and not met by the target document.
    * 
* @@ -304,5 +315,5 @@ com.google.firestore.v1.DocumentTransform.FieldTransformOrBuilder getUpdateTrans */ com.google.firestore.v1.PreconditionOrBuilder getCurrentDocumentOrBuilder(); - public com.google.firestore.v1.Write.OperationCase getOperationCase(); + com.google.firestore.v1.Write.OperationCase getOperationCase(); } diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteProto.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteProto.java index 8e7631fd6..f5067a87f 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteProto.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequest.java index cc02a3927..8656dc9b2 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequest.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -23,9 +23,12 @@ * *
  * The request for [Firestore.Write][google.firestore.v1.Firestore.Write].
+ *
  * The first request creates a stream, or resumes an existing one from a token.
+ *
  * When creating a new stream, the server replies with a response containing
  * only an ID and a token, to use in the next request.
+ *
  * When resuming a stream, the server first streams any responses later than the
  * given token, then a response containing only an up-to-date token, to use in
  * the next request.
@@ -56,11 +59,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new WriteRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.firestore.v1.FirestoreProto
         .internal_static_google_firestore_v1_WriteRequest_descriptor;
@@ -206,6 +204,7 @@ public com.google.protobuf.ByteString getStreamIdBytes() {
    *
    * 
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * This must be empty on the first request.
    * This may be empty on the last request.
@@ -223,6 +222,7 @@ public java.util.List getWritesList() {
    *
    * 
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * This must be empty on the first request.
    * This may be empty on the last request.
@@ -240,6 +240,7 @@ public java.util.List getWrite
    *
    * 
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * This must be empty on the first request.
    * This may be empty on the last request.
@@ -257,6 +258,7 @@ public int getWritesCount() {
    *
    * 
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * This must be empty on the first request.
    * This may be empty on the last request.
@@ -274,6 +276,7 @@ public com.google.firestore.v1.Write getWrites(int index) {
    *
    * 
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * This must be empty on the first request.
    * This may be empty on the last request.
@@ -294,14 +297,18 @@ public com.google.firestore.v1.WriteOrBuilder getWritesOrBuilder(int index) {
    *
    * 
    * A stream token that was previously sent by the server.
+   *
    * The client should set this field to the token from the most recent
    * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
    * acknowledges that the client has received responses up to this token. After
    * sending this token, earlier tokens may not be used anymore.
+   *
    * The server may close the stream if there are too many unacknowledged
    * responses.
+   *
    * Leave this field unset when creating a new stream. To resume a stream at
    * a specific point, set this field and the `stream_id` field.
+   *
    * Leave this field unset when creating a new stream.
    * 
* @@ -624,9 +631,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * The request for [Firestore.Write][google.firestore.v1.Firestore.Write].
+   *
    * The first request creates a stream, or resumes an existing one from a token.
+   *
    * When creating a new stream, the server replies with a response containing
    * only an ID and a token, to use in the next request.
+   *
    * When resuming a stream, the server first streams any responses later than the
    * given token, then a response containing only an up-to-date token, to use in
    * the next request.
@@ -1185,6 +1195,7 @@ private void ensureWritesIsMutable() {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1205,6 +1216,7 @@ public java.util.List getWritesList() {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1225,6 +1237,7 @@ public int getWritesCount() {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1245,6 +1258,7 @@ public com.google.firestore.v1.Write getWrites(int index) {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1271,6 +1285,7 @@ public Builder setWrites(int index, com.google.firestore.v1.Write value) {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1294,6 +1309,7 @@ public Builder setWrites(int index, com.google.firestore.v1.Write.Builder builde
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1320,6 +1336,7 @@ public Builder addWrites(com.google.firestore.v1.Write value) {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1346,6 +1363,7 @@ public Builder addWrites(int index, com.google.firestore.v1.Write value) {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1369,6 +1387,7 @@ public Builder addWrites(com.google.firestore.v1.Write.Builder builderForValue)
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1392,6 +1411,7 @@ public Builder addWrites(int index, com.google.firestore.v1.Write.Builder builde
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1416,6 +1436,7 @@ public Builder addAllWrites(
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1439,6 +1460,7 @@ public Builder clearWrites() {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1462,6 +1484,7 @@ public Builder removeWrites(int index) {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1478,6 +1501,7 @@ public com.google.firestore.v1.Write.Builder getWritesBuilder(int index) {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1498,6 +1522,7 @@ public com.google.firestore.v1.WriteOrBuilder getWritesOrBuilder(int index) {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1519,6 +1544,7 @@ public com.google.firestore.v1.WriteOrBuilder getWritesOrBuilder(int index) {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1535,6 +1561,7 @@ public com.google.firestore.v1.Write.Builder addWritesBuilder() {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1552,6 +1579,7 @@ public com.google.firestore.v1.Write.Builder addWritesBuilder(int index) {
      *
      * 
      * The writes to apply.
+     *
      * Always executed atomically and in order.
      * This must be empty on the first request.
      * This may be empty on the last request.
@@ -1587,14 +1615,18 @@ public java.util.List getWritesBuilderLis
      *
      * 
      * A stream token that was previously sent by the server.
+     *
      * The client should set this field to the token from the most recent
      * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
      * acknowledges that the client has received responses up to this token. After
      * sending this token, earlier tokens may not be used anymore.
+     *
      * The server may close the stream if there are too many unacknowledged
      * responses.
+     *
      * Leave this field unset when creating a new stream. To resume a stream at
      * a specific point, set this field and the `stream_id` field.
+     *
      * Leave this field unset when creating a new stream.
      * 
* @@ -1611,14 +1643,18 @@ public com.google.protobuf.ByteString getStreamToken() { * *
      * A stream token that was previously sent by the server.
+     *
      * The client should set this field to the token from the most recent
      * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
      * acknowledges that the client has received responses up to this token. After
      * sending this token, earlier tokens may not be used anymore.
+     *
      * The server may close the stream if there are too many unacknowledged
      * responses.
+     *
      * Leave this field unset when creating a new stream. To resume a stream at
      * a specific point, set this field and the `stream_id` field.
+     *
      * Leave this field unset when creating a new stream.
      * 
* @@ -1641,14 +1677,18 @@ public Builder setStreamToken(com.google.protobuf.ByteString value) { * *
      * A stream token that was previously sent by the server.
+     *
      * The client should set this field to the token from the most recent
      * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
      * acknowledges that the client has received responses up to this token. After
      * sending this token, earlier tokens may not be used anymore.
+     *
      * The server may close the stream if there are too many unacknowledged
      * responses.
+     *
      * Leave this field unset when creating a new stream. To resume a stream at
      * a specific point, set this field and the `stream_id` field.
+     *
      * Leave this field unset when creating a new stream.
      * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequestOrBuilder.java index 620e18290..8db66f530 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequestOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -86,6 +86,7 @@ public interface WriteRequestOrBuilder * *
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * This must be empty on the first request.
    * This may be empty on the last request.
@@ -100,6 +101,7 @@ public interface WriteRequestOrBuilder
    *
    * 
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * This must be empty on the first request.
    * This may be empty on the last request.
@@ -114,6 +116,7 @@ public interface WriteRequestOrBuilder
    *
    * 
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * This must be empty on the first request.
    * This may be empty on the last request.
@@ -128,6 +131,7 @@ public interface WriteRequestOrBuilder
    *
    * 
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * This must be empty on the first request.
    * This may be empty on the last request.
@@ -142,6 +146,7 @@ public interface WriteRequestOrBuilder
    *
    * 
    * The writes to apply.
+   *
    * Always executed atomically and in order.
    * This must be empty on the first request.
    * This may be empty on the last request.
@@ -157,14 +162,18 @@ public interface WriteRequestOrBuilder
    *
    * 
    * A stream token that was previously sent by the server.
+   *
    * The client should set this field to the token from the most recent
    * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
    * acknowledges that the client has received responses up to this token. After
    * sending this token, earlier tokens may not be used anymore.
+   *
    * The server may close the stream if there are too many unacknowledged
    * responses.
+   *
    * Leave this field unset when creating a new stream. To resume a stream at
    * a specific point, set this field and the `stream_id` field.
+   *
    * Leave this field unset when creating a new stream.
    * 
* diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponse.java index 1b7951aec..cf7bdc081 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponse.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.FirestoreProto .internal_static_google_firestore_v1_WriteResponse_descriptor; @@ -130,6 +125,7 @@ public com.google.protobuf.ByteString getStreamIdBytes() { *
    * A token that represents the position of this response in the stream.
    * This can be used by a client to resume the stream at this point.
+   *
    * This field is always set.
    * 
* @@ -151,6 +147,7 @@ public com.google.protobuf.ByteString getStreamToken() { * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -166,6 +163,7 @@ public java.util.List getWriteResultsList() * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -182,6 +180,7 @@ public java.util.List getWriteResultsList() * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -197,6 +196,7 @@ public int getWriteResultsCount() { * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -212,6 +212,7 @@ public com.google.firestore.v1.WriteResult getWriteResults(int index) { * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -853,6 +854,7 @@ public Builder setStreamIdBytes(com.google.protobuf.ByteString value) { *
      * A token that represents the position of this response in the stream.
      * This can be used by a client to resume the stream at this point.
+     *
      * This field is always set.
      * 
* @@ -870,6 +872,7 @@ public com.google.protobuf.ByteString getStreamToken() { *
      * A token that represents the position of this response in the stream.
      * This can be used by a client to resume the stream at this point.
+     *
      * This field is always set.
      * 
* @@ -893,6 +896,7 @@ public Builder setStreamToken(com.google.protobuf.ByteString value) { *
      * A token that represents the position of this response in the stream.
      * This can be used by a client to resume the stream at this point.
+     *
      * This field is always set.
      * 
* @@ -928,6 +932,7 @@ private void ensureWriteResultsIsMutable() { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -946,6 +951,7 @@ public java.util.List getWriteResultsList() * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -964,6 +970,7 @@ public int getWriteResultsCount() { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -982,6 +989,7 @@ public com.google.firestore.v1.WriteResult getWriteResults(int index) { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1006,6 +1014,7 @@ public Builder setWriteResults(int index, com.google.firestore.v1.WriteResult va * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1028,6 +1037,7 @@ public Builder setWriteResults( * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1052,6 +1062,7 @@ public Builder addWriteResults(com.google.firestore.v1.WriteResult value) { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1076,6 +1087,7 @@ public Builder addWriteResults(int index, com.google.firestore.v1.WriteResult va * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1097,6 +1109,7 @@ public Builder addWriteResults(com.google.firestore.v1.WriteResult.Builder build * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1119,6 +1132,7 @@ public Builder addWriteResults( * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1141,6 +1155,7 @@ public Builder addAllWriteResults( * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1162,6 +1177,7 @@ public Builder clearWriteResults() { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1183,6 +1199,7 @@ public Builder removeWriteResults(int index) { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1197,6 +1214,7 @@ public com.google.firestore.v1.WriteResult.Builder getWriteResultsBuilder(int in * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1215,6 +1233,7 @@ public com.google.firestore.v1.WriteResultOrBuilder getWriteResultsOrBuilder(int * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1234,6 +1253,7 @@ public com.google.firestore.v1.WriteResultOrBuilder getWriteResultsOrBuilder(int * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1249,6 +1269,7 @@ public com.google.firestore.v1.WriteResult.Builder addWriteResultsBuilder() { * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
@@ -1264,6 +1285,7 @@ public com.google.firestore.v1.WriteResult.Builder addWriteResultsBuilder(int in * *
      * The result of applying the writes.
+     *
      * This i-th write result corresponds to the i-th write in the
      * request.
      * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponseOrBuilder.java index f92a2e255..735980c72 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponseOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -56,6 +56,7 @@ public interface WriteResponseOrBuilder *
    * A token that represents the position of this response in the stream.
    * This can be used by a client to resume the stream at this point.
+   *
    * This field is always set.
    * 
* @@ -70,6 +71,7 @@ public interface WriteResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -82,6 +84,7 @@ public interface WriteResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -94,6 +97,7 @@ public interface WriteResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -106,6 +110,7 @@ public interface WriteResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
@@ -119,6 +124,7 @@ public interface WriteResponseOrBuilder * *
    * The result of applying the writes.
+   *
    * This i-th write result corresponds to the i-th write in the
    * request.
    * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResult.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResult.java index 9f934324a..c128eb201 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResult.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteResult(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.firestore.v1.WriteProto .internal_static_google_firestore_v1_WriteResult_descriptor; @@ -75,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * The last update time of the document after applying the write. Not set
    * after a `delete`.
+   *
    * If the write did not actually change the document, this will be the
    * previous update_time.
    * 
@@ -93,6 +89,7 @@ public boolean hasUpdateTime() { *
    * The last update time of the document after applying the write. Not set
    * after a `delete`.
+   *
    * If the write did not actually change the document, this will be the
    * previous update_time.
    * 
@@ -111,6 +108,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { *
    * The last update time of the document after applying the write. Not set
    * after a `delete`.
+   *
    * If the write did not actually change the document, this will be the
    * previous update_time.
    * 
@@ -630,6 +628,7 @@ public Builder mergeFrom( *
      * The last update time of the document after applying the write. Not set
      * after a `delete`.
+     *
      * If the write did not actually change the document, this will be the
      * previous update_time.
      * 
@@ -647,6 +646,7 @@ public boolean hasUpdateTime() { *
      * The last update time of the document after applying the write. Not set
      * after a `delete`.
+     *
      * If the write did not actually change the document, this will be the
      * previous update_time.
      * 
@@ -670,6 +670,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { *
      * The last update time of the document after applying the write. Not set
      * after a `delete`.
+     *
      * If the write did not actually change the document, this will be the
      * previous update_time.
      * 
@@ -695,6 +696,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { *
      * The last update time of the document after applying the write. Not set
      * after a `delete`.
+     *
      * If the write did not actually change the document, this will be the
      * previous update_time.
      * 
@@ -717,6 +719,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal *
      * The last update time of the document after applying the write. Not set
      * after a `delete`.
+     *
      * If the write did not actually change the document, this will be the
      * previous update_time.
      * 
@@ -745,6 +748,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
      * The last update time of the document after applying the write. Not set
      * after a `delete`.
+     *
      * If the write did not actually change the document, this will be the
      * previous update_time.
      * 
@@ -767,6 +771,7 @@ public Builder clearUpdateTime() { *
      * The last update time of the document after applying the write. Not set
      * after a `delete`.
+     *
      * If the write did not actually change the document, this will be the
      * previous update_time.
      * 
@@ -784,6 +789,7 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { *
      * The last update time of the document after applying the write. Not set
      * after a `delete`.
+     *
      * If the write did not actually change the document, this will be the
      * previous update_time.
      * 
@@ -805,6 +811,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { *
      * The last update time of the document after applying the write. Not set
      * after a `delete`.
+     *
      * If the write did not actually change the document, this will be the
      * previous update_time.
      * 
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResultOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResultOrBuilder.java index d2f9a15c2..bc48e57a2 100644 --- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResultOrBuilder.java +++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResultOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 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. @@ -29,6 +29,7 @@ public interface WriteResultOrBuilder *
    * The last update time of the document after applying the write. Not set
    * after a `delete`.
+   *
    * If the write did not actually change the document, this will be the
    * previous update_time.
    * 
@@ -44,6 +45,7 @@ public interface WriteResultOrBuilder *
    * The last update time of the document after applying the write. Not set
    * after a `delete`.
+   *
    * If the write did not actually change the document, this will be the
    * previous update_time.
    * 
@@ -59,6 +61,7 @@ public interface WriteResultOrBuilder *
    * The last update time of the document after applying the write. Not set
    * after a `delete`.
+   *
    * If the write did not actually change the document, this will be the
    * previous update_time.
    * 
diff --git a/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/common.proto b/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/common.proto index 29cde08d3..2a562aa6e 100644 --- a/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/common.proto +++ b/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/common.proto @@ -57,6 +57,9 @@ message Precondition { // Options for creating a new transaction. message TransactionOptions { // Options for a transaction that can be used to read and write documents. + // + // Firestore does not allow 3rd party auth requests to create read-write. + // transactions. message ReadWrite { // An optional transaction to retry. bytes retry_transaction = 1; @@ -68,7 +71,10 @@ message TransactionOptions { // consistency. oneof consistency_selector { // Reads documents at the given time. - // This may not be older than 60 seconds. + // + // This must be a microsecond precision timestamp within the past one + // hour, or if Point-in-Time Recovery is enabled, can additionally be a + // whole minute timestamp within the past 7 days. google.protobuf.Timestamp read_time = 2; } } diff --git a/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto b/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto index c6f7b921c..a4447d167 100644 --- a/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto +++ b/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto @@ -256,7 +256,10 @@ message GetDocumentRequest { bytes transaction = 3; // Reads the version of the document at the given time. - // This may not be older than 270 seconds. + // + // This must be a microsecond precision timestamp within the past one hour, + // or if Point-in-Time Recovery is enabled, can additionally be a whole + // minute timestamp within the past 7 days. google.protobuf.Timestamp read_time = 5; } } @@ -316,7 +319,9 @@ message ListDocumentsRequest { // Perform the read at the provided time. // - // This may not be older than 270 seconds. + // This must be a microsecond precision timestamp within the past one hour, + // or if Point-in-Time Recovery is enabled, can additionally be a whole + // minute timestamp within the past 7 days. google.protobuf.Timestamp read_time = 10; } @@ -442,7 +447,10 @@ message BatchGetDocumentsRequest { TransactionOptions new_transaction = 5; // Reads documents as they were at the given time. - // This may not be older than 270 seconds. + // + // This must be a microsecond precision timestamp within the past one hour, + // or if Point-in-Time Recovery is enabled, can additionally be a whole + // minute timestamp within the past 7 days. google.protobuf.Timestamp read_time = 7; } } @@ -562,7 +570,10 @@ message RunQueryRequest { TransactionOptions new_transaction = 6; // Reads documents as they were at the given time. - // This may not be older than 270 seconds. + // + // This must be a microsecond precision timestamp within the past one hour, + // or if Point-in-Time Recovery is enabled, can additionally be a whole + // minute timestamp within the past 7 days. google.protobuf.Timestamp read_time = 7; } } @@ -635,9 +646,9 @@ message RunAggregationQueryRequest { // Executes the query at the given timestamp. // - // Requires: - // - // * Cannot be more than 270 seconds in the past. + // This must be a microsecond precision timestamp within the past one hour, + // or if Point-in-Time Recovery is enabled, can additionally be a whole + // minute timestamp within the past 7 days. google.protobuf.Timestamp read_time = 6; } } @@ -723,7 +734,10 @@ message PartitionQueryRequest { // If not set, defaults to strong consistency. oneof consistency_selector { // Reads documents as they were at the given time. - // This may not be older than 270 seconds. + // + // This must be a microsecond precision timestamp within the past one hour, + // or if Point-in-Time Recovery is enabled, can additionally be a whole + // minute timestamp within the past 7 days. google.protobuf.Timestamp read_time = 6; } } @@ -912,8 +926,9 @@ message Target { // When to start listening. // - // If not specified, all matching Documents are returned before any - // subsequent changes. + // If specified, only the matching Documents that have been updated AFTER the + // `resume_token` or `read_time` will be returned. Otherwise, all matching + // Documents are returned before any subsequent changes. oneof resume_type { // A resume token from a prior // [TargetChange][google.firestore.v1.TargetChange] for an identical target. @@ -1026,7 +1041,10 @@ message ListCollectionIdsRequest { // If not set, defaults to strong consistency. oneof consistency_selector { // Reads documents as they were at the given time. - // This may not be older than 270 seconds. + // + // This must be a microsecond precision timestamp within the past one hour, + // or if Point-in-Time Recovery is enabled, can additionally be a whole + // minute timestamp within the past 7 days. google.protobuf.Timestamp read_time = 4; } } diff --git a/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query.proto b/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query.proto index 8f89c48d9..4a4919634 100644 --- a/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query.proto +++ b/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query.proto @@ -384,10 +384,58 @@ message StructuredAggregationQuery { [(google.api.field_behavior) = OPTIONAL]; } + // Sum of the values of the requested field. + // + // * Only numeric values will be aggregated. All non-numeric values + // including `NULL` are skipped. + // + // * If the aggregated values contain `NaN`, returns `NaN`. Infinity math + // follows IEEE-754 standards. + // + // * If the aggregated value set is empty, returns 0. + // + // * Returns a 64-bit integer if all aggregated numbers are integers and the + // sum result does not overflow. Otherwise, the result is returned as a + // double. Note that even if all the aggregated values are integers, the + // result is returned as a double if it cannot fit within a 64-bit signed + // integer. When this occurs, the returned value will lose precision. + // + // * When underflow occurs, floating-point aggregation is non-deterministic. + // This means that running the same query repeatedly without any changes to + // the underlying values could produce slightly different results each + // time. In those cases, values should be stored as integers over + // floating-point numbers. + message Sum { + // The field to aggregate on. + StructuredQuery.FieldReference field = 1; + } + + // Average of the values of the requested field. + // + // * Only numeric values will be aggregated. All non-numeric values + // including `NULL` are skipped. + // + // * If the aggregated values contain `NaN`, returns `NaN`. Infinity math + // follows IEEE-754 standards. + // + // * If the aggregated value set is empty, returns `NULL`. + // + // * Always returns the result as a double. + message Avg { + // The field to aggregate on. + StructuredQuery.FieldReference field = 1; + } + // The type of aggregation to perform, required. oneof operator { // Count aggregator. Count count = 1; + + // Sum aggregator. + Sum sum = 2; + + // Average aggregator. + Avg avg = 3; } // Optional. Optional name of the field to store the result of the diff --git a/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/write.proto b/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/write.proto index 4ed0f5475..4b46595ce 100644 --- a/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/write.proto +++ b/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/write.proto @@ -264,14 +264,17 @@ message ExistenceFilter { // // If different from the count of documents in the client that match, the // client must manually determine which documents no longer match the target. + // + // The client can use the `unchanged_names` bloom filter to assist with + // this determination by testing ALL the document names against the filter; + // if the document name is NOT in the filter, it means the document no + // longer matches the target. int32 count = 2; - // A bloom filter that contains the UTF-8 byte encodings of the resource names - // of the documents that match + // A bloom filter that, despite its name, contains the UTF-8 byte encodings of + // the resource names of ALL the documents that match // [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form - // `projects/{project_id}/databases/{database_id}/documents/{document_path}` - // that have NOT changed since the query results indicated by the resume token - // or timestamp given in `Target.resume_type`. + // `projects/{project_id}/databases/{database_id}/documents/{document_path}`. // // This bloom filter may be omitted at the server's discretion, such as if it // is deemed that the client will not make use of it or if it is too