diff --git a/.github/release-please.yml b/.github/release-please.yml index cfd1925a8ad7..698222aef2c8 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -71,6 +71,6 @@ branches: extraFiles: - >- google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/Version.java - branch: 2.53.x + branch: 2.54.x extraFiles: - google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/Version.java diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 8bf53d9f4416..f8122183f1ca 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -157,7 +157,7 @@ branchProtectionRules: - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc - conformance - - pattern: 2.53.x + - pattern: 2.54.x isAdminEnforced: true requiredApprovingReviewCount: 1 requiresCodeOwnerReviews: true diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 545f190487a3..5ad2a254b92a 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.53.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.54.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c43191cf63e..6b8785875668 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [2.55.0](https://github.com/googleapis/java-bigtable/compare/v2.54.0...v2.55.0) (2025-03-11) + + +### Features + +* Add MaterializedViewName to ReadRows and SampleRowKeys ([1763c6e](https://github.com/googleapis/java-bigtable/commit/1763c6e9304010ed4034e1ddd03fdb94bca615dc)) +* Add MaterializedViews and LogicalViews APIs ([1763c6e](https://github.com/googleapis/java-bigtable/commit/1763c6e9304010ed4034e1ddd03fdb94bca615dc)) +* Add MaterializedViews and LogicalViews APIs ([7340527](https://github.com/googleapis/java-bigtable/commit/73405272c3fc77ca81c1df7cce1b8d889d4a96c4)) +* Add PrepareQuery api and update ExecuteQuery to support it ([1763c6e](https://github.com/googleapis/java-bigtable/commit/1763c6e9304010ed4034e1ddd03fdb94bca615dc)) +* **bigtable:** Add support for data APIs for materialized views ([#2508](https://github.com/googleapis/java-bigtable/issues/2508)) ([6310a63](https://github.com/googleapis/java-bigtable/commit/6310a631be3345f97d73b50f3b458fe40b071286)) +* **large-row-skip:** Added large-row-skip-callable with configurable rowadapter ([#2509](https://github.com/googleapis/java-bigtable/issues/2509)) ([ba193ef](https://github.com/googleapis/java-bigtable/commit/ba193ef771f913e6e6a1aca630fe52d0921ee077)) +* Next release from main branch is 2.55.0 ([#2506](https://github.com/googleapis/java-bigtable/issues/2506)) ([4e45837](https://github.com/googleapis/java-bigtable/commit/4e458378cc25a4dc5ac3fd1362626d89f0138186)) +* Publish row_key_schema fields in table proto and relevant admin APIs to setup a table with a row_key_schema ([7340527](https://github.com/googleapis/java-bigtable/commit/73405272c3fc77ca81c1df7cce1b8d889d4a96c4)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.54.0 ([91e4369](https://github.com/googleapis/java-bigtable/commit/91e4369d280c09fd2d1b4b5dd88809b6da01b0f8)) + + +### Documentation + +* Fixed formatting of resource path strings ([7340527](https://github.com/googleapis/java-bigtable/commit/73405272c3fc77ca81c1df7cce1b8d889d4a96c4)) + ## [2.54.0](https://github.com/googleapis/java-bigtable/compare/v2.53.0...v2.54.0) (2025-02-28) diff --git a/README.md b/README.md index efdc4ee9db85..fbc5d626b03d 100644 --- a/README.md +++ b/README.md @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigtable' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigtable:2.54.0' +implementation 'com.google.cloud:google-cloud-bigtable:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.55.0" ``` ## Authentication @@ -543,7 +543,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigtable/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigtable.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/generation_config.yaml b/generation_config.yaml index 693cd2cb2d6c..6833a41c8ec3 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.53.0 -googleapis_commitish: 8c6501214a223ef031eeb81e558abddf34cc046c +gapic_generator_version: 2.54.0 +googleapis_commitish: 66ab6ceb69178f5368b130949eaf518b7c28352f libraries_bom_version: 26.51.0 template_excludes: - .gitignore diff --git a/google-cloud-bigtable-bom/pom.xml b/google-cloud-bigtable-bom/pom.xml index 56cb4c453b04..7e21606eb5db 100644 --- a/google-cloud-bigtable-bom/pom.xml +++ b/google-cloud-bigtable-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigtable-bom - 2.54.0 + 2.55.0 pom com.google.cloud @@ -63,37 +63,37 @@ com.google.cloud google-cloud-bigtable - 2.54.0 + 2.55.0 com.google.cloud google-cloud-bigtable-emulator - 0.191.0 + 0.192.0 com.google.cloud google-cloud-bigtable-emulator-core - 0.191.0 + 0.192.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 2.54.0 + 2.55.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 - 2.54.0 + 2.55.0 com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 2.54.0 + 2.55.0 com.google.api.grpc proto-google-cloud-bigtable-v2 - 2.54.0 + 2.55.0 diff --git a/google-cloud-bigtable-deps-bom/pom.xml b/google-cloud-bigtable-deps-bom/pom.xml index 496cdcfe388c..f1816f15f450 100644 --- a/google-cloud-bigtable-deps-bom/pom.xml +++ b/google-cloud-bigtable-deps-bom/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.54.0 + 2.55.0 pom diff --git a/google-cloud-bigtable-emulator-core/pom.xml b/google-cloud-bigtable-emulator-core/pom.xml index feceb0faf378..cf7c8815c63c 100644 --- a/google-cloud-bigtable-emulator-core/pom.xml +++ b/google-cloud-bigtable-emulator-core/pom.xml @@ -7,11 +7,11 @@ google-cloud-bigtable-parent com.google.cloud - 2.54.0 + 2.55.0 google-cloud-bigtable-emulator-core - 0.191.0 + 0.192.0 A Java wrapper for the Cloud Bigtable emulator. diff --git a/google-cloud-bigtable-emulator/pom.xml b/google-cloud-bigtable-emulator/pom.xml index 5451e6748d8f..5cb7b29d41aa 100644 --- a/google-cloud-bigtable-emulator/pom.xml +++ b/google-cloud-bigtable-emulator/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-bigtable-emulator - 0.191.0 + 0.192.0 Google Cloud Java - Bigtable Emulator https://github.com/googleapis/java-bigtable @@ -14,7 +14,7 @@ com.google.cloud google-cloud-bigtable-parent - 2.54.0 + 2.55.0 scm:git:git@github.com:googleapis/java-bigtable.git @@ -81,14 +81,14 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.54.0 + 2.55.0 pom import com.google.cloud google-cloud-bigtable-bom - 2.54.0 + 2.55.0 pom import @@ -99,7 +99,7 @@ com.google.cloud google-cloud-bigtable-emulator-core - 0.191.0 + 0.192.0 diff --git a/google-cloud-bigtable/clirr-ignored-differences.xml b/google-cloud-bigtable/clirr-ignored-differences.xml index 4052e1b4a7c0..83a97c27e8c9 100644 --- a/google-cloud-bigtable/clirr-ignored-differences.xml +++ b/google-cloud-bigtable/clirr-ignored-differences.xml @@ -308,4 +308,10 @@ com/google/cloud/bigtable/data/v2/models/Heartbeat *getEstimatedLowWatermarkTime() + + + 7012 + com/google/cloud/bigtable/data/v2/models/TargetId + *scopedForMaterializedView() + diff --git a/google-cloud-bigtable/pom.xml b/google-cloud-bigtable/pom.xml index 0d62bdc2749a..ad6ffa1636ee 100644 --- a/google-cloud-bigtable/pom.xml +++ b/google-cloud-bigtable/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigtable - 2.54.0 + 2.55.0 jar Google Cloud Bigtable https://github.com/googleapis/java-bigtable @@ -12,11 +12,11 @@ com.google.cloud google-cloud-bigtable-parent - 2.54.0 + 2.55.0 - 2.54.0 + 2.55.0 google-cloud-bigtable @@ -52,14 +52,14 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.54.0 + 2.55.0 pom import com.google.cloud google-cloud-bigtable-bom - 2.54.0 + 2.55.0 pom import diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/Version.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/Version.java index e4d0933cd6f1..d2b21b8ba299 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/Version.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/Version.java @@ -20,6 +20,6 @@ @InternalApi("For internal use only") public final class Version { // {x-version-update-start:google-cloud-bigtable:current} - public static String VERSION = "2.54.0"; + public static String VERSION = "2.55.0"; // {x-version-update-end} } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java index 9101d3f0368d..4de5ebb1e835 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java @@ -37,12 +37,20 @@ import com.google.bigtable.admin.v2.CreateClusterRequest; import com.google.bigtable.admin.v2.CreateInstanceMetadata; import com.google.bigtable.admin.v2.CreateInstanceRequest; +import com.google.bigtable.admin.v2.CreateLogicalViewMetadata; +import com.google.bigtable.admin.v2.CreateLogicalViewRequest; +import com.google.bigtable.admin.v2.CreateMaterializedViewMetadata; +import com.google.bigtable.admin.v2.CreateMaterializedViewRequest; import com.google.bigtable.admin.v2.DeleteAppProfileRequest; import com.google.bigtable.admin.v2.DeleteClusterRequest; import com.google.bigtable.admin.v2.DeleteInstanceRequest; +import com.google.bigtable.admin.v2.DeleteLogicalViewRequest; +import com.google.bigtable.admin.v2.DeleteMaterializedViewRequest; import com.google.bigtable.admin.v2.GetAppProfileRequest; import com.google.bigtable.admin.v2.GetClusterRequest; import com.google.bigtable.admin.v2.GetInstanceRequest; +import com.google.bigtable.admin.v2.GetLogicalViewRequest; +import com.google.bigtable.admin.v2.GetMaterializedViewRequest; import com.google.bigtable.admin.v2.HotTablet; import com.google.bigtable.admin.v2.Instance; import com.google.bigtable.admin.v2.InstanceName; @@ -54,6 +62,14 @@ import com.google.bigtable.admin.v2.ListHotTabletsResponse; import com.google.bigtable.admin.v2.ListInstancesRequest; import com.google.bigtable.admin.v2.ListInstancesResponse; +import com.google.bigtable.admin.v2.ListLogicalViewsRequest; +import com.google.bigtable.admin.v2.ListLogicalViewsResponse; +import com.google.bigtable.admin.v2.ListMaterializedViewsRequest; +import com.google.bigtable.admin.v2.ListMaterializedViewsResponse; +import com.google.bigtable.admin.v2.LogicalView; +import com.google.bigtable.admin.v2.LogicalViewName; +import com.google.bigtable.admin.v2.MaterializedView; +import com.google.bigtable.admin.v2.MaterializedViewName; import com.google.bigtable.admin.v2.PartialUpdateClusterMetadata; import com.google.bigtable.admin.v2.PartialUpdateClusterRequest; import com.google.bigtable.admin.v2.PartialUpdateInstanceRequest; @@ -62,6 +78,10 @@ import com.google.bigtable.admin.v2.UpdateAppProfileRequest; import com.google.bigtable.admin.v2.UpdateClusterMetadata; import com.google.bigtable.admin.v2.UpdateInstanceMetadata; +import com.google.bigtable.admin.v2.UpdateLogicalViewMetadata; +import com.google.bigtable.admin.v2.UpdateLogicalViewRequest; +import com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata; +import com.google.bigtable.admin.v2.UpdateMaterializedViewRequest; import com.google.cloud.bigtable.admin.v2.stub.BigtableInstanceAdminStub; import com.google.cloud.bigtable.admin.v2.stub.BigtableInstanceAdminStubSettings; import com.google.common.util.concurrent.MoreExecutors; @@ -185,7 +205,7 @@ public final OperationsClient getOperationsClient() { * @param clusters Required. The clusters to be created within the instance, mapped by desired * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. Fields marked `OutputOnly` - * must be left blank. Currently, at most four clusters can be specified. + * must be left blank. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( @@ -239,7 +259,7 @@ public final OperationFuture createInstanceAsy * @param clusters Required. The clusters to be created within the instance, mapped by desired * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. Fields marked `OutputOnly` - * must be left blank. Currently, at most four clusters can be specified. + * must be left blank. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( @@ -623,6 +643,7 @@ public final UnaryCallable listInst * .putAllLabels(new HashMap()) * .setCreateTime(Timestamp.newBuilder().build()) * .setSatisfiesPzs(true) + * .setSatisfiesPzi(true) * .build(); * Instance response = baseBigtableInstanceAdminClient.updateInstance(request); * } @@ -657,6 +678,7 @@ public final Instance updateInstance(Instance request) { * .putAllLabels(new HashMap()) * .setCreateTime(Timestamp.newBuilder().build()) * .setSatisfiesPzs(true) + * .setSatisfiesPzi(true) * .build(); * ApiFuture future = * baseBigtableInstanceAdminClient.updateInstanceCallable().futureCall(request); @@ -2385,6 +2407,74 @@ public final void deleteAppProfile(String name) { deleteAppProfile(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an app profile from an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   AppProfileName name = AppProfileName.of("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]");
+   *   boolean ignoreWarnings = true;
+   *   baseBigtableInstanceAdminClient.deleteAppProfile(name, ignoreWarnings);
+   * }
+   * }
+ * + * @param name Required. The unique name of the app profile to be deleted. Values are of the form + * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + * @param ignoreWarnings Required. If true, ignore safety checks when deleting the app profile. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAppProfile(AppProfileName name, boolean ignoreWarnings) { + DeleteAppProfileRequest request = + DeleteAppProfileRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setIgnoreWarnings(ignoreWarnings) + .build(); + deleteAppProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an app profile from an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   String name = AppProfileName.of("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]").toString();
+   *   boolean ignoreWarnings = true;
+   *   baseBigtableInstanceAdminClient.deleteAppProfile(name, ignoreWarnings);
+   * }
+   * }
+ * + * @param name Required. The unique name of the app profile to be deleted. Values are of the form + * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + * @param ignoreWarnings Required. If true, ignore safety checks when deleting the app profile. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAppProfile(String name, boolean ignoreWarnings) { + DeleteAppProfileRequest request = + DeleteAppProfileRequest.newBuilder() + .setName(name) + .setIgnoreWarnings(ignoreWarnings) + .build(); + deleteAppProfile(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an app profile from an instance. @@ -3022,77 +3112,1544 @@ public final ListHotTabletsPagedResponse listHotTablets(ListHotTabletsRequest re return stub.listHotTabletsCallable(); } - @Override - public final void close() { - stub.close(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a logical view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
+   *   LogicalView logicalView = LogicalView.newBuilder().build();
+   *   String logicalViewId = "logicalViewId-1408054263";
+   *   LogicalView response =
+   *       baseBigtableInstanceAdminClient
+   *           .createLogicalViewAsync(parent, logicalView, logicalViewId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent instance where this logical view will be created. Format: + * `projects/{project}/instances/{instance}`. + * @param logicalView Required. The logical view to create. + * @param logicalViewId Required. The ID to use for the logical view, which will become the final + * component of the logical view's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createLogicalViewAsync( + InstanceName parent, LogicalView logicalView, String logicalViewId) { + CreateLogicalViewRequest request = + CreateLogicalViewRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setLogicalView(logicalView) + .setLogicalViewId(logicalViewId) + .build(); + return createLogicalViewAsync(request); } - @Override - public void shutdown() { - stub.shutdown(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a logical view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[INSTANCE]").toString();
+   *   LogicalView logicalView = LogicalView.newBuilder().build();
+   *   String logicalViewId = "logicalViewId-1408054263";
+   *   LogicalView response =
+   *       baseBigtableInstanceAdminClient
+   *           .createLogicalViewAsync(parent, logicalView, logicalViewId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent instance where this logical view will be created. Format: + * `projects/{project}/instances/{instance}`. + * @param logicalView Required. The logical view to create. + * @param logicalViewId Required. The ID to use for the logical view, which will become the final + * component of the logical view's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createLogicalViewAsync( + String parent, LogicalView logicalView, String logicalViewId) { + CreateLogicalViewRequest request = + CreateLogicalViewRequest.newBuilder() + .setParent(parent) + .setLogicalView(logicalView) + .setLogicalViewId(logicalViewId) + .build(); + return createLogicalViewAsync(request); } - @Override - public boolean isShutdown() { - return stub.isShutdown(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a logical view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   CreateLogicalViewRequest request =
+   *       CreateLogicalViewRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
+   *           .setLogicalViewId("logicalViewId-1408054263")
+   *           .setLogicalView(LogicalView.newBuilder().build())
+   *           .build();
+   *   LogicalView response = baseBigtableInstanceAdminClient.createLogicalViewAsync(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 createLogicalViewAsync( + CreateLogicalViewRequest request) { + return createLogicalViewOperationCallable().futureCall(request); } - @Override - public boolean isTerminated() { - return stub.isTerminated(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a logical view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   CreateLogicalViewRequest request =
+   *       CreateLogicalViewRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
+   *           .setLogicalViewId("logicalViewId-1408054263")
+   *           .setLogicalView(LogicalView.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       baseBigtableInstanceAdminClient.createLogicalViewOperationCallable().futureCall(request);
+   *   // Do something.
+   *   LogicalView response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createLogicalViewOperationCallable() { + return stub.createLogicalViewOperationCallable(); } - @Override - public void shutdownNow() { - stub.shutdownNow(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a logical view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   CreateLogicalViewRequest request =
+   *       CreateLogicalViewRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
+   *           .setLogicalViewId("logicalViewId-1408054263")
+   *           .setLogicalView(LogicalView.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       baseBigtableInstanceAdminClient.createLogicalViewCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createLogicalViewCallable() { + return stub.createLogicalViewCallable(); } - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a logical view. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   LogicalViewName name = LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]");
+   *   LogicalView response = baseBigtableInstanceAdminClient.getLogicalView(name);
+   * }
+   * }
+ * + * @param name Required. The unique name of the requested logical view. Values are of the form + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogicalView getLogicalView(LogicalViewName name) { + GetLogicalViewRequest request = + GetLogicalViewRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getLogicalView(request); } - public static class ListAppProfilesPagedResponse - extends AbstractPagedListResponse< - ListAppProfilesRequest, - ListAppProfilesResponse, - AppProfile, - ListAppProfilesPage, - ListAppProfilesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAppProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListAppProfilesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListAppProfilesPagedResponse(ListAppProfilesPage page) { - super(page, ListAppProfilesFixedSizeCollection.createEmptyCollection()); - } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a logical view. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   String name = LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]").toString();
+   *   LogicalView response = baseBigtableInstanceAdminClient.getLogicalView(name);
+   * }
+   * }
+ * + * @param name Required. The unique name of the requested logical view. Values are of the form + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LogicalView getLogicalView(String name) { + GetLogicalViewRequest request = GetLogicalViewRequest.newBuilder().setName(name).build(); + return getLogicalView(request); } - public static class ListAppProfilesPage - extends AbstractPage< - ListAppProfilesRequest, ListAppProfilesResponse, AppProfile, ListAppProfilesPage> { - - private ListAppProfilesPage( - PageContext context, - ListAppProfilesResponse response) { - super(context, response); - } - - private static ListAppProfilesPage createEmptyPage() { - return new ListAppProfilesPage(null, null); - } - - @Override - protected ListAppProfilesPage createPage( - PageContext context, + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a logical view. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   GetLogicalViewRequest request =
+   *       GetLogicalViewRequest.newBuilder()
+   *           .setName(LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]").toString())
+   *           .build();
+   *   LogicalView response = baseBigtableInstanceAdminClient.getLogicalView(request);
+   * }
+   * }
+ * + * @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 LogicalView getLogicalView(GetLogicalViewRequest request) { + return getLogicalViewCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a logical view. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   GetLogicalViewRequest request =
+   *       GetLogicalViewRequest.newBuilder()
+   *           .setName(LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       baseBigtableInstanceAdminClient.getLogicalViewCallable().futureCall(request);
+   *   // Do something.
+   *   LogicalView response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLogicalViewCallable() { + return stub.getLogicalViewCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about logical views in an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
+   *   for (LogicalView element :
+   *       baseBigtableInstanceAdminClient.listLogicalViews(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The unique name of the instance for which the list of logical views is + * requested. Values are of the form `projects/{project}/instances/{instance}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogicalViewsPagedResponse listLogicalViews(InstanceName parent) { + ListLogicalViewsRequest request = + ListLogicalViewsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listLogicalViews(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about logical views in an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[INSTANCE]").toString();
+   *   for (LogicalView element :
+   *       baseBigtableInstanceAdminClient.listLogicalViews(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The unique name of the instance for which the list of logical views is + * requested. Values are of the form `projects/{project}/instances/{instance}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLogicalViewsPagedResponse listLogicalViews(String parent) { + ListLogicalViewsRequest request = + ListLogicalViewsRequest.newBuilder().setParent(parent).build(); + return listLogicalViews(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about logical views in an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   ListLogicalViewsRequest request =
+   *       ListLogicalViewsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (LogicalView element :
+   *       baseBigtableInstanceAdminClient.listLogicalViews(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @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 ListLogicalViewsPagedResponse listLogicalViews(ListLogicalViewsRequest request) { + return listLogicalViewsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about logical views in an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   ListLogicalViewsRequest request =
+   *       ListLogicalViewsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       baseBigtableInstanceAdminClient.listLogicalViewsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (LogicalView element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLogicalViewsPagedCallable() { + return stub.listLogicalViewsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about logical views in an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   ListLogicalViewsRequest request =
+   *       ListLogicalViewsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLogicalViewsResponse response =
+   *         baseBigtableInstanceAdminClient.listLogicalViewsCallable().call(request);
+   *     for (LogicalView element : response.getLogicalViewsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLogicalViewsCallable() { + return stub.listLogicalViewsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a logical view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   LogicalView logicalView = LogicalView.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   LogicalView response =
+   *       baseBigtableInstanceAdminClient.updateLogicalViewAsync(logicalView, updateMask).get();
+   * }
+   * }
+ * + * @param logicalView Required. The logical view to update. + *

The logical view's `name` field is used to identify the view to update. Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * @param updateMask Optional. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateLogicalViewAsync( + LogicalView logicalView, FieldMask updateMask) { + UpdateLogicalViewRequest request = + UpdateLogicalViewRequest.newBuilder() + .setLogicalView(logicalView) + .setUpdateMask(updateMask) + .build(); + return updateLogicalViewAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a logical view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   UpdateLogicalViewRequest request =
+   *       UpdateLogicalViewRequest.newBuilder()
+   *           .setLogicalView(LogicalView.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   LogicalView response = baseBigtableInstanceAdminClient.updateLogicalViewAsync(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 updateLogicalViewAsync( + UpdateLogicalViewRequest request) { + return updateLogicalViewOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a logical view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   UpdateLogicalViewRequest request =
+   *       UpdateLogicalViewRequest.newBuilder()
+   *           .setLogicalView(LogicalView.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       baseBigtableInstanceAdminClient.updateLogicalViewOperationCallable().futureCall(request);
+   *   // Do something.
+   *   LogicalView response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateLogicalViewOperationCallable() { + return stub.updateLogicalViewOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a logical view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   UpdateLogicalViewRequest request =
+   *       UpdateLogicalViewRequest.newBuilder()
+   *           .setLogicalView(LogicalView.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       baseBigtableInstanceAdminClient.updateLogicalViewCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateLogicalViewCallable() { + return stub.updateLogicalViewCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a logical view from an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   LogicalViewName name = LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]");
+   *   baseBigtableInstanceAdminClient.deleteLogicalView(name);
+   * }
+   * }
+ * + * @param name Required. The unique name of the logical view to be deleted. Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteLogicalView(LogicalViewName name) { + DeleteLogicalViewRequest request = + DeleteLogicalViewRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteLogicalView(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a logical view from an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   String name = LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]").toString();
+   *   baseBigtableInstanceAdminClient.deleteLogicalView(name);
+   * }
+   * }
+ * + * @param name Required. The unique name of the logical view to be deleted. Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteLogicalView(String name) { + DeleteLogicalViewRequest request = DeleteLogicalViewRequest.newBuilder().setName(name).build(); + deleteLogicalView(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a logical view from an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   DeleteLogicalViewRequest request =
+   *       DeleteLogicalViewRequest.newBuilder()
+   *           .setName(LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]").toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   baseBigtableInstanceAdminClient.deleteLogicalView(request);
+   * }
+   * }
+ * + * @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 void deleteLogicalView(DeleteLogicalViewRequest request) { + deleteLogicalViewCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a logical view from an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   DeleteLogicalViewRequest request =
+   *       DeleteLogicalViewRequest.newBuilder()
+   *           .setName(LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]").toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       baseBigtableInstanceAdminClient.deleteLogicalViewCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteLogicalViewCallable() { + return stub.deleteLogicalViewCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a materialized view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
+   *   MaterializedView materializedView = MaterializedView.newBuilder().build();
+   *   String materializedViewId = "materializedViewId682270903";
+   *   MaterializedView response =
+   *       baseBigtableInstanceAdminClient
+   *           .createMaterializedViewAsync(parent, materializedView, materializedViewId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent instance where this materialized view will be created. + * Format: `projects/{project}/instances/{instance}`. + * @param materializedView Required. The materialized view to create. + * @param materializedViewId Required. The ID to use for the materialized view, which will become + * the final component of the materialized view's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMaterializedViewAsync( + InstanceName parent, MaterializedView materializedView, String materializedViewId) { + CreateMaterializedViewRequest request = + CreateMaterializedViewRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMaterializedView(materializedView) + .setMaterializedViewId(materializedViewId) + .build(); + return createMaterializedViewAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a materialized view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[INSTANCE]").toString();
+   *   MaterializedView materializedView = MaterializedView.newBuilder().build();
+   *   String materializedViewId = "materializedViewId682270903";
+   *   MaterializedView response =
+   *       baseBigtableInstanceAdminClient
+   *           .createMaterializedViewAsync(parent, materializedView, materializedViewId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent instance where this materialized view will be created. + * Format: `projects/{project}/instances/{instance}`. + * @param materializedView Required. The materialized view to create. + * @param materializedViewId Required. The ID to use for the materialized view, which will become + * the final component of the materialized view's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMaterializedViewAsync( + String parent, MaterializedView materializedView, String materializedViewId) { + CreateMaterializedViewRequest request = + CreateMaterializedViewRequest.newBuilder() + .setParent(parent) + .setMaterializedView(materializedView) + .setMaterializedViewId(materializedViewId) + .build(); + return createMaterializedViewAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a materialized view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   CreateMaterializedViewRequest request =
+   *       CreateMaterializedViewRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
+   *           .setMaterializedViewId("materializedViewId682270903")
+   *           .setMaterializedView(MaterializedView.newBuilder().build())
+   *           .build();
+   *   MaterializedView response =
+   *       baseBigtableInstanceAdminClient.createMaterializedViewAsync(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 + createMaterializedViewAsync(CreateMaterializedViewRequest request) { + return createMaterializedViewOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a materialized view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   CreateMaterializedViewRequest request =
+   *       CreateMaterializedViewRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
+   *           .setMaterializedViewId("materializedViewId682270903")
+   *           .setMaterializedView(MaterializedView.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       baseBigtableInstanceAdminClient
+   *           .createMaterializedViewOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   MaterializedView response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateMaterializedViewRequest, MaterializedView, CreateMaterializedViewMetadata> + createMaterializedViewOperationCallable() { + return stub.createMaterializedViewOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a materialized view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   CreateMaterializedViewRequest request =
+   *       CreateMaterializedViewRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
+   *           .setMaterializedViewId("materializedViewId682270903")
+   *           .setMaterializedView(MaterializedView.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       baseBigtableInstanceAdminClient.createMaterializedViewCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createMaterializedViewCallable() { + return stub.createMaterializedViewCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a materialized view. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   MaterializedViewName name =
+   *       MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]");
+   *   MaterializedView response = baseBigtableInstanceAdminClient.getMaterializedView(name);
+   * }
+   * }
+ * + * @param name Required. The unique name of the requested materialized view. Values are of the + * form `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MaterializedView getMaterializedView(MaterializedViewName name) { + GetMaterializedViewRequest request = + GetMaterializedViewRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMaterializedView(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a materialized view. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   String name =
+   *       MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]").toString();
+   *   MaterializedView response = baseBigtableInstanceAdminClient.getMaterializedView(name);
+   * }
+   * }
+ * + * @param name Required. The unique name of the requested materialized view. Values are of the + * form `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MaterializedView getMaterializedView(String name) { + GetMaterializedViewRequest request = + GetMaterializedViewRequest.newBuilder().setName(name).build(); + return getMaterializedView(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a materialized view. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   GetMaterializedViewRequest request =
+   *       GetMaterializedViewRequest.newBuilder()
+   *           .setName(
+   *               MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]")
+   *                   .toString())
+   *           .build();
+   *   MaterializedView response = baseBigtableInstanceAdminClient.getMaterializedView(request);
+   * }
+   * }
+ * + * @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 MaterializedView getMaterializedView(GetMaterializedViewRequest request) { + return getMaterializedViewCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a materialized view. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   GetMaterializedViewRequest request =
+   *       GetMaterializedViewRequest.newBuilder()
+   *           .setName(
+   *               MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       baseBigtableInstanceAdminClient.getMaterializedViewCallable().futureCall(request);
+   *   // Do something.
+   *   MaterializedView response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getMaterializedViewCallable() { + return stub.getMaterializedViewCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about materialized views in an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
+   *   for (MaterializedView element :
+   *       baseBigtableInstanceAdminClient.listMaterializedViews(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The unique name of the instance for which the list of materialized + * views is requested. Values are of the form `projects/{project}/instances/{instance}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMaterializedViewsPagedResponse listMaterializedViews(InstanceName parent) { + ListMaterializedViewsRequest request = + ListMaterializedViewsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMaterializedViews(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about materialized views in an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[INSTANCE]").toString();
+   *   for (MaterializedView element :
+   *       baseBigtableInstanceAdminClient.listMaterializedViews(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The unique name of the instance for which the list of materialized + * views is requested. Values are of the form `projects/{project}/instances/{instance}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMaterializedViewsPagedResponse listMaterializedViews(String parent) { + ListMaterializedViewsRequest request = + ListMaterializedViewsRequest.newBuilder().setParent(parent).build(); + return listMaterializedViews(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about materialized views in an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   ListMaterializedViewsRequest request =
+   *       ListMaterializedViewsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (MaterializedView element :
+   *       baseBigtableInstanceAdminClient.listMaterializedViews(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @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 ListMaterializedViewsPagedResponse listMaterializedViews( + ListMaterializedViewsRequest request) { + return listMaterializedViewsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about materialized views in an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   ListMaterializedViewsRequest request =
+   *       ListMaterializedViewsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       baseBigtableInstanceAdminClient.listMaterializedViewsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (MaterializedView element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMaterializedViewsPagedCallable() { + return stub.listMaterializedViewsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about materialized views in an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   ListMaterializedViewsRequest request =
+   *       ListMaterializedViewsRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListMaterializedViewsResponse response =
+   *         baseBigtableInstanceAdminClient.listMaterializedViewsCallable().call(request);
+   *     for (MaterializedView element : response.getMaterializedViewsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMaterializedViewsCallable() { + return stub.listMaterializedViewsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a materialized view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   MaterializedView materializedView = MaterializedView.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   MaterializedView response =
+   *       baseBigtableInstanceAdminClient
+   *           .updateMaterializedViewAsync(materializedView, updateMask)
+   *           .get();
+   * }
+   * }
+ * + * @param materializedView Required. The materialized view to update. + *

The materialized view's `name` field is used to identify the view to update. Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * @param updateMask Optional. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateMaterializedViewAsync(MaterializedView materializedView, FieldMask updateMask) { + UpdateMaterializedViewRequest request = + UpdateMaterializedViewRequest.newBuilder() + .setMaterializedView(materializedView) + .setUpdateMask(updateMask) + .build(); + return updateMaterializedViewAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a materialized view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   UpdateMaterializedViewRequest request =
+   *       UpdateMaterializedViewRequest.newBuilder()
+   *           .setMaterializedView(MaterializedView.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   MaterializedView response =
+   *       baseBigtableInstanceAdminClient.updateMaterializedViewAsync(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 + updateMaterializedViewAsync(UpdateMaterializedViewRequest request) { + return updateMaterializedViewOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a materialized view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   UpdateMaterializedViewRequest request =
+   *       UpdateMaterializedViewRequest.newBuilder()
+   *           .setMaterializedView(MaterializedView.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       baseBigtableInstanceAdminClient
+   *           .updateMaterializedViewOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   MaterializedView response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateMaterializedViewRequest, MaterializedView, UpdateMaterializedViewMetadata> + updateMaterializedViewOperationCallable() { + return stub.updateMaterializedViewOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a materialized view within an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   UpdateMaterializedViewRequest request =
+   *       UpdateMaterializedViewRequest.newBuilder()
+   *           .setMaterializedView(MaterializedView.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       baseBigtableInstanceAdminClient.updateMaterializedViewCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateMaterializedViewCallable() { + return stub.updateMaterializedViewCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a materialized view from an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   MaterializedViewName name =
+   *       MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]");
+   *   baseBigtableInstanceAdminClient.deleteMaterializedView(name);
+   * }
+   * }
+ * + * @param name Required. The unique name of the materialized view to be deleted. Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteMaterializedView(MaterializedViewName name) { + DeleteMaterializedViewRequest request = + DeleteMaterializedViewRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteMaterializedView(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a materialized view from an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   String name =
+   *       MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]").toString();
+   *   baseBigtableInstanceAdminClient.deleteMaterializedView(name);
+   * }
+   * }
+ * + * @param name Required. The unique name of the materialized view to be deleted. Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteMaterializedView(String name) { + DeleteMaterializedViewRequest request = + DeleteMaterializedViewRequest.newBuilder().setName(name).build(); + deleteMaterializedView(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a materialized view from an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   DeleteMaterializedViewRequest request =
+   *       DeleteMaterializedViewRequest.newBuilder()
+   *           .setName(
+   *               MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   baseBigtableInstanceAdminClient.deleteMaterializedView(request);
+   * }
+   * }
+ * + * @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 void deleteMaterializedView(DeleteMaterializedViewRequest request) { + deleteMaterializedViewCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a materialized view from an instance. + * + *

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 (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
+   *     BaseBigtableInstanceAdminClient.create()) {
+   *   DeleteMaterializedViewRequest request =
+   *       DeleteMaterializedViewRequest.newBuilder()
+   *           .setName(
+   *               MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       baseBigtableInstanceAdminClient.deleteMaterializedViewCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteMaterializedViewCallable() { + return stub.deleteMaterializedViewCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListAppProfilesPagedResponse + extends AbstractPagedListResponse< + ListAppProfilesRequest, + ListAppProfilesResponse, + AppProfile, + ListAppProfilesPage, + ListAppProfilesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAppProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAppProfilesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAppProfilesPagedResponse(ListAppProfilesPage page) { + super(page, ListAppProfilesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAppProfilesPage + extends AbstractPage< + ListAppProfilesRequest, ListAppProfilesResponse, AppProfile, ListAppProfilesPage> { + + private ListAppProfilesPage( + PageContext context, + ListAppProfilesResponse response) { + super(context, response); + } + + private static ListAppProfilesPage createEmptyPage() { + return new ListAppProfilesPage(null, null); + } + + @Override + protected ListAppProfilesPage createPage( + PageContext context, ListAppProfilesResponse response) { return new ListAppProfilesPage(context, response); } @@ -3204,4 +4761,165 @@ protected ListHotTabletsFixedSizeCollection createCollection( return new ListHotTabletsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLogicalViewsPagedResponse + extends AbstractPagedListResponse< + ListLogicalViewsRequest, + ListLogicalViewsResponse, + LogicalView, + ListLogicalViewsPage, + ListLogicalViewsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLogicalViewsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLogicalViewsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLogicalViewsPagedResponse(ListLogicalViewsPage page) { + super(page, ListLogicalViewsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLogicalViewsPage + extends AbstractPage< + ListLogicalViewsRequest, ListLogicalViewsResponse, LogicalView, ListLogicalViewsPage> { + + private ListLogicalViewsPage( + PageContext context, + ListLogicalViewsResponse response) { + super(context, response); + } + + private static ListLogicalViewsPage createEmptyPage() { + return new ListLogicalViewsPage(null, null); + } + + @Override + protected ListLogicalViewsPage createPage( + PageContext context, + ListLogicalViewsResponse response) { + return new ListLogicalViewsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLogicalViewsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLogicalViewsRequest, + ListLogicalViewsResponse, + LogicalView, + ListLogicalViewsPage, + ListLogicalViewsFixedSizeCollection> { + + private ListLogicalViewsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLogicalViewsFixedSizeCollection createEmptyCollection() { + return new ListLogicalViewsFixedSizeCollection(null, 0); + } + + @Override + protected ListLogicalViewsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLogicalViewsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListMaterializedViewsPagedResponse + extends AbstractPagedListResponse< + ListMaterializedViewsRequest, + ListMaterializedViewsResponse, + MaterializedView, + ListMaterializedViewsPage, + ListMaterializedViewsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMaterializedViewsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMaterializedViewsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMaterializedViewsPagedResponse(ListMaterializedViewsPage page) { + super(page, ListMaterializedViewsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMaterializedViewsPage + extends AbstractPage< + ListMaterializedViewsRequest, + ListMaterializedViewsResponse, + MaterializedView, + ListMaterializedViewsPage> { + + private ListMaterializedViewsPage( + PageContext + context, + ListMaterializedViewsResponse response) { + super(context, response); + } + + private static ListMaterializedViewsPage createEmptyPage() { + return new ListMaterializedViewsPage(null, null); + } + + @Override + protected ListMaterializedViewsPage createPage( + PageContext + context, + ListMaterializedViewsResponse response) { + return new ListMaterializedViewsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMaterializedViewsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMaterializedViewsRequest, + ListMaterializedViewsResponse, + MaterializedView, + ListMaterializedViewsPage, + ListMaterializedViewsFixedSizeCollection> { + + private ListMaterializedViewsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMaterializedViewsFixedSizeCollection createEmptyCollection() { + return new ListMaterializedViewsFixedSizeCollection(null, 0); + } + + @Override + protected ListMaterializedViewsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMaterializedViewsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminSettings.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminSettings.java index 80a0dbf0a75f..8223e0fc243a 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminSettings.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminSettings.java @@ -18,6 +18,8 @@ import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListAppProfilesPagedResponse; import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListHotTabletsPagedResponse; +import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListLogicalViewsPagedResponse; +import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListMaterializedViewsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.InternalApi; @@ -38,12 +40,20 @@ import com.google.bigtable.admin.v2.CreateClusterRequest; import com.google.bigtable.admin.v2.CreateInstanceMetadata; import com.google.bigtable.admin.v2.CreateInstanceRequest; +import com.google.bigtable.admin.v2.CreateLogicalViewMetadata; +import com.google.bigtable.admin.v2.CreateLogicalViewRequest; +import com.google.bigtable.admin.v2.CreateMaterializedViewMetadata; +import com.google.bigtable.admin.v2.CreateMaterializedViewRequest; import com.google.bigtable.admin.v2.DeleteAppProfileRequest; import com.google.bigtable.admin.v2.DeleteClusterRequest; import com.google.bigtable.admin.v2.DeleteInstanceRequest; +import com.google.bigtable.admin.v2.DeleteLogicalViewRequest; +import com.google.bigtable.admin.v2.DeleteMaterializedViewRequest; import com.google.bigtable.admin.v2.GetAppProfileRequest; import com.google.bigtable.admin.v2.GetClusterRequest; import com.google.bigtable.admin.v2.GetInstanceRequest; +import com.google.bigtable.admin.v2.GetLogicalViewRequest; +import com.google.bigtable.admin.v2.GetMaterializedViewRequest; import com.google.bigtable.admin.v2.Instance; import com.google.bigtable.admin.v2.ListAppProfilesRequest; import com.google.bigtable.admin.v2.ListAppProfilesResponse; @@ -53,6 +63,12 @@ import com.google.bigtable.admin.v2.ListHotTabletsResponse; import com.google.bigtable.admin.v2.ListInstancesRequest; import com.google.bigtable.admin.v2.ListInstancesResponse; +import com.google.bigtable.admin.v2.ListLogicalViewsRequest; +import com.google.bigtable.admin.v2.ListLogicalViewsResponse; +import com.google.bigtable.admin.v2.ListMaterializedViewsRequest; +import com.google.bigtable.admin.v2.ListMaterializedViewsResponse; +import com.google.bigtable.admin.v2.LogicalView; +import com.google.bigtable.admin.v2.MaterializedView; import com.google.bigtable.admin.v2.PartialUpdateClusterMetadata; import com.google.bigtable.admin.v2.PartialUpdateClusterRequest; import com.google.bigtable.admin.v2.PartialUpdateInstanceRequest; @@ -60,6 +76,10 @@ import com.google.bigtable.admin.v2.UpdateAppProfileRequest; import com.google.bigtable.admin.v2.UpdateClusterMetadata; import com.google.bigtable.admin.v2.UpdateInstanceMetadata; +import com.google.bigtable.admin.v2.UpdateLogicalViewMetadata; +import com.google.bigtable.admin.v2.UpdateLogicalViewRequest; +import com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata; +import com.google.bigtable.admin.v2.UpdateMaterializedViewRequest; import com.google.cloud.bigtable.admin.v2.stub.BigtableInstanceAdminStubSettings; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; @@ -225,6 +245,95 @@ public UnaryCallSettings setIamPolicySettings() { return ((BigtableInstanceAdminStubSettings) getStubSettings()).listHotTabletsSettings(); } + /** Returns the object with the settings used for calls to createLogicalView. */ + public UnaryCallSettings createLogicalViewSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()).createLogicalViewSettings(); + } + + /** Returns the object with the settings used for calls to createLogicalView. */ + public OperationCallSettings + createLogicalViewOperationSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()) + .createLogicalViewOperationSettings(); + } + + /** Returns the object with the settings used for calls to getLogicalView. */ + public UnaryCallSettings getLogicalViewSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()).getLogicalViewSettings(); + } + + /** Returns the object with the settings used for calls to listLogicalViews. */ + public PagedCallSettings< + ListLogicalViewsRequest, ListLogicalViewsResponse, ListLogicalViewsPagedResponse> + listLogicalViewsSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()).listLogicalViewsSettings(); + } + + /** Returns the object with the settings used for calls to updateLogicalView. */ + public UnaryCallSettings updateLogicalViewSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()).updateLogicalViewSettings(); + } + + /** Returns the object with the settings used for calls to updateLogicalView. */ + public OperationCallSettings + updateLogicalViewOperationSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()) + .updateLogicalViewOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteLogicalView. */ + public UnaryCallSettings deleteLogicalViewSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()).deleteLogicalViewSettings(); + } + + /** Returns the object with the settings used for calls to createMaterializedView. */ + public UnaryCallSettings + createMaterializedViewSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()).createMaterializedViewSettings(); + } + + /** Returns the object with the settings used for calls to createMaterializedView. */ + public OperationCallSettings< + CreateMaterializedViewRequest, MaterializedView, CreateMaterializedViewMetadata> + createMaterializedViewOperationSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()) + .createMaterializedViewOperationSettings(); + } + + /** Returns the object with the settings used for calls to getMaterializedView. */ + public UnaryCallSettings + getMaterializedViewSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()).getMaterializedViewSettings(); + } + + /** Returns the object with the settings used for calls to listMaterializedViews. */ + public PagedCallSettings< + ListMaterializedViewsRequest, + ListMaterializedViewsResponse, + ListMaterializedViewsPagedResponse> + listMaterializedViewsSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()).listMaterializedViewsSettings(); + } + + /** Returns the object with the settings used for calls to updateMaterializedView. */ + public UnaryCallSettings + updateMaterializedViewSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()).updateMaterializedViewSettings(); + } + + /** Returns the object with the settings used for calls to updateMaterializedView. */ + public OperationCallSettings< + UpdateMaterializedViewRequest, MaterializedView, UpdateMaterializedViewMetadata> + updateMaterializedViewOperationSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()) + .updateMaterializedViewOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteMaterializedView. */ + public UnaryCallSettings deleteMaterializedViewSettings() { + return ((BigtableInstanceAdminStubSettings) getStubSettings()).deleteMaterializedViewSettings(); + } + public static final BaseBigtableInstanceAdminSettings create( BigtableInstanceAdminStubSettings stub) throws IOException { return new BaseBigtableInstanceAdminSettings.Builder(stub.toBuilder()).build(); @@ -472,6 +581,96 @@ public UnaryCallSettings.Builder setIamPolicySettin return getStubSettingsBuilder().listHotTabletsSettings(); } + /** Returns the builder for the settings used for calls to createLogicalView. */ + public UnaryCallSettings.Builder + createLogicalViewSettings() { + return getStubSettingsBuilder().createLogicalViewSettings(); + } + + /** Returns the builder for the settings used for calls to createLogicalView. */ + public OperationCallSettings.Builder< + CreateLogicalViewRequest, LogicalView, CreateLogicalViewMetadata> + createLogicalViewOperationSettings() { + return getStubSettingsBuilder().createLogicalViewOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getLogicalView. */ + public UnaryCallSettings.Builder getLogicalViewSettings() { + return getStubSettingsBuilder().getLogicalViewSettings(); + } + + /** Returns the builder for the settings used for calls to listLogicalViews. */ + public PagedCallSettings.Builder< + ListLogicalViewsRequest, ListLogicalViewsResponse, ListLogicalViewsPagedResponse> + listLogicalViewsSettings() { + return getStubSettingsBuilder().listLogicalViewsSettings(); + } + + /** Returns the builder for the settings used for calls to updateLogicalView. */ + public UnaryCallSettings.Builder + updateLogicalViewSettings() { + return getStubSettingsBuilder().updateLogicalViewSettings(); + } + + /** Returns the builder for the settings used for calls to updateLogicalView. */ + public OperationCallSettings.Builder< + UpdateLogicalViewRequest, LogicalView, UpdateLogicalViewMetadata> + updateLogicalViewOperationSettings() { + return getStubSettingsBuilder().updateLogicalViewOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteLogicalView. */ + public UnaryCallSettings.Builder deleteLogicalViewSettings() { + return getStubSettingsBuilder().deleteLogicalViewSettings(); + } + + /** Returns the builder for the settings used for calls to createMaterializedView. */ + public UnaryCallSettings.Builder + createMaterializedViewSettings() { + return getStubSettingsBuilder().createMaterializedViewSettings(); + } + + /** Returns the builder for the settings used for calls to createMaterializedView. */ + public OperationCallSettings.Builder< + CreateMaterializedViewRequest, MaterializedView, CreateMaterializedViewMetadata> + createMaterializedViewOperationSettings() { + return getStubSettingsBuilder().createMaterializedViewOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getMaterializedView. */ + public UnaryCallSettings.Builder + getMaterializedViewSettings() { + return getStubSettingsBuilder().getMaterializedViewSettings(); + } + + /** Returns the builder for the settings used for calls to listMaterializedViews. */ + public PagedCallSettings.Builder< + ListMaterializedViewsRequest, + ListMaterializedViewsResponse, + ListMaterializedViewsPagedResponse> + listMaterializedViewsSettings() { + return getStubSettingsBuilder().listMaterializedViewsSettings(); + } + + /** Returns the builder for the settings used for calls to updateMaterializedView. */ + public UnaryCallSettings.Builder + updateMaterializedViewSettings() { + return getStubSettingsBuilder().updateMaterializedViewSettings(); + } + + /** Returns the builder for the settings used for calls to updateMaterializedView. */ + public OperationCallSettings.Builder< + UpdateMaterializedViewRequest, MaterializedView, UpdateMaterializedViewMetadata> + updateMaterializedViewOperationSettings() { + return getStubSettingsBuilder().updateMaterializedViewOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMaterializedView. */ + public UnaryCallSettings.Builder + deleteMaterializedViewSettings() { + return getStubSettingsBuilder().deleteMaterializedViewSettings(); + } + @Override public BaseBigtableInstanceAdminSettings build() throws IOException { return new BaseBigtableInstanceAdminSettings(this); diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java index f64aacba9382..405c6e82eb5a 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java @@ -944,6 +944,7 @@ public final UnaryCallable getTableCallable() { *
  • `change_stream_config` *
  • `change_stream_config.retention_period` *
  • `deletion_protection` + *
  • `row_key_schema` * *

    If `column_families` is set in `update_mask`, it will return an UNIMPLEMENTED error. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -973,6 +974,7 @@ public final OperationFuture updateTableAsync( * UpdateTableRequest.newBuilder() * .setTable(Table.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) + * .setIgnoreWarnings(true) * .build(); * Table response = baseBigtableTableAdminClient.updateTableAsync(request).get(); * } @@ -1004,6 +1006,7 @@ public final OperationFuture updateTableAsync( * UpdateTableRequest.newBuilder() * .setTable(Table.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) + * .setIgnoreWarnings(true) * .build(); * OperationFuture future = * baseBigtableTableAdminClient.updateTableOperationCallable().futureCall(request); @@ -1035,6 +1038,7 @@ public final OperationFuture updateTableAsync( * UpdateTableRequest.newBuilder() * .setTable(Table.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) + * .setIgnoreWarnings(true) * .build(); * ApiFuture future = * baseBigtableTableAdminClient.updateTableCallable().futureCall(request); diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/gapic_metadata.json b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/gapic_metadata.json index 796badc1bb86..868657a3eaa8 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/gapic_metadata.json +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/gapic_metadata.json @@ -19,8 +19,14 @@ "CreateInstance": { "methods": ["createInstanceAsync", "createInstanceAsync", "createInstanceAsync", "createInstanceOperationCallable", "createInstanceCallable"] }, + "CreateLogicalView": { + "methods": ["createLogicalViewAsync", "createLogicalViewAsync", "createLogicalViewAsync", "createLogicalViewOperationCallable", "createLogicalViewCallable"] + }, + "CreateMaterializedView": { + "methods": ["createMaterializedViewAsync", "createMaterializedViewAsync", "createMaterializedViewAsync", "createMaterializedViewOperationCallable", "createMaterializedViewCallable"] + }, "DeleteAppProfile": { - "methods": ["deleteAppProfile", "deleteAppProfile", "deleteAppProfile", "deleteAppProfileCallable"] + "methods": ["deleteAppProfile", "deleteAppProfile", "deleteAppProfile", "deleteAppProfile", "deleteAppProfile", "deleteAppProfileCallable"] }, "DeleteCluster": { "methods": ["deleteCluster", "deleteCluster", "deleteCluster", "deleteClusterCallable"] @@ -28,6 +34,12 @@ "DeleteInstance": { "methods": ["deleteInstance", "deleteInstance", "deleteInstance", "deleteInstanceCallable"] }, + "DeleteLogicalView": { + "methods": ["deleteLogicalView", "deleteLogicalView", "deleteLogicalView", "deleteLogicalViewCallable"] + }, + "DeleteMaterializedView": { + "methods": ["deleteMaterializedView", "deleteMaterializedView", "deleteMaterializedView", "deleteMaterializedViewCallable"] + }, "GetAppProfile": { "methods": ["getAppProfile", "getAppProfile", "getAppProfile", "getAppProfileCallable"] }, @@ -40,6 +52,12 @@ "GetInstance": { "methods": ["getInstance", "getInstance", "getInstance", "getInstanceCallable"] }, + "GetLogicalView": { + "methods": ["getLogicalView", "getLogicalView", "getLogicalView", "getLogicalViewCallable"] + }, + "GetMaterializedView": { + "methods": ["getMaterializedView", "getMaterializedView", "getMaterializedView", "getMaterializedViewCallable"] + }, "ListAppProfiles": { "methods": ["listAppProfiles", "listAppProfiles", "listAppProfiles", "listAppProfilesPagedCallable", "listAppProfilesCallable"] }, @@ -52,6 +70,12 @@ "ListInstances": { "methods": ["listInstances", "listInstances", "listInstances", "listInstancesCallable"] }, + "ListLogicalViews": { + "methods": ["listLogicalViews", "listLogicalViews", "listLogicalViews", "listLogicalViewsPagedCallable", "listLogicalViewsCallable"] + }, + "ListMaterializedViews": { + "methods": ["listMaterializedViews", "listMaterializedViews", "listMaterializedViews", "listMaterializedViewsPagedCallable", "listMaterializedViewsCallable"] + }, "PartialUpdateCluster": { "methods": ["partialUpdateClusterAsync", "partialUpdateClusterAsync", "partialUpdateClusterOperationCallable", "partialUpdateClusterCallable"] }, @@ -72,6 +96,12 @@ }, "UpdateInstance": { "methods": ["updateInstance", "updateInstanceCallable"] + }, + "UpdateLogicalView": { + "methods": ["updateLogicalViewAsync", "updateLogicalViewAsync", "updateLogicalViewOperationCallable", "updateLogicalViewCallable"] + }, + "UpdateMaterializedView": { + "methods": ["updateMaterializedViewAsync", "updateMaterializedViewAsync", "updateMaterializedViewOperationCallable", "updateMaterializedViewCallable"] } } } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStub.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStub.java index 3a2add3e3497..51218575d9a5 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStub.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStub.java @@ -18,6 +18,8 @@ import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListAppProfilesPagedResponse; import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListHotTabletsPagedResponse; +import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListLogicalViewsPagedResponse; +import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListMaterializedViewsPagedResponse; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -30,12 +32,20 @@ import com.google.bigtable.admin.v2.CreateClusterRequest; import com.google.bigtable.admin.v2.CreateInstanceMetadata; import com.google.bigtable.admin.v2.CreateInstanceRequest; +import com.google.bigtable.admin.v2.CreateLogicalViewMetadata; +import com.google.bigtable.admin.v2.CreateLogicalViewRequest; +import com.google.bigtable.admin.v2.CreateMaterializedViewMetadata; +import com.google.bigtable.admin.v2.CreateMaterializedViewRequest; import com.google.bigtable.admin.v2.DeleteAppProfileRequest; import com.google.bigtable.admin.v2.DeleteClusterRequest; import com.google.bigtable.admin.v2.DeleteInstanceRequest; +import com.google.bigtable.admin.v2.DeleteLogicalViewRequest; +import com.google.bigtable.admin.v2.DeleteMaterializedViewRequest; import com.google.bigtable.admin.v2.GetAppProfileRequest; import com.google.bigtable.admin.v2.GetClusterRequest; import com.google.bigtable.admin.v2.GetInstanceRequest; +import com.google.bigtable.admin.v2.GetLogicalViewRequest; +import com.google.bigtable.admin.v2.GetMaterializedViewRequest; import com.google.bigtable.admin.v2.Instance; import com.google.bigtable.admin.v2.ListAppProfilesRequest; import com.google.bigtable.admin.v2.ListAppProfilesResponse; @@ -45,6 +55,12 @@ import com.google.bigtable.admin.v2.ListHotTabletsResponse; import com.google.bigtable.admin.v2.ListInstancesRequest; import com.google.bigtable.admin.v2.ListInstancesResponse; +import com.google.bigtable.admin.v2.ListLogicalViewsRequest; +import com.google.bigtable.admin.v2.ListLogicalViewsResponse; +import com.google.bigtable.admin.v2.ListMaterializedViewsRequest; +import com.google.bigtable.admin.v2.ListMaterializedViewsResponse; +import com.google.bigtable.admin.v2.LogicalView; +import com.google.bigtable.admin.v2.MaterializedView; import com.google.bigtable.admin.v2.PartialUpdateClusterMetadata; import com.google.bigtable.admin.v2.PartialUpdateClusterRequest; import com.google.bigtable.admin.v2.PartialUpdateInstanceRequest; @@ -52,6 +68,10 @@ import com.google.bigtable.admin.v2.UpdateAppProfileRequest; import com.google.bigtable.admin.v2.UpdateClusterMetadata; import com.google.bigtable.admin.v2.UpdateInstanceMetadata; +import com.google.bigtable.admin.v2.UpdateLogicalViewMetadata; +import com.google.bigtable.admin.v2.UpdateLogicalViewRequest; +import com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata; +import com.google.bigtable.admin.v2.UpdateMaterializedViewRequest; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -199,6 +219,85 @@ public UnaryCallable listHotTable throw new UnsupportedOperationException("Not implemented: listHotTabletsCallable()"); } + public OperationCallable + createLogicalViewOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createLogicalViewOperationCallable()"); + } + + public UnaryCallable createLogicalViewCallable() { + throw new UnsupportedOperationException("Not implemented: createLogicalViewCallable()"); + } + + public UnaryCallable getLogicalViewCallable() { + throw new UnsupportedOperationException("Not implemented: getLogicalViewCallable()"); + } + + public UnaryCallable + listLogicalViewsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLogicalViewsPagedCallable()"); + } + + public UnaryCallable + listLogicalViewsCallable() { + throw new UnsupportedOperationException("Not implemented: listLogicalViewsCallable()"); + } + + public OperationCallable + updateLogicalViewOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateLogicalViewOperationCallable()"); + } + + public UnaryCallable updateLogicalViewCallable() { + throw new UnsupportedOperationException("Not implemented: updateLogicalViewCallable()"); + } + + public UnaryCallable deleteLogicalViewCallable() { + throw new UnsupportedOperationException("Not implemented: deleteLogicalViewCallable()"); + } + + public OperationCallable< + CreateMaterializedViewRequest, MaterializedView, CreateMaterializedViewMetadata> + createMaterializedViewOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMaterializedViewOperationCallable()"); + } + + public UnaryCallable createMaterializedViewCallable() { + throw new UnsupportedOperationException("Not implemented: createMaterializedViewCallable()"); + } + + public UnaryCallable getMaterializedViewCallable() { + throw new UnsupportedOperationException("Not implemented: getMaterializedViewCallable()"); + } + + public UnaryCallable + listMaterializedViewsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMaterializedViewsPagedCallable()"); + } + + public UnaryCallable + listMaterializedViewsCallable() { + throw new UnsupportedOperationException("Not implemented: listMaterializedViewsCallable()"); + } + + public OperationCallable< + UpdateMaterializedViewRequest, MaterializedView, UpdateMaterializedViewMetadata> + updateMaterializedViewOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMaterializedViewOperationCallable()"); + } + + public UnaryCallable updateMaterializedViewCallable() { + throw new UnsupportedOperationException("Not implemented: updateMaterializedViewCallable()"); + } + + public UnaryCallable deleteMaterializedViewCallable() { + throw new UnsupportedOperationException("Not implemented: deleteMaterializedViewCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStubSettings.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStubSettings.java index 3951f178235a..6678392d3240 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStubSettings.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStubSettings.java @@ -18,6 +18,8 @@ import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListAppProfilesPagedResponse; import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListHotTabletsPagedResponse; +import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListLogicalViewsPagedResponse; +import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListMaterializedViewsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -52,12 +54,20 @@ import com.google.bigtable.admin.v2.CreateClusterRequest; import com.google.bigtable.admin.v2.CreateInstanceMetadata; import com.google.bigtable.admin.v2.CreateInstanceRequest; +import com.google.bigtable.admin.v2.CreateLogicalViewMetadata; +import com.google.bigtable.admin.v2.CreateLogicalViewRequest; +import com.google.bigtable.admin.v2.CreateMaterializedViewMetadata; +import com.google.bigtable.admin.v2.CreateMaterializedViewRequest; import com.google.bigtable.admin.v2.DeleteAppProfileRequest; import com.google.bigtable.admin.v2.DeleteClusterRequest; import com.google.bigtable.admin.v2.DeleteInstanceRequest; +import com.google.bigtable.admin.v2.DeleteLogicalViewRequest; +import com.google.bigtable.admin.v2.DeleteMaterializedViewRequest; import com.google.bigtable.admin.v2.GetAppProfileRequest; import com.google.bigtable.admin.v2.GetClusterRequest; import com.google.bigtable.admin.v2.GetInstanceRequest; +import com.google.bigtable.admin.v2.GetLogicalViewRequest; +import com.google.bigtable.admin.v2.GetMaterializedViewRequest; import com.google.bigtable.admin.v2.HotTablet; import com.google.bigtable.admin.v2.Instance; import com.google.bigtable.admin.v2.ListAppProfilesRequest; @@ -68,6 +78,12 @@ import com.google.bigtable.admin.v2.ListHotTabletsResponse; import com.google.bigtable.admin.v2.ListInstancesRequest; import com.google.bigtable.admin.v2.ListInstancesResponse; +import com.google.bigtable.admin.v2.ListLogicalViewsRequest; +import com.google.bigtable.admin.v2.ListLogicalViewsResponse; +import com.google.bigtable.admin.v2.ListMaterializedViewsRequest; +import com.google.bigtable.admin.v2.ListMaterializedViewsResponse; +import com.google.bigtable.admin.v2.LogicalView; +import com.google.bigtable.admin.v2.MaterializedView; import com.google.bigtable.admin.v2.PartialUpdateClusterMetadata; import com.google.bigtable.admin.v2.PartialUpdateClusterRequest; import com.google.bigtable.admin.v2.PartialUpdateInstanceRequest; @@ -75,6 +91,10 @@ import com.google.bigtable.admin.v2.UpdateAppProfileRequest; import com.google.bigtable.admin.v2.UpdateClusterMetadata; import com.google.bigtable.admin.v2.UpdateInstanceMetadata; +import com.google.bigtable.admin.v2.UpdateLogicalViewMetadata; +import com.google.bigtable.admin.v2.UpdateLogicalViewRequest; +import com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata; +import com.google.bigtable.admin.v2.UpdateMaterializedViewRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -226,6 +246,38 @@ public class BigtableInstanceAdminStubSettings private final PagedCallSettings< ListHotTabletsRequest, ListHotTabletsResponse, ListHotTabletsPagedResponse> listHotTabletsSettings; + private final UnaryCallSettings createLogicalViewSettings; + private final OperationCallSettings< + CreateLogicalViewRequest, LogicalView, CreateLogicalViewMetadata> + createLogicalViewOperationSettings; + private final UnaryCallSettings getLogicalViewSettings; + private final PagedCallSettings< + ListLogicalViewsRequest, ListLogicalViewsResponse, ListLogicalViewsPagedResponse> + listLogicalViewsSettings; + private final UnaryCallSettings updateLogicalViewSettings; + private final OperationCallSettings< + UpdateLogicalViewRequest, LogicalView, UpdateLogicalViewMetadata> + updateLogicalViewOperationSettings; + private final UnaryCallSettings deleteLogicalViewSettings; + private final UnaryCallSettings + createMaterializedViewSettings; + private final OperationCallSettings< + CreateMaterializedViewRequest, MaterializedView, CreateMaterializedViewMetadata> + createMaterializedViewOperationSettings; + private final UnaryCallSettings + getMaterializedViewSettings; + private final PagedCallSettings< + ListMaterializedViewsRequest, + ListMaterializedViewsResponse, + ListMaterializedViewsPagedResponse> + listMaterializedViewsSettings; + private final UnaryCallSettings + updateMaterializedViewSettings; + private final OperationCallSettings< + UpdateMaterializedViewRequest, MaterializedView, UpdateMaterializedViewMetadata> + updateMaterializedViewOperationSettings; + private final UnaryCallSettings + deleteMaterializedViewSettings; private static final PagedListDescriptor< ListAppProfilesRequest, ListAppProfilesResponse, AppProfile> @@ -299,6 +351,83 @@ public Iterable extractResources(ListHotTabletsResponse payload) { } }; + private static final PagedListDescriptor< + ListLogicalViewsRequest, ListLogicalViewsResponse, LogicalView> + LIST_LOGICAL_VIEWS_PAGE_STR_DESC = + new PagedListDescriptor< + ListLogicalViewsRequest, ListLogicalViewsResponse, LogicalView>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLogicalViewsRequest injectToken( + ListLogicalViewsRequest payload, String token) { + return ListLogicalViewsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLogicalViewsRequest injectPageSize( + ListLogicalViewsRequest payload, int pageSize) { + return ListLogicalViewsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLogicalViewsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLogicalViewsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLogicalViewsResponse payload) { + return payload.getLogicalViewsList(); + } + }; + + private static final PagedListDescriptor< + ListMaterializedViewsRequest, ListMaterializedViewsResponse, MaterializedView> + LIST_MATERIALIZED_VIEWS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMaterializedViewsRequest, ListMaterializedViewsResponse, MaterializedView>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMaterializedViewsRequest injectToken( + ListMaterializedViewsRequest payload, String token) { + return ListMaterializedViewsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListMaterializedViewsRequest injectPageSize( + ListMaterializedViewsRequest payload, int pageSize) { + return ListMaterializedViewsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListMaterializedViewsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMaterializedViewsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMaterializedViewsResponse payload) { + return payload.getMaterializedViewsList(); + } + }; + private static final PagedListResponseFactory< ListAppProfilesRequest, ListAppProfilesResponse, ListAppProfilesPagedResponse> LIST_APP_PROFILES_PAGE_STR_FACT = @@ -333,6 +462,49 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListLogicalViewsRequest, ListLogicalViewsResponse, ListLogicalViewsPagedResponse> + LIST_LOGICAL_VIEWS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLogicalViewsRequest, ListLogicalViewsResponse, ListLogicalViewsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLogicalViewsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_LOGICAL_VIEWS_PAGE_STR_DESC, request, context); + return ListLogicalViewsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMaterializedViewsRequest, + ListMaterializedViewsResponse, + ListMaterializedViewsPagedResponse> + LIST_MATERIALIZED_VIEWS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMaterializedViewsRequest, + ListMaterializedViewsResponse, + ListMaterializedViewsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListMaterializedViewsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMaterializedViewsRequest, ListMaterializedViewsResponse, MaterializedView> + pageContext = + PageContext.create( + callable, LIST_MATERIALIZED_VIEWS_PAGE_STR_DESC, request, context); + return ListMaterializedViewsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to createInstance. */ public UnaryCallSettings createInstanceSettings() { return createInstanceSettings; @@ -480,6 +652,91 @@ public UnaryCallSettings setIamPolicySettings() { return listHotTabletsSettings; } + /** Returns the object with the settings used for calls to createLogicalView. */ + public UnaryCallSettings createLogicalViewSettings() { + return createLogicalViewSettings; + } + + /** Returns the object with the settings used for calls to createLogicalView. */ + public OperationCallSettings + createLogicalViewOperationSettings() { + return createLogicalViewOperationSettings; + } + + /** Returns the object with the settings used for calls to getLogicalView. */ + public UnaryCallSettings getLogicalViewSettings() { + return getLogicalViewSettings; + } + + /** Returns the object with the settings used for calls to listLogicalViews. */ + public PagedCallSettings< + ListLogicalViewsRequest, ListLogicalViewsResponse, ListLogicalViewsPagedResponse> + listLogicalViewsSettings() { + return listLogicalViewsSettings; + } + + /** Returns the object with the settings used for calls to updateLogicalView. */ + public UnaryCallSettings updateLogicalViewSettings() { + return updateLogicalViewSettings; + } + + /** Returns the object with the settings used for calls to updateLogicalView. */ + public OperationCallSettings + updateLogicalViewOperationSettings() { + return updateLogicalViewOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteLogicalView. */ + public UnaryCallSettings deleteLogicalViewSettings() { + return deleteLogicalViewSettings; + } + + /** Returns the object with the settings used for calls to createMaterializedView. */ + public UnaryCallSettings + createMaterializedViewSettings() { + return createMaterializedViewSettings; + } + + /** Returns the object with the settings used for calls to createMaterializedView. */ + public OperationCallSettings< + CreateMaterializedViewRequest, MaterializedView, CreateMaterializedViewMetadata> + createMaterializedViewOperationSettings() { + return createMaterializedViewOperationSettings; + } + + /** Returns the object with the settings used for calls to getMaterializedView. */ + public UnaryCallSettings + getMaterializedViewSettings() { + return getMaterializedViewSettings; + } + + /** Returns the object with the settings used for calls to listMaterializedViews. */ + public PagedCallSettings< + ListMaterializedViewsRequest, + ListMaterializedViewsResponse, + ListMaterializedViewsPagedResponse> + listMaterializedViewsSettings() { + return listMaterializedViewsSettings; + } + + /** Returns the object with the settings used for calls to updateMaterializedView. */ + public UnaryCallSettings + updateMaterializedViewSettings() { + return updateMaterializedViewSettings; + } + + /** Returns the object with the settings used for calls to updateMaterializedView. */ + public OperationCallSettings< + UpdateMaterializedViewRequest, MaterializedView, UpdateMaterializedViewMetadata> + updateMaterializedViewOperationSettings() { + return updateMaterializedViewOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteMaterializedView. */ + public UnaryCallSettings deleteMaterializedViewSettings() { + return deleteMaterializedViewSettings; + } + public BigtableInstanceAdminStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -590,6 +847,24 @@ protected BigtableInstanceAdminStubSettings(Builder settingsBuilder) throws IOEx setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); listHotTabletsSettings = settingsBuilder.listHotTabletsSettings().build(); + createLogicalViewSettings = settingsBuilder.createLogicalViewSettings().build(); + createLogicalViewOperationSettings = + settingsBuilder.createLogicalViewOperationSettings().build(); + getLogicalViewSettings = settingsBuilder.getLogicalViewSettings().build(); + listLogicalViewsSettings = settingsBuilder.listLogicalViewsSettings().build(); + updateLogicalViewSettings = settingsBuilder.updateLogicalViewSettings().build(); + updateLogicalViewOperationSettings = + settingsBuilder.updateLogicalViewOperationSettings().build(); + deleteLogicalViewSettings = settingsBuilder.deleteLogicalViewSettings().build(); + createMaterializedViewSettings = settingsBuilder.createMaterializedViewSettings().build(); + createMaterializedViewOperationSettings = + settingsBuilder.createMaterializedViewOperationSettings().build(); + getMaterializedViewSettings = settingsBuilder.getMaterializedViewSettings().build(); + listMaterializedViewsSettings = settingsBuilder.listMaterializedViewsSettings().build(); + updateMaterializedViewSettings = settingsBuilder.updateMaterializedViewSettings().build(); + updateMaterializedViewOperationSettings = + settingsBuilder.updateMaterializedViewOperationSettings().build(); + deleteMaterializedViewSettings = settingsBuilder.deleteMaterializedViewSettings().build(); } /** Builder for BigtableInstanceAdminStubSettings. */ @@ -647,6 +922,42 @@ public static class Builder private final PagedCallSettings.Builder< ListHotTabletsRequest, ListHotTabletsResponse, ListHotTabletsPagedResponse> listHotTabletsSettings; + private final UnaryCallSettings.Builder + createLogicalViewSettings; + private final OperationCallSettings.Builder< + CreateLogicalViewRequest, LogicalView, CreateLogicalViewMetadata> + createLogicalViewOperationSettings; + private final UnaryCallSettings.Builder + getLogicalViewSettings; + private final PagedCallSettings.Builder< + ListLogicalViewsRequest, ListLogicalViewsResponse, ListLogicalViewsPagedResponse> + listLogicalViewsSettings; + private final UnaryCallSettings.Builder + updateLogicalViewSettings; + private final OperationCallSettings.Builder< + UpdateLogicalViewRequest, LogicalView, UpdateLogicalViewMetadata> + updateLogicalViewOperationSettings; + private final UnaryCallSettings.Builder + deleteLogicalViewSettings; + private final UnaryCallSettings.Builder + createMaterializedViewSettings; + private final OperationCallSettings.Builder< + CreateMaterializedViewRequest, MaterializedView, CreateMaterializedViewMetadata> + createMaterializedViewOperationSettings; + private final UnaryCallSettings.Builder + getMaterializedViewSettings; + private final PagedCallSettings.Builder< + ListMaterializedViewsRequest, + ListMaterializedViewsResponse, + ListMaterializedViewsPagedResponse> + listMaterializedViewsSettings; + private final UnaryCallSettings.Builder + updateMaterializedViewSettings; + private final OperationCallSettings.Builder< + UpdateMaterializedViewRequest, MaterializedView, UpdateMaterializedViewMetadata> + updateMaterializedViewOperationSettings; + private final UnaryCallSettings.Builder + deleteMaterializedViewSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -737,6 +1048,21 @@ protected Builder(ClientContext clientContext) { setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listHotTabletsSettings = PagedCallSettings.newBuilder(LIST_HOT_TABLETS_PAGE_STR_FACT); + createLogicalViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createLogicalViewOperationSettings = OperationCallSettings.newBuilder(); + getLogicalViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLogicalViewsSettings = PagedCallSettings.newBuilder(LIST_LOGICAL_VIEWS_PAGE_STR_FACT); + updateLogicalViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateLogicalViewOperationSettings = OperationCallSettings.newBuilder(); + deleteLogicalViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMaterializedViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMaterializedViewOperationSettings = OperationCallSettings.newBuilder(); + getMaterializedViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMaterializedViewsSettings = + PagedCallSettings.newBuilder(LIST_MATERIALIZED_VIEWS_PAGE_STR_FACT); + updateMaterializedViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateMaterializedViewOperationSettings = OperationCallSettings.newBuilder(); + deleteMaterializedViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -760,7 +1086,17 @@ protected Builder(ClientContext clientContext) { getIamPolicySettings, setIamPolicySettings, testIamPermissionsSettings, - listHotTabletsSettings); + listHotTabletsSettings, + createLogicalViewSettings, + getLogicalViewSettings, + listLogicalViewsSettings, + updateLogicalViewSettings, + deleteLogicalViewSettings, + createMaterializedViewSettings, + getMaterializedViewSettings, + listMaterializedViewsSettings, + updateMaterializedViewSettings, + deleteMaterializedViewSettings); initDefaults(this); } @@ -796,6 +1132,22 @@ protected Builder(BigtableInstanceAdminStubSettings settings) { setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); listHotTabletsSettings = settings.listHotTabletsSettings.toBuilder(); + createLogicalViewSettings = settings.createLogicalViewSettings.toBuilder(); + createLogicalViewOperationSettings = settings.createLogicalViewOperationSettings.toBuilder(); + getLogicalViewSettings = settings.getLogicalViewSettings.toBuilder(); + listLogicalViewsSettings = settings.listLogicalViewsSettings.toBuilder(); + updateLogicalViewSettings = settings.updateLogicalViewSettings.toBuilder(); + updateLogicalViewOperationSettings = settings.updateLogicalViewOperationSettings.toBuilder(); + deleteLogicalViewSettings = settings.deleteLogicalViewSettings.toBuilder(); + createMaterializedViewSettings = settings.createMaterializedViewSettings.toBuilder(); + createMaterializedViewOperationSettings = + settings.createMaterializedViewOperationSettings.toBuilder(); + getMaterializedViewSettings = settings.getMaterializedViewSettings.toBuilder(); + listMaterializedViewsSettings = settings.listMaterializedViewsSettings.toBuilder(); + updateMaterializedViewSettings = settings.updateMaterializedViewSettings.toBuilder(); + updateMaterializedViewOperationSettings = + settings.updateMaterializedViewOperationSettings.toBuilder(); + deleteMaterializedViewSettings = settings.deleteMaterializedViewSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -819,7 +1171,17 @@ protected Builder(BigtableInstanceAdminStubSettings settings) { getIamPolicySettings, setIamPolicySettings, testIamPermissionsSettings, - listHotTabletsSettings); + listHotTabletsSettings, + createLogicalViewSettings, + getLogicalViewSettings, + listLogicalViewsSettings, + updateLogicalViewSettings, + deleteLogicalViewSettings, + createMaterializedViewSettings, + getMaterializedViewSettings, + listMaterializedViewsSettings, + updateMaterializedViewSettings, + deleteMaterializedViewSettings); } private static Builder createDefault() { @@ -940,6 +1302,56 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + builder + .createLogicalViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLogicalViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLogicalViewsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateLogicalViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteLogicalViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createMaterializedViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getMaterializedViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listMaterializedViewsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateMaterializedViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteMaterializedViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createInstanceOperationSettings() .setInitialCallSettings( @@ -1084,6 +1496,106 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(600000L)) .build())); + builder + .createLogicalViewOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(LogicalView.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateLogicalViewMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateLogicalViewOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(LogicalView.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateLogicalViewMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createMaterializedViewOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(MaterializedView.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateMaterializedViewMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateMaterializedViewOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(MaterializedView.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateMaterializedViewMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -1257,6 +1769,96 @@ public UnaryCallSettings.Builder setIamPolicySettin return listHotTabletsSettings; } + /** Returns the builder for the settings used for calls to createLogicalView. */ + public UnaryCallSettings.Builder + createLogicalViewSettings() { + return createLogicalViewSettings; + } + + /** Returns the builder for the settings used for calls to createLogicalView. */ + public OperationCallSettings.Builder< + CreateLogicalViewRequest, LogicalView, CreateLogicalViewMetadata> + createLogicalViewOperationSettings() { + return createLogicalViewOperationSettings; + } + + /** Returns the builder for the settings used for calls to getLogicalView. */ + public UnaryCallSettings.Builder getLogicalViewSettings() { + return getLogicalViewSettings; + } + + /** Returns the builder for the settings used for calls to listLogicalViews. */ + public PagedCallSettings.Builder< + ListLogicalViewsRequest, ListLogicalViewsResponse, ListLogicalViewsPagedResponse> + listLogicalViewsSettings() { + return listLogicalViewsSettings; + } + + /** Returns the builder for the settings used for calls to updateLogicalView. */ + public UnaryCallSettings.Builder + updateLogicalViewSettings() { + return updateLogicalViewSettings; + } + + /** Returns the builder for the settings used for calls to updateLogicalView. */ + public OperationCallSettings.Builder< + UpdateLogicalViewRequest, LogicalView, UpdateLogicalViewMetadata> + updateLogicalViewOperationSettings() { + return updateLogicalViewOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteLogicalView. */ + public UnaryCallSettings.Builder deleteLogicalViewSettings() { + return deleteLogicalViewSettings; + } + + /** Returns the builder for the settings used for calls to createMaterializedView. */ + public UnaryCallSettings.Builder + createMaterializedViewSettings() { + return createMaterializedViewSettings; + } + + /** Returns the builder for the settings used for calls to createMaterializedView. */ + public OperationCallSettings.Builder< + CreateMaterializedViewRequest, MaterializedView, CreateMaterializedViewMetadata> + createMaterializedViewOperationSettings() { + return createMaterializedViewOperationSettings; + } + + /** Returns the builder for the settings used for calls to getMaterializedView. */ + public UnaryCallSettings.Builder + getMaterializedViewSettings() { + return getMaterializedViewSettings; + } + + /** Returns the builder for the settings used for calls to listMaterializedViews. */ + public PagedCallSettings.Builder< + ListMaterializedViewsRequest, + ListMaterializedViewsResponse, + ListMaterializedViewsPagedResponse> + listMaterializedViewsSettings() { + return listMaterializedViewsSettings; + } + + /** Returns the builder for the settings used for calls to updateMaterializedView. */ + public UnaryCallSettings.Builder + updateMaterializedViewSettings() { + return updateMaterializedViewSettings; + } + + /** Returns the builder for the settings used for calls to updateMaterializedView. */ + public OperationCallSettings.Builder< + UpdateMaterializedViewRequest, MaterializedView, UpdateMaterializedViewMetadata> + updateMaterializedViewOperationSettings() { + return updateMaterializedViewOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteMaterializedView. */ + public UnaryCallSettings.Builder + deleteMaterializedViewSettings() { + return deleteMaterializedViewSettings; + } + @Override public BigtableInstanceAdminStubSettings build() throws IOException { return new BigtableInstanceAdminStubSettings(this); diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/GrpcBigtableInstanceAdminStub.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/GrpcBigtableInstanceAdminStub.java index 8eb2aa4c8021..e6b2c733c306 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/GrpcBigtableInstanceAdminStub.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/GrpcBigtableInstanceAdminStub.java @@ -18,6 +18,8 @@ import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListAppProfilesPagedResponse; import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListHotTabletsPagedResponse; +import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListLogicalViewsPagedResponse; +import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListMaterializedViewsPagedResponse; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -35,12 +37,20 @@ import com.google.bigtable.admin.v2.CreateClusterRequest; import com.google.bigtable.admin.v2.CreateInstanceMetadata; import com.google.bigtable.admin.v2.CreateInstanceRequest; +import com.google.bigtable.admin.v2.CreateLogicalViewMetadata; +import com.google.bigtable.admin.v2.CreateLogicalViewRequest; +import com.google.bigtable.admin.v2.CreateMaterializedViewMetadata; +import com.google.bigtable.admin.v2.CreateMaterializedViewRequest; import com.google.bigtable.admin.v2.DeleteAppProfileRequest; import com.google.bigtable.admin.v2.DeleteClusterRequest; import com.google.bigtable.admin.v2.DeleteInstanceRequest; +import com.google.bigtable.admin.v2.DeleteLogicalViewRequest; +import com.google.bigtable.admin.v2.DeleteMaterializedViewRequest; import com.google.bigtable.admin.v2.GetAppProfileRequest; import com.google.bigtable.admin.v2.GetClusterRequest; import com.google.bigtable.admin.v2.GetInstanceRequest; +import com.google.bigtable.admin.v2.GetLogicalViewRequest; +import com.google.bigtable.admin.v2.GetMaterializedViewRequest; import com.google.bigtable.admin.v2.Instance; import com.google.bigtable.admin.v2.ListAppProfilesRequest; import com.google.bigtable.admin.v2.ListAppProfilesResponse; @@ -50,6 +60,12 @@ import com.google.bigtable.admin.v2.ListHotTabletsResponse; import com.google.bigtable.admin.v2.ListInstancesRequest; import com.google.bigtable.admin.v2.ListInstancesResponse; +import com.google.bigtable.admin.v2.ListLogicalViewsRequest; +import com.google.bigtable.admin.v2.ListLogicalViewsResponse; +import com.google.bigtable.admin.v2.ListMaterializedViewsRequest; +import com.google.bigtable.admin.v2.ListMaterializedViewsResponse; +import com.google.bigtable.admin.v2.LogicalView; +import com.google.bigtable.admin.v2.MaterializedView; import com.google.bigtable.admin.v2.PartialUpdateClusterMetadata; import com.google.bigtable.admin.v2.PartialUpdateClusterRequest; import com.google.bigtable.admin.v2.PartialUpdateInstanceRequest; @@ -57,6 +73,10 @@ import com.google.bigtable.admin.v2.UpdateAppProfileRequest; import com.google.bigtable.admin.v2.UpdateClusterMetadata; import com.google.bigtable.admin.v2.UpdateInstanceMetadata; +import com.google.bigtable.admin.v2.UpdateLogicalViewMetadata; +import com.google.bigtable.admin.v2.UpdateLogicalViewRequest; +import com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata; +import com.google.bigtable.admin.v2.UpdateMaterializedViewRequest; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -279,6 +299,113 @@ public class GrpcBigtableInstanceAdminStub extends BigtableInstanceAdminStub { ProtoUtils.marshaller(ListHotTabletsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + createLogicalViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.bigtable.admin.v2.BigtableInstanceAdmin/CreateLogicalView") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateLogicalViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getLogicalViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.bigtable.admin.v2.BigtableInstanceAdmin/GetLogicalView") + .setRequestMarshaller( + ProtoUtils.marshaller(GetLogicalViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LogicalView.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLogicalViewsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.bigtable.admin.v2.BigtableInstanceAdmin/ListLogicalViews") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLogicalViewsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLogicalViewsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateLogicalViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateLogicalView") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateLogicalViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteLogicalViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteLogicalView") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteLogicalViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createMaterializedViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.bigtable.admin.v2.BigtableInstanceAdmin/CreateMaterializedView") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateMaterializedViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getMaterializedViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.bigtable.admin.v2.BigtableInstanceAdmin/GetMaterializedView") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMaterializedViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MaterializedView.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listMaterializedViewsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.bigtable.admin.v2.BigtableInstanceAdmin/ListMaterializedViews") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMaterializedViewsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMaterializedViewsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateMaterializedViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateMaterializedView") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateMaterializedViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteMaterializedViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteMaterializedView") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteMaterializedViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private final UnaryCallable createInstanceCallable; private final OperationCallable createInstanceOperationCallable; @@ -320,6 +447,35 @@ public class GrpcBigtableInstanceAdminStub extends BigtableInstanceAdminStub { private final UnaryCallable listHotTabletsCallable; private final UnaryCallable listHotTabletsPagedCallable; + private final UnaryCallable createLogicalViewCallable; + private final OperationCallable + createLogicalViewOperationCallable; + private final UnaryCallable getLogicalViewCallable; + private final UnaryCallable + listLogicalViewsCallable; + private final UnaryCallable + listLogicalViewsPagedCallable; + private final UnaryCallable updateLogicalViewCallable; + private final OperationCallable + updateLogicalViewOperationCallable; + private final UnaryCallable deleteLogicalViewCallable; + private final UnaryCallable + createMaterializedViewCallable; + private final OperationCallable< + CreateMaterializedViewRequest, MaterializedView, CreateMaterializedViewMetadata> + createMaterializedViewOperationCallable; + private final UnaryCallable + getMaterializedViewCallable; + private final UnaryCallable + listMaterializedViewsCallable; + private final UnaryCallable + listMaterializedViewsPagedCallable; + private final UnaryCallable + updateMaterializedViewCallable; + private final OperationCallable< + UpdateMaterializedViewRequest, MaterializedView, UpdateMaterializedViewMetadata> + updateMaterializedViewOperationCallable; + private final UnaryCallable deleteMaterializedViewCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -580,6 +736,115 @@ protected GrpcBigtableInstanceAdminStub( return builder.build(); }) .build(); + GrpcCallSettings createLogicalViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createLogicalViewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLogicalViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLogicalViewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listLogicalViewsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLogicalViewsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateLogicalViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateLogicalViewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "logical_view.name", String.valueOf(request.getLogicalView().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteLogicalViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteLogicalViewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createMaterializedViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMaterializedViewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getMaterializedViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMaterializedViewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listMaterializedViewsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listMaterializedViewsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateMaterializedViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMaterializedViewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "materialized_view.name", + String.valueOf(request.getMaterializedView().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteMaterializedViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMaterializedViewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); this.createInstanceCallable = callableFactory.createUnaryCallable( @@ -692,6 +957,84 @@ protected GrpcBigtableInstanceAdminStub( this.listHotTabletsPagedCallable = callableFactory.createPagedCallable( listHotTabletsTransportSettings, settings.listHotTabletsSettings(), clientContext); + this.createLogicalViewCallable = + callableFactory.createUnaryCallable( + createLogicalViewTransportSettings, + settings.createLogicalViewSettings(), + clientContext); + this.createLogicalViewOperationCallable = + callableFactory.createOperationCallable( + createLogicalViewTransportSettings, + settings.createLogicalViewOperationSettings(), + clientContext, + operationsStub); + this.getLogicalViewCallable = + callableFactory.createUnaryCallable( + getLogicalViewTransportSettings, settings.getLogicalViewSettings(), clientContext); + this.listLogicalViewsCallable = + callableFactory.createUnaryCallable( + listLogicalViewsTransportSettings, settings.listLogicalViewsSettings(), clientContext); + this.listLogicalViewsPagedCallable = + callableFactory.createPagedCallable( + listLogicalViewsTransportSettings, settings.listLogicalViewsSettings(), clientContext); + this.updateLogicalViewCallable = + callableFactory.createUnaryCallable( + updateLogicalViewTransportSettings, + settings.updateLogicalViewSettings(), + clientContext); + this.updateLogicalViewOperationCallable = + callableFactory.createOperationCallable( + updateLogicalViewTransportSettings, + settings.updateLogicalViewOperationSettings(), + clientContext, + operationsStub); + this.deleteLogicalViewCallable = + callableFactory.createUnaryCallable( + deleteLogicalViewTransportSettings, + settings.deleteLogicalViewSettings(), + clientContext); + this.createMaterializedViewCallable = + callableFactory.createUnaryCallable( + createMaterializedViewTransportSettings, + settings.createMaterializedViewSettings(), + clientContext); + this.createMaterializedViewOperationCallable = + callableFactory.createOperationCallable( + createMaterializedViewTransportSettings, + settings.createMaterializedViewOperationSettings(), + clientContext, + operationsStub); + this.getMaterializedViewCallable = + callableFactory.createUnaryCallable( + getMaterializedViewTransportSettings, + settings.getMaterializedViewSettings(), + clientContext); + this.listMaterializedViewsCallable = + callableFactory.createUnaryCallable( + listMaterializedViewsTransportSettings, + settings.listMaterializedViewsSettings(), + clientContext); + this.listMaterializedViewsPagedCallable = + callableFactory.createPagedCallable( + listMaterializedViewsTransportSettings, + settings.listMaterializedViewsSettings(), + clientContext); + this.updateMaterializedViewCallable = + callableFactory.createUnaryCallable( + updateMaterializedViewTransportSettings, + settings.updateMaterializedViewSettings(), + clientContext); + this.updateMaterializedViewOperationCallable = + callableFactory.createOperationCallable( + updateMaterializedViewTransportSettings, + settings.updateMaterializedViewOperationSettings(), + clientContext, + operationsStub); + this.deleteMaterializedViewCallable = + callableFactory.createUnaryCallable( + deleteMaterializedViewTransportSettings, + settings.deleteMaterializedViewSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -855,6 +1198,96 @@ public UnaryCallable listHotTable return listHotTabletsPagedCallable; } + @Override + public UnaryCallable createLogicalViewCallable() { + return createLogicalViewCallable; + } + + @Override + public OperationCallable + createLogicalViewOperationCallable() { + return createLogicalViewOperationCallable; + } + + @Override + public UnaryCallable getLogicalViewCallable() { + return getLogicalViewCallable; + } + + @Override + public UnaryCallable + listLogicalViewsCallable() { + return listLogicalViewsCallable; + } + + @Override + public UnaryCallable + listLogicalViewsPagedCallable() { + return listLogicalViewsPagedCallable; + } + + @Override + public UnaryCallable updateLogicalViewCallable() { + return updateLogicalViewCallable; + } + + @Override + public OperationCallable + updateLogicalViewOperationCallable() { + return updateLogicalViewOperationCallable; + } + + @Override + public UnaryCallable deleteLogicalViewCallable() { + return deleteLogicalViewCallable; + } + + @Override + public UnaryCallable createMaterializedViewCallable() { + return createMaterializedViewCallable; + } + + @Override + public OperationCallable< + CreateMaterializedViewRequest, MaterializedView, CreateMaterializedViewMetadata> + createMaterializedViewOperationCallable() { + return createMaterializedViewOperationCallable; + } + + @Override + public UnaryCallable getMaterializedViewCallable() { + return getMaterializedViewCallable; + } + + @Override + public UnaryCallable + listMaterializedViewsCallable() { + return listMaterializedViewsCallable; + } + + @Override + public UnaryCallable + listMaterializedViewsPagedCallable() { + return listMaterializedViewsPagedCallable; + } + + @Override + public UnaryCallable updateMaterializedViewCallable() { + return updateMaterializedViewCallable; + } + + @Override + public OperationCallable< + UpdateMaterializedViewRequest, MaterializedView, UpdateMaterializedViewMetadata> + updateMaterializedViewOperationCallable() { + return updateMaterializedViewOperationCallable; + } + + @Override + public UnaryCallable deleteMaterializedViewCallable() { + return deleteMaterializedViewCallable; + } + @Override public final void close() { try { diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataClient.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataClient.java index 4deddc5799ab..8572947e77b3 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataClient.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataClient.java @@ -1361,6 +1361,46 @@ public ServerStreamingCallable readRowsCallable(RowAdapterStreams back the results of the query skipping the large-rows. This callable allows for + * customization of the logical representation of a row. It's meant for advanced use cases. + * + *

    Sample code: + * + *

    {@code
    +   * try (BigtableDataClient bigtableDataClient = BigtableDataClient.create("[PROJECT]", "[INSTANCE]")) {
    +   *   String tableId = "[TABLE]";
    +   *
    +   *   Query query = Query.create(tableId)
    +   *          .range("[START KEY]", "[END KEY]")
    +   *          .filter(FILTERS.qualifier().regex("[COLUMN PREFIX].*"));
    +   *
    +   *   // Iterator style
    +   *   try {
    +   *     for(CustomRow row : bigtableDataClient.skipLargeRowsCallable(new CustomRowAdapter()).call(query)) {
    +   *       // Do something with row
    +   *     }
    +   *   } catch (NotFoundException e) {
    +   *     System.out.println("Tried to read a non-existent table");
    +   *   } catch (RuntimeException e) {
    +   *     e.printStackTrace();
    +   *   }
    +   * }
    +   * }
    + * + * @see ServerStreamingCallable For call styles. + * @see Query For query options. + * @see com.google.cloud.bigtable.data.v2.models.Filters For the filter building DSL. + */ + @InternalApi("only to be used by Bigtable beam connector") + public ServerStreamingCallable skipLargeRowsCallable( + RowAdapter rowAdapter) { + return stub.createSkipLargeRowsCallable(rowAdapter); + } + /** * Convenience method to synchronously return a sample of row keys in the table. The returned row * keys will delimit contiguous sections of the table of approximately equal size, which can be diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/gapic_metadata.json b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/gapic_metadata.json index 1134631db20a..5bc262fb5c9d 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/gapic_metadata.json +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/gapic_metadata.json @@ -28,6 +28,9 @@ "PingAndWarm": { "methods": ["pingAndWarm", "pingAndWarm", "pingAndWarm", "pingAndWarm", "pingAndWarm", "pingAndWarmCallable"] }, + "PrepareQuery": { + "methods": ["prepareQuery", "prepareQuery", "prepareQuery", "prepareQuery", "prepareQuery", "prepareQueryCallable"] + }, "ReadChangeStream": { "methods": ["readChangeStreamCallable"] }, diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/NameUtil.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/NameUtil.java index 68c66067b166..27a7e4f87db6 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/NameUtil.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/NameUtil.java @@ -17,6 +17,7 @@ import com.google.api.core.InternalApi; import com.google.cloud.bigtable.data.v2.models.AuthorizedViewId; +import com.google.cloud.bigtable.data.v2.models.MaterializedViewId; import com.google.cloud.bigtable.data.v2.models.TableId; import com.google.cloud.bigtable.data.v2.models.TargetId; import java.util.regex.Matcher; @@ -35,6 +36,8 @@ public class NameUtil { Pattern.compile("projects/([^/]+)/instances/([^/]+)/tables/([^/]+)"); private static final Pattern AUTHORIZED_VIEW_PATTERN = Pattern.compile("projects/([^/]+)/instances/([^/]+)/tables/([^/]+)/authorizedViews/([^/]+)"); + private static final Pattern MATERIALIZED_VIEW_PATTERN = + Pattern.compile("projects/([^/]+)/instances/([^/]+)/materializedViews/([^/]+)"); public static String formatInstanceName(@Nonnull String projectId, @Nonnull String instanceId) { return "projects/" + projectId + "/instances/" + instanceId; @@ -53,6 +56,11 @@ public static String formatAuthorizedViewName( return formatTableName(projectId, instanceId, tableId) + "/authorizedViews/" + authorizedViewId; } + public static String formatMaterializedViewName( + @Nonnull String projectId, @Nonnull String instanceId, @Nonnull String materializedViewId) { + return formatInstanceName(projectId, instanceId) + "/materializedViews/" + materializedViewId; + } + public static String extractTableIdFromTableName(@Nonnull String fullTableName) { Matcher matcher = TABLE_PATTERN.matcher(fullTableName); if (!matcher.matches()) { @@ -88,31 +96,69 @@ public static String extractAuthorizedViewIdFromAuthorizedViewName( return matcher.group(4); } - /** A helper to convert fully qualified tableName and authorizedViewName to a {@link TargetId} */ + public static String extractMaterializedViewIdFromMaterializedViewName( + @Nonnull String fullMaterializedViewName) { + Matcher matcher = MATERIALIZED_VIEW_PATTERN.matcher(fullMaterializedViewName); + if (!matcher.matches()) { + throw new IllegalArgumentException( + "Invalid materialized view name: " + fullMaterializedViewName); + } + return matcher.group(3); + } + + /** A helper to convert fully qualified tableName andauthorizedViewName to a {@link TargetId} */ public static TargetId extractTargetId( @Nonnull String tableName, @Nonnull String authorizedViewName) { - if (tableName.isEmpty() && authorizedViewName.isEmpty()) { + return extractTargetId(tableName, authorizedViewName, ""); + } + + /** + * A helper to convert fully qualified tableName, authorizedViewName and materializedViewName to a + * {@link TargetId} + */ + public static TargetId extractTargetId( + @Nonnull String tableName, + @Nonnull String authorizedViewName, + @Nonnull String materializedViewName) { + if (tableName.isEmpty() && authorizedViewName.isEmpty() && materializedViewName.isEmpty()) { throw new IllegalArgumentException( - "Either table name or authorized view name must be specified. Table name: " + "Either table name, authorized view name or materialized view name must be specified. Table name: " + tableName + ", authorized view name: " - + authorizedViewName); + + authorizedViewName + + ", materialized view name: " + + materializedViewName); + } + int names = 0; + if (!tableName.isEmpty()) { + ++names; + } + if (!authorizedViewName.isEmpty()) { + ++names; + } + if (!materializedViewName.isEmpty()) { + ++names; } - if (!tableName.isEmpty() && !authorizedViewName.isEmpty()) { + if (names > 1) { throw new IllegalArgumentException( - "Table name and authorized view name cannot be specified at the same time. Table name: " + "Only one of table name, authorized view name and materialized view name can be specified at the same time. Table name: " + tableName + ", authorized view name: " - + authorizedViewName); + + authorizedViewName + + ", materialized view name: " + + materializedViewName); } if (!tableName.isEmpty()) { String tableId = extractTableIdFromTableName(tableName); return TableId.of(tableId); - } else { + } else if (!authorizedViewName.isEmpty()) { String tableId = extractTableIdFromAuthorizedViewName(authorizedViewName); String authorizedViewId = extractAuthorizedViewIdFromAuthorizedViewName(authorizedViewName); return AuthorizedViewId.of(tableId, authorizedViewId); } + String materializedViewId = + extractMaterializedViewIdFromMaterializedViewName(materializedViewName); + return MaterializedViewId.of(materializedViewId); } } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/AuthorizedViewId.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/AuthorizedViewId.java index 5f64190b5c7b..27b381911177 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/AuthorizedViewId.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/AuthorizedViewId.java @@ -52,4 +52,10 @@ public String toResourceName(String projectId, String instanceId) { public boolean scopedForAuthorizedView() { return true; } + + @Override + @InternalApi + public boolean scopedForMaterializedView() { + return false; + } } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/MaterializedViewId.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/MaterializedViewId.java new file mode 100644 index 000000000000..7e735c37b376 --- /dev/null +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/MaterializedViewId.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 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. + */ + +package com.google.cloud.bigtable.data.v2.models; + +import com.google.api.core.InternalApi; +import com.google.auto.value.AutoValue; +import com.google.cloud.bigtable.data.v2.internal.NameUtil; +import com.google.common.base.Preconditions; + +/** + * An implementation of a {@link TargetId} for materialized views. + * + *

    See {@link com.google.cloud.bigtable.admin.v2.models.MaterializedView} for more details about + * an materialized view. + */ +@AutoValue +public abstract class MaterializedViewId implements TargetId { + /** Constructs a new MaterializedViewId object from the specified materializedViewId. */ + public static MaterializedViewId of(String materializedViewId) { + Preconditions.checkNotNull(materializedViewId, "materialized view id can't be null."); + return new AutoValue_MaterializedViewId(materializedViewId); + } + + abstract String getMaterializedViewId(); + + @Override + @InternalApi + public String toResourceName(String projectId, String instanceId) { + return NameUtil.formatMaterializedViewName(projectId, instanceId, getMaterializedViewId()); + } + + @Override + @InternalApi + public boolean scopedForAuthorizedView() { + return false; + } + + @Override + @InternalApi + public boolean scopedForMaterializedView() { + return true; + } +} diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Query.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Query.java index 1b4cb8d68002..63ec9c131694 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Query.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Query.java @@ -62,6 +62,7 @@ public static Query create(String tableId) { * com.google.cloud.bigtable.data.v2.BigtableDataSettings}. * * @see AuthorizedViewId + * @see MaterializedViewId * @see TableId */ public static Query create(TargetId targetId) { @@ -317,7 +318,9 @@ public ByteStringRange getBound() { public ReadRowsRequest toProto(RequestContext requestContext) { String resourceName = targetId.toResourceName(requestContext.getProjectId(), requestContext.getInstanceId()); - if (targetId.scopedForAuthorizedView()) { + if (targetId.scopedForMaterializedView()) { + builder.setMaterializedViewName(resourceName); + } else if (targetId.scopedForAuthorizedView()) { builder.setAuthorizedViewName(resourceName); } else { builder.setTableName(resourceName); @@ -335,8 +338,10 @@ public static Query fromProto(@Nonnull ReadRowsRequest request) { Preconditions.checkArgument(request != null, "ReadRowsRequest must not be null"); String tableName = request.getTableName(); String authorizedViewName = request.getAuthorizedViewName(); + String materializedViewName = request.getMaterializedViewName(); - Query query = new Query(NameUtil.extractTargetId(tableName, authorizedViewName)); + Query query = + new Query(NameUtil.extractTargetId(tableName, authorizedViewName, materializedViewName)); query.builder = request.toBuilder(); return query; diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/SampleRowKeysRequest.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/SampleRowKeysRequest.java index 08d9a3ca230b..d2a9dcb6a787 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/SampleRowKeysRequest.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/SampleRowKeysRequest.java @@ -44,7 +44,9 @@ public com.google.bigtable.v2.SampleRowKeysRequest toProto(RequestContext reques com.google.bigtable.v2.SampleRowKeysRequest.newBuilder(); String resourceName = targetId.toResourceName(requestContext.getProjectId(), requestContext.getInstanceId()); - if (targetId.scopedForAuthorizedView()) { + if (targetId.scopedForMaterializedView()) { + builder.setMaterializedViewName(resourceName); + } else if (targetId.scopedForAuthorizedView()) { builder.setAuthorizedViewName(resourceName); } else { builder.setTableName(resourceName); @@ -55,17 +57,19 @@ public com.google.bigtable.v2.SampleRowKeysRequest toProto(RequestContext reques /** * Wraps the protobuf {@link com.google.bigtable.v2.SampleRowKeysRequest}. * - *

    WARNING: Please note that the project id & instance id in the table/authorized view name - * will be overwritten by the configuration in the BigtableDataClient. + *

    WARNING: Please note that the project id & instance id in the table/authorized + * view/materialized view name will be overwritten by the configuration in the BigtableDataClient. */ @InternalApi public static SampleRowKeysRequest fromProto( @Nonnull com.google.bigtable.v2.SampleRowKeysRequest request) { String tableName = request.getTableName(); String authorizedViewName = request.getAuthorizedViewName(); + String materializedViewName = request.getMaterializedViewName(); SampleRowKeysRequest sampleRowKeysRequest = - SampleRowKeysRequest.create(NameUtil.extractTargetId(tableName, authorizedViewName)); + SampleRowKeysRequest.create( + NameUtil.extractTargetId(tableName, authorizedViewName, materializedViewName)); return sampleRowKeysRequest; } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/TableId.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/TableId.java index 15b2cd9d95e9..1b19e75d6903 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/TableId.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/TableId.java @@ -44,4 +44,10 @@ public String toResourceName(String projectId, String instanceId) { public boolean scopedForAuthorizedView() { return false; } + + @Override + @InternalApi + public boolean scopedForMaterializedView() { + return false; + } } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/TargetId.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/TargetId.java index ae5be2359854..73860dc1d8b4 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/TargetId.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/TargetId.java @@ -40,8 +40,15 @@ public interface TargetId extends Serializable { /** * Returns true if this TargetId object represents id for an authorized view (rather than a - * table). + * table/materialized view). */ @InternalApi boolean scopedForAuthorizedView(); + + /** + * Returns true if this TargetId object represents id for an materialized view (rather than a + * table/authorized view). + */ + @InternalApi + boolean scopedForMaterializedView(); } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java index e9df27b43ae3..bd97b79d3711 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java @@ -32,6 +32,8 @@ import com.google.bigtable.v2.MutateRowsResponse; import com.google.bigtable.v2.PingAndWarmRequest; import com.google.bigtable.v2.PingAndWarmResponse; +import com.google.bigtable.v2.PrepareQueryRequest; +import com.google.bigtable.v2.PrepareQueryResponse; import com.google.bigtable.v2.ReadChangeStreamRequest; import com.google.bigtable.v2.ReadChangeStreamResponse; import com.google.bigtable.v2.ReadModifyWriteRowRequest; @@ -92,6 +94,10 @@ public UnaryCallable pingAndWarmCallabl throw new UnsupportedOperationException("Not implemented: readChangeStreamCallable()"); } + public UnaryCallable prepareQueryCallable() { + throw new UnsupportedOperationException("Not implemented: prepareQueryCallable()"); + } + public ServerStreamingCallable executeQueryCallable() { throw new UnsupportedOperationException("Not implemented: executeQueryCallable()"); } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java index 9dd4efd8a499..8ac3f4118524 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java @@ -45,6 +45,8 @@ import com.google.bigtable.v2.MutateRowsResponse; import com.google.bigtable.v2.PingAndWarmRequest; import com.google.bigtable.v2.PingAndWarmResponse; +import com.google.bigtable.v2.PrepareQueryRequest; +import com.google.bigtable.v2.PrepareQueryResponse; import com.google.bigtable.v2.ReadChangeStreamRequest; import com.google.bigtable.v2.ReadChangeStreamResponse; import com.google.bigtable.v2.ReadModifyWriteRowRequest; @@ -95,6 +97,7 @@ public class BigtableStubSettings extends StubSettings { generateInitialChangeStreamPartitionsSettings; private final ServerStreamingCallSettings readChangeStreamSettings; + private final UnaryCallSettings prepareQuerySettings; private final ServerStreamingCallSettings executeQuerySettings; @@ -152,6 +155,11 @@ public UnaryCallSettings pingAndWarmSet return readChangeStreamSettings; } + /** Returns the object with the settings used for calls to prepareQuery. */ + public UnaryCallSettings prepareQuerySettings() { + return prepareQuerySettings; + } + /** Returns the object with the settings used for calls to executeQuery. */ public ServerStreamingCallSettings executeQuerySettings() { @@ -248,6 +256,7 @@ protected BigtableStubSettings(Builder settingsBuilder) throws IOException { generateInitialChangeStreamPartitionsSettings = settingsBuilder.generateInitialChangeStreamPartitionsSettings().build(); readChangeStreamSettings = settingsBuilder.readChangeStreamSettings().build(); + prepareQuerySettings = settingsBuilder.prepareQuerySettings().build(); executeQuerySettings = settingsBuilder.executeQuerySettings().build(); } @@ -274,6 +283,8 @@ public static class Builder extends StubSettings.Builder readChangeStreamSettings; + private final UnaryCallSettings.Builder + prepareQuerySettings; private final ServerStreamingCallSettings.Builder executeQuerySettings; private static final ImmutableMap> @@ -287,7 +298,7 @@ public static class Builder extends StubSettings.BuildernewArrayList())); definitions.put( - "retry_policy_4_codes", + "retry_policy_5_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -296,10 +307,15 @@ public static class Builder extends StubSettings.BuildernewArrayList())); definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "no_retry_5_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "no_retry_6_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_7_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_4_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -334,7 +350,7 @@ public static class Builder extends StubSettings.Builder mutateRowS return readChangeStreamSettings; } + /** Returns the builder for the settings used for calls to prepareQuery. */ + public UnaryCallSettings.Builder + prepareQuerySettings() { + return prepareQuerySettings; + } + /** Returns the builder for the settings used for calls to executeQuery. */ public ServerStreamingCallSettings.Builder executeQuerySettings() { diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java index d705989d0b5c..2290d412e3fb 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java @@ -538,7 +538,7 @@ private ServerStreamingCallable createReadRo *

  • Add tracing & metrics. * */ - private ServerStreamingCallable createSkipLargeRowsCallable( + public ServerStreamingCallable createSkipLargeRowsCallable( RowAdapter rowAdapter) { ServerStreamingCallSettings readRowsSettings = diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java index cf215b4582a3..fc37c0c49c43 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java @@ -38,6 +38,8 @@ import com.google.bigtable.v2.MutateRowsResponse; import com.google.bigtable.v2.PingAndWarmRequest; import com.google.bigtable.v2.PingAndWarmResponse; +import com.google.bigtable.v2.PrepareQueryRequest; +import com.google.bigtable.v2.PrepareQueryResponse; import com.google.bigtable.v2.ReadChangeStreamRequest; import com.google.bigtable.v2.ReadChangeStreamResponse; import com.google.bigtable.v2.ReadModifyWriteRowRequest; @@ -158,6 +160,16 @@ public class GrpcBigtableStub extends BigtableStub { ProtoUtils.marshaller(ReadChangeStreamResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + prepareQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.bigtable.v2.Bigtable/PrepareQuery") + .setRequestMarshaller(ProtoUtils.marshaller(PrepareQueryRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(PrepareQueryResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor executeQueryMethodDescriptor = MethodDescriptor.newBuilder() @@ -184,6 +196,7 @@ public class GrpcBigtableStub extends BigtableStub { generateInitialChangeStreamPartitionsCallable; private final ServerStreamingCallable readChangeStreamCallable; + private final UnaryCallable prepareQueryCallable; private final ServerStreamingCallable executeQueryCallable; @@ -237,6 +250,10 @@ public class GrpcBigtableStub extends BigtableStub { private static final PathTemplate READ_MODIFY_WRITE_ROW_2_PATH_TEMPLATE = PathTemplate.create( "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}"); + private static final PathTemplate PREPARE_QUERY_0_PATH_TEMPLATE = + PathTemplate.create("{name=projects/*/instances/*}"); + private static final PathTemplate PREPARE_QUERY_1_PATH_TEMPLATE = + PathTemplate.create("{app_profile_id=**}"); private static final PathTemplate EXECUTE_QUERY_0_PATH_TEMPLATE = PathTemplate.create("{name=projects/*/instances/*}"); private static final PathTemplate EXECUTE_QUERY_1_PATH_TEMPLATE = @@ -425,6 +442,18 @@ protected GrpcBigtableStub( return builder.build(); }) .build(); + GrpcCallSettings prepareQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(prepareQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add(request.getInstanceName(), "name", PREPARE_QUERY_0_PATH_TEMPLATE); + builder.add( + request.getAppProfileId(), "app_profile_id", PREPARE_QUERY_1_PATH_TEMPLATE); + return builder.build(); + }) + .build(); GrpcCallSettings executeQueryTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(executeQueryMethodDescriptor) @@ -471,6 +500,9 @@ protected GrpcBigtableStub( this.readChangeStreamCallable = callableFactory.createServerStreamingCallable( readChangeStreamTransportSettings, settings.readChangeStreamSettings(), clientContext); + this.prepareQueryCallable = + callableFactory.createUnaryCallable( + prepareQueryTransportSettings, settings.prepareQuerySettings(), clientContext); this.executeQueryCallable = callableFactory.createServerStreamingCallable( executeQueryTransportSettings, settings.executeQuerySettings(), clientContext); @@ -535,6 +567,11 @@ public UnaryCallable pingAndWarmCallabl return readChangeStreamCallable; } + @Override + public UnaryCallable prepareQueryCallable() { + return prepareQueryCallable; + } + @Override public ServerStreamingCallable executeQueryCallable() { return executeQueryCallable; diff --git a/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json b/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json index e725f7653ba3..e94385446d80 100644 --- a/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json +++ b/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json @@ -1079,6 +1079,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.admin.v2.CreateLogicalViewMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.CreateLogicalViewMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.CreateLogicalViewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.CreateLogicalViewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.CreateMaterializedViewMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.CreateMaterializedViewMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.CreateMaterializedViewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.CreateMaterializedViewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata", "queryAllDeclaredConstructors": true, @@ -1259,6 +1331,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.admin.v2.DeleteLogicalViewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.DeleteLogicalViewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.DeleteMaterializedViewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.DeleteMaterializedViewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.admin.v2.DeleteSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -1520,6 +1628,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.admin.v2.GetLogicalViewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.GetLogicalViewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.GetMaterializedViewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.GetMaterializedViewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.admin.v2.GetSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -1826,6 +1970,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.admin.v2.ListLogicalViewsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.ListLogicalViewsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.ListLogicalViewsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.ListLogicalViewsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.ListMaterializedViewsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.ListMaterializedViewsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.ListMaterializedViewsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.ListMaterializedViewsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.admin.v2.ListSnapshotsRequest", "queryAllDeclaredConstructors": true, @@ -1898,6 +2114,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.admin.v2.LogicalView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.LogicalView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.MaterializedView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.MaterializedView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest", "queryAllDeclaredConstructors": true, @@ -2564,6 +2816,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.admin.v2.Type$Int64$Encoding$OrderedCodeBytes", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.Type$Int64$Encoding$OrderedCodeBytes$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.admin.v2.Type$Map", "queryAllDeclaredConstructors": true, @@ -2672,6 +2942,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.admin.v2.Type$Struct$Encoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.Type$Struct$Encoding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.Type$Struct$Encoding$DelimitedBytes", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.Type$Struct$Encoding$DelimitedBytes$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.Type$Struct$Encoding$OrderedCodeBytes", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.Type$Struct$Encoding$OrderedCodeBytes$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.Type$Struct$Encoding$Singleton", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.Type$Struct$Encoding$Singleton$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.admin.v2.Type$Struct$Field", "queryAllDeclaredConstructors": true, @@ -2708,6 +3050,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.admin.v2.Type$Timestamp$Encoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.Type$Timestamp$Encoding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.admin.v2.UndeleteTableMetadata", "queryAllDeclaredConstructors": true, @@ -2870,6 +3230,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.admin.v2.UpdateLogicalViewMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.UpdateLogicalViewMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.UpdateLogicalViewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.UpdateLogicalViewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.UpdateMaterializedViewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.UpdateMaterializedViewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.admin.v2.UpdateTableMetadata", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.data.v2/reflect-config.json b/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.data.v2/reflect-config.json index 4b89db83f8e7..808e3272aaeb 100644 --- a/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.data.v2/reflect-config.json +++ b/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.data.v2/reflect-config.json @@ -989,6 +989,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.v2.PrepareQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.v2.PrepareQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.v2.PrepareQueryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.v2.PrepareQueryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.v2.ProtoFormat", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClientTest.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClientTest.java index 8bf17f8eb418..2f54d670b99d 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClientTest.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClientTest.java @@ -18,6 +18,8 @@ import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListAppProfilesPagedResponse; import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListHotTabletsPagedResponse; +import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListLogicalViewsPagedResponse; +import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListMaterializedViewsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -35,12 +37,18 @@ import com.google.bigtable.admin.v2.CreateAppProfileRequest; import com.google.bigtable.admin.v2.CreateClusterRequest; import com.google.bigtable.admin.v2.CreateInstanceRequest; +import com.google.bigtable.admin.v2.CreateLogicalViewRequest; +import com.google.bigtable.admin.v2.CreateMaterializedViewRequest; import com.google.bigtable.admin.v2.DeleteAppProfileRequest; import com.google.bigtable.admin.v2.DeleteClusterRequest; import com.google.bigtable.admin.v2.DeleteInstanceRequest; +import com.google.bigtable.admin.v2.DeleteLogicalViewRequest; +import com.google.bigtable.admin.v2.DeleteMaterializedViewRequest; import com.google.bigtable.admin.v2.GetAppProfileRequest; import com.google.bigtable.admin.v2.GetClusterRequest; import com.google.bigtable.admin.v2.GetInstanceRequest; +import com.google.bigtable.admin.v2.GetLogicalViewRequest; +import com.google.bigtable.admin.v2.GetMaterializedViewRequest; import com.google.bigtable.admin.v2.HotTablet; import com.google.bigtable.admin.v2.Instance; import com.google.bigtable.admin.v2.InstanceName; @@ -52,12 +60,22 @@ import com.google.bigtable.admin.v2.ListHotTabletsResponse; import com.google.bigtable.admin.v2.ListInstancesRequest; import com.google.bigtable.admin.v2.ListInstancesResponse; +import com.google.bigtable.admin.v2.ListLogicalViewsRequest; +import com.google.bigtable.admin.v2.ListLogicalViewsResponse; +import com.google.bigtable.admin.v2.ListMaterializedViewsRequest; +import com.google.bigtable.admin.v2.ListMaterializedViewsResponse; import com.google.bigtable.admin.v2.LocationName; +import com.google.bigtable.admin.v2.LogicalView; +import com.google.bigtable.admin.v2.LogicalViewName; +import com.google.bigtable.admin.v2.MaterializedView; +import com.google.bigtable.admin.v2.MaterializedViewName; import com.google.bigtable.admin.v2.PartialUpdateClusterRequest; import com.google.bigtable.admin.v2.PartialUpdateInstanceRequest; import com.google.bigtable.admin.v2.ProjectName; import com.google.bigtable.admin.v2.StorageType; import com.google.bigtable.admin.v2.UpdateAppProfileRequest; +import com.google.bigtable.admin.v2.UpdateLogicalViewRequest; +import com.google.bigtable.admin.v2.UpdateMaterializedViewRequest; import com.google.common.collect.Lists; import com.google.iam.v1.AuditConfig; import com.google.iam.v1.Binding; @@ -138,6 +156,7 @@ public void createInstanceTest() throws Exception { .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -198,6 +217,7 @@ public void createInstanceTest2() throws Exception { .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -258,6 +278,7 @@ public void getInstanceTest() throws Exception { .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockBigtableInstanceAdmin.addResponse(expectedResponse); @@ -300,6 +321,7 @@ public void getInstanceTest2() throws Exception { .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockBigtableInstanceAdmin.addResponse(expectedResponse); @@ -422,6 +444,7 @@ public void updateInstanceTest() throws Exception { .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockBigtableInstanceAdmin.addResponse(expectedResponse); @@ -432,6 +455,7 @@ public void updateInstanceTest() throws Exception { .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Instance actualResponse = client.updateInstance(request); @@ -448,6 +472,7 @@ public void updateInstanceTest() throws Exception { Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); Assert.assertEquals(request.getCreateTime(), actualRequest.getCreateTime()); Assert.assertEquals(request.getSatisfiesPzs(), actualRequest.getSatisfiesPzs()); + Assert.assertEquals(request.getSatisfiesPzi(), actualRequest.getSatisfiesPzi()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -467,6 +492,7 @@ public void updateInstanceExceptionTest() throws Exception { .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); client.updateInstance(request); Assert.fail("No exception raised"); @@ -484,6 +510,7 @@ public void partialUpdateInstanceTest() throws Exception { .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1445,6 +1472,80 @@ public void deleteAppProfileExceptionTest2() throws Exception { } } + @Test + public void deleteAppProfileTest3() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + AppProfileName name = AppProfileName.of("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"); + boolean ignoreWarnings = true; + + client.deleteAppProfile(name, ignoreWarnings); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAppProfileRequest actualRequest = ((DeleteAppProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(ignoreWarnings, actualRequest.getIgnoreWarnings()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAppProfileExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + AppProfileName name = AppProfileName.of("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"); + boolean ignoreWarnings = true; + client.deleteAppProfile(name, ignoreWarnings); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAppProfileTest4() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + String name = "name3373707"; + boolean ignoreWarnings = true; + + client.deleteAppProfile(name, ignoreWarnings); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAppProfileRequest actualRequest = ((DeleteAppProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(ignoreWarnings, actualRequest.getIgnoreWarnings()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAppProfileExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + String name = "name3373707"; + boolean ignoreWarnings = true; + client.deleteAppProfile(name, ignoreWarnings); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getIamPolicyTest() throws Exception { Policy expectedResponse = @@ -1780,4 +1881,825 @@ public void listHotTabletsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void createLogicalViewTest() throws Exception { + LogicalView expectedResponse = + LogicalView.newBuilder() + .setName(LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]").toString()) + .setQuery("query107944136") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLogicalViewTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBigtableInstanceAdmin.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + LogicalView logicalView = LogicalView.newBuilder().build(); + String logicalViewId = "logicalViewId-1408054263"; + + LogicalView actualResponse = + client.createLogicalViewAsync(parent, logicalView, logicalViewId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLogicalViewRequest actualRequest = ((CreateLogicalViewRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(logicalView, actualRequest.getLogicalView()); + Assert.assertEquals(logicalViewId, actualRequest.getLogicalViewId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLogicalViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + LogicalView logicalView = LogicalView.newBuilder().build(); + String logicalViewId = "logicalViewId-1408054263"; + client.createLogicalViewAsync(parent, logicalView, logicalViewId).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 createLogicalViewTest2() throws Exception { + LogicalView expectedResponse = + LogicalView.newBuilder() + .setName(LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]").toString()) + .setQuery("query107944136") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLogicalViewTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBigtableInstanceAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + LogicalView logicalView = LogicalView.newBuilder().build(); + String logicalViewId = "logicalViewId-1408054263"; + + LogicalView actualResponse = + client.createLogicalViewAsync(parent, logicalView, logicalViewId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLogicalViewRequest actualRequest = ((CreateLogicalViewRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(logicalView, actualRequest.getLogicalView()); + Assert.assertEquals(logicalViewId, actualRequest.getLogicalViewId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLogicalViewExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + LogicalView logicalView = LogicalView.newBuilder().build(); + String logicalViewId = "logicalViewId-1408054263"; + client.createLogicalViewAsync(parent, logicalView, logicalViewId).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 getLogicalViewTest() throws Exception { + LogicalView expectedResponse = + LogicalView.newBuilder() + .setName(LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]").toString()) + .setQuery("query107944136") + .setEtag("etag3123477") + .build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + LogicalViewName name = LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]"); + + LogicalView actualResponse = client.getLogicalView(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLogicalViewRequest actualRequest = ((GetLogicalViewRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLogicalViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + LogicalViewName name = LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]"); + client.getLogicalView(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLogicalViewTest2() throws Exception { + LogicalView expectedResponse = + LogicalView.newBuilder() + .setName(LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]").toString()) + .setQuery("query107944136") + .setEtag("etag3123477") + .build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + String name = "name3373707"; + + LogicalView actualResponse = client.getLogicalView(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLogicalViewRequest actualRequest = ((GetLogicalViewRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLogicalViewExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + String name = "name3373707"; + client.getLogicalView(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLogicalViewsTest() throws Exception { + LogicalView responsesElement = LogicalView.newBuilder().build(); + ListLogicalViewsResponse expectedResponse = + ListLogicalViewsResponse.newBuilder() + .setNextPageToken("") + .addAllLogicalViews(Arrays.asList(responsesElement)) + .build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + ListLogicalViewsPagedResponse pagedListResponse = client.listLogicalViews(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLogicalViewsList().get(0), resources.get(0)); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLogicalViewsRequest actualRequest = ((ListLogicalViewsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLogicalViewsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.listLogicalViews(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLogicalViewsTest2() throws Exception { + LogicalView responsesElement = LogicalView.newBuilder().build(); + ListLogicalViewsResponse expectedResponse = + ListLogicalViewsResponse.newBuilder() + .setNextPageToken("") + .addAllLogicalViews(Arrays.asList(responsesElement)) + .build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListLogicalViewsPagedResponse pagedListResponse = client.listLogicalViews(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLogicalViewsList().get(0), resources.get(0)); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLogicalViewsRequest actualRequest = ((ListLogicalViewsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLogicalViewsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + client.listLogicalViews(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateLogicalViewTest() throws Exception { + LogicalView expectedResponse = + LogicalView.newBuilder() + .setName(LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]").toString()) + .setQuery("query107944136") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateLogicalViewTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBigtableInstanceAdmin.addResponse(resultOperation); + + LogicalView logicalView = LogicalView.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LogicalView actualResponse = client.updateLogicalViewAsync(logicalView, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateLogicalViewRequest actualRequest = ((UpdateLogicalViewRequest) actualRequests.get(0)); + + Assert.assertEquals(logicalView, actualRequest.getLogicalView()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateLogicalViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + LogicalView logicalView = LogicalView.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateLogicalViewAsync(logicalView, updateMask).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 deleteLogicalViewTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + LogicalViewName name = LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]"); + + client.deleteLogicalView(name); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLogicalViewRequest actualRequest = ((DeleteLogicalViewRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLogicalViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + LogicalViewName name = LogicalViewName.of("[PROJECT]", "[INSTANCE]", "[LOGICAL_VIEW]"); + client.deleteLogicalView(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteLogicalViewTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteLogicalView(name); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLogicalViewRequest actualRequest = ((DeleteLogicalViewRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLogicalViewExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + String name = "name3373707"; + client.deleteLogicalView(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMaterializedViewTest() throws Exception { + MaterializedView expectedResponse = + MaterializedView.newBuilder() + .setName( + MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]") + .toString()) + .setQuery("query107944136") + .setEtag("etag3123477") + .setDeletionProtection(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMaterializedViewTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBigtableInstanceAdmin.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + MaterializedView materializedView = MaterializedView.newBuilder().build(); + String materializedViewId = "materializedViewId682270903"; + + MaterializedView actualResponse = + client.createMaterializedViewAsync(parent, materializedView, materializedViewId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMaterializedViewRequest actualRequest = + ((CreateMaterializedViewRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(materializedView, actualRequest.getMaterializedView()); + Assert.assertEquals(materializedViewId, actualRequest.getMaterializedViewId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMaterializedViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + MaterializedView materializedView = MaterializedView.newBuilder().build(); + String materializedViewId = "materializedViewId682270903"; + client.createMaterializedViewAsync(parent, materializedView, materializedViewId).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 createMaterializedViewTest2() throws Exception { + MaterializedView expectedResponse = + MaterializedView.newBuilder() + .setName( + MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]") + .toString()) + .setQuery("query107944136") + .setEtag("etag3123477") + .setDeletionProtection(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMaterializedViewTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBigtableInstanceAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + MaterializedView materializedView = MaterializedView.newBuilder().build(); + String materializedViewId = "materializedViewId682270903"; + + MaterializedView actualResponse = + client.createMaterializedViewAsync(parent, materializedView, materializedViewId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMaterializedViewRequest actualRequest = + ((CreateMaterializedViewRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(materializedView, actualRequest.getMaterializedView()); + Assert.assertEquals(materializedViewId, actualRequest.getMaterializedViewId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMaterializedViewExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + MaterializedView materializedView = MaterializedView.newBuilder().build(); + String materializedViewId = "materializedViewId682270903"; + client.createMaterializedViewAsync(parent, materializedView, materializedViewId).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 getMaterializedViewTest() throws Exception { + MaterializedView expectedResponse = + MaterializedView.newBuilder() + .setName( + MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]") + .toString()) + .setQuery("query107944136") + .setEtag("etag3123477") + .setDeletionProtection(true) + .build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + MaterializedViewName name = + MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]"); + + MaterializedView actualResponse = client.getMaterializedView(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMaterializedViewRequest actualRequest = ((GetMaterializedViewRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMaterializedViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + MaterializedViewName name = + MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]"); + client.getMaterializedView(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMaterializedViewTest2() throws Exception { + MaterializedView expectedResponse = + MaterializedView.newBuilder() + .setName( + MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]") + .toString()) + .setQuery("query107944136") + .setEtag("etag3123477") + .setDeletionProtection(true) + .build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + String name = "name3373707"; + + MaterializedView actualResponse = client.getMaterializedView(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMaterializedViewRequest actualRequest = ((GetMaterializedViewRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMaterializedViewExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + String name = "name3373707"; + client.getMaterializedView(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMaterializedViewsTest() throws Exception { + MaterializedView responsesElement = MaterializedView.newBuilder().build(); + ListMaterializedViewsResponse expectedResponse = + ListMaterializedViewsResponse.newBuilder() + .setNextPageToken("") + .addAllMaterializedViews(Arrays.asList(responsesElement)) + .build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + ListMaterializedViewsPagedResponse pagedListResponse = client.listMaterializedViews(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMaterializedViewsList().get(0), resources.get(0)); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMaterializedViewsRequest actualRequest = + ((ListMaterializedViewsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMaterializedViewsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.listMaterializedViews(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMaterializedViewsTest2() throws Exception { + MaterializedView responsesElement = MaterializedView.newBuilder().build(); + ListMaterializedViewsResponse expectedResponse = + ListMaterializedViewsResponse.newBuilder() + .setNextPageToken("") + .addAllMaterializedViews(Arrays.asList(responsesElement)) + .build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMaterializedViewsPagedResponse pagedListResponse = client.listMaterializedViews(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMaterializedViewsList().get(0), resources.get(0)); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMaterializedViewsRequest actualRequest = + ((ListMaterializedViewsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMaterializedViewsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMaterializedViews(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateMaterializedViewTest() throws Exception { + MaterializedView expectedResponse = + MaterializedView.newBuilder() + .setName( + MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]") + .toString()) + .setQuery("query107944136") + .setEtag("etag3123477") + .setDeletionProtection(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMaterializedViewTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBigtableInstanceAdmin.addResponse(resultOperation); + + MaterializedView materializedView = MaterializedView.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MaterializedView actualResponse = + client.updateMaterializedViewAsync(materializedView, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMaterializedViewRequest actualRequest = + ((UpdateMaterializedViewRequest) actualRequests.get(0)); + + Assert.assertEquals(materializedView, actualRequest.getMaterializedView()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMaterializedViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + MaterializedView materializedView = MaterializedView.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMaterializedViewAsync(materializedView, updateMask).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 deleteMaterializedViewTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + MaterializedViewName name = + MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]"); + + client.deleteMaterializedView(name); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMaterializedViewRequest actualRequest = + ((DeleteMaterializedViewRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMaterializedViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + MaterializedViewName name = + MaterializedViewName.of("[PROJECT]", "[INSTANCE]", "[MATERIALIZED_VIEW]"); + client.deleteMaterializedView(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMaterializedViewTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockBigtableInstanceAdmin.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteMaterializedView(name); + + List actualRequests = mockBigtableInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMaterializedViewRequest actualRequest = + ((DeleteMaterializedViewRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMaterializedViewExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableInstanceAdmin.addException(exception); + + try { + String name = "name3373707"; + client.deleteMaterializedView(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClientTest.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClientTest.java index 1a6557b56b8d..199828bc8df8 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClientTest.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClientTest.java @@ -73,6 +73,7 @@ import com.google.bigtable.admin.v2.SnapshotTableRequest; import com.google.bigtable.admin.v2.Table; import com.google.bigtable.admin.v2.TableName; +import com.google.bigtable.admin.v2.Type; import com.google.bigtable.admin.v2.UndeleteTableRequest; import com.google.bigtable.admin.v2.UpdateAuthorizedViewRequest; import com.google.bigtable.admin.v2.UpdateBackupRequest; @@ -156,6 +157,7 @@ public void createTableTest() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); mockBigtableTableAdmin.addResponse(expectedResponse); @@ -205,6 +207,7 @@ public void createTableTest2() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); mockBigtableTableAdmin.addResponse(expectedResponse); @@ -254,6 +257,7 @@ public void createTableFromSnapshotTest() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -315,6 +319,7 @@ public void createTableFromSnapshotTest2() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -374,6 +379,7 @@ public void createTableFromSnapshotTest3() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -435,6 +441,7 @@ public void createTableFromSnapshotTest4() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -582,6 +589,7 @@ public void getTableTest() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); mockBigtableTableAdmin.addResponse(expectedResponse); @@ -625,6 +633,7 @@ public void getTableTest2() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); mockBigtableTableAdmin.addResponse(expectedResponse); @@ -668,6 +677,7 @@ public void updateTableTest() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -790,6 +800,7 @@ public void undeleteTableTest() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -841,6 +852,7 @@ public void undeleteTableTest2() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1309,6 +1321,7 @@ public void modifyColumnFamiliesTest() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); mockBigtableTableAdmin.addResponse(expectedResponse); @@ -1356,6 +1369,7 @@ public void modifyColumnFamiliesTest2() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); mockBigtableTableAdmin.addResponse(expectedResponse); @@ -2511,6 +2525,7 @@ public void restoreTableTest() throws Exception { .setRestoreInfo(RestoreInfo.newBuilder().build()) .setChangeStreamConfig(ChangeStreamConfig.newBuilder().build()) .setDeletionProtection(true) + .setRowKeySchema(Type.Struct.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/MockBigtableInstanceAdminImpl.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/MockBigtableInstanceAdminImpl.java index 14054363f0d6..fa62c5e5c843 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/MockBigtableInstanceAdminImpl.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/MockBigtableInstanceAdminImpl.java @@ -23,12 +23,18 @@ import com.google.bigtable.admin.v2.CreateAppProfileRequest; import com.google.bigtable.admin.v2.CreateClusterRequest; import com.google.bigtable.admin.v2.CreateInstanceRequest; +import com.google.bigtable.admin.v2.CreateLogicalViewRequest; +import com.google.bigtable.admin.v2.CreateMaterializedViewRequest; import com.google.bigtable.admin.v2.DeleteAppProfileRequest; import com.google.bigtable.admin.v2.DeleteClusterRequest; import com.google.bigtable.admin.v2.DeleteInstanceRequest; +import com.google.bigtable.admin.v2.DeleteLogicalViewRequest; +import com.google.bigtable.admin.v2.DeleteMaterializedViewRequest; import com.google.bigtable.admin.v2.GetAppProfileRequest; import com.google.bigtable.admin.v2.GetClusterRequest; import com.google.bigtable.admin.v2.GetInstanceRequest; +import com.google.bigtable.admin.v2.GetLogicalViewRequest; +import com.google.bigtable.admin.v2.GetMaterializedViewRequest; import com.google.bigtable.admin.v2.Instance; import com.google.bigtable.admin.v2.ListAppProfilesRequest; import com.google.bigtable.admin.v2.ListAppProfilesResponse; @@ -38,9 +44,17 @@ import com.google.bigtable.admin.v2.ListHotTabletsResponse; import com.google.bigtable.admin.v2.ListInstancesRequest; import com.google.bigtable.admin.v2.ListInstancesResponse; +import com.google.bigtable.admin.v2.ListLogicalViewsRequest; +import com.google.bigtable.admin.v2.ListLogicalViewsResponse; +import com.google.bigtable.admin.v2.ListMaterializedViewsRequest; +import com.google.bigtable.admin.v2.ListMaterializedViewsResponse; +import com.google.bigtable.admin.v2.LogicalView; +import com.google.bigtable.admin.v2.MaterializedView; import com.google.bigtable.admin.v2.PartialUpdateClusterRequest; import com.google.bigtable.admin.v2.PartialUpdateInstanceRequest; import com.google.bigtable.admin.v2.UpdateAppProfileRequest; +import com.google.bigtable.admin.v2.UpdateLogicalViewRequest; +import com.google.bigtable.admin.v2.UpdateMaterializedViewRequest; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -522,4 +536,215 @@ public void listHotTablets( Exception.class.getName()))); } } + + @Override + public void createLogicalView( + CreateLogicalViewRequest 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 CreateLogicalView, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLogicalView( + GetLogicalViewRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LogicalView) { + requests.add(request); + responseObserver.onNext(((LogicalView) 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 GetLogicalView, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LogicalView.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listLogicalViews( + ListLogicalViewsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLogicalViewsResponse) { + requests.add(request); + responseObserver.onNext(((ListLogicalViewsResponse) 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 ListLogicalViews, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLogicalViewsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateLogicalView( + UpdateLogicalViewRequest 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 UpdateLogicalView, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteLogicalView( + DeleteLogicalViewRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteLogicalView, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMaterializedView( + CreateMaterializedViewRequest 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 CreateMaterializedView, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMaterializedView( + GetMaterializedViewRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MaterializedView) { + requests.add(request); + responseObserver.onNext(((MaterializedView) 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 GetMaterializedView, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MaterializedView.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMaterializedViews( + ListMaterializedViewsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMaterializedViewsResponse) { + requests.add(request); + responseObserver.onNext(((ListMaterializedViewsResponse) 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 ListMaterializedViews, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMaterializedViewsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMaterializedView( + UpdateMaterializedViewRequest 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 UpdateMaterializedView, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMaterializedView( + DeleteMaterializedViewRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteMaterializedView, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/internal/NameUtilTest.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/internal/NameUtilTest.java index 7622ce5dfa0f..b21aa463c219 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/internal/NameUtilTest.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/internal/NameUtilTest.java @@ -18,6 +18,7 @@ import static com.google.common.truth.Truth.assertThat; import com.google.cloud.bigtable.data.v2.models.AuthorizedViewId; +import com.google.cloud.bigtable.data.v2.models.MaterializedViewId; import com.google.cloud.bigtable.data.v2.models.TableId; import org.junit.Rule; import org.junit.Test; @@ -102,23 +103,64 @@ public void extractTableNameFromAuthorizedViewNameTest() { } @Test - public void testExtractTargetId() { + public void testExtractTargetId2() { String testTableName = "projects/my-project/instances/my-instance/tables/my-table"; String testAuthorizedViewName = "projects/my-project/instances/my-instance/tables/my-table/authorizedViews/my-authorized-view"; assertThat( - com.google.cloud.bigtable.data.v2.internal.NameUtil.extractTargetId(testTableName, "")) + com.google.cloud.bigtable.data.v2.internal.NameUtil.extractTargetId( + testTableName, "", "")) .isEqualTo(TableId.of("my-table")); assertThat( com.google.cloud.bigtable.data.v2.internal.NameUtil.extractTargetId( - "", testAuthorizedViewName)) + "", testAuthorizedViewName, "")) .isEqualTo(AuthorizedViewId.of("my-table", "my-authorized-view")); + // No name is provided exception.expect(IllegalArgumentException.class); com.google.cloud.bigtable.data.v2.internal.NameUtil.extractTargetId("", ""); + // Multiple names are provided exception.expect(IllegalArgumentException.class); com.google.cloud.bigtable.data.v2.internal.NameUtil.extractTargetId( testTableName, testAuthorizedViewName); } + + @Test + public void testExtractTargetId3() { + String testTableName = "projects/my-project/instances/my-instance/tables/my-table"; + String testAuthorizedViewName = + "projects/my-project/instances/my-instance/tables/my-table/authorizedViews/my-authorized-view"; + String testMaterializedViewName = + "projects/my-project/instances/my-instance/materializedViews/my-materialized-view"; + assertThat( + com.google.cloud.bigtable.data.v2.internal.NameUtil.extractTargetId( + testTableName, "", "")) + .isEqualTo(TableId.of("my-table")); + assertThat( + com.google.cloud.bigtable.data.v2.internal.NameUtil.extractTargetId( + "", testAuthorizedViewName, "")) + .isEqualTo(AuthorizedViewId.of("my-table", "my-authorized-view")); + assertThat( + com.google.cloud.bigtable.data.v2.internal.NameUtil.extractTargetId( + "", "", testMaterializedViewName)) + .isEqualTo(MaterializedViewId.of("my-materialized-view")); + + // No name is provided + exception.expect(IllegalArgumentException.class); + com.google.cloud.bigtable.data.v2.internal.NameUtil.extractTargetId("", "", ""); + + // Multiple names are provided + exception.expect(IllegalArgumentException.class); + com.google.cloud.bigtable.data.v2.internal.NameUtil.extractTargetId( + testTableName, testAuthorizedViewName, ""); + + exception.expect(IllegalArgumentException.class); + com.google.cloud.bigtable.data.v2.internal.NameUtil.extractTargetId( + testTableName, "", testMaterializedViewName); + + exception.expect(IllegalArgumentException.class); + com.google.cloud.bigtable.data.v2.internal.NameUtil.extractTargetId( + "", testAuthorizedViewName, testMaterializedViewName); + } } diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/models/MaterializedViewIdTest.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/models/MaterializedViewIdTest.java new file mode 100644 index 000000000000..8978f8ff9927 --- /dev/null +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/models/MaterializedViewIdTest.java @@ -0,0 +1,68 @@ +/* + * Copyright 2024 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. + */ + +package com.google.cloud.bigtable.data.v2.models; + +import static com.google.common.truth.Truth.assertThat; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public class MaterializedViewIdTest { + private static final String PROJECT_ID = "my-project"; + private static final String INSTANCE_ID = "my-instance"; + private static final String TABLE_ID = "my-table"; + private static final String MATERIALIZED_VIEW_ID = "my-materialized-view"; + + @Test + public void testToResourceName() { + MaterializedViewId authorizedViewId = MaterializedViewId.of(MATERIALIZED_VIEW_ID); + + assertThat(authorizedViewId.toResourceName(PROJECT_ID, INSTANCE_ID)) + .isEqualTo( + "projects/my-project/instances/my-instance/materializedViews/my-materialized-view"); + } + + @Test + public void testEquality() { + MaterializedViewId authorizedViewId = MaterializedViewId.of(MATERIALIZED_VIEW_ID); + + assertThat(authorizedViewId).isEqualTo(MaterializedViewId.of(MATERIALIZED_VIEW_ID)); + assertThat(authorizedViewId).isNotEqualTo(MaterializedViewId.of("another-materialized-view")); + assertThat(authorizedViewId).isNotEqualTo(TableId.of(TABLE_ID)); + } + + @Test + public void testHashCode() { + MaterializedViewId authorizedViewId = MaterializedViewId.of(MATERIALIZED_VIEW_ID); + + assertThat(authorizedViewId.hashCode()) + .isEqualTo(MaterializedViewId.of(MATERIALIZED_VIEW_ID).hashCode()); + assertThat(authorizedViewId.hashCode()) + .isNotEqualTo(MaterializedViewId.of("another-materialized-view").hashCode()); + assertThat(authorizedViewId.hashCode()).isNotEqualTo(TableId.of(TABLE_ID).hashCode()); + } + + @Test + public void testToString() { + MaterializedViewId authorizedViewId = MaterializedViewId.of(MATERIALIZED_VIEW_ID); + + assertThat(authorizedViewId.toString()) + .isEqualTo("MaterializedViewId{materializedViewId=my-materialized-view}"); + } +} diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/CookiesHolderTest.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/CookiesHolderTest.java index 95a807bf763f..a58dbe2c779c 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/CookiesHolderTest.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/CookiesHolderTest.java @@ -559,6 +559,7 @@ public void testAllMethodsAreCalled() { // Exclude methods that are not supported by routing cookie methods.add("PingAndWarm"); methods.add("ExecuteQuery"); + methods.add("PrepareQuery"); assertThat(methods).containsExactlyElementsIn(expected); } diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/RetryInfoTest.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/RetryInfoTest.java index c1299f82c9dd..8f975182329b 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/RetryInfoTest.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/RetryInfoTest.java @@ -206,6 +206,7 @@ public void testAllMethods() { // Exclude methods that don't support retry info methods.add("PingAndWarm"); methods.add("ExecuteQuery"); + methods.add("PrepareQuery"); assertThat(methods).containsExactlyElementsIn(expected); } diff --git a/grpc-google-cloud-bigtable-admin-v2/clirr-ignored-differences.xml b/grpc-google-cloud-bigtable-admin-v2/clirr-ignored-differences.xml index 452e0b8902da..14296681cef7 100644 --- a/grpc-google-cloud-bigtable-admin-v2/clirr-ignored-differences.xml +++ b/grpc-google-cloud-bigtable-admin-v2/clirr-ignored-differences.xml @@ -1,15 +1,15 @@ + - - 6001 - com/google/bigtable/admin/v2/*Grpc - METHOD_* + 7012 + com/google/bigtable/admin/v2/BigtableInstanceAdminGrpc$AsyncService + *LogicalView* 7012 - com/google/bigtable/admin/v2/BigtableTableAdminGrpc* - * + com/google/bigtable/admin/v2/BigtableInstanceAdminGrpc$AsyncService + *MaterializedView* diff --git a/grpc-google-cloud-bigtable-admin-v2/pom.xml b/grpc-google-cloud-bigtable-admin-v2/pom.xml index 01c33c8ce920..525357692374 100644 --- a/grpc-google-cloud-bigtable-admin-v2/pom.xml +++ b/grpc-google-cloud-bigtable-admin-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 2.54.0 + 2.55.0 grpc-google-cloud-bigtable-admin-v2 GRPC library for grpc-google-cloud-bigtable-admin-v2 com.google.cloud google-cloud-bigtable-parent - 2.54.0 + 2.55.0 @@ -18,14 +18,14 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.54.0 + 2.55.0 pom import com.google.cloud google-cloud-bigtable-bom - 2.54.0 + 2.55.0 pom import diff --git a/grpc-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableInstanceAdminGrpc.java b/grpc-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableInstanceAdminGrpc.java index 2b364e58080a..21a86d23c62b 100644 --- a/grpc-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableInstanceAdminGrpc.java +++ b/grpc-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableInstanceAdminGrpc.java @@ -970,6 +970,489 @@ private BigtableInstanceAdminGrpc() {} return getListHotTabletsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.CreateLogicalViewRequest, com.google.longrunning.Operation> + getCreateLogicalViewMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateLogicalView", + requestType = com.google.bigtable.admin.v2.CreateLogicalViewRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.CreateLogicalViewRequest, com.google.longrunning.Operation> + getCreateLogicalViewMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.CreateLogicalViewRequest, com.google.longrunning.Operation> + getCreateLogicalViewMethod; + if ((getCreateLogicalViewMethod = BigtableInstanceAdminGrpc.getCreateLogicalViewMethod) + == null) { + synchronized (BigtableInstanceAdminGrpc.class) { + if ((getCreateLogicalViewMethod = BigtableInstanceAdminGrpc.getCreateLogicalViewMethod) + == null) { + BigtableInstanceAdminGrpc.getCreateLogicalViewMethod = + getCreateLogicalViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLogicalView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.CreateLogicalViewRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableInstanceAdminMethodDescriptorSupplier("CreateLogicalView")) + .build(); + } + } + } + return getCreateLogicalViewMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.GetLogicalViewRequest, + com.google.bigtable.admin.v2.LogicalView> + getGetLogicalViewMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLogicalView", + requestType = com.google.bigtable.admin.v2.GetLogicalViewRequest.class, + responseType = com.google.bigtable.admin.v2.LogicalView.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.GetLogicalViewRequest, + com.google.bigtable.admin.v2.LogicalView> + getGetLogicalViewMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.GetLogicalViewRequest, + com.google.bigtable.admin.v2.LogicalView> + getGetLogicalViewMethod; + if ((getGetLogicalViewMethod = BigtableInstanceAdminGrpc.getGetLogicalViewMethod) == null) { + synchronized (BigtableInstanceAdminGrpc.class) { + if ((getGetLogicalViewMethod = BigtableInstanceAdminGrpc.getGetLogicalViewMethod) == null) { + BigtableInstanceAdminGrpc.getGetLogicalViewMethod = + getGetLogicalViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLogicalView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.GetLogicalViewRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.LogicalView.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableInstanceAdminMethodDescriptorSupplier("GetLogicalView")) + .build(); + } + } + } + return getGetLogicalViewMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.ListLogicalViewsRequest, + com.google.bigtable.admin.v2.ListLogicalViewsResponse> + getListLogicalViewsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLogicalViews", + requestType = com.google.bigtable.admin.v2.ListLogicalViewsRequest.class, + responseType = com.google.bigtable.admin.v2.ListLogicalViewsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.ListLogicalViewsRequest, + com.google.bigtable.admin.v2.ListLogicalViewsResponse> + getListLogicalViewsMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.ListLogicalViewsRequest, + com.google.bigtable.admin.v2.ListLogicalViewsResponse> + getListLogicalViewsMethod; + if ((getListLogicalViewsMethod = BigtableInstanceAdminGrpc.getListLogicalViewsMethod) == null) { + synchronized (BigtableInstanceAdminGrpc.class) { + if ((getListLogicalViewsMethod = BigtableInstanceAdminGrpc.getListLogicalViewsMethod) + == null) { + BigtableInstanceAdminGrpc.getListLogicalViewsMethod = + getListLogicalViewsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogicalViews")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.ListLogicalViewsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.ListLogicalViewsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BigtableInstanceAdminMethodDescriptorSupplier("ListLogicalViews")) + .build(); + } + } + } + return getListLogicalViewsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.UpdateLogicalViewRequest, com.google.longrunning.Operation> + getUpdateLogicalViewMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateLogicalView", + requestType = com.google.bigtable.admin.v2.UpdateLogicalViewRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.UpdateLogicalViewRequest, com.google.longrunning.Operation> + getUpdateLogicalViewMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.UpdateLogicalViewRequest, com.google.longrunning.Operation> + getUpdateLogicalViewMethod; + if ((getUpdateLogicalViewMethod = BigtableInstanceAdminGrpc.getUpdateLogicalViewMethod) + == null) { + synchronized (BigtableInstanceAdminGrpc.class) { + if ((getUpdateLogicalViewMethod = BigtableInstanceAdminGrpc.getUpdateLogicalViewMethod) + == null) { + BigtableInstanceAdminGrpc.getUpdateLogicalViewMethod = + getUpdateLogicalViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateLogicalView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.UpdateLogicalViewRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableInstanceAdminMethodDescriptorSupplier("UpdateLogicalView")) + .build(); + } + } + } + return getUpdateLogicalViewMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.DeleteLogicalViewRequest, com.google.protobuf.Empty> + getDeleteLogicalViewMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteLogicalView", + requestType = com.google.bigtable.admin.v2.DeleteLogicalViewRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.DeleteLogicalViewRequest, com.google.protobuf.Empty> + getDeleteLogicalViewMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.DeleteLogicalViewRequest, com.google.protobuf.Empty> + getDeleteLogicalViewMethod; + if ((getDeleteLogicalViewMethod = BigtableInstanceAdminGrpc.getDeleteLogicalViewMethod) + == null) { + synchronized (BigtableInstanceAdminGrpc.class) { + if ((getDeleteLogicalViewMethod = BigtableInstanceAdminGrpc.getDeleteLogicalViewMethod) + == null) { + BigtableInstanceAdminGrpc.getDeleteLogicalViewMethod = + getDeleteLogicalViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLogicalView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.DeleteLogicalViewRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableInstanceAdminMethodDescriptorSupplier("DeleteLogicalView")) + .build(); + } + } + } + return getDeleteLogicalViewMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.CreateMaterializedViewRequest, + com.google.longrunning.Operation> + getCreateMaterializedViewMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMaterializedView", + requestType = com.google.bigtable.admin.v2.CreateMaterializedViewRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.CreateMaterializedViewRequest, + com.google.longrunning.Operation> + getCreateMaterializedViewMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.CreateMaterializedViewRequest, + com.google.longrunning.Operation> + getCreateMaterializedViewMethod; + if ((getCreateMaterializedViewMethod = + BigtableInstanceAdminGrpc.getCreateMaterializedViewMethod) + == null) { + synchronized (BigtableInstanceAdminGrpc.class) { + if ((getCreateMaterializedViewMethod = + BigtableInstanceAdminGrpc.getCreateMaterializedViewMethod) + == null) { + BigtableInstanceAdminGrpc.getCreateMaterializedViewMethod = + getCreateMaterializedViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMaterializedView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.CreateMaterializedViewRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableInstanceAdminMethodDescriptorSupplier( + "CreateMaterializedView")) + .build(); + } + } + } + return getCreateMaterializedViewMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.GetMaterializedViewRequest, + com.google.bigtable.admin.v2.MaterializedView> + getGetMaterializedViewMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMaterializedView", + requestType = com.google.bigtable.admin.v2.GetMaterializedViewRequest.class, + responseType = com.google.bigtable.admin.v2.MaterializedView.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.GetMaterializedViewRequest, + com.google.bigtable.admin.v2.MaterializedView> + getGetMaterializedViewMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.GetMaterializedViewRequest, + com.google.bigtable.admin.v2.MaterializedView> + getGetMaterializedViewMethod; + if ((getGetMaterializedViewMethod = BigtableInstanceAdminGrpc.getGetMaterializedViewMethod) + == null) { + synchronized (BigtableInstanceAdminGrpc.class) { + if ((getGetMaterializedViewMethod = BigtableInstanceAdminGrpc.getGetMaterializedViewMethod) + == null) { + BigtableInstanceAdminGrpc.getGetMaterializedViewMethod = + getGetMaterializedViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMaterializedView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.GetMaterializedViewRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableInstanceAdminMethodDescriptorSupplier("GetMaterializedView")) + .build(); + } + } + } + return getGetMaterializedViewMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.ListMaterializedViewsRequest, + com.google.bigtable.admin.v2.ListMaterializedViewsResponse> + getListMaterializedViewsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMaterializedViews", + requestType = com.google.bigtable.admin.v2.ListMaterializedViewsRequest.class, + responseType = com.google.bigtable.admin.v2.ListMaterializedViewsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.ListMaterializedViewsRequest, + com.google.bigtable.admin.v2.ListMaterializedViewsResponse> + getListMaterializedViewsMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.ListMaterializedViewsRequest, + com.google.bigtable.admin.v2.ListMaterializedViewsResponse> + getListMaterializedViewsMethod; + if ((getListMaterializedViewsMethod = BigtableInstanceAdminGrpc.getListMaterializedViewsMethod) + == null) { + synchronized (BigtableInstanceAdminGrpc.class) { + if ((getListMaterializedViewsMethod = + BigtableInstanceAdminGrpc.getListMaterializedViewsMethod) + == null) { + BigtableInstanceAdminGrpc.getListMaterializedViewsMethod = + getListMaterializedViewsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMaterializedViews")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.ListMaterializedViewsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.ListMaterializedViewsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BigtableInstanceAdminMethodDescriptorSupplier( + "ListMaterializedViews")) + .build(); + } + } + } + return getListMaterializedViewsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest, + com.google.longrunning.Operation> + getUpdateMaterializedViewMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMaterializedView", + requestType = com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest, + com.google.longrunning.Operation> + getUpdateMaterializedViewMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest, + com.google.longrunning.Operation> + getUpdateMaterializedViewMethod; + if ((getUpdateMaterializedViewMethod = + BigtableInstanceAdminGrpc.getUpdateMaterializedViewMethod) + == null) { + synchronized (BigtableInstanceAdminGrpc.class) { + if ((getUpdateMaterializedViewMethod = + BigtableInstanceAdminGrpc.getUpdateMaterializedViewMethod) + == null) { + BigtableInstanceAdminGrpc.getUpdateMaterializedViewMethod = + getUpdateMaterializedViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMaterializedView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableInstanceAdminMethodDescriptorSupplier( + "UpdateMaterializedView")) + .build(); + } + } + } + return getUpdateMaterializedViewMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest, com.google.protobuf.Empty> + getDeleteMaterializedViewMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMaterializedView", + requestType = com.google.bigtable.admin.v2.DeleteMaterializedViewRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest, com.google.protobuf.Empty> + getDeleteMaterializedViewMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest, com.google.protobuf.Empty> + getDeleteMaterializedViewMethod; + if ((getDeleteMaterializedViewMethod = + BigtableInstanceAdminGrpc.getDeleteMaterializedViewMethod) + == null) { + synchronized (BigtableInstanceAdminGrpc.class) { + if ((getDeleteMaterializedViewMethod = + BigtableInstanceAdminGrpc.getDeleteMaterializedViewMethod) + == null) { + BigtableInstanceAdminGrpc.getDeleteMaterializedViewMethod = + getDeleteMaterializedViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMaterializedView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableInstanceAdminMethodDescriptorSupplier( + "DeleteMaterializedView")) + .build(); + } + } + } + return getDeleteMaterializedViewMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static BigtableInstanceAdminStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1347,6 +1830,149 @@ default void listHotTablets( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListHotTabletsMethod(), responseObserver); } + + /** + * + * + *
    +     * Creates a logical view within an instance.
    +     * 
    + */ + default void createLogicalView( + com.google.bigtable.admin.v2.CreateLogicalViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateLogicalViewMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets information about a logical view.
    +     * 
    + */ + default void getLogicalView( + com.google.bigtable.admin.v2.GetLogicalViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLogicalViewMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists information about logical views in an instance.
    +     * 
    + */ + default void listLogicalViews( + com.google.bigtable.admin.v2.ListLogicalViewsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLogicalViewsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates a logical view within an instance.
    +     * 
    + */ + default void updateLogicalView( + com.google.bigtable.admin.v2.UpdateLogicalViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateLogicalViewMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a logical view from an instance.
    +     * 
    + */ + default void deleteLogicalView( + com.google.bigtable.admin.v2.DeleteLogicalViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteLogicalViewMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a materialized view within an instance.
    +     * 
    + */ + default void createMaterializedView( + com.google.bigtable.admin.v2.CreateMaterializedViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMaterializedViewMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets information about a materialized view.
    +     * 
    + */ + default void getMaterializedView( + com.google.bigtable.admin.v2.GetMaterializedViewRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMaterializedViewMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists information about materialized views in an instance.
    +     * 
    + */ + default void listMaterializedViews( + com.google.bigtable.admin.v2.ListMaterializedViewsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMaterializedViewsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates a materialized view within an instance.
    +     * 
    + */ + default void updateMaterializedView( + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMaterializedViewMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a materialized view from an instance.
    +     * 
    + */ + default void deleteMaterializedView( + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMaterializedViewMethod(), responseObserver); + } } /** @@ -1715,7 +2341,173 @@ public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Returns permissions that the caller has on the specified instance resource.
    +     * 
    + */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists hot tablets in a cluster, within the time range provided. Hot
    +     * tablets are ordered based on CPU usage.
    +     * 
    + */ + public void listHotTablets( + com.google.bigtable.admin.v2.ListHotTabletsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHotTabletsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a logical view within an instance.
    +     * 
    + */ + public void createLogicalView( + com.google.bigtable.admin.v2.CreateLogicalViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateLogicalViewMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets information about a logical view.
    +     * 
    + */ + public void getLogicalView( + com.google.bigtable.admin.v2.GetLogicalViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLogicalViewMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists information about logical views in an instance.
    +     * 
    + */ + public void listLogicalViews( + com.google.bigtable.admin.v2.ListLogicalViewsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLogicalViewsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Updates a logical view within an instance.
    +     * 
    + */ + public void updateLogicalView( + com.google.bigtable.admin.v2.UpdateLogicalViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateLogicalViewMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a logical view from an instance.
    +     * 
    + */ + public void deleteLogicalView( + com.google.bigtable.admin.v2.DeleteLogicalViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteLogicalViewMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a materialized view within an instance.
    +     * 
    + */ + public void createMaterializedView( + com.google.bigtable.admin.v2.CreateMaterializedViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMaterializedViewMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets information about a materialized view.
    +     * 
    + */ + public void getMaterializedView( + com.google.bigtable.admin.v2.GetMaterializedViewRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMaterializedViewMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists information about materialized views in an instance.
    +     * 
    + */ + public void listMaterializedViews( + com.google.bigtable.admin.v2.ListMaterializedViewsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMaterializedViewsMethod(), getCallOptions()), request, responseObserver); } @@ -1724,15 +2516,14 @@ public void setIamPolicy( * * *
    -     * Returns permissions that the caller has on the specified instance resource.
    +     * Updates a materialized view within an instance.
          * 
    */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateMaterializedView( + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + getChannel().newCall(getUpdateMaterializedViewMethod(), getCallOptions()), request, responseObserver); } @@ -1741,16 +2532,14 @@ public void testIamPermissions( * * *
    -     * Lists hot tablets in a cluster, within the time range provided. Hot
    -     * tablets are ordered based on CPU usage.
    +     * Deletes a materialized view from an instance.
          * 
    */ - public void listHotTablets( - com.google.bigtable.admin.v2.ListHotTabletsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void deleteMaterializedView( + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHotTabletsMethod(), getCallOptions()), + getChannel().newCall(getDeleteMaterializedViewMethod(), getCallOptions()), request, responseObserver); } @@ -2076,6 +2865,136 @@ public com.google.bigtable.admin.v2.ListHotTabletsResponse listHotTablets( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListHotTabletsMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Creates a logical view within an instance.
    +     * 
    + */ + public com.google.longrunning.Operation createLogicalView( + com.google.bigtable.admin.v2.CreateLogicalViewRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateLogicalViewMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets information about a logical view.
    +     * 
    + */ + public com.google.bigtable.admin.v2.LogicalView getLogicalView( + com.google.bigtable.admin.v2.GetLogicalViewRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLogicalViewMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists information about logical views in an instance.
    +     * 
    + */ + public com.google.bigtable.admin.v2.ListLogicalViewsResponse listLogicalViews( + com.google.bigtable.admin.v2.ListLogicalViewsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLogicalViewsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates a logical view within an instance.
    +     * 
    + */ + public com.google.longrunning.Operation updateLogicalView( + com.google.bigtable.admin.v2.UpdateLogicalViewRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateLogicalViewMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a logical view from an instance.
    +     * 
    + */ + public com.google.protobuf.Empty deleteLogicalView( + com.google.bigtable.admin.v2.DeleteLogicalViewRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteLogicalViewMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a materialized view within an instance.
    +     * 
    + */ + public com.google.longrunning.Operation createMaterializedView( + com.google.bigtable.admin.v2.CreateMaterializedViewRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMaterializedViewMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets information about a materialized view.
    +     * 
    + */ + public com.google.bigtable.admin.v2.MaterializedView getMaterializedView( + com.google.bigtable.admin.v2.GetMaterializedViewRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMaterializedViewMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists information about materialized views in an instance.
    +     * 
    + */ + public com.google.bigtable.admin.v2.ListMaterializedViewsResponse listMaterializedViews( + com.google.bigtable.admin.v2.ListMaterializedViewsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMaterializedViewsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates a materialized view within an instance.
    +     * 
    + */ + public com.google.longrunning.Operation updateMaterializedView( + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMaterializedViewMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a materialized view from an instance.
    +     * 
    + */ + public com.google.protobuf.Empty deleteMaterializedView( + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMaterializedViewMethod(), getCallOptions(), request); + } } /** @@ -2408,6 +3327,140 @@ protected BigtableInstanceAdminFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListHotTabletsMethod(), getCallOptions()), request); } + + /** + * + * + *
    +     * Creates a logical view within an instance.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createLogicalView(com.google.bigtable.admin.v2.CreateLogicalViewRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateLogicalViewMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets information about a logical view.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.bigtable.admin.v2.LogicalView> + getLogicalView(com.google.bigtable.admin.v2.GetLogicalViewRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLogicalViewMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists information about logical views in an instance.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.bigtable.admin.v2.ListLogicalViewsResponse> + listLogicalViews(com.google.bigtable.admin.v2.ListLogicalViewsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLogicalViewsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Updates a logical view within an instance.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updateLogicalView(com.google.bigtable.admin.v2.UpdateLogicalViewRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateLogicalViewMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes a logical view from an instance.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteLogicalView(com.google.bigtable.admin.v2.DeleteLogicalViewRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteLogicalViewMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Creates a materialized view within an instance.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createMaterializedView(com.google.bigtable.admin.v2.CreateMaterializedViewRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMaterializedViewMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets information about a materialized view.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.bigtable.admin.v2.MaterializedView> + getMaterializedView(com.google.bigtable.admin.v2.GetMaterializedViewRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMaterializedViewMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists information about materialized views in an instance.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.bigtable.admin.v2.ListMaterializedViewsResponse> + listMaterializedViews(com.google.bigtable.admin.v2.ListMaterializedViewsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMaterializedViewsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Updates a materialized view within an instance.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updateMaterializedView(com.google.bigtable.admin.v2.UpdateMaterializedViewRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMaterializedViewMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes a materialized view from an instance.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteMaterializedView(com.google.bigtable.admin.v2.DeleteMaterializedViewRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMaterializedViewMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_INSTANCE = 0; @@ -2431,6 +3484,16 @@ protected BigtableInstanceAdminFutureStub build( private static final int METHODID_SET_IAM_POLICY = 18; private static final int METHODID_TEST_IAM_PERMISSIONS = 19; private static final int METHODID_LIST_HOT_TABLETS = 20; + private static final int METHODID_CREATE_LOGICAL_VIEW = 21; + private static final int METHODID_GET_LOGICAL_VIEW = 22; + private static final int METHODID_LIST_LOGICAL_VIEWS = 23; + private static final int METHODID_UPDATE_LOGICAL_VIEW = 24; + private static final int METHODID_DELETE_LOGICAL_VIEW = 25; + private static final int METHODID_CREATE_MATERIALIZED_VIEW = 26; + private static final int METHODID_GET_MATERIALIZED_VIEW = 27; + private static final int METHODID_LIST_MATERIALIZED_VIEWS = 28; + private static final int METHODID_UPDATE_MATERIALIZED_VIEW = 29; + private static final int METHODID_DELETE_MATERIALIZED_VIEW = 30; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2563,6 +3626,61 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_LOGICAL_VIEW: + serviceImpl.createLogicalView( + (com.google.bigtable.admin.v2.CreateLogicalViewRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LOGICAL_VIEW: + serviceImpl.getLogicalView( + (com.google.bigtable.admin.v2.GetLogicalViewRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_LOGICAL_VIEWS: + serviceImpl.listLogicalViews( + (com.google.bigtable.admin.v2.ListLogicalViewsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_LOGICAL_VIEW: + serviceImpl.updateLogicalView( + (com.google.bigtable.admin.v2.UpdateLogicalViewRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_LOGICAL_VIEW: + serviceImpl.deleteLogicalView( + (com.google.bigtable.admin.v2.DeleteLogicalViewRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_MATERIALIZED_VIEW: + serviceImpl.createMaterializedView( + (com.google.bigtable.admin.v2.CreateMaterializedViewRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MATERIALIZED_VIEW: + serviceImpl.getMaterializedView( + (com.google.bigtable.admin.v2.GetMaterializedViewRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_MATERIALIZED_VIEWS: + serviceImpl.listMaterializedViews( + (com.google.bigtable.admin.v2.ListMaterializedViewsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.bigtable.admin.v2.ListMaterializedViewsResponse>) + responseObserver); + break; + case METHODID_UPDATE_MATERIALIZED_VIEW: + serviceImpl.updateMaterializedView( + (com.google.bigtable.admin.v2.UpdateMaterializedViewRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MATERIALIZED_VIEW: + serviceImpl.deleteMaterializedView( + (com.google.bigtable.admin.v2.DeleteMaterializedViewRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -2710,6 +3828,69 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.bigtable.admin.v2.ListHotTabletsRequest, com.google.bigtable.admin.v2.ListHotTabletsResponse>( service, METHODID_LIST_HOT_TABLETS))) + .addMethod( + getCreateLogicalViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.admin.v2.CreateLogicalViewRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_LOGICAL_VIEW))) + .addMethod( + getGetLogicalViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.admin.v2.GetLogicalViewRequest, + com.google.bigtable.admin.v2.LogicalView>(service, METHODID_GET_LOGICAL_VIEW))) + .addMethod( + getListLogicalViewsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.admin.v2.ListLogicalViewsRequest, + com.google.bigtable.admin.v2.ListLogicalViewsResponse>( + service, METHODID_LIST_LOGICAL_VIEWS))) + .addMethod( + getUpdateLogicalViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.admin.v2.UpdateLogicalViewRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_LOGICAL_VIEW))) + .addMethod( + getDeleteLogicalViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.admin.v2.DeleteLogicalViewRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_LOGICAL_VIEW))) + .addMethod( + getCreateMaterializedViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.admin.v2.CreateMaterializedViewRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_MATERIALIZED_VIEW))) + .addMethod( + getGetMaterializedViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.admin.v2.GetMaterializedViewRequest, + com.google.bigtable.admin.v2.MaterializedView>( + service, METHODID_GET_MATERIALIZED_VIEW))) + .addMethod( + getListMaterializedViewsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.admin.v2.ListMaterializedViewsRequest, + com.google.bigtable.admin.v2.ListMaterializedViewsResponse>( + service, METHODID_LIST_MATERIALIZED_VIEWS))) + .addMethod( + getUpdateMaterializedViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_MATERIALIZED_VIEW))) + .addMethod( + getDeleteMaterializedViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_MATERIALIZED_VIEW))) .build(); } @@ -2782,6 +3963,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getSetIamPolicyMethod()) .addMethod(getTestIamPermissionsMethod()) .addMethod(getListHotTabletsMethod()) + .addMethod(getCreateLogicalViewMethod()) + .addMethod(getGetLogicalViewMethod()) + .addMethod(getListLogicalViewsMethod()) + .addMethod(getUpdateLogicalViewMethod()) + .addMethod(getDeleteLogicalViewMethod()) + .addMethod(getCreateMaterializedViewMethod()) + .addMethod(getGetMaterializedViewMethod()) + .addMethod(getListMaterializedViewsMethod()) + .addMethod(getUpdateMaterializedViewMethod()) + .addMethod(getDeleteMaterializedViewMethod()) .build(); } } diff --git a/grpc-google-cloud-bigtable-v2/clirr-ignored-differences.xml b/grpc-google-cloud-bigtable-v2/clirr-ignored-differences.xml index ee16d402214b..142d0f217ee2 100644 --- a/grpc-google-cloud-bigtable-v2/clirr-ignored-differences.xml +++ b/grpc-google-cloud-bigtable-v2/clirr-ignored-differences.xml @@ -5,6 +5,6 @@ 7012 com/google/bigtable/v2/BigtableGrpc$AsyncService - *executeQuery(* + *prepareQuery(* diff --git a/grpc-google-cloud-bigtable-v2/pom.xml b/grpc-google-cloud-bigtable-v2/pom.xml index daaa7ca6117f..de347512e1a1 100644 --- a/grpc-google-cloud-bigtable-v2/pom.xml +++ b/grpc-google-cloud-bigtable-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 - 2.54.0 + 2.55.0 grpc-google-cloud-bigtable-v2 GRPC library for grpc-google-cloud-bigtable-v2 com.google.cloud google-cloud-bigtable-parent - 2.54.0 + 2.55.0 @@ -18,14 +18,14 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.54.0 + 2.55.0 pom import com.google.cloud google-cloud-bigtable-bom - 2.54.0 + 2.55.0 pom import diff --git a/grpc-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableGrpc.java b/grpc-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableGrpc.java index e73c2759f5d5..f95ebf2eda43 100644 --- a/grpc-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableGrpc.java +++ b/grpc-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableGrpc.java @@ -432,6 +432,47 @@ private BigtableGrpc() {} return getReadChangeStreamMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.v2.PrepareQueryRequest, com.google.bigtable.v2.PrepareQueryResponse> + getPrepareQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PrepareQuery", + requestType = com.google.bigtable.v2.PrepareQueryRequest.class, + responseType = com.google.bigtable.v2.PrepareQueryResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.v2.PrepareQueryRequest, com.google.bigtable.v2.PrepareQueryResponse> + getPrepareQueryMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.v2.PrepareQueryRequest, com.google.bigtable.v2.PrepareQueryResponse> + getPrepareQueryMethod; + if ((getPrepareQueryMethod = BigtableGrpc.getPrepareQueryMethod) == null) { + synchronized (BigtableGrpc.class) { + if ((getPrepareQueryMethod = BigtableGrpc.getPrepareQueryMethod) == null) { + BigtableGrpc.getPrepareQueryMethod = + getPrepareQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PrepareQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.v2.PrepareQueryRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.v2.PrepareQueryResponse.getDefaultInstance())) + .setSchemaDescriptor(new BigtableMethodDescriptorSupplier("PrepareQuery")) + .build(); + } + } + } + return getPrepareQueryMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.bigtable.v2.ExecuteQueryRequest, com.google.bigtable.v2.ExecuteQueryResponse> getExecuteQueryMethod; @@ -676,7 +717,21 @@ default void readChangeStream( * * *
    -     * Executes a BTQL query against a particular Cloud Bigtable instance.
    +     * Prepares a GoogleSQL query for execution on a particular Bigtable instance.
    +     * 
    + */ + default void prepareQuery( + com.google.bigtable.v2.PrepareQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPrepareQueryMethod(), responseObserver); + } + + /** + * + * + *
    +     * Executes a SQL query against a particular Bigtable instance.
          * 
    */ default void executeQuery( @@ -888,7 +943,23 @@ public void readChangeStream( * * *
    -     * Executes a BTQL query against a particular Cloud Bigtable instance.
    +     * Prepares a GoogleSQL query for execution on a particular Bigtable instance.
    +     * 
    + */ + public void prepareQuery( + com.google.bigtable.v2.PrepareQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPrepareQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Executes a SQL query against a particular Bigtable instance.
          * 
    */ public void executeQuery( @@ -1065,7 +1136,20 @@ public java.util.Iterator readC * * *
    -     * Executes a BTQL query against a particular Cloud Bigtable instance.
    +     * Prepares a GoogleSQL query for execution on a particular Bigtable instance.
    +     * 
    + */ + public com.google.bigtable.v2.PrepareQueryResponse prepareQuery( + com.google.bigtable.v2.PrepareQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPrepareQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Executes a SQL query against a particular Bigtable instance.
          * 
    */ public java.util.Iterator executeQuery( @@ -1154,6 +1238,20 @@ protected BigtableFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReadModifyWriteRowMethod(), getCallOptions()), request); } + + /** + * + * + *
    +     * Prepares a GoogleSQL query for execution on a particular Bigtable instance.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.bigtable.v2.PrepareQueryResponse> + prepareQuery(com.google.bigtable.v2.PrepareQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPrepareQueryMethod(), getCallOptions()), request); + } } private static final int METHODID_READ_ROWS = 0; @@ -1165,7 +1263,8 @@ protected BigtableFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_READ_MODIFY_WRITE_ROW = 6; private static final int METHODID_GENERATE_INITIAL_CHANGE_STREAM_PARTITIONS = 7; private static final int METHODID_READ_CHANGE_STREAM = 8; - private static final int METHODID_EXECUTE_QUERY = 9; + private static final int METHODID_PREPARE_QUERY = 9; + private static final int METHODID_EXECUTE_QUERY = 10; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1239,6 +1338,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_PREPARE_QUERY: + serviceImpl.prepareQuery( + (com.google.bigtable.v2.PrepareQueryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_EXECUTE_QUERY: serviceImpl.executeQuery( (com.google.bigtable.v2.ExecuteQueryRequest) request, @@ -1322,6 +1427,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.bigtable.v2.ReadChangeStreamRequest, com.google.bigtable.v2.ReadChangeStreamResponse>( service, METHODID_READ_CHANGE_STREAM))) + .addMethod( + getPrepareQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.v2.PrepareQueryRequest, + com.google.bigtable.v2.PrepareQueryResponse>(service, METHODID_PREPARE_QUERY))) .addMethod( getExecuteQueryMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( @@ -1386,6 +1497,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getReadModifyWriteRowMethod()) .addMethod(getGenerateInitialChangeStreamPartitionsMethod()) .addMethod(getReadChangeStreamMethod()) + .addMethod(getPrepareQueryMethod()) .addMethod(getExecuteQueryMethod()) .build(); } diff --git a/pom.xml b/pom.xml index 490c93287133..b673fa95d605 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ google-cloud-bigtable-parent pom - 2.54.0 + 2.55.0 Google Cloud Bigtable Parent https://github.com/googleapis/java-bigtable @@ -153,27 +153,27 @@ com.google.api.grpc proto-google-cloud-bigtable-v2 - 2.54.0 + 2.55.0 com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 2.54.0 + 2.55.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 - 2.54.0 + 2.55.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 2.54.0 + 2.55.0 com.google.cloud google-cloud-bigtable - 2.54.0 + 2.55.0 diff --git a/proto-google-cloud-bigtable-admin-v2/pom.xml b/proto-google-cloud-bigtable-admin-v2/pom.xml index 1af1e137ab3d..bf0b7f6297bf 100644 --- a/proto-google-cloud-bigtable-admin-v2/pom.xml +++ b/proto-google-cloud-bigtable-admin-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 2.54.0 + 2.55.0 proto-google-cloud-bigtable-admin-v2 PROTO library for proto-google-cloud-bigtable-admin-v2 com.google.cloud google-cloud-bigtable-parent - 2.54.0 + 2.55.0 @@ -18,14 +18,14 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.54.0 + 2.55.0 pom import com.google.cloud google-cloud-bigtable-bom - 2.54.0 + 2.55.0 pom import diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfile.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfile.java index f9c9dd6fddd7..9915796df2a6 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfile.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfile.java @@ -3402,17 +3402,10 @@ public interface DataBoostIsolationReadOnlyOrBuilder * *
        * Data Boost is a serverless compute capability that lets you run
    -   * high-throughput read jobs on your Bigtable data, without impacting the
    -   * performance of the clusters that handle your application traffic.
    -   * Currently, Data Boost exclusively supports read-only use-cases with
    -   * single-cluster routing.
    -   *
    -   * Data Boost reads are only guaranteed to see the results of writes that
    -   * were written at least 30 minutes ago. This means newly written values may
    -   * not become visible for up to 30m, and also means that old values may
    -   * remain visible for up to 30m after being deleted or overwritten. To
    -   * mitigate the staleness of the data, users may either wait 30m, or use
    -   * CheckConsistency.
    +   * high-throughput read jobs and queries on your Bigtable data, without
    +   * impacting the performance of the clusters that handle your application
    +   * traffic. Data Boost supports read-only use cases with single-cluster
    +   * routing.
        * 
    * * Protobuf type {@code google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly} @@ -3833,17 +3826,10 @@ protected Builder newBuilderForType( * *
          * Data Boost is a serverless compute capability that lets you run
    -     * high-throughput read jobs on your Bigtable data, without impacting the
    -     * performance of the clusters that handle your application traffic.
    -     * Currently, Data Boost exclusively supports read-only use-cases with
    -     * single-cluster routing.
    -     *
    -     * Data Boost reads are only guaranteed to see the results of writes that
    -     * were written at least 30 minutes ago. This means newly written values may
    -     * not become visible for up to 30m, and also means that old values may
    -     * remain visible for up to 30m after being deleted or overwritten. To
    -     * mitigate the staleness of the data, users may either wait 30m, or use
    -     * CheckConsistency.
    +     * high-throughput read jobs and queries on your Bigtable data, without
    +     * impacting the performance of the clusters that handle your application
    +     * traffic. Data Boost supports read-only use cases with single-cluster
    +     * routing.
          * 
    * * Protobuf type {@code google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly} @@ -4624,7 +4610,7 @@ public com.google.bigtable.admin.v2.AppProfile.SingleClusterRouting getSingleClu * .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; * * @deprecated google.bigtable.admin.v2.AppProfile.priority is deprecated. See - * google/bigtable/admin/v2/instance.proto;l=405 + * google/bigtable/admin/v2/instance.proto;l=406 * @return Whether the priority field is set. */ @java.lang.Deprecated @@ -4644,7 +4630,7 @@ public boolean hasPriority() { * .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; * * @deprecated google.bigtable.admin.v2.AppProfile.priority is deprecated. See - * google/bigtable/admin/v2/instance.proto;l=405 + * google/bigtable/admin/v2/instance.proto;l=406 * @return The enum numeric value on the wire for priority. */ @java.lang.Deprecated @@ -4667,7 +4653,7 @@ public int getPriorityValue() { * .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; * * @deprecated google.bigtable.admin.v2.AppProfile.priority is deprecated. See - * google/bigtable/admin/v2/instance.proto;l=405 + * google/bigtable/admin/v2/instance.proto;l=406 * @return The priority. */ @java.lang.Deprecated @@ -6261,7 +6247,7 @@ public Builder clearSingleClusterRouting() { * .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; * * @deprecated google.bigtable.admin.v2.AppProfile.priority is deprecated. See - * google/bigtable/admin/v2/instance.proto;l=405 + * google/bigtable/admin/v2/instance.proto;l=406 * @return Whether the priority field is set. */ @java.lang.Override @@ -6282,7 +6268,7 @@ public boolean hasPriority() { * .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; * * @deprecated google.bigtable.admin.v2.AppProfile.priority is deprecated. See - * google/bigtable/admin/v2/instance.proto;l=405 + * google/bigtable/admin/v2/instance.proto;l=406 * @return The enum numeric value on the wire for priority. */ @java.lang.Override @@ -6306,7 +6292,7 @@ public int getPriorityValue() { * .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; * * @deprecated google.bigtable.admin.v2.AppProfile.priority is deprecated. See - * google/bigtable/admin/v2/instance.proto;l=405 + * google/bigtable/admin/v2/instance.proto;l=406 * @param value The enum numeric value on the wire for priority to set. * @return This builder for chaining. */ @@ -6330,7 +6316,7 @@ public Builder setPriorityValue(int value) { * .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; * * @deprecated google.bigtable.admin.v2.AppProfile.priority is deprecated. See - * google/bigtable/admin/v2/instance.proto;l=405 + * google/bigtable/admin/v2/instance.proto;l=406 * @return The priority. */ @java.lang.Override @@ -6359,7 +6345,7 @@ public com.google.bigtable.admin.v2.AppProfile.Priority getPriority() { * .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; * * @deprecated google.bigtable.admin.v2.AppProfile.priority is deprecated. See - * google/bigtable/admin/v2/instance.proto;l=405 + * google/bigtable/admin/v2/instance.proto;l=406 * @param value The priority to set. * @return This builder for chaining. */ @@ -6386,7 +6372,7 @@ public Builder setPriority(com.google.bigtable.admin.v2.AppProfile.Priority valu * .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; * * @deprecated google.bigtable.admin.v2.AppProfile.priority is deprecated. See - * google/bigtable/admin/v2/instance.proto;l=405 + * google/bigtable/admin/v2/instance.proto;l=406 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfileOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfileOrBuilder.java index 87d578a0a6bc..5939d3fe6b56 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfileOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfileOrBuilder.java @@ -209,7 +209,7 @@ public interface AppProfileOrBuilder * .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; * * @deprecated google.bigtable.admin.v2.AppProfile.priority is deprecated. See - * google/bigtable/admin/v2/instance.proto;l=405 + * google/bigtable/admin/v2/instance.proto;l=406 * @return Whether the priority field is set. */ @java.lang.Deprecated @@ -227,7 +227,7 @@ public interface AppProfileOrBuilder * .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; * * @deprecated google.bigtable.admin.v2.AppProfile.priority is deprecated. See - * google/bigtable/admin/v2/instance.proto;l=405 + * google/bigtable/admin/v2/instance.proto;l=406 * @return The enum numeric value on the wire for priority. */ @java.lang.Deprecated @@ -245,7 +245,7 @@ public interface AppProfileOrBuilder * .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; * * @deprecated google.bigtable.admin.v2.AppProfile.priority is deprecated. See - * google/bigtable/admin/v2/instance.proto;l=405 + * google/bigtable/admin/v2/instance.proto;l=406 * @return The priority. */ @java.lang.Deprecated diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableInstanceAdminProto.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableInstanceAdminProto.java index 53e31be6caa8..e27ba55f3458 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableInstanceAdminProto.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableInstanceAdminProto.java @@ -144,6 +144,70 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_bigtable_admin_v2_ListHotTabletsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_bigtable_admin_v2_ListHotTabletsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_CreateLogicalViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_CreateLogicalViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_CreateLogicalViewMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_CreateLogicalViewMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_GetLogicalViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_GetLogicalViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_ListLogicalViewsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_ListLogicalViewsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_ListLogicalViewsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_ListLogicalViewsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_UpdateLogicalViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_UpdateLogicalViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_UpdateLogicalViewMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_UpdateLogicalViewMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_DeleteLogicalViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_DeleteLogicalViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_CreateMaterializedViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_CreateMaterializedViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_CreateMaterializedViewMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_CreateMaterializedViewMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_GetMaterializedViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_GetMaterializedViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_ListMaterializedViewsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_ListMaterializedViewsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_ListMaterializedViewsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_ListMaterializedViewsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_UpdateMaterializedViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_UpdateMaterializedViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_UpdateMaterializedViewMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_UpdateMaterializedViewMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_DeleteMaterializedViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_DeleteMaterializedViewRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -270,121 +334,251 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "amp\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001" + "(\t\"k\n\026ListHotTabletsResponse\0228\n\013hot_tabl" + "ets\030\001 \003(\0132#.google.bigtable.admin.v2.Hot" - + "Tablet\022\027\n\017next_page_token\030\002 \001(\t2\313!\n\025Bigt" - + "ableInstanceAdmin\022\332\001\n\016CreateInstance\022/.g" - + "oogle.bigtable.admin.v2.CreateInstanceRe" - + "quest\032\035.google.longrunning.Operation\"x\312A" - + "\"\n\010Instance\022\026CreateInstanceMetadata\332A$pa" - + "rent,instance_id,instance,clusters\202\323\344\223\002&" - + "\"!/v2/{parent=projects/*}/instances:\001*\022\221" - + "\001\n\013GetInstance\022,.google.bigtable.admin.v" - + "2.GetInstanceRequest\032\".google.bigtable.a" - + "dmin.v2.Instance\"0\332A\004name\202\323\344\223\002#\022!/v2/{na" - + "me=projects/*/instances/*}\022\244\001\n\rListInsta" - + "nces\022..google.bigtable.admin.v2.ListInst" - + "ancesRequest\032/.google.bigtable.admin.v2." - + "ListInstancesResponse\"2\332A\006parent\202\323\344\223\002#\022!" - + "/v2/{parent=projects/*}/instances\022\206\001\n\016Up" - + "dateInstance\022\".google.bigtable.admin.v2." - + "Instance\032\".google.bigtable.admin.v2.Inst" - + "ance\",\202\323\344\223\002&\032!/v2/{name=projects/*/insta" - + "nces/*}:\001*\022\350\001\n\025PartialUpdateInstance\0226.g" - + "oogle.bigtable.admin.v2.PartialUpdateIns" - + "tanceRequest\032\035.google.longrunning.Operat" - + "ion\"x\312A\"\n\010Instance\022\026UpdateInstanceMetada" - + "ta\332A\024instance,update_mask\202\323\344\223\00262*/v2/{in" - + "stance.name=projects/*/instances/*}:\010ins" - + "tance\022\213\001\n\016DeleteInstance\022/.google.bigtab" - + "le.admin.v2.DeleteInstanceRequest\032\026.goog" - + "le.protobuf.Empty\"0\332A\004name\202\323\344\223\002#*!/v2/{n" - + "ame=projects/*/instances/*}\022\334\001\n\rCreateCl" - + "uster\022..google.bigtable.admin.v2.CreateC" - + "lusterRequest\032\035.google.longrunning.Opera" - + "tion\"|\312A \n\007Cluster\022\025CreateClusterMetadat" - + "a\332A\031parent,cluster_id,cluster\202\323\344\223\0027\",/v2" - + "/{parent=projects/*/instances/*}/cluster" - + "s:\007cluster\022\231\001\n\nGetCluster\022+.google.bigta" - + "ble.admin.v2.GetClusterRequest\032!.google." - + "bigtable.admin.v2.Cluster\";\332A\004name\202\323\344\223\002." - + "\022,/v2/{name=projects/*/instances/*/clust" - + "ers/*}\022\254\001\n\014ListClusters\022-.google.bigtabl" - + "e.admin.v2.ListClustersRequest\032..google." - + "bigtable.admin.v2.ListClustersResponse\"=" - + "\332A\006parent\202\323\344\223\002.\022,/v2/{parent=projects/*/" - + "instances/*}/clusters\022\255\001\n\rUpdateCluster\022" - + "!.google.bigtable.admin.v2.Cluster\032\035.goo" - + "gle.longrunning.Operation\"Z\312A \n\007Cluster\022" - + "\025UpdateClusterMetadata\202\323\344\223\0021\032,/v2/{name=" - + "projects/*/instances/*/clusters/*}:\001*\022\364\001" - + "\n\024PartialUpdateCluster\0225.google.bigtable" - + ".admin.v2.PartialUpdateClusterRequest\032\035." - + "google.longrunning.Operation\"\205\001\312A\'\n\007Clus" - + "ter\022\034PartialUpdateClusterMetadata\332A\023clus" - + "ter,update_mask\202\323\344\223\002?24/v2/{cluster.name" - + "=projects/*/instances/*/clusters/*}:\007clu" - + "ster\022\224\001\n\rDeleteCluster\022..google.bigtable" - + ".admin.v2.DeleteClusterRequest\032\026.google." - + "protobuf.Empty\";\332A\004name\202\323\344\223\002.*,/v2/{name" - + "=projects/*/instances/*/clusters/*}\022\325\001\n\020" - + "CreateAppProfile\0221.google.bigtable.admin" - + ".v2.CreateAppProfileRequest\032$.google.big" - + "table.admin.v2.AppProfile\"h\332A!parent,app" - + "_profile_id,app_profile\202\323\344\223\002>\"//v2/{pare" - + "nt=projects/*/instances/*}/appProfiles:\013" - + "app_profile\022\245\001\n\rGetAppProfile\022..google.b" - + "igtable.admin.v2.GetAppProfileRequest\032$." - + "google.bigtable.admin.v2.AppProfile\">\332A\004" - + "name\202\323\344\223\0021\022//v2/{name=projects/*/instanc" - + "es/*/appProfiles/*}\022\270\001\n\017ListAppProfiles\022" - + "0.google.bigtable.admin.v2.ListAppProfil" - + "esRequest\0321.google.bigtable.admin.v2.Lis" - + "tAppProfilesResponse\"@\332A\006parent\202\323\344\223\0021\022//" - + "v2/{parent=projects/*/instances/*}/appPr" - + "ofiles\022\372\001\n\020UpdateAppProfile\0221.google.big" - + "table.admin.v2.UpdateAppProfileRequest\032\035" - + ".google.longrunning.Operation\"\223\001\312A&\n\nApp" - + "Profile\022\030UpdateAppProfileMetadata\332A\027app_" - + "profile,update_mask\202\323\344\223\002J2;/v2/{app_prof" - + "ile.name=projects/*/instances/*/appProfi" - + "les/*}:\013app_profile\022\235\001\n\020DeleteAppProfile" - + "\0221.google.bigtable.admin.v2.DeleteAppPro" - + "fileRequest\032\026.google.protobuf.Empty\">\332A\004" - + "name\202\323\344\223\0021*//v2/{name=projects/*/instanc" - + "es/*/appProfiles/*}\022\223\001\n\014GetIamPolicy\022\".g" - + "oogle.iam.v1.GetIamPolicyRequest\032\025.googl" - + "e.iam.v1.Policy\"H\332A\010resource\202\323\344\223\0027\"2/v2/" - + "{resource=projects/*/instances/*}:getIam" - + "Policy:\001*\022\232\001\n\014SetIamPolicy\022\".google.iam." - + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" - + "olicy\"O\332A\017resource,policy\202\323\344\223\0027\"2/v2/{re" - + "source=projects/*/instances/*}:setIamPol" - + "icy:\001*\022\305\001\n\022TestIamPermissions\022(.google.i" - + "am.v1.TestIamPermissionsRequest\032).google" - + ".iam.v1.TestIamPermissionsResponse\"Z\332A\024r" - + "esource,permissions\202\323\344\223\002=\"8/v2/{resource" - + "=projects/*/instances/*}:testIamPermissi" - + "ons:\001*\022\277\001\n\016ListHotTablets\022/.google.bigta" - + "ble.admin.v2.ListHotTabletsRequest\0320.goo" - + "gle.bigtable.admin.v2.ListHotTabletsResp" - + "onse\"J\332A\006parent\202\323\344\223\002;\0229/v2/{parent=proje" - + "cts/*/instances/*/clusters/*}/hotTablets" - + "\032\232\003\312A\034bigtableadmin.googleapis.com\322A\367\002ht" - + "tps://www.googleapis.com/auth/bigtable.a" - + "dmin,https://www.googleapis.com/auth/big" - + "table.admin.cluster,https://www.googleap" - + "is.com/auth/bigtable.admin.instance,http" - + "s://www.googleapis.com/auth/cloud-bigtab" - + "le.admin,https://www.googleapis.com/auth" - + "/cloud-bigtable.admin.cluster,https://ww" - + "w.googleapis.com/auth/cloud-platform,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm.read-onlyB\335\001\n\034com.google.bigtable.ad" - + "min.v2B\032BigtableInstanceAdminProtoP\001Z8cl" - + "oud.google.com/go/bigtable/admin/apiv2/a" - + "dminpb;adminpb\252\002\036Google.Cloud.Bigtable.A" - + "dmin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2" - + "\352\002\"Google::Cloud::Bigtable::Admin::V2b\006p" - + "roto3" + + "Tablet\022\027\n\017next_page_token\030\002 \001(\t\"\271\001\n\030Crea" + + "teLogicalViewRequest\022=\n\006parent\030\001 \001(\tB-\340A" + + "\002\372A\'\n%bigtableadmin.googleapis.com/Insta" + + "nce\022\034\n\017logical_view_id\030\002 \001(\tB\003\340A\002\022@\n\014log" + + "ical_view\030\003 \001(\0132%.google.bigtable.admin." + + "v2.LogicalViewB\003\340A\002\"\307\001\n\031CreateLogicalVie" + + "wMetadata\022L\n\020original_request\030\001 \001(\01322.go" + + "ogle.bigtable.admin.v2.CreateLogicalView" + + "Request\022.\n\nstart_time\030\002 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.goog" + + "le.protobuf.Timestamp\"W\n\025GetLogicalViewR" + + "equest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(bigtablead" + + "min.googleapis.com/LogicalView\"\214\001\n\027ListL" + + "ogicalViewsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372" + + "A*\022(bigtableadmin.googleapis.com/Logical" + + "View\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_tok" + + "en\030\003 \001(\tB\003\340A\001\"q\n\030ListLogicalViewsRespons" + + "e\022<\n\rlogical_views\030\001 \003(\0132%.google.bigtab" + + "le.admin.v2.LogicalView\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\222\001\n\030UpdateLogicalViewRequest\022@\n" + + "\014logical_view\030\001 \001(\0132%.google.bigtable.ad" + + "min.v2.LogicalViewB\003\340A\002\0224\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\307\001" + + "\n\031UpdateLogicalViewMetadata\022L\n\020original_" + + "request\030\001 \001(\01322.google.bigtable.admin.v2" + + ".UpdateLogicalViewRequest\022.\n\nstart_time\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end" + + "_time\030\003 \001(\0132\032.google.protobuf.Timestamp\"" + + "m\n\030DeleteLogicalViewRequest\022>\n\004name\030\001 \001(" + + "\tB0\340A\002\372A*\n(bigtableadmin.googleapis.com/" + + "LogicalView\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"\315\001\n\035Creat" + + "eMaterializedViewRequest\022=\n\006parent\030\001 \001(\t" + + "B-\340A\002\372A\'\n%bigtableadmin.googleapis.com/I" + + "nstance\022!\n\024materialized_view_id\030\002 \001(\tB\003\340" + + "A\002\022J\n\021materialized_view\030\003 \001(\0132*.google.b" + + "igtable.admin.v2.MaterializedViewB\003\340A\002\"\321" + + "\001\n\036CreateMaterializedViewMetadata\022Q\n\020ori" + + "ginal_request\030\001 \001(\01327.google.bigtable.ad" + + "min.v2.CreateMaterializedViewRequest\022.\n\n" + + "start_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobuf" + + ".Timestamp\"a\n\032GetMaterializedViewRequest" + + "\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-bigtableadmin.go" + + "ogleapis.com/MaterializedView\"\226\001\n\034ListMa" + + "terializedViewsRequest\022E\n\006parent\030\001 \001(\tB5" + + "\340A\002\372A/\022-bigtableadmin.googleapis.com/Mat" + + "erializedView\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\npage_token\030\003 \001(\tB\003\340A\001\"\200\001\n\035ListMateriali" + + "zedViewsResponse\022F\n\022materialized_views\030\001" + + " \003(\0132*.google.bigtable.admin.v2.Material" + + "izedView\022\027\n\017next_page_token\030\002 \001(\t\"\241\001\n\035Up" + + "dateMaterializedViewRequest\022J\n\021materiali" + + "zed_view\030\001 \001(\0132*.google.bigtable.admin.v" + + "2.MaterializedViewB\003\340A\002\0224\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\321\001" + + "\n\036UpdateMaterializedViewMetadata\022Q\n\020orig" + + "inal_request\030\001 \001(\01327.google.bigtable.adm" + + "in.v2.UpdateMaterializedViewRequest\022.\n\ns" + + "tart_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\022,\n\010end_time\030\003 \001(\0132\032.google.protobuf." + + "Timestamp\"w\n\035DeleteMaterializedViewReque" + + "st\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-bigtableadmin." + + "googleapis.com/MaterializedView\022\021\n\004etag\030" + + "\002 \001(\tB\003\340A\0012\3466\n\025BigtableInstanceAdmin\022\332\001\n" + + "\016CreateInstance\022/.google.bigtable.admin." + + "v2.CreateInstanceRequest\032\035.google.longru" + + "nning.Operation\"x\312A\"\n\010Instance\022\026CreateIn" + + "stanceMetadata\332A$parent,instance_id,inst" + + "ance,clusters\202\323\344\223\002&\"!/v2/{parent=project" + + "s/*}/instances:\001*\022\221\001\n\013GetInstance\022,.goog" + + "le.bigtable.admin.v2.GetInstanceRequest\032" + + "\".google.bigtable.admin.v2.Instance\"0\332A\004" + + "name\202\323\344\223\002#\022!/v2/{name=projects/*/instanc" + + "es/*}\022\244\001\n\rListInstances\022..google.bigtabl" + + "e.admin.v2.ListInstancesRequest\032/.google" + + ".bigtable.admin.v2.ListInstancesResponse" + + "\"2\332A\006parent\202\323\344\223\002#\022!/v2/{parent=projects/" + + "*}/instances\022\206\001\n\016UpdateInstance\022\".google" + + ".bigtable.admin.v2.Instance\032\".google.big" + + "table.admin.v2.Instance\",\202\323\344\223\002&\032!/v2/{na" + + "me=projects/*/instances/*}:\001*\022\350\001\n\025Partia" + + "lUpdateInstance\0226.google.bigtable.admin." + + "v2.PartialUpdateInstanceRequest\032\035.google" + + ".longrunning.Operation\"x\312A\"\n\010Instance\022\026U" + + "pdateInstanceMetadata\332A\024instance,update_" + + "mask\202\323\344\223\00262*/v2/{instance.name=projects/" + + "*/instances/*}:\010instance\022\213\001\n\016DeleteInsta" + + "nce\022/.google.bigtable.admin.v2.DeleteIns" + + "tanceRequest\032\026.google.protobuf.Empty\"0\332A" + + "\004name\202\323\344\223\002#*!/v2/{name=projects/*/instan" + + "ces/*}\022\334\001\n\rCreateCluster\022..google.bigtab" + + "le.admin.v2.CreateClusterRequest\032\035.googl" + + "e.longrunning.Operation\"|\312A \n\007Cluster\022\025C" + + "reateClusterMetadata\332A\031parent,cluster_id" + + ",cluster\202\323\344\223\0027\",/v2/{parent=projects/*/i" + + "nstances/*}/clusters:\007cluster\022\231\001\n\nGetClu" + + "ster\022+.google.bigtable.admin.v2.GetClust" + + "erRequest\032!.google.bigtable.admin.v2.Clu" + + "ster\";\332A\004name\202\323\344\223\002.\022,/v2/{name=projects/" + + "*/instances/*/clusters/*}\022\254\001\n\014ListCluste" + + "rs\022-.google.bigtable.admin.v2.ListCluste" + + "rsRequest\032..google.bigtable.admin.v2.Lis" + + "tClustersResponse\"=\332A\006parent\202\323\344\223\002.\022,/v2/" + + "{parent=projects/*/instances/*}/clusters" + + "\022\255\001\n\rUpdateCluster\022!.google.bigtable.adm" + + "in.v2.Cluster\032\035.google.longrunning.Opera" + + "tion\"Z\312A \n\007Cluster\022\025UpdateClusterMetadat" + + "a\202\323\344\223\0021\032,/v2/{name=projects/*/instances/" + + "*/clusters/*}:\001*\022\364\001\n\024PartialUpdateCluste" + + "r\0225.google.bigtable.admin.v2.PartialUpda" + + "teClusterRequest\032\035.google.longrunning.Op" + + "eration\"\205\001\312A\'\n\007Cluster\022\034PartialUpdateClu" + + "sterMetadata\332A\023cluster,update_mask\202\323\344\223\002?" + + "24/v2/{cluster.name=projects/*/instances" + + "/*/clusters/*}:\007cluster\022\224\001\n\rDeleteCluste" + + "r\022..google.bigtable.admin.v2.DeleteClust" + + "erRequest\032\026.google.protobuf.Empty\";\332A\004na" + + "me\202\323\344\223\002.*,/v2/{name=projects/*/instances" + + "/*/clusters/*}\022\325\001\n\020CreateAppProfile\0221.go" + + "ogle.bigtable.admin.v2.CreateAppProfileR" + + "equest\032$.google.bigtable.admin.v2.AppPro" + + "file\"h\332A!parent,app_profile_id,app_profi" + + "le\202\323\344\223\002>\"//v2/{parent=projects/*/instanc" + + "es/*}/appProfiles:\013app_profile\022\245\001\n\rGetAp" + + "pProfile\022..google.bigtable.admin.v2.GetA" + + "ppProfileRequest\032$.google.bigtable.admin" + + ".v2.AppProfile\">\332A\004name\202\323\344\223\0021\022//v2/{name" + + "=projects/*/instances/*/appProfiles/*}\022\270" + + "\001\n\017ListAppProfiles\0220.google.bigtable.adm" + + "in.v2.ListAppProfilesRequest\0321.google.bi" + + "gtable.admin.v2.ListAppProfilesResponse\"" + + "@\332A\006parent\202\323\344\223\0021\022//v2/{parent=projects/*" + + "/instances/*}/appProfiles\022\372\001\n\020UpdateAppP" + + "rofile\0221.google.bigtable.admin.v2.Update" + + "AppProfileRequest\032\035.google.longrunning.O" + + "peration\"\223\001\312A&\n\nAppProfile\022\030UpdateAppPro" + + "fileMetadata\332A\027app_profile,update_mask\202\323" + + "\344\223\002J2;/v2/{app_profile.name=projects/*/i" + + "nstances/*/appProfiles/*}:\013app_profile\022\264" + + "\001\n\020DeleteAppProfile\0221.google.bigtable.ad" + + "min.v2.DeleteAppProfileRequest\032\026.google." + + "protobuf.Empty\"U\332A\004name\332A\024name,ignore_wa" + + "rnings\202\323\344\223\0021*//v2/{name=projects/*/insta" + + "nces/*/appProfiles/*}\022\252\002\n\014GetIamPolicy\022\"" + + ".google.iam.v1.GetIamPolicyRequest\032\025.goo" + + "gle.iam.v1.Policy\"\336\001\332A\010resource\202\323\344\223\002\314\001\"2" + + "/v2/{resource=projects/*/instances/*}:ge" + + "tIamPolicy:\001*ZK\"F/v2/{resource=projects/" + + "*/instances/*/materializedViews/*}:getIa" + + "mPolicy:\001*ZF\"A/v2/{resource=projects/*/i" + + "nstances/*/logicalViews/*}:getIamPolicy:" + + "\001*\022\261\002\n\014SetIamPolicy\022\".google.iam.v1.SetI" + + "amPolicyRequest\032\025.google.iam.v1.Policy\"\345" + + "\001\332A\017resource,policy\202\323\344\223\002\314\001\"2/v2/{resourc" + + "e=projects/*/instances/*}:setIamPolicy:\001" + + "*ZK\"F/v2/{resource=projects/*/instances/" + + "*/materializedViews/*}:setIamPolicy:\001*ZF" + + "\"A/v2/{resource=projects/*/instances/*/l" + + "ogicalViews/*}:setIamPolicy:\001*\022\350\002\n\022TestI" + + "amPermissions\022(.google.iam.v1.TestIamPer" + + "missionsRequest\032).google.iam.v1.TestIamP" + + "ermissionsResponse\"\374\001\332A\024resource,permiss" + + "ions\202\323\344\223\002\336\001\"8/v2/{resource=projects/*/in" + + "stances/*}:testIamPermissions:\001*ZQ\"L/v2/" + + "{resource=projects/*/instances/*/materia" + + "lizedViews/*}:testIamPermissions:\001*ZL\"G/" + + "v2/{resource=projects/*/instances/*/logi" + + "calViews/*}:testIamPermissions:\001*\022\277\001\n\016Li" + + "stHotTablets\022/.google.bigtable.admin.v2." + + "ListHotTabletsRequest\0320.google.bigtable." + + "admin.v2.ListHotTabletsResponse\"J\332A\006pare" + + "nt\202\323\344\223\002;\0229/v2/{parent=projects/*/instanc" + + "es/*/clusters/*}/hotTablets\022\200\002\n\021CreateLo" + + "gicalView\0222.google.bigtable.admin.v2.Cre" + + "ateLogicalViewRequest\032\035.google.longrunni" + + "ng.Operation\"\227\001\312A(\n\013LogicalView\022\031CreateL" + + "ogicalViewMetadata\332A#parent,logical_view" + + ",logical_view_id\202\323\344\223\002@\"0/v2/{parent=proj" + + "ects/*/instances/*}/logicalViews:\014logica" + + "l_view\022\251\001\n\016GetLogicalView\022/.google.bigta" + + "ble.admin.v2.GetLogicalViewRequest\032%.goo" + + "gle.bigtable.admin.v2.LogicalView\"?\332A\004na" + + "me\202\323\344\223\0022\0220/v2/{name=projects/*/instances" + + "/*/logicalViews/*}\022\274\001\n\020ListLogicalViews\022" + + "1.google.bigtable.admin.v2.ListLogicalVi" + + "ewsRequest\0322.google.bigtable.admin.v2.Li" + + "stLogicalViewsResponse\"A\332A\006parent\202\323\344\223\0022\022" + + "0/v2/{parent=projects/*/instances/*}/log" + + "icalViews\022\202\002\n\021UpdateLogicalView\0222.google" + + ".bigtable.admin.v2.UpdateLogicalViewRequ" + + "est\032\035.google.longrunning.Operation\"\231\001\312A(" + + "\n\013LogicalView\022\031UpdateLogicalViewMetadata" + + "\332A\030logical_view,update_mask\202\323\344\223\002M2=/v2/{" + + "logical_view.name=projects/*/instances/*" + + "/logicalViews/*}:\014logical_view\022\240\001\n\021Delet" + + "eLogicalView\0222.google.bigtable.admin.v2." + + "DeleteLogicalViewRequest\032\026.google.protob" + + "uf.Empty\"?\332A\004name\202\323\344\223\0022*0/v2/{name=proje" + + "cts/*/instances/*/logicalViews/*}\022\250\002\n\026Cr" + + "eateMaterializedView\0227.google.bigtable.a" + + "dmin.v2.CreateMaterializedViewRequest\032\035." + + "google.longrunning.Operation\"\265\001\312A2\n\020Mate" + + "rializedView\022\036CreateMaterializedViewMeta" + + "data\332A-parent,materialized_view,material" + + "ized_view_id\202\323\344\223\002J\"5/v2/{parent=projects" + + "/*/instances/*}/materializedViews:\021mater" + + "ialized_view\022\275\001\n\023GetMaterializedView\0224.g" + + "oogle.bigtable.admin.v2.GetMaterializedV" + + "iewRequest\032*.google.bigtable.admin.v2.Ma" + + "terializedView\"D\332A\004name\202\323\344\223\0027\0225/v2/{name" + + "=projects/*/instances/*/materializedView" + + "s/*}\022\320\001\n\025ListMaterializedViews\0226.google." + + "bigtable.admin.v2.ListMaterializedViewsR" + + "equest\0327.google.bigtable.admin.v2.ListMa" + + "terializedViewsResponse\"F\332A\006parent\202\323\344\223\0027" + + "\0225/v2/{parent=projects/*/instances/*}/ma" + + "terializedViews\022\252\002\n\026UpdateMaterializedVi" + + "ew\0227.google.bigtable.admin.v2.UpdateMate" + + "rializedViewRequest\032\035.google.longrunning" + + ".Operation\"\267\001\312A2\n\020MaterializedView\022\036Upda" + + "teMaterializedViewMetadata\332A\035materialize" + + "d_view,update_mask\202\323\344\223\002\\2G/v2/{materiali" + + "zed_view.name=projects/*/instances/*/mat" + + "erializedViews/*}:\021materialized_view\022\257\001\n" + + "\026DeleteMaterializedView\0227.google.bigtabl" + + "e.admin.v2.DeleteMaterializedViewRequest" + + "\032\026.google.protobuf.Empty\"D\332A\004name\202\323\344\223\0027*" + + "5/v2/{name=projects/*/instances/*/materi" + + "alizedViews/*}\032\232\003\312A\034bigtableadmin.google" + + "apis.com\322A\367\002https://www.googleapis.com/a" + + "uth/bigtable.admin,https://www.googleapi" + + "s.com/auth/bigtable.admin.cluster,https:" + + "//www.googleapis.com/auth/bigtable.admin" + + ".instance,https://www.googleapis.com/aut" + + "h/cloud-bigtable.admin,https://www.googl" + + "eapis.com/auth/cloud-bigtable.admin.clus" + + "ter,https://www.googleapis.com/auth/clou" + + "d-platform,https://www.googleapis.com/au" + + "th/cloud-platform.read-onlyB\335\001\n\034com.goog" + + "le.bigtable.admin.v2B\032BigtableInstanceAd" + + "minProtoP\001Z8cloud.google.com/go/bigtable" + + "/admin/apiv2/adminpb;adminpb\252\002\036Google.Cl" + + "oud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Big" + + "table\\Admin\\V2\352\002\"Google::Cloud::Bigtable" + + "::Admin::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -638,6 +832,134 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "HotTablets", "NextPageToken", }); + internal_static_google_bigtable_admin_v2_CreateLogicalViewRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_bigtable_admin_v2_CreateLogicalViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_CreateLogicalViewRequest_descriptor, + new java.lang.String[] { + "Parent", "LogicalViewId", "LogicalView", + }); + internal_static_google_bigtable_admin_v2_CreateLogicalViewMetadata_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_bigtable_admin_v2_CreateLogicalViewMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_CreateLogicalViewMetadata_descriptor, + new java.lang.String[] { + "OriginalRequest", "StartTime", "EndTime", + }); + internal_static_google_bigtable_admin_v2_GetLogicalViewRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_bigtable_admin_v2_GetLogicalViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_GetLogicalViewRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_bigtable_admin_v2_ListLogicalViewsRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_bigtable_admin_v2_ListLogicalViewsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_ListLogicalViewsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_bigtable_admin_v2_ListLogicalViewsResponse_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_bigtable_admin_v2_ListLogicalViewsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_ListLogicalViewsResponse_descriptor, + new java.lang.String[] { + "LogicalViews", "NextPageToken", + }); + internal_static_google_bigtable_admin_v2_UpdateLogicalViewRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_bigtable_admin_v2_UpdateLogicalViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_UpdateLogicalViewRequest_descriptor, + new java.lang.String[] { + "LogicalView", "UpdateMask", + }); + internal_static_google_bigtable_admin_v2_UpdateLogicalViewMetadata_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_bigtable_admin_v2_UpdateLogicalViewMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_UpdateLogicalViewMetadata_descriptor, + new java.lang.String[] { + "OriginalRequest", "StartTime", "EndTime", + }); + internal_static_google_bigtable_admin_v2_DeleteLogicalViewRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_bigtable_admin_v2_DeleteLogicalViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_DeleteLogicalViewRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_bigtable_admin_v2_CreateMaterializedViewRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_bigtable_admin_v2_CreateMaterializedViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_CreateMaterializedViewRequest_descriptor, + new java.lang.String[] { + "Parent", "MaterializedViewId", "MaterializedView", + }); + internal_static_google_bigtable_admin_v2_CreateMaterializedViewMetadata_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_bigtable_admin_v2_CreateMaterializedViewMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_CreateMaterializedViewMetadata_descriptor, + new java.lang.String[] { + "OriginalRequest", "StartTime", "EndTime", + }); + internal_static_google_bigtable_admin_v2_GetMaterializedViewRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_bigtable_admin_v2_GetMaterializedViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_GetMaterializedViewRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_bigtable_admin_v2_ListMaterializedViewsRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_bigtable_admin_v2_ListMaterializedViewsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_ListMaterializedViewsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_bigtable_admin_v2_ListMaterializedViewsResponse_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_bigtable_admin_v2_ListMaterializedViewsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_ListMaterializedViewsResponse_descriptor, + new java.lang.String[] { + "MaterializedViews", "NextPageToken", + }); + internal_static_google_bigtable_admin_v2_UpdateMaterializedViewRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_bigtable_admin_v2_UpdateMaterializedViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_UpdateMaterializedViewRequest_descriptor, + new java.lang.String[] { + "MaterializedView", "UpdateMask", + }); + internal_static_google_bigtable_admin_v2_UpdateMaterializedViewMetadata_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_bigtable_admin_v2_UpdateMaterializedViewMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_UpdateMaterializedViewMetadata_descriptor, + new java.lang.String[] { + "OriginalRequest", "StartTime", "EndTime", + }); + internal_static_google_bigtable_admin_v2_DeleteMaterializedViewRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_bigtable_admin_v2_DeleteMaterializedViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_DeleteMaterializedViewRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminProto.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminProto.java index 35f0c646dea3..43cbf26d45da 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminProto.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminProto.java @@ -277,311 +277,312 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "leRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"bigtabl" + "eadmin.googleapis.com/Table\0222\n\004view\030\002 \001(" + "\0162$.google.bigtable.admin.v2.Table.View\"" - + "\177\n\022UpdateTableRequest\0223\n\005table\030\001 \001(\0132\037.g" - + "oogle.bigtable.admin.v2.TableB\003\340A\002\0224\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "askB\003\340A\002\"\201\001\n\023UpdateTableMetadata\022\014\n\004name" - + "\030\001 \001(\t\022.\n\nstart_time\030\002 \001(\0132\032.google.prot" - + "obuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.googl" - + "e.protobuf.Timestamp\"N\n\022DeleteTableReque" - + "st\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"bigtableadmin." - + "googleapis.com/Table\"P\n\024UndeleteTableReq" - + "uest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"bigtableadmi" - + "n.googleapis.com/Table\"\203\001\n\025UndeleteTable" - + "Metadata\022\014\n\004name\030\001 \001(\t\022.\n\nstart_time\030\002 \001" - + "(\0132\032.google.protobuf.Timestamp\022,\n\010end_ti" - + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\"\263\003\n" - + "\033ModifyColumnFamiliesRequest\0228\n\004name\030\001 \001" - + "(\tB*\340A\002\372A$\n\"bigtableadmin.googleapis.com" - + "/Table\022^\n\rmodifications\030\002 \003(\0132B.google.b" - + "igtable.admin.v2.ModifyColumnFamiliesReq" - + "uest.ModificationB\003\340A\002\022\034\n\017ignore_warning" - + "s\030\003 \001(\010B\003\340A\001\032\333\001\n\014Modification\022\n\n\002id\030\001 \001(" - + "\t\0228\n\006create\030\002 \001(\0132&.google.bigtable.admi" - + "n.v2.ColumnFamilyH\000\0228\n\006update\030\003 \001(\0132&.go" - + "ogle.bigtable.admin.v2.ColumnFamilyH\000\022\016\n" - + "\004drop\030\004 \001(\010H\000\0224\n\013update_mask\030\006 \001(\0132\032.goo" - + "gle.protobuf.FieldMaskB\003\340A\001B\005\n\003mod\"[\n\037Ge" - + "nerateConsistencyTokenRequest\0228\n\004name\030\001 " - + "\001(\tB*\340A\002\372A$\n\"bigtableadmin.googleapis.co" - + "m/Table\"=\n GenerateConsistencyTokenRespo" - + "nse\022\031\n\021consistency_token\030\001 \001(\t\"\262\002\n\027Check" - + "ConsistencyRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$" - + "\n\"bigtableadmin.googleapis.com/Table\022\036\n\021" - + "consistency_token\030\002 \001(\tB\003\340A\002\022Y\n\033standard" - + "_read_remote_writes\030\003 \001(\01322.google.bigta" - + "ble.admin.v2.StandardReadRemoteWritesH\000\022" - + "Z\n\034data_boost_read_local_writes\030\004 \001(\01322." - + "google.bigtable.admin.v2.DataBoostReadLo" - + "calWritesH\000B\006\n\004mode\"\032\n\030StandardReadRemot" - + "eWrites\"\032\n\030DataBoostReadLocalWrites\".\n\030C" - + "heckConsistencyResponse\022\022\n\nconsistent\030\001 " - + "\001(\010\"\346\001\n\024SnapshotTableRequest\0228\n\004name\030\001 \001" - + "(\tB*\340A\002\372A$\n\"bigtableadmin.googleapis.com" - + "/Table\022=\n\007cluster\030\002 \001(\tB,\340A\002\372A&\n$bigtabl" - + "eadmin.googleapis.com/Cluster\022\030\n\013snapsho" - + "t_id\030\003 \001(\tB\003\340A\002\022&\n\003ttl\030\004 \001(\0132\031.google.pr" - + "otobuf.Duration\022\023\n\013description\030\005 \001(\t\"Q\n\022" - + "GetSnapshotRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'" - + "\n%bigtableadmin.googleapis.com/Snapshot\"" - + "{\n\024ListSnapshotsRequest\022<\n\006parent\030\001 \001(\tB" - + ",\340A\002\372A&\n$bigtableadmin.googleapis.com/Cl" - + "uster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\"g\n\025ListSnapshotsResponse\0225\n\tsnapsho" - + "ts\030\001 \003(\0132\".google.bigtable.admin.v2.Snap" - + "shot\022\027\n\017next_page_token\030\002 \001(\t\"T\n\025DeleteS" - + "napshotRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%bi" - + "gtableadmin.googleapis.com/Snapshot\"\304\001\n\025" - + "SnapshotTableMetadata\022H\n\020original_reques" - + "t\030\001 \001(\0132..google.bigtable.admin.v2.Snaps" - + "hotTableRequest\0220\n\014request_time\030\002 \001(\0132\032." - + "google.protobuf.Timestamp\022/\n\013finish_time" - + "\030\003 \001(\0132\032.google.protobuf.Timestamp\"\330\001\n\037C" - + "reateTableFromSnapshotMetadata\022R\n\020origin" - + "al_request\030\001 \001(\01328.google.bigtable.admin" - + ".v2.CreateTableFromSnapshotRequest\0220\n\014re" - + "quest_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tamp\022/\n\013finish_time\030\003 \001(\0132\032.google.proto" - + "buf.Timestamp\"\242\001\n\023CreateBackupRequest\022<\n" - + "\006parent\030\001 \001(\tB,\340A\002\372A&\n$bigtableadmin.goo" - + "gleapis.com/Cluster\022\026\n\tbackup_id\030\002 \001(\tB\003" - + "\340A\002\0225\n\006backup\030\003 \001(\0132 .google.bigtable.ad" - + "min.v2.BackupB\003\340A\002\"\230\001\n\024CreateBackupMetad" - + "ata\022\014\n\004name\030\001 \001(\t\022\024\n\014source_table\030\002 \001(\t\022" - + ".\n\nstart_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022,\n\010end_time\030\004 \001(\0132\032.google.proto" - + "buf.Timestamp\"\202\001\n\023UpdateBackupRequest\0225\n" - + "\006backup\030\001 \001(\0132 .google.bigtable.admin.v2" - + ".BackupB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\002\"M\n\020GetBackupR" - + "equest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#bigtablead" - + "min.googleapis.com/Backup\"P\n\023DeleteBacku" - + "pRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#bigtable" - + "admin.googleapis.com/Backup\"\233\001\n\022ListBack" - + "upsRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$bigt" - + "ableadmin.googleapis.com/Cluster\022\016\n\006filt" - + "er\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022\021\n\tpage_size\030" - + "\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\"a\n\023ListBackups" - + "Response\0221\n\007backups\030\001 \003(\0132 .google.bigta" - + "ble.admin.v2.Backup\022\027\n\017next_page_token\030\002" - + " \001(\t\"\343\001\n\021CopyBackupRequest\022<\n\006parent\030\001 \001" - + "(\tB,\340A\002\372A&\n$bigtableadmin.googleapis.com" - + "/Cluster\022\026\n\tbackup_id\030\002 \001(\tB\003\340A\002\022B\n\rsour" - + "ce_backup\030\003 \001(\tB+\340A\002\372A%\n#bigtableadmin.g" - + "oogleapis.com/Backup\0224\n\013expire_time\030\004 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\002\"\315\001\n\022C" - + "opyBackupMetadata\0226\n\004name\030\001 \001(\tB(\372A%\n#bi" - + "gtableadmin.googleapis.com/Backup\022@\n\022sou" - + "rce_backup_info\030\002 \001(\0132$.google.bigtable." - + "admin.v2.BackupInfo\022=\n\010progress\030\003 \001(\0132+." - + "google.bigtable.admin.v2.OperationProgre" - + "ss\"\313\001\n\033CreateAuthorizedViewRequest\022C\n\006pa" - + "rent\030\001 \001(\tB3\340A\002\372A-\022+bigtableadmin.google" - + "apis.com/AuthorizedView\022\037\n\022authorized_vi" - + "ew_id\030\002 \001(\tB\003\340A\002\022F\n\017authorized_view\030\003 \001(" - + "\0132(.google.bigtable.admin.v2.AuthorizedV" - + "iewB\003\340A\002\"\322\001\n\034CreateAuthorizedViewMetadat" - + "a\022O\n\020original_request\030\001 \001(\01325.google.big" - + "table.admin.v2.CreateAuthorizedViewReque" - + "st\0220\n\014request_time\030\002 \001(\0132\032.google.protob" - + "uf.Timestamp\022/\n\013finish_time\030\003 \001(\0132\032.goog" - + "le.protobuf.Timestamp\"\334\001\n\032ListAuthorized" - + "ViewsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+bi" - + "gtableadmin.googleapis.com/AuthorizedVie" - + "w\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030" - + "\003 \001(\tB\003\340A\001\022H\n\004view\030\004 \001(\01625.google.bigtab" - + "le.admin.v2.AuthorizedView.ResponseViewB" - + "\003\340A\001\"z\n\033ListAuthorizedViewsResponse\022B\n\020a" - + "uthorized_views\030\001 \003(\0132(.google.bigtable." - + "admin.v2.AuthorizedView\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"\247\001\n\030GetAuthorizedViewRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n+bigtableadmin.googl" - + "eapis.com/AuthorizedView\022H\n\004view\030\002 \001(\01625" - + ".google.bigtable.admin.v2.AuthorizedView" - + ".ResponseViewB\003\340A\001\"\271\001\n\033UpdateAuthorizedV" - + "iewRequest\022F\n\017authorized_view\030\001 \001(\0132(.go" - + "ogle.bigtable.admin.v2.AuthorizedViewB\003\340" - + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\001\022\034\n\017ignore_warnings\030\003 \001(" - + "\010B\003\340A\001\"\322\001\n\034UpdateAuthorizedViewMetadata\022" - + "O\n\020original_request\030\001 \001(\01325.google.bigta" + + "\235\001\n\022UpdateTableRequest\0223\n\005table\030\001 \001(\0132\037." + + "google.bigtable.admin.v2.TableB\003\340A\002\0224\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\002\022\034\n\017ignore_warnings\030\003 \001(\010B\003\340A\001\"" + + "\201\001\n\023UpdateTableMetadata\022\014\n\004name\030\001 \001(\t\022.\n" + + "\nstart_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\"N\n\022DeleteTableRequest\0228\n\004nam" + + "e\030\001 \001(\tB*\340A\002\372A$\n\"bigtableadmin.googleapi" + + "s.com/Table\"P\n\024UndeleteTableRequest\0228\n\004n" + + "ame\030\001 \001(\tB*\340A\002\372A$\n\"bigtableadmin.googlea" + + "pis.com/Table\"\203\001\n\025UndeleteTableMetadata\022" + + "\014\n\004name\030\001 \001(\t\022.\n\nstart_time\030\002 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022,\n\010end_time\030\003 \001(\0132" + + "\032.google.protobuf.Timestamp\"\263\003\n\033ModifyCo" + + "lumnFamiliesRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A" + + "$\n\"bigtableadmin.googleapis.com/Table\022^\n" + + "\rmodifications\030\002 \003(\0132B.google.bigtable.a" + + "dmin.v2.ModifyColumnFamiliesRequest.Modi" + + "ficationB\003\340A\002\022\034\n\017ignore_warnings\030\003 \001(\010B\003" + + "\340A\001\032\333\001\n\014Modification\022\n\n\002id\030\001 \001(\t\0228\n\006crea" + + "te\030\002 \001(\0132&.google.bigtable.admin.v2.Colu" + + "mnFamilyH\000\0228\n\006update\030\003 \001(\0132&.google.bigt" + + "able.admin.v2.ColumnFamilyH\000\022\016\n\004drop\030\004 \001" + + "(\010H\000\0224\n\013update_mask\030\006 \001(\0132\032.google.proto" + + "buf.FieldMaskB\003\340A\001B\005\n\003mod\"[\n\037GenerateCon" + + "sistencyTokenRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372" + + "A$\n\"bigtableadmin.googleapis.com/Table\"=" + + "\n GenerateConsistencyTokenResponse\022\031\n\021co" + + "nsistency_token\030\001 \001(\t\"\262\002\n\027CheckConsisten" + + "cyRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"bigtabl" + + "eadmin.googleapis.com/Table\022\036\n\021consisten" + + "cy_token\030\002 \001(\tB\003\340A\002\022Y\n\033standard_read_rem" + + "ote_writes\030\003 \001(\01322.google.bigtable.admin" + + ".v2.StandardReadRemoteWritesH\000\022Z\n\034data_b" + + "oost_read_local_writes\030\004 \001(\01322.google.bi" + + "gtable.admin.v2.DataBoostReadLocalWrites" + + "H\000B\006\n\004mode\"\032\n\030StandardReadRemoteWrites\"\032" + + "\n\030DataBoostReadLocalWrites\".\n\030CheckConsi" + + "stencyResponse\022\022\n\nconsistent\030\001 \001(\010\"\346\001\n\024S" + + "napshotTableRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A" + + "$\n\"bigtableadmin.googleapis.com/Table\022=\n" + + "\007cluster\030\002 \001(\tB,\340A\002\372A&\n$bigtableadmin.go" + + "ogleapis.com/Cluster\022\030\n\013snapshot_id\030\003 \001(" + + "\tB\003\340A\002\022&\n\003ttl\030\004 \001(\0132\031.google.protobuf.Du" + + "ration\022\023\n\013description\030\005 \001(\t\"Q\n\022GetSnapsh" + + "otRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%bigtabl" + + "eadmin.googleapis.com/Snapshot\"{\n\024ListSn" + + "apshotsRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$" + + "bigtableadmin.googleapis.com/Cluster\022\021\n\t" + + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"g\n\025L" + + "istSnapshotsResponse\0225\n\tsnapshots\030\001 \003(\0132" + + "\".google.bigtable.admin.v2.Snapshot\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"T\n\025DeleteSnapshotRe" + + "quest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%bigtableadm" + + "in.googleapis.com/Snapshot\"\304\001\n\025SnapshotT" + + "ableMetadata\022H\n\020original_request\030\001 \001(\0132." + + ".google.bigtable.admin.v2.SnapshotTableR" + + "equest\0220\n\014request_time\030\002 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022/\n\013finish_time\030\003 \001(\0132\032." + + "google.protobuf.Timestamp\"\330\001\n\037CreateTabl" + + "eFromSnapshotMetadata\022R\n\020original_reques" + + "t\030\001 \001(\01328.google.bigtable.admin.v2.Creat" + + "eTableFromSnapshotRequest\0220\n\014request_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013f" + + "inish_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp\"\242\001\n\023CreateBackupRequest\022<\n\006parent\030\001" + + " \001(\tB,\340A\002\372A&\n$bigtableadmin.googleapis.c" + + "om/Cluster\022\026\n\tbackup_id\030\002 \001(\tB\003\340A\002\0225\n\006ba" + + "ckup\030\003 \001(\0132 .google.bigtable.admin.v2.Ba" + + "ckupB\003\340A\002\"\230\001\n\024CreateBackupMetadata\022\014\n\004na" + + "me\030\001 \001(\t\022\024\n\014source_table\030\002 \001(\t\022.\n\nstart_" + + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022," + + "\n\010end_time\030\004 \001(\0132\032.google.protobuf.Times" + + "tamp\"\202\001\n\023UpdateBackupRequest\0225\n\006backup\030\001" + + " \001(\0132 .google.bigtable.admin.v2.BackupB\003" + + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\002\"M\n\020GetBackupRequest\0229\n" + + "\004name\030\001 \001(\tB+\340A\002\372A%\n#bigtableadmin.googl" + + "eapis.com/Backup\"P\n\023DeleteBackupRequest\022" + + "9\n\004name\030\001 \001(\tB+\340A\002\372A%\n#bigtableadmin.goo" + + "gleapis.com/Backup\"\233\001\n\022ListBackupsReques" + + "t\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$bigtableadmin" + + ".googleapis.com/Cluster\022\016\n\006filter\030\002 \001(\t\022" + + "\020\n\010order_by\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\n" + + "page_token\030\005 \001(\t\"a\n\023ListBackupsResponse\022" + + "1\n\007backups\030\001 \003(\0132 .google.bigtable.admin" + + ".v2.Backup\022\027\n\017next_page_token\030\002 \001(\t\"\343\001\n\021" + + "CopyBackupRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A" + + "&\n$bigtableadmin.googleapis.com/Cluster\022" + + "\026\n\tbackup_id\030\002 \001(\tB\003\340A\002\022B\n\rsource_backup" + + "\030\003 \001(\tB+\340A\002\372A%\n#bigtableadmin.googleapis" + + ".com/Backup\0224\n\013expire_time\030\004 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\002\"\315\001\n\022CopyBackup" + + "Metadata\0226\n\004name\030\001 \001(\tB(\372A%\n#bigtableadm" + + "in.googleapis.com/Backup\022@\n\022source_backu" + + "p_info\030\002 \001(\0132$.google.bigtable.admin.v2." + + "BackupInfo\022=\n\010progress\030\003 \001(\0132+.google.bi" + + "gtable.admin.v2.OperationProgress\"\313\001\n\033Cr" + + "eateAuthorizedViewRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+bigtableadmin.googleapis.com/" + + "AuthorizedView\022\037\n\022authorized_view_id\030\002 \001" + + "(\tB\003\340A\002\022F\n\017authorized_view\030\003 \001(\0132(.googl" + + "e.bigtable.admin.v2.AuthorizedViewB\003\340A\002\"" + + "\322\001\n\034CreateAuthorizedViewMetadata\022O\n\020orig" + + "inal_request\030\001 \001(\01325.google.bigtable.adm" + + "in.v2.CreateAuthorizedViewRequest\0220\n\014req" + + "uest_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\022/\n\013finish_time\030\003 \001(\0132\032.google.protob" + + "uf.Timestamp\"\334\001\n\032ListAuthorizedViewsRequ" + + "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+bigtableadm" + + "in.googleapis.com/AuthorizedView\022\026\n\tpage" + + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A" + + "\001\022H\n\004view\030\004 \001(\01625.google.bigtable.admin." + + "v2.AuthorizedView.ResponseViewB\003\340A\001\"z\n\033L" + + "istAuthorizedViewsResponse\022B\n\020authorized" + + "_views\030\001 \003(\0132(.google.bigtable.admin.v2." + + "AuthorizedView\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\247\001\n\030GetAuthorizedViewRequest\022A\n\004name\030\001 \001" + + "(\tB3\340A\002\372A-\n+bigtableadmin.googleapis.com" + + "/AuthorizedView\022H\n\004view\030\002 \001(\01625.google.b" + + "igtable.admin.v2.AuthorizedView.Response" + + "ViewB\003\340A\001\"\271\001\n\033UpdateAuthorizedViewReques" + + "t\022F\n\017authorized_view\030\001 \001(\0132(.google.bigt" + + "able.admin.v2.AuthorizedViewB\003\340A\002\0224\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\001\022\034\n\017ignore_warnings\030\003 \001(\010B\003\340A\001\"\322\001" + + "\n\034UpdateAuthorizedViewMetadata\022O\n\020origin" + + "al_request\030\001 \001(\01325.google.bigtable.admin" + + ".v2.UpdateAuthorizedViewRequest\0220\n\014reque" + + "st_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\022/\n\013finish_time\030\003 \001(\0132\032.google.protobuf" + + ".Timestamp\"s\n\033DeleteAuthorizedViewReques" + + "t\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+bigtableadmin.g" + + "oogleapis.com/AuthorizedView\022\021\n\004etag\030\002 \001" + + "(\tB\003\340A\0012\2663\n\022BigtableTableAdmin\022\253\001\n\013Creat" + + "eTable\022,.google.bigtable.admin.v2.Create" + + "TableRequest\032\037.google.bigtable.admin.v2." + + "Table\"M\332A\025parent,table_id,table\202\323\344\223\002/\"*/" + + "v2/{parent=projects/*/instances/*}/table" + + "s:\001*\022\212\002\n\027CreateTableFromSnapshot\0228.googl" + + "e.bigtable.admin.v2.CreateTableFromSnaps" + + "hotRequest\032\035.google.longrunning.Operatio" + + "n\"\225\001\312A(\n\005Table\022\037CreateTableFromSnapshotM" + + "etadata\332A\037parent,table_id,source_snapsho" + + "t\202\323\344\223\002B\"=/v2/{parent=projects/*/instance" + + "s/*}/tables:createFromSnapshot:\001*\022\244\001\n\nLi" + + "stTables\022+.google.bigtable.admin.v2.List" + + "TablesRequest\032,.google.bigtable.admin.v2" + + ".ListTablesResponse\";\332A\006parent\202\323\344\223\002,\022*/v" + + "2/{parent=projects/*/instances/*}/tables" + + "\022\221\001\n\010GetTable\022).google.bigtable.admin.v2" + + ".GetTableRequest\032\037.google.bigtable.admin" + + ".v2.Table\"9\332A\004name\202\323\344\223\002,\022*/v2/{name=proj" + + "ects/*/instances/*/tables/*}\022\316\001\n\013UpdateT" + + "able\022,.google.bigtable.admin.v2.UpdateTa" + + "bleRequest\032\035.google.longrunning.Operatio" + + "n\"r\312A\034\n\005Table\022\023UpdateTableMetadata\332A\021tab" + + "le,update_mask\202\323\344\223\002920/v2/{table.name=pr" + + "ojects/*/instances/*/tables/*}:\005table\022\216\001" + + "\n\013DeleteTable\022,.google.bigtable.admin.v2" + + ".DeleteTableRequest\032\026.google.protobuf.Em" + + "pty\"9\332A\004name\202\323\344\223\002,**/v2/{name=projects/*" + + "/instances/*/tables/*}\022\306\001\n\rUndeleteTable" + + "\022..google.bigtable.admin.v2.UndeleteTabl" + + "eRequest\032\035.google.longrunning.Operation\"" + + "f\312A\036\n\005Table\022\025UndeleteTableMetadata\332A\004nam" + + "e\202\323\344\223\0028\"3/v2/{name=projects/*/instances/" + + "*/tables/*}:undelete:\001*\022\241\002\n\024CreateAuthor" + + "izedView\0225.google.bigtable.admin.v2.Crea" + + "teAuthorizedViewRequest\032\035.google.longrun" + + "ning.Operation\"\262\001\312A.\n\016AuthorizedView\022\034Cr" + + "eateAuthorizedViewMetadata\332A)parent,auth" + + "orized_view,authorized_view_id\202\323\344\223\002O\"\022\022\022\022** @@ -2418,7 +2417,6 @@ public interface EncryptionConfigOrBuilder * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. * 2) Only regional keys can be used and the region of the CMEK key must * match the region of the cluster. - * 3) All clusters within an instance must use the same CMEK key. * Values are of the form * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` * @@ -2489,7 +2487,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. * 2) Only regional keys can be used and the region of the CMEK key must * match the region of the cluster. - * 3) All clusters within an instance must use the same CMEK key. * Values are of the form * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` * @@ -2521,7 +2518,6 @@ public java.lang.String getKmsKeyName() { * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. * 2) Only regional keys can be used and the region of the CMEK key must * match the region of the cluster. - * 3) All clusters within an instance must use the same CMEK key. * Values are of the form * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` * @@ -2903,7 +2899,6 @@ public Builder mergeFrom( * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. * 2) Only regional keys can be used and the region of the CMEK key must * match the region of the cluster. - * 3) All clusters within an instance must use the same CMEK key. * Values are of the form * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` * @@ -2934,7 +2929,6 @@ public java.lang.String getKmsKeyName() { * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. * 2) Only regional keys can be used and the region of the CMEK key must * match the region of the cluster. - * 3) All clusters within an instance must use the same CMEK key. * Values are of the form * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` * @@ -2965,7 +2959,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. * 2) Only regional keys can be used and the region of the CMEK key must * match the region of the cluster. - * 3) All clusters within an instance must use the same CMEK key. * Values are of the form * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` * @@ -2995,7 +2988,6 @@ public Builder setKmsKeyName(java.lang.String value) { * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. * 2) Only regional keys can be used and the region of the CMEK key must * match the region of the cluster. - * 3) All clusters within an instance must use the same CMEK key. * Values are of the form * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` * @@ -3021,7 +3013,6 @@ public Builder clearKmsKeyName() { * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. * 2) Only regional keys can be used and the region of the CMEK key must * match the region of the cluster. - * 3) All clusters within an instance must use the same CMEK key. * Values are of the form * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` * @@ -3312,8 +3303,9 @@ public com.google.bigtable.admin.v2.Cluster.State getState() { * * *
    -   * The number of nodes allocated to this cluster. More nodes enable higher
    -   * throughput and more consistent performance.
    +   * The number of nodes in the cluster. If no value is set,
    +   * Cloud Bigtable automatically allocates nodes based on your data footprint
    +   * and optimized for 50% storage utilization.
        * 
    * * int32 serve_nodes = 4; @@ -4434,8 +4426,9 @@ public Builder clearState() { * * *
    -     * The number of nodes allocated to this cluster. More nodes enable higher
    -     * throughput and more consistent performance.
    +     * The number of nodes in the cluster. If no value is set,
    +     * Cloud Bigtable automatically allocates nodes based on your data footprint
    +     * and optimized for 50% storage utilization.
          * 
    * * int32 serve_nodes = 4; @@ -4450,8 +4443,9 @@ public int getServeNodes() { * * *
    -     * The number of nodes allocated to this cluster. More nodes enable higher
    -     * throughput and more consistent performance.
    +     * The number of nodes in the cluster. If no value is set,
    +     * Cloud Bigtable automatically allocates nodes based on your data footprint
    +     * and optimized for 50% storage utilization.
          * 
    * * int32 serve_nodes = 4; @@ -4470,8 +4464,9 @@ public Builder setServeNodes(int value) { * * *
    -     * The number of nodes allocated to this cluster. More nodes enable higher
    -     * throughput and more consistent performance.
    +     * The number of nodes in the cluster. If no value is set,
    +     * Cloud Bigtable automatically allocates nodes based on your data footprint
    +     * and optimized for 50% storage utilization.
          * 
    * * int32 serve_nodes = 4; diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ClusterOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ClusterOrBuilder.java index fbb5edd51481..d301e51b68a6 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ClusterOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ClusterOrBuilder.java @@ -119,8 +119,9 @@ public interface ClusterOrBuilder * * *
    -   * The number of nodes allocated to this cluster. More nodes enable higher
    -   * throughput and more consistent performance.
    +   * The number of nodes in the cluster. If no value is set,
    +   * Cloud Bigtable automatically allocates nodes based on your data footprint
    +   * and optimized for 50% storage utilization.
        * 
    * * int32 serve_nodes = 4; diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequest.java index 049e053af871..4e915e642e3b 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequest.java @@ -287,7 +287,6 @@ public int getClustersCount() { * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -315,7 +314,6 @@ public java.util.Map get * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -334,7 +332,6 @@ public java.util.Map get * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -361,7 +358,6 @@ public java.util.Map get * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -1365,7 +1361,6 @@ public int getClustersCount() { * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -1393,7 +1388,6 @@ public java.util.Map get * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -1412,7 +1406,6 @@ public java.util.Map get * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -1439,7 +1432,6 @@ public java.util.Map get * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -1472,7 +1464,6 @@ public Builder clearClusters() { * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -1501,7 +1492,6 @@ public Builder removeClusters(java.lang.String key) { * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -1527,7 +1517,6 @@ public Builder putClusters(java.lang.String key, com.google.bigtable.admin.v2.Cl * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -1554,7 +1543,6 @@ public Builder putAllClusters( * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequestOrBuilder.java index 1c36ad2460e6..e8dfdd4c8a50 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequestOrBuilder.java @@ -136,7 +136,6 @@ public interface CreateInstanceRequestOrBuilder * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -152,7 +151,6 @@ public interface CreateInstanceRequestOrBuilder * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -171,7 +169,6 @@ public interface CreateInstanceRequestOrBuilder * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -187,7 +184,6 @@ public interface CreateInstanceRequestOrBuilder * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * @@ -207,7 +203,6 @@ com.google.bigtable.admin.v2.Cluster getClustersOrDefault( * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently, at most four clusters can be specified. * * * diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateLogicalViewMetadata.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateLogicalViewMetadata.java new file mode 100644 index 000000000000..5eb8856a157a --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateLogicalViewMetadata.java @@ -0,0 +1,1261 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * The metadata for the Operation returned by CreateLogicalView.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.CreateLogicalViewMetadata} + */ +public final class CreateLogicalViewMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.CreateLogicalViewMetadata) + CreateLogicalViewMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateLogicalViewMetadata.newBuilder() to construct. + private CreateLogicalViewMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateLogicalViewMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateLogicalViewMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateLogicalViewMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateLogicalViewMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.CreateLogicalViewMetadata.class, + com.google.bigtable.admin.v2.CreateLogicalViewMetadata.Builder.class); + } + + private int bitField0_; + public static final int ORIGINAL_REQUEST_FIELD_NUMBER = 1; + private com.google.bigtable.admin.v2.CreateLogicalViewRequest originalRequest_; + /** + * + * + *
    +   * The request that prompted the initiation of this CreateLogicalView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + * + * @return Whether the originalRequest field is set. + */ + @java.lang.Override + public boolean hasOriginalRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The request that prompted the initiation of this CreateLogicalView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + * + * @return The originalRequest. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.CreateLogicalViewRequest getOriginalRequest() { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.CreateLogicalViewRequest.getDefaultInstance() + : originalRequest_; + } + /** + * + * + *
    +   * The request that prompted the initiation of this CreateLogicalView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.CreateLogicalViewRequestOrBuilder + getOriginalRequestOrBuilder() { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.CreateLogicalViewRequest.getDefaultInstance() + : originalRequest_; + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
    +   * The time at which this operation started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * The time at which this operation started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
    +   * The time at which this operation started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOriginalRequest()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOriginalRequest()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + 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.bigtable.admin.v2.CreateLogicalViewMetadata)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.CreateLogicalViewMetadata other = + (com.google.bigtable.admin.v2.CreateLogicalViewMetadata) obj; + + if (hasOriginalRequest() != other.hasOriginalRequest()) return false; + if (hasOriginalRequest()) { + if (!getOriginalRequest().equals(other.getOriginalRequest())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) 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 (hasOriginalRequest()) { + hash = (37 * hash) + ORIGINAL_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getOriginalRequest().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewMetadata 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.bigtable.admin.v2.CreateLogicalViewMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewMetadata 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.bigtable.admin.v2.CreateLogicalViewMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewMetadata 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.bigtable.admin.v2.CreateLogicalViewMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewMetadata 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.bigtable.admin.v2.CreateLogicalViewMetadata 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 metadata for the Operation returned by CreateLogicalView.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.CreateLogicalViewMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.CreateLogicalViewMetadata) + com.google.bigtable.admin.v2.CreateLogicalViewMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateLogicalViewMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateLogicalViewMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.CreateLogicalViewMetadata.class, + com.google.bigtable.admin.v2.CreateLogicalViewMetadata.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.CreateLogicalViewMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOriginalRequestFieldBuilder(); + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + originalRequest_ = null; + if (originalRequestBuilder_ != null) { + originalRequestBuilder_.dispose(); + originalRequestBuilder_ = null; + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateLogicalViewMetadata_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CreateLogicalViewMetadata getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.CreateLogicalViewMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CreateLogicalViewMetadata build() { + com.google.bigtable.admin.v2.CreateLogicalViewMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CreateLogicalViewMetadata buildPartial() { + com.google.bigtable.admin.v2.CreateLogicalViewMetadata result = + new com.google.bigtable.admin.v2.CreateLogicalViewMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.CreateLogicalViewMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.originalRequest_ = + originalRequestBuilder_ == null ? originalRequest_ : originalRequestBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @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.bigtable.admin.v2.CreateLogicalViewMetadata) { + return mergeFrom((com.google.bigtable.admin.v2.CreateLogicalViewMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.CreateLogicalViewMetadata other) { + if (other == com.google.bigtable.admin.v2.CreateLogicalViewMetadata.getDefaultInstance()) + return this; + if (other.hasOriginalRequest()) { + mergeOriginalRequest(other.getOriginalRequest()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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(getOriginalRequestFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.bigtable.admin.v2.CreateLogicalViewRequest originalRequest_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.CreateLogicalViewRequest, + com.google.bigtable.admin.v2.CreateLogicalViewRequest.Builder, + com.google.bigtable.admin.v2.CreateLogicalViewRequestOrBuilder> + originalRequestBuilder_; + /** + * + * + *
    +     * The request that prompted the initiation of this CreateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + * + * @return Whether the originalRequest field is set. + */ + public boolean hasOriginalRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + * + * @return The originalRequest. + */ + public com.google.bigtable.admin.v2.CreateLogicalViewRequest getOriginalRequest() { + if (originalRequestBuilder_ == null) { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.CreateLogicalViewRequest.getDefaultInstance() + : originalRequest_; + } else { + return originalRequestBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + */ + public Builder setOriginalRequest(com.google.bigtable.admin.v2.CreateLogicalViewRequest value) { + if (originalRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + originalRequest_ = value; + } else { + originalRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + */ + public Builder setOriginalRequest( + com.google.bigtable.admin.v2.CreateLogicalViewRequest.Builder builderForValue) { + if (originalRequestBuilder_ == null) { + originalRequest_ = builderForValue.build(); + } else { + originalRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + */ + public Builder mergeOriginalRequest( + com.google.bigtable.admin.v2.CreateLogicalViewRequest value) { + if (originalRequestBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && originalRequest_ != null + && originalRequest_ + != com.google.bigtable.admin.v2.CreateLogicalViewRequest.getDefaultInstance()) { + getOriginalRequestBuilder().mergeFrom(value); + } else { + originalRequest_ = value; + } + } else { + originalRequestBuilder_.mergeFrom(value); + } + if (originalRequest_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + */ + public Builder clearOriginalRequest() { + bitField0_ = (bitField0_ & ~0x00000001); + originalRequest_ = null; + if (originalRequestBuilder_ != null) { + originalRequestBuilder_.dispose(); + originalRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + */ + public com.google.bigtable.admin.v2.CreateLogicalViewRequest.Builder + getOriginalRequestBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOriginalRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + */ + public com.google.bigtable.admin.v2.CreateLogicalViewRequestOrBuilder + getOriginalRequestOrBuilder() { + if (originalRequestBuilder_ != null) { + return originalRequestBuilder_.getMessageOrBuilder(); + } else { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.CreateLogicalViewRequest.getDefaultInstance() + : originalRequest_; + } + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.CreateLogicalViewRequest, + com.google.bigtable.admin.v2.CreateLogicalViewRequest.Builder, + com.google.bigtable.admin.v2.CreateLogicalViewRequestOrBuilder> + getOriginalRequestFieldBuilder() { + if (originalRequestBuilder_ == null) { + originalRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.CreateLogicalViewRequest, + com.google.bigtable.admin.v2.CreateLogicalViewRequest.Builder, + com.google.bigtable.admin.v2.CreateLogicalViewRequestOrBuilder>( + getOriginalRequest(), getParentForChildren(), isClean()); + originalRequest_ = null; + } + return originalRequestBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @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.bigtable.admin.v2.CreateLogicalViewMetadata) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateLogicalViewMetadata) + private static final com.google.bigtable.admin.v2.CreateLogicalViewMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.CreateLogicalViewMetadata(); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateLogicalViewMetadata 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.bigtable.admin.v2.CreateLogicalViewMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateLogicalViewMetadataOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateLogicalViewMetadataOrBuilder.java new file mode 100644 index 000000000000..04cdbe160e6d --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateLogicalViewMetadataOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface CreateLogicalViewMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.CreateLogicalViewMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The request that prompted the initiation of this CreateLogicalView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + * + * @return Whether the originalRequest field is set. + */ + boolean hasOriginalRequest(); + /** + * + * + *
    +   * The request that prompted the initiation of this CreateLogicalView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + * + * @return The originalRequest. + */ + com.google.bigtable.admin.v2.CreateLogicalViewRequest getOriginalRequest(); + /** + * + * + *
    +   * The request that prompted the initiation of this CreateLogicalView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + */ + com.google.bigtable.admin.v2.CreateLogicalViewRequestOrBuilder getOriginalRequestOrBuilder(); + + /** + * + * + *
    +   * The time at which this operation started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
    +   * The time at which this operation started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
    +   * The time at which this operation started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateLogicalViewRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateLogicalViewRequest.java new file mode 100644 index 000000000000..f2a75dd2f278 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateLogicalViewRequest.java @@ -0,0 +1,1141 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * Request message for BigtableInstanceAdmin.CreateLogicalView.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.CreateLogicalViewRequest} + */ +public final class CreateLogicalViewRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.CreateLogicalViewRequest) + CreateLogicalViewRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateLogicalViewRequest.newBuilder() to construct. + private CreateLogicalViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateLogicalViewRequest() { + parent_ = ""; + logicalViewId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateLogicalViewRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateLogicalViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateLogicalViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.CreateLogicalViewRequest.class, + com.google.bigtable.admin.v2.CreateLogicalViewRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The parent instance where this logical view will be created.
    +   * Format: `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * 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. The parent instance where this logical view will be created.
    +   * Format: `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * 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 LOGICAL_VIEW_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object logicalViewId_ = ""; + /** + * + * + *
    +   * Required. The ID to use for the logical view, which will become the final
    +   * component of the logical view's resource name.
    +   * 
    + * + * string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The logicalViewId. + */ + @java.lang.Override + public java.lang.String getLogicalViewId() { + java.lang.Object ref = logicalViewId_; + 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(); + logicalViewId_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The ID to use for the logical view, which will become the final
    +   * component of the logical view's resource name.
    +   * 
    + * + * string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for logicalViewId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLogicalViewIdBytes() { + java.lang.Object ref = logicalViewId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logicalViewId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGICAL_VIEW_FIELD_NUMBER = 3; + private com.google.bigtable.admin.v2.LogicalView logicalView_; + /** + * + * + *
    +   * Required. The logical view to create.
    +   * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the logicalView field is set. + */ + @java.lang.Override + public boolean hasLogicalView() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Required. The logical view to create.
    +   * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The logicalView. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.LogicalView getLogicalView() { + return logicalView_ == null + ? com.google.bigtable.admin.v2.LogicalView.getDefaultInstance() + : logicalView_; + } + /** + * + * + *
    +   * Required. The logical view to create.
    +   * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.bigtable.admin.v2.LogicalViewOrBuilder getLogicalViewOrBuilder() { + return logicalView_ == null + ? com.google.bigtable.admin.v2.LogicalView.getDefaultInstance() + : logicalView_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logicalViewId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, logicalViewId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getLogicalView()); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logicalViewId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, logicalViewId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLogicalView()); + } + 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.bigtable.admin.v2.CreateLogicalViewRequest)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.CreateLogicalViewRequest other = + (com.google.bigtable.admin.v2.CreateLogicalViewRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getLogicalViewId().equals(other.getLogicalViewId())) return false; + if (hasLogicalView() != other.hasLogicalView()) return false; + if (hasLogicalView()) { + if (!getLogicalView().equals(other.getLogicalView())) 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(); + hash = (37 * hash) + LOGICAL_VIEW_ID_FIELD_NUMBER; + hash = (53 * hash) + getLogicalViewId().hashCode(); + if (hasLogicalView()) { + hash = (37 * hash) + LOGICAL_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getLogicalView().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewRequest 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.bigtable.admin.v2.CreateLogicalViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewRequest 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.bigtable.admin.v2.CreateLogicalViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewRequest 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.bigtable.admin.v2.CreateLogicalViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewRequest 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.bigtable.admin.v2.CreateLogicalViewRequest 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; + } + /** + * + * + *
    +   * Request message for BigtableInstanceAdmin.CreateLogicalView.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.CreateLogicalViewRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.CreateLogicalViewRequest) + com.google.bigtable.admin.v2.CreateLogicalViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateLogicalViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateLogicalViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.CreateLogicalViewRequest.class, + com.google.bigtable.admin.v2.CreateLogicalViewRequest.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.CreateLogicalViewRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLogicalViewFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + logicalViewId_ = ""; + logicalView_ = null; + if (logicalViewBuilder_ != null) { + logicalViewBuilder_.dispose(); + logicalViewBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateLogicalViewRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CreateLogicalViewRequest getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.CreateLogicalViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CreateLogicalViewRequest build() { + com.google.bigtable.admin.v2.CreateLogicalViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CreateLogicalViewRequest buildPartial() { + com.google.bigtable.admin.v2.CreateLogicalViewRequest result = + new com.google.bigtable.admin.v2.CreateLogicalViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.CreateLogicalViewRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.logicalViewId_ = logicalViewId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.logicalView_ = + logicalViewBuilder_ == null ? logicalView_ : logicalViewBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.bigtable.admin.v2.CreateLogicalViewRequest) { + return mergeFrom((com.google.bigtable.admin.v2.CreateLogicalViewRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.CreateLogicalViewRequest other) { + if (other == com.google.bigtable.admin.v2.CreateLogicalViewRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLogicalViewId().isEmpty()) { + logicalViewId_ = other.logicalViewId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasLogicalView()) { + mergeLogicalView(other.getLogicalView()); + } + 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: + { + logicalViewId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getLogicalViewFieldBuilder().getBuilder(), extensionRegistry); + 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. The parent instance where this logical view will be created.
    +     * Format: `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The parent instance where this logical view will be created.
    +     * Format: `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The parent instance where this logical view will be created.
    +     * Format: `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The parent instance where this logical view will be created.
    +     * Format: `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The parent instance where this logical view will be created.
    +     * Format: `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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 java.lang.Object logicalViewId_ = ""; + /** + * + * + *
    +     * Required. The ID to use for the logical view, which will become the final
    +     * component of the logical view's resource name.
    +     * 
    + * + * string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The logicalViewId. + */ + public java.lang.String getLogicalViewId() { + java.lang.Object ref = logicalViewId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logicalViewId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The ID to use for the logical view, which will become the final
    +     * component of the logical view's resource name.
    +     * 
    + * + * string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for logicalViewId. + */ + public com.google.protobuf.ByteString getLogicalViewIdBytes() { + java.lang.Object ref = logicalViewId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logicalViewId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The ID to use for the logical view, which will become the final
    +     * component of the logical view's resource name.
    +     * 
    + * + * string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The logicalViewId to set. + * @return This builder for chaining. + */ + public Builder setLogicalViewId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + logicalViewId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The ID to use for the logical view, which will become the final
    +     * component of the logical view's resource name.
    +     * 
    + * + * string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLogicalViewId() { + logicalViewId_ = getDefaultInstance().getLogicalViewId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The ID to use for the logical view, which will become the final
    +     * component of the logical view's resource name.
    +     * 
    + * + * string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for logicalViewId to set. + * @return This builder for chaining. + */ + public Builder setLogicalViewIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logicalViewId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.bigtable.admin.v2.LogicalView logicalView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.LogicalView, + com.google.bigtable.admin.v2.LogicalView.Builder, + com.google.bigtable.admin.v2.LogicalViewOrBuilder> + logicalViewBuilder_; + /** + * + * + *
    +     * Required. The logical view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the logicalView field is set. + */ + public boolean hasLogicalView() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Required. The logical view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The logicalView. + */ + public com.google.bigtable.admin.v2.LogicalView getLogicalView() { + if (logicalViewBuilder_ == null) { + return logicalView_ == null + ? com.google.bigtable.admin.v2.LogicalView.getDefaultInstance() + : logicalView_; + } else { + return logicalViewBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The logical view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLogicalView(com.google.bigtable.admin.v2.LogicalView value) { + if (logicalViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + logicalView_ = value; + } else { + logicalViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The logical view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLogicalView( + com.google.bigtable.admin.v2.LogicalView.Builder builderForValue) { + if (logicalViewBuilder_ == null) { + logicalView_ = builderForValue.build(); + } else { + logicalViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The logical view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLogicalView(com.google.bigtable.admin.v2.LogicalView value) { + if (logicalViewBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && logicalView_ != null + && logicalView_ != com.google.bigtable.admin.v2.LogicalView.getDefaultInstance()) { + getLogicalViewBuilder().mergeFrom(value); + } else { + logicalView_ = value; + } + } else { + logicalViewBuilder_.mergeFrom(value); + } + if (logicalView_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Required. The logical view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLogicalView() { + bitField0_ = (bitField0_ & ~0x00000004); + logicalView_ = null; + if (logicalViewBuilder_ != null) { + logicalViewBuilder_.dispose(); + logicalViewBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The logical view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.bigtable.admin.v2.LogicalView.Builder getLogicalViewBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getLogicalViewFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The logical view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.bigtable.admin.v2.LogicalViewOrBuilder getLogicalViewOrBuilder() { + if (logicalViewBuilder_ != null) { + return logicalViewBuilder_.getMessageOrBuilder(); + } else { + return logicalView_ == null + ? com.google.bigtable.admin.v2.LogicalView.getDefaultInstance() + : logicalView_; + } + } + /** + * + * + *
    +     * Required. The logical view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.LogicalView, + com.google.bigtable.admin.v2.LogicalView.Builder, + com.google.bigtable.admin.v2.LogicalViewOrBuilder> + getLogicalViewFieldBuilder() { + if (logicalViewBuilder_ == null) { + logicalViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.LogicalView, + com.google.bigtable.admin.v2.LogicalView.Builder, + com.google.bigtable.admin.v2.LogicalViewOrBuilder>( + getLogicalView(), getParentForChildren(), isClean()); + logicalView_ = null; + } + return logicalViewBuilder_; + } + + @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.bigtable.admin.v2.CreateLogicalViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateLogicalViewRequest) + private static final com.google.bigtable.admin.v2.CreateLogicalViewRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.CreateLogicalViewRequest(); + } + + public static com.google.bigtable.admin.v2.CreateLogicalViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateLogicalViewRequest 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.bigtable.admin.v2.CreateLogicalViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateLogicalViewRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateLogicalViewRequestOrBuilder.java new file mode 100644 index 000000000000..3fa291e3b05c --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateLogicalViewRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface CreateLogicalViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.CreateLogicalViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent instance where this logical view will be created.
    +   * Format: `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
    +   * Required. The parent instance where this logical view will be created.
    +   * Format: `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The ID to use for the logical view, which will become the final
    +   * component of the logical view's resource name.
    +   * 
    + * + * string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The logicalViewId. + */ + java.lang.String getLogicalViewId(); + /** + * + * + *
    +   * Required. The ID to use for the logical view, which will become the final
    +   * component of the logical view's resource name.
    +   * 
    + * + * string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for logicalViewId. + */ + com.google.protobuf.ByteString getLogicalViewIdBytes(); + + /** + * + * + *
    +   * Required. The logical view to create.
    +   * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the logicalView field is set. + */ + boolean hasLogicalView(); + /** + * + * + *
    +   * Required. The logical view to create.
    +   * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The logicalView. + */ + com.google.bigtable.admin.v2.LogicalView getLogicalView(); + /** + * + * + *
    +   * Required. The logical view to create.
    +   * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.bigtable.admin.v2.LogicalViewOrBuilder getLogicalViewOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateMaterializedViewMetadata.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateMaterializedViewMetadata.java new file mode 100644 index 000000000000..9ee2b2a618cf --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateMaterializedViewMetadata.java @@ -0,0 +1,1264 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * The metadata for the Operation returned by CreateMaterializedView.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.CreateMaterializedViewMetadata} + */ +public final class CreateMaterializedViewMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.CreateMaterializedViewMetadata) + CreateMaterializedViewMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateMaterializedViewMetadata.newBuilder() to construct. + private CreateMaterializedViewMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateMaterializedViewMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMaterializedViewMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateMaterializedViewMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateMaterializedViewMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.CreateMaterializedViewMetadata.class, + com.google.bigtable.admin.v2.CreateMaterializedViewMetadata.Builder.class); + } + + private int bitField0_; + public static final int ORIGINAL_REQUEST_FIELD_NUMBER = 1; + private com.google.bigtable.admin.v2.CreateMaterializedViewRequest originalRequest_; + /** + * + * + *
    +   * The request that prompted the initiation of this CreateMaterializedView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + * + * @return Whether the originalRequest field is set. + */ + @java.lang.Override + public boolean hasOriginalRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The request that prompted the initiation of this CreateMaterializedView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + * + * @return The originalRequest. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.CreateMaterializedViewRequest getOriginalRequest() { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.CreateMaterializedViewRequest.getDefaultInstance() + : originalRequest_; + } + /** + * + * + *
    +   * The request that prompted the initiation of this CreateMaterializedView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.CreateMaterializedViewRequestOrBuilder + getOriginalRequestOrBuilder() { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.CreateMaterializedViewRequest.getDefaultInstance() + : originalRequest_; + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
    +   * The time at which this operation started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * The time at which this operation started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
    +   * The time at which this operation started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOriginalRequest()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOriginalRequest()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + 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.bigtable.admin.v2.CreateMaterializedViewMetadata)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.CreateMaterializedViewMetadata other = + (com.google.bigtable.admin.v2.CreateMaterializedViewMetadata) obj; + + if (hasOriginalRequest() != other.hasOriginalRequest()) return false; + if (hasOriginalRequest()) { + if (!getOriginalRequest().equals(other.getOriginalRequest())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) 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 (hasOriginalRequest()) { + hash = (37 * hash) + ORIGINAL_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getOriginalRequest().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewMetadata 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.bigtable.admin.v2.CreateMaterializedViewMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewMetadata 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.bigtable.admin.v2.CreateMaterializedViewMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewMetadata 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.bigtable.admin.v2.CreateMaterializedViewMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewMetadata 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.bigtable.admin.v2.CreateMaterializedViewMetadata 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 metadata for the Operation returned by CreateMaterializedView.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.CreateMaterializedViewMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.CreateMaterializedViewMetadata) + com.google.bigtable.admin.v2.CreateMaterializedViewMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateMaterializedViewMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateMaterializedViewMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.CreateMaterializedViewMetadata.class, + com.google.bigtable.admin.v2.CreateMaterializedViewMetadata.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.CreateMaterializedViewMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOriginalRequestFieldBuilder(); + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + originalRequest_ = null; + if (originalRequestBuilder_ != null) { + originalRequestBuilder_.dispose(); + originalRequestBuilder_ = null; + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateMaterializedViewMetadata_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CreateMaterializedViewMetadata getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.CreateMaterializedViewMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CreateMaterializedViewMetadata build() { + com.google.bigtable.admin.v2.CreateMaterializedViewMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CreateMaterializedViewMetadata buildPartial() { + com.google.bigtable.admin.v2.CreateMaterializedViewMetadata result = + new com.google.bigtable.admin.v2.CreateMaterializedViewMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.CreateMaterializedViewMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.originalRequest_ = + originalRequestBuilder_ == null ? originalRequest_ : originalRequestBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @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.bigtable.admin.v2.CreateMaterializedViewMetadata) { + return mergeFrom((com.google.bigtable.admin.v2.CreateMaterializedViewMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.CreateMaterializedViewMetadata other) { + if (other == com.google.bigtable.admin.v2.CreateMaterializedViewMetadata.getDefaultInstance()) + return this; + if (other.hasOriginalRequest()) { + mergeOriginalRequest(other.getOriginalRequest()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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(getOriginalRequestFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.bigtable.admin.v2.CreateMaterializedViewRequest originalRequest_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.CreateMaterializedViewRequest, + com.google.bigtable.admin.v2.CreateMaterializedViewRequest.Builder, + com.google.bigtable.admin.v2.CreateMaterializedViewRequestOrBuilder> + originalRequestBuilder_; + /** + * + * + *
    +     * The request that prompted the initiation of this CreateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + * + * @return Whether the originalRequest field is set. + */ + public boolean hasOriginalRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + * + * @return The originalRequest. + */ + public com.google.bigtable.admin.v2.CreateMaterializedViewRequest getOriginalRequest() { + if (originalRequestBuilder_ == null) { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.CreateMaterializedViewRequest.getDefaultInstance() + : originalRequest_; + } else { + return originalRequestBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + */ + public Builder setOriginalRequest( + com.google.bigtable.admin.v2.CreateMaterializedViewRequest value) { + if (originalRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + originalRequest_ = value; + } else { + originalRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + */ + public Builder setOriginalRequest( + com.google.bigtable.admin.v2.CreateMaterializedViewRequest.Builder builderForValue) { + if (originalRequestBuilder_ == null) { + originalRequest_ = builderForValue.build(); + } else { + originalRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + */ + public Builder mergeOriginalRequest( + com.google.bigtable.admin.v2.CreateMaterializedViewRequest value) { + if (originalRequestBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && originalRequest_ != null + && originalRequest_ + != com.google.bigtable.admin.v2.CreateMaterializedViewRequest + .getDefaultInstance()) { + getOriginalRequestBuilder().mergeFrom(value); + } else { + originalRequest_ = value; + } + } else { + originalRequestBuilder_.mergeFrom(value); + } + if (originalRequest_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + */ + public Builder clearOriginalRequest() { + bitField0_ = (bitField0_ & ~0x00000001); + originalRequest_ = null; + if (originalRequestBuilder_ != null) { + originalRequestBuilder_.dispose(); + originalRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + */ + public com.google.bigtable.admin.v2.CreateMaterializedViewRequest.Builder + getOriginalRequestBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOriginalRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + */ + public com.google.bigtable.admin.v2.CreateMaterializedViewRequestOrBuilder + getOriginalRequestOrBuilder() { + if (originalRequestBuilder_ != null) { + return originalRequestBuilder_.getMessageOrBuilder(); + } else { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.CreateMaterializedViewRequest.getDefaultInstance() + : originalRequest_; + } + } + /** + * + * + *
    +     * The request that prompted the initiation of this CreateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.CreateMaterializedViewRequest, + com.google.bigtable.admin.v2.CreateMaterializedViewRequest.Builder, + com.google.bigtable.admin.v2.CreateMaterializedViewRequestOrBuilder> + getOriginalRequestFieldBuilder() { + if (originalRequestBuilder_ == null) { + originalRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.CreateMaterializedViewRequest, + com.google.bigtable.admin.v2.CreateMaterializedViewRequest.Builder, + com.google.bigtable.admin.v2.CreateMaterializedViewRequestOrBuilder>( + getOriginalRequest(), getParentForChildren(), isClean()); + originalRequest_ = null; + } + return originalRequestBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
    +     * The time at which this operation started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @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.bigtable.admin.v2.CreateMaterializedViewMetadata) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateMaterializedViewMetadata) + private static final com.google.bigtable.admin.v2.CreateMaterializedViewMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.CreateMaterializedViewMetadata(); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMaterializedViewMetadata 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.bigtable.admin.v2.CreateMaterializedViewMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateMaterializedViewMetadataOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateMaterializedViewMetadataOrBuilder.java new file mode 100644 index 000000000000..084bda6d520d --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateMaterializedViewMetadataOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface CreateMaterializedViewMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.CreateMaterializedViewMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The request that prompted the initiation of this CreateMaterializedView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + * + * @return Whether the originalRequest field is set. + */ + boolean hasOriginalRequest(); + /** + * + * + *
    +   * The request that prompted the initiation of this CreateMaterializedView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + * + * @return The originalRequest. + */ + com.google.bigtable.admin.v2.CreateMaterializedViewRequest getOriginalRequest(); + /** + * + * + *
    +   * The request that prompted the initiation of this CreateMaterializedView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + */ + com.google.bigtable.admin.v2.CreateMaterializedViewRequestOrBuilder getOriginalRequestOrBuilder(); + + /** + * + * + *
    +   * The time at which this operation started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
    +   * The time at which this operation started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
    +   * The time at which this operation started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateMaterializedViewRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateMaterializedViewRequest.java new file mode 100644 index 000000000000..daede7fc3fb0 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateMaterializedViewRequest.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * Request message for BigtableInstanceAdmin.CreateMaterializedView.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.CreateMaterializedViewRequest} + */ +public final class CreateMaterializedViewRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.CreateMaterializedViewRequest) + CreateMaterializedViewRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateMaterializedViewRequest.newBuilder() to construct. + private CreateMaterializedViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateMaterializedViewRequest() { + parent_ = ""; + materializedViewId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMaterializedViewRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateMaterializedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateMaterializedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.CreateMaterializedViewRequest.class, + com.google.bigtable.admin.v2.CreateMaterializedViewRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The parent instance where this materialized view will be created.
    +   * Format: `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * 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. The parent instance where this materialized view will be created.
    +   * Format: `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * 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 MATERIALIZED_VIEW_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object materializedViewId_ = ""; + /** + * + * + *
    +   * Required. The ID to use for the materialized view, which will become the
    +   * final component of the materialized view's resource name.
    +   * 
    + * + * string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The materializedViewId. + */ + @java.lang.Override + public java.lang.String getMaterializedViewId() { + java.lang.Object ref = materializedViewId_; + 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(); + materializedViewId_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The ID to use for the materialized view, which will become the
    +   * final component of the materialized view's resource name.
    +   * 
    + * + * string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for materializedViewId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMaterializedViewIdBytes() { + java.lang.Object ref = materializedViewId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + materializedViewId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATERIALIZED_VIEW_FIELD_NUMBER = 3; + private com.google.bigtable.admin.v2.MaterializedView materializedView_; + /** + * + * + *
    +   * Required. The materialized view to create.
    +   * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the materializedView field is set. + */ + @java.lang.Override + public boolean hasMaterializedView() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Required. The materialized view to create.
    +   * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The materializedView. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.MaterializedView getMaterializedView() { + return materializedView_ == null + ? com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance() + : materializedView_; + } + /** + * + * + *
    +   * Required. The materialized view to create.
    +   * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.bigtable.admin.v2.MaterializedViewOrBuilder getMaterializedViewOrBuilder() { + return materializedView_ == null + ? com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance() + : materializedView_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materializedViewId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, materializedViewId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMaterializedView()); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materializedViewId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, materializedViewId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMaterializedView()); + } + 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.bigtable.admin.v2.CreateMaterializedViewRequest)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.CreateMaterializedViewRequest other = + (com.google.bigtable.admin.v2.CreateMaterializedViewRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getMaterializedViewId().equals(other.getMaterializedViewId())) return false; + if (hasMaterializedView() != other.hasMaterializedView()) return false; + if (hasMaterializedView()) { + if (!getMaterializedView().equals(other.getMaterializedView())) 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(); + hash = (37 * hash) + MATERIALIZED_VIEW_ID_FIELD_NUMBER; + hash = (53 * hash) + getMaterializedViewId().hashCode(); + if (hasMaterializedView()) { + hash = (37 * hash) + MATERIALIZED_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getMaterializedView().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewRequest 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.bigtable.admin.v2.CreateMaterializedViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewRequest 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.bigtable.admin.v2.CreateMaterializedViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewRequest 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.bigtable.admin.v2.CreateMaterializedViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewRequest 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.bigtable.admin.v2.CreateMaterializedViewRequest 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; + } + /** + * + * + *
    +   * Request message for BigtableInstanceAdmin.CreateMaterializedView.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.CreateMaterializedViewRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.CreateMaterializedViewRequest) + com.google.bigtable.admin.v2.CreateMaterializedViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateMaterializedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateMaterializedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.CreateMaterializedViewRequest.class, + com.google.bigtable.admin.v2.CreateMaterializedViewRequest.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.CreateMaterializedViewRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMaterializedViewFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + materializedViewId_ = ""; + materializedView_ = null; + if (materializedViewBuilder_ != null) { + materializedViewBuilder_.dispose(); + materializedViewBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_CreateMaterializedViewRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CreateMaterializedViewRequest getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.CreateMaterializedViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CreateMaterializedViewRequest build() { + com.google.bigtable.admin.v2.CreateMaterializedViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CreateMaterializedViewRequest buildPartial() { + com.google.bigtable.admin.v2.CreateMaterializedViewRequest result = + new com.google.bigtable.admin.v2.CreateMaterializedViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.CreateMaterializedViewRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.materializedViewId_ = materializedViewId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.materializedView_ = + materializedViewBuilder_ == null ? materializedView_ : materializedViewBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.bigtable.admin.v2.CreateMaterializedViewRequest) { + return mergeFrom((com.google.bigtable.admin.v2.CreateMaterializedViewRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.CreateMaterializedViewRequest other) { + if (other == com.google.bigtable.admin.v2.CreateMaterializedViewRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMaterializedViewId().isEmpty()) { + materializedViewId_ = other.materializedViewId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMaterializedView()) { + mergeMaterializedView(other.getMaterializedView()); + } + 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: + { + materializedViewId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getMaterializedViewFieldBuilder().getBuilder(), extensionRegistry); + 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. The parent instance where this materialized view will be created.
    +     * Format: `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The parent instance where this materialized view will be created.
    +     * Format: `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The parent instance where this materialized view will be created.
    +     * Format: `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The parent instance where this materialized view will be created.
    +     * Format: `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The parent instance where this materialized view will be created.
    +     * Format: `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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 java.lang.Object materializedViewId_ = ""; + /** + * + * + *
    +     * Required. The ID to use for the materialized view, which will become the
    +     * final component of the materialized view's resource name.
    +     * 
    + * + * string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The materializedViewId. + */ + public java.lang.String getMaterializedViewId() { + java.lang.Object ref = materializedViewId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + materializedViewId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The ID to use for the materialized view, which will become the
    +     * final component of the materialized view's resource name.
    +     * 
    + * + * string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for materializedViewId. + */ + public com.google.protobuf.ByteString getMaterializedViewIdBytes() { + java.lang.Object ref = materializedViewId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + materializedViewId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The ID to use for the materialized view, which will become the
    +     * final component of the materialized view's resource name.
    +     * 
    + * + * string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The materializedViewId to set. + * @return This builder for chaining. + */ + public Builder setMaterializedViewId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + materializedViewId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The ID to use for the materialized view, which will become the
    +     * final component of the materialized view's resource name.
    +     * 
    + * + * string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMaterializedViewId() { + materializedViewId_ = getDefaultInstance().getMaterializedViewId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The ID to use for the materialized view, which will become the
    +     * final component of the materialized view's resource name.
    +     * 
    + * + * string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for materializedViewId to set. + * @return This builder for chaining. + */ + public Builder setMaterializedViewIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + materializedViewId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.bigtable.admin.v2.MaterializedView materializedView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.MaterializedView, + com.google.bigtable.admin.v2.MaterializedView.Builder, + com.google.bigtable.admin.v2.MaterializedViewOrBuilder> + materializedViewBuilder_; + /** + * + * + *
    +     * Required. The materialized view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the materializedView field is set. + */ + public boolean hasMaterializedView() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Required. The materialized view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The materializedView. + */ + public com.google.bigtable.admin.v2.MaterializedView getMaterializedView() { + if (materializedViewBuilder_ == null) { + return materializedView_ == null + ? com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance() + : materializedView_; + } else { + return materializedViewBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The materialized view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMaterializedView(com.google.bigtable.admin.v2.MaterializedView value) { + if (materializedViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + materializedView_ = value; + } else { + materializedViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The materialized view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMaterializedView( + com.google.bigtable.admin.v2.MaterializedView.Builder builderForValue) { + if (materializedViewBuilder_ == null) { + materializedView_ = builderForValue.build(); + } else { + materializedViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The materialized view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMaterializedView(com.google.bigtable.admin.v2.MaterializedView value) { + if (materializedViewBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && materializedView_ != null + && materializedView_ + != com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance()) { + getMaterializedViewBuilder().mergeFrom(value); + } else { + materializedView_ = value; + } + } else { + materializedViewBuilder_.mergeFrom(value); + } + if (materializedView_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Required. The materialized view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMaterializedView() { + bitField0_ = (bitField0_ & ~0x00000004); + materializedView_ = null; + if (materializedViewBuilder_ != null) { + materializedViewBuilder_.dispose(); + materializedViewBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The materialized view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.bigtable.admin.v2.MaterializedView.Builder getMaterializedViewBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMaterializedViewFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The materialized view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.bigtable.admin.v2.MaterializedViewOrBuilder getMaterializedViewOrBuilder() { + if (materializedViewBuilder_ != null) { + return materializedViewBuilder_.getMessageOrBuilder(); + } else { + return materializedView_ == null + ? com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance() + : materializedView_; + } + } + /** + * + * + *
    +     * Required. The materialized view to create.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.MaterializedView, + com.google.bigtable.admin.v2.MaterializedView.Builder, + com.google.bigtable.admin.v2.MaterializedViewOrBuilder> + getMaterializedViewFieldBuilder() { + if (materializedViewBuilder_ == null) { + materializedViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.MaterializedView, + com.google.bigtable.admin.v2.MaterializedView.Builder, + com.google.bigtable.admin.v2.MaterializedViewOrBuilder>( + getMaterializedView(), getParentForChildren(), isClean()); + materializedView_ = null; + } + return materializedViewBuilder_; + } + + @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.bigtable.admin.v2.CreateMaterializedViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateMaterializedViewRequest) + private static final com.google.bigtable.admin.v2.CreateMaterializedViewRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.CreateMaterializedViewRequest(); + } + + public static com.google.bigtable.admin.v2.CreateMaterializedViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMaterializedViewRequest 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.bigtable.admin.v2.CreateMaterializedViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateMaterializedViewRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateMaterializedViewRequestOrBuilder.java new file mode 100644 index 000000000000..923110471fab --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateMaterializedViewRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface CreateMaterializedViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.CreateMaterializedViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent instance where this materialized view will be created.
    +   * Format: `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
    +   * Required. The parent instance where this materialized view will be created.
    +   * Format: `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The ID to use for the materialized view, which will become the
    +   * final component of the materialized view's resource name.
    +   * 
    + * + * string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The materializedViewId. + */ + java.lang.String getMaterializedViewId(); + /** + * + * + *
    +   * Required. The ID to use for the materialized view, which will become the
    +   * final component of the materialized view's resource name.
    +   * 
    + * + * string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for materializedViewId. + */ + com.google.protobuf.ByteString getMaterializedViewIdBytes(); + + /** + * + * + *
    +   * Required. The materialized view to create.
    +   * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the materializedView field is set. + */ + boolean hasMaterializedView(); + /** + * + * + *
    +   * Required. The materialized view to create.
    +   * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The materializedView. + */ + com.google.bigtable.admin.v2.MaterializedView getMaterializedView(); + /** + * + * + *
    +   * Required. The materialized view to create.
    +   * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.bigtable.admin.v2.MaterializedViewOrBuilder getMaterializedViewOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteLogicalViewRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteLogicalViewRequest.java new file mode 100644 index 000000000000..01edfe8008d9 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteLogicalViewRequest.java @@ -0,0 +1,857 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * Request message for BigtableInstanceAdmin.DeleteLogicalView.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.DeleteLogicalViewRequest} + */ +public final class DeleteLogicalViewRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.DeleteLogicalViewRequest) + DeleteLogicalViewRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteLogicalViewRequest.newBuilder() to construct. + private DeleteLogicalViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteLogicalViewRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteLogicalViewRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_DeleteLogicalViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_DeleteLogicalViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.DeleteLogicalViewRequest.class, + com.google.bigtable.admin.v2.DeleteLogicalViewRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The unique name of the logical view to be deleted.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The unique name of the logical view to be deleted.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
    +   * Optional. The current etag of the logical view.
    +   * If an etag is provided and does not match the current etag of the
    +   * logical view, deletion will be blocked and an ABORTED error will be
    +   * returned.
    +   * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The current etag of the logical view.
    +   * If an etag is provided and does not match the current etag of the
    +   * logical view, deletion will be blocked and an ABORTED error will be
    +   * returned.
    +   * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); + } + 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.bigtable.admin.v2.DeleteLogicalViewRequest)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.DeleteLogicalViewRequest other = + (com.google.bigtable.admin.v2.DeleteLogicalViewRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.DeleteLogicalViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.DeleteLogicalViewRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.DeleteLogicalViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.DeleteLogicalViewRequest 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.bigtable.admin.v2.DeleteLogicalViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.DeleteLogicalViewRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.DeleteLogicalViewRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.DeleteLogicalViewRequest 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.bigtable.admin.v2.DeleteLogicalViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.DeleteLogicalViewRequest 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.bigtable.admin.v2.DeleteLogicalViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.DeleteLogicalViewRequest 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.bigtable.admin.v2.DeleteLogicalViewRequest 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; + } + /** + * + * + *
    +   * Request message for BigtableInstanceAdmin.DeleteLogicalView.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.DeleteLogicalViewRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.DeleteLogicalViewRequest) + com.google.bigtable.admin.v2.DeleteLogicalViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_DeleteLogicalViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_DeleteLogicalViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.DeleteLogicalViewRequest.class, + com.google.bigtable.admin.v2.DeleteLogicalViewRequest.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.DeleteLogicalViewRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_DeleteLogicalViewRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.DeleteLogicalViewRequest getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.DeleteLogicalViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.DeleteLogicalViewRequest build() { + com.google.bigtable.admin.v2.DeleteLogicalViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.DeleteLogicalViewRequest buildPartial() { + com.google.bigtable.admin.v2.DeleteLogicalViewRequest result = + new com.google.bigtable.admin.v2.DeleteLogicalViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.DeleteLogicalViewRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @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.bigtable.admin.v2.DeleteLogicalViewRequest) { + return mergeFrom((com.google.bigtable.admin.v2.DeleteLogicalViewRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.DeleteLogicalViewRequest other) { + if (other == com.google.bigtable.admin.v2.DeleteLogicalViewRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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 name_ = ""; + /** + * + * + *
    +     * Required. The unique name of the logical view to be deleted.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The unique name of the logical view to be deleted.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The unique name of the logical view to be deleted.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The unique name of the logical view to be deleted.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The unique name of the logical view to be deleted.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
    +     * Optional. The current etag of the logical view.
    +     * If an etag is provided and does not match the current etag of the
    +     * logical view, deletion will be blocked and an ABORTED error will be
    +     * returned.
    +     * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The current etag of the logical view.
    +     * If an etag is provided and does not match the current etag of the
    +     * logical view, deletion will be blocked and an ABORTED error will be
    +     * returned.
    +     * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The current etag of the logical view.
    +     * If an etag is provided and does not match the current etag of the
    +     * logical view, deletion will be blocked and an ABORTED error will be
    +     * returned.
    +     * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The current etag of the logical view.
    +     * If an etag is provided and does not match the current etag of the
    +     * logical view, deletion will be blocked and an ABORTED error will be
    +     * returned.
    +     * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The current etag of the logical view.
    +     * If an etag is provided and does not match the current etag of the
    +     * logical view, deletion will be blocked and an ABORTED error will be
    +     * returned.
    +     * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + 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.bigtable.admin.v2.DeleteLogicalViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteLogicalViewRequest) + private static final com.google.bigtable.admin.v2.DeleteLogicalViewRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.DeleteLogicalViewRequest(); + } + + public static com.google.bigtable.admin.v2.DeleteLogicalViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteLogicalViewRequest 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.bigtable.admin.v2.DeleteLogicalViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteLogicalViewRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteLogicalViewRequestOrBuilder.java new file mode 100644 index 000000000000..dcd368449f3d --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteLogicalViewRequestOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface DeleteLogicalViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.DeleteLogicalViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The unique name of the logical view to be deleted.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The unique name of the logical view to be deleted.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. The current etag of the logical view.
    +   * If an etag is provided and does not match the current etag of the
    +   * logical view, deletion will be blocked and an ABORTED error will be
    +   * returned.
    +   * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
    +   * Optional. The current etag of the logical view.
    +   * If an etag is provided and does not match the current etag of the
    +   * logical view, deletion will be blocked and an ABORTED error will be
    +   * returned.
    +   * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteMaterializedViewRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteMaterializedViewRequest.java new file mode 100644 index 000000000000..5f48c1dbbc6e --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteMaterializedViewRequest.java @@ -0,0 +1,857 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * Request message for BigtableInstanceAdmin.DeleteMaterializedView.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.DeleteMaterializedViewRequest} + */ +public final class DeleteMaterializedViewRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.DeleteMaterializedViewRequest) + DeleteMaterializedViewRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteMaterializedViewRequest.newBuilder() to construct. + private DeleteMaterializedViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteMaterializedViewRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteMaterializedViewRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_DeleteMaterializedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_DeleteMaterializedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest.class, + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The unique name of the materialized view to be deleted.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The unique name of the materialized view to be deleted.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
    +   * Optional. The current etag of the materialized view.
    +   * If an etag is provided and does not match the current etag of the
    +   * materialized view, deletion will be blocked and an ABORTED error will be
    +   * returned.
    +   * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The current etag of the materialized view.
    +   * If an etag is provided and does not match the current etag of the
    +   * materialized view, deletion will be blocked and an ABORTED error will be
    +   * returned.
    +   * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); + } + 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.bigtable.admin.v2.DeleteMaterializedViewRequest)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest other = + (com.google.bigtable.admin.v2.DeleteMaterializedViewRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.DeleteMaterializedViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.DeleteMaterializedViewRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.DeleteMaterializedViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.DeleteMaterializedViewRequest 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.bigtable.admin.v2.DeleteMaterializedViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.DeleteMaterializedViewRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.DeleteMaterializedViewRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.DeleteMaterializedViewRequest 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.bigtable.admin.v2.DeleteMaterializedViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.DeleteMaterializedViewRequest 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.bigtable.admin.v2.DeleteMaterializedViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.DeleteMaterializedViewRequest 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.bigtable.admin.v2.DeleteMaterializedViewRequest 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; + } + /** + * + * + *
    +   * Request message for BigtableInstanceAdmin.DeleteMaterializedView.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.DeleteMaterializedViewRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.DeleteMaterializedViewRequest) + com.google.bigtable.admin.v2.DeleteMaterializedViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_DeleteMaterializedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_DeleteMaterializedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest.class, + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.DeleteMaterializedViewRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_DeleteMaterializedViewRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.DeleteMaterializedViewRequest getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.DeleteMaterializedViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.DeleteMaterializedViewRequest build() { + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.DeleteMaterializedViewRequest buildPartial() { + com.google.bigtable.admin.v2.DeleteMaterializedViewRequest result = + new com.google.bigtable.admin.v2.DeleteMaterializedViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.DeleteMaterializedViewRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @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.bigtable.admin.v2.DeleteMaterializedViewRequest) { + return mergeFrom((com.google.bigtable.admin.v2.DeleteMaterializedViewRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.DeleteMaterializedViewRequest other) { + if (other == com.google.bigtable.admin.v2.DeleteMaterializedViewRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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 name_ = ""; + /** + * + * + *
    +     * Required. The unique name of the materialized view to be deleted.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The unique name of the materialized view to be deleted.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The unique name of the materialized view to be deleted.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The unique name of the materialized view to be deleted.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The unique name of the materialized view to be deleted.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
    +     * Optional. The current etag of the materialized view.
    +     * If an etag is provided and does not match the current etag of the
    +     * materialized view, deletion will be blocked and an ABORTED error will be
    +     * returned.
    +     * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The current etag of the materialized view.
    +     * If an etag is provided and does not match the current etag of the
    +     * materialized view, deletion will be blocked and an ABORTED error will be
    +     * returned.
    +     * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The current etag of the materialized view.
    +     * If an etag is provided and does not match the current etag of the
    +     * materialized view, deletion will be blocked and an ABORTED error will be
    +     * returned.
    +     * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The current etag of the materialized view.
    +     * If an etag is provided and does not match the current etag of the
    +     * materialized view, deletion will be blocked and an ABORTED error will be
    +     * returned.
    +     * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The current etag of the materialized view.
    +     * If an etag is provided and does not match the current etag of the
    +     * materialized view, deletion will be blocked and an ABORTED error will be
    +     * returned.
    +     * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + 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.bigtable.admin.v2.DeleteMaterializedViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteMaterializedViewRequest) + private static final com.google.bigtable.admin.v2.DeleteMaterializedViewRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.DeleteMaterializedViewRequest(); + } + + public static com.google.bigtable.admin.v2.DeleteMaterializedViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMaterializedViewRequest 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.bigtable.admin.v2.DeleteMaterializedViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteMaterializedViewRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteMaterializedViewRequestOrBuilder.java new file mode 100644 index 000000000000..526779622b50 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteMaterializedViewRequestOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface DeleteMaterializedViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.DeleteMaterializedViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The unique name of the materialized view to be deleted.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The unique name of the materialized view to be deleted.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. The current etag of the materialized view.
    +   * If an etag is provided and does not match the current etag of the
    +   * materialized view, deletion will be blocked and an ABORTED error will be
    +   * returned.
    +   * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
    +   * Optional. The current etag of the materialized view.
    +   * If an etag is provided and does not match the current etag of the
    +   * materialized view, deletion will be blocked and an ABORTED error will be
    +   * returned.
    +   * 
    + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetLogicalViewRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetLogicalViewRequest.java new file mode 100644 index 000000000000..2f6acc7cc3d8 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetLogicalViewRequest.java @@ -0,0 +1,646 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * Request message for BigtableInstanceAdmin.GetLogicalView.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.GetLogicalViewRequest} + */ +public final class GetLogicalViewRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.GetLogicalViewRequest) + GetLogicalViewRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetLogicalViewRequest.newBuilder() to construct. + private GetLogicalViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetLogicalViewRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetLogicalViewRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_GetLogicalViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_GetLogicalViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.GetLogicalViewRequest.class, + com.google.bigtable.admin.v2.GetLogicalViewRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The unique name of the requested logical view. Values are of the
    +   * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The unique name of the requested logical view. Values are of the
    +   * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.bigtable.admin.v2.GetLogicalViewRequest)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.GetLogicalViewRequest other = + (com.google.bigtable.admin.v2.GetLogicalViewRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.GetLogicalViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.GetLogicalViewRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.GetLogicalViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.GetLogicalViewRequest 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.bigtable.admin.v2.GetLogicalViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.GetLogicalViewRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.GetLogicalViewRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.GetLogicalViewRequest 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.bigtable.admin.v2.GetLogicalViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.GetLogicalViewRequest 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.bigtable.admin.v2.GetLogicalViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.GetLogicalViewRequest 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.bigtable.admin.v2.GetLogicalViewRequest 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; + } + /** + * + * + *
    +   * Request message for BigtableInstanceAdmin.GetLogicalView.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.GetLogicalViewRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.GetLogicalViewRequest) + com.google.bigtable.admin.v2.GetLogicalViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_GetLogicalViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_GetLogicalViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.GetLogicalViewRequest.class, + com.google.bigtable.admin.v2.GetLogicalViewRequest.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.GetLogicalViewRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_GetLogicalViewRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.GetLogicalViewRequest getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.GetLogicalViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.GetLogicalViewRequest build() { + com.google.bigtable.admin.v2.GetLogicalViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.GetLogicalViewRequest buildPartial() { + com.google.bigtable.admin.v2.GetLogicalViewRequest result = + new com.google.bigtable.admin.v2.GetLogicalViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.GetLogicalViewRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.bigtable.admin.v2.GetLogicalViewRequest) { + return mergeFrom((com.google.bigtable.admin.v2.GetLogicalViewRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.GetLogicalViewRequest other) { + if (other == com.google.bigtable.admin.v2.GetLogicalViewRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + 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 java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. The unique name of the requested logical view. Values are of the
    +     * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The unique name of the requested logical view. Values are of the
    +     * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The unique name of the requested logical view. Values are of the
    +     * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The unique name of the requested logical view. Values are of the
    +     * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The unique name of the requested logical view. Values are of the
    +     * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.bigtable.admin.v2.GetLogicalViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetLogicalViewRequest) + private static final com.google.bigtable.admin.v2.GetLogicalViewRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.GetLogicalViewRequest(); + } + + public static com.google.bigtable.admin.v2.GetLogicalViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLogicalViewRequest 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.bigtable.admin.v2.GetLogicalViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetLogicalViewRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetLogicalViewRequestOrBuilder.java new file mode 100644 index 000000000000..3ede34be7c6a --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetLogicalViewRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface GetLogicalViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.GetLogicalViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The unique name of the requested logical view. Values are of the
    +   * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The unique name of the requested logical view. Values are of the
    +   * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetMaterializedViewRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetMaterializedViewRequest.java new file mode 100644 index 000000000000..db94c13778d9 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetMaterializedViewRequest.java @@ -0,0 +1,654 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * Request message for BigtableInstanceAdmin.GetMaterializedView.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.GetMaterializedViewRequest} + */ +public final class GetMaterializedViewRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.GetMaterializedViewRequest) + GetMaterializedViewRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetMaterializedViewRequest.newBuilder() to construct. + private GetMaterializedViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMaterializedViewRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMaterializedViewRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_GetMaterializedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_GetMaterializedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.GetMaterializedViewRequest.class, + com.google.bigtable.admin.v2.GetMaterializedViewRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The unique name of the requested materialized view. Values are of
    +   * the form
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The unique name of the requested materialized view. Values are of
    +   * the form
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.bigtable.admin.v2.GetMaterializedViewRequest)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.GetMaterializedViewRequest other = + (com.google.bigtable.admin.v2.GetMaterializedViewRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.GetMaterializedViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.GetMaterializedViewRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.GetMaterializedViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.GetMaterializedViewRequest 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.bigtable.admin.v2.GetMaterializedViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.GetMaterializedViewRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.GetMaterializedViewRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.GetMaterializedViewRequest 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.bigtable.admin.v2.GetMaterializedViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.GetMaterializedViewRequest 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.bigtable.admin.v2.GetMaterializedViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.GetMaterializedViewRequest 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.bigtable.admin.v2.GetMaterializedViewRequest 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; + } + /** + * + * + *
    +   * Request message for BigtableInstanceAdmin.GetMaterializedView.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.GetMaterializedViewRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.GetMaterializedViewRequest) + com.google.bigtable.admin.v2.GetMaterializedViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_GetMaterializedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_GetMaterializedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.GetMaterializedViewRequest.class, + com.google.bigtable.admin.v2.GetMaterializedViewRequest.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.GetMaterializedViewRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_GetMaterializedViewRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.GetMaterializedViewRequest getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.GetMaterializedViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.GetMaterializedViewRequest build() { + com.google.bigtable.admin.v2.GetMaterializedViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.GetMaterializedViewRequest buildPartial() { + com.google.bigtable.admin.v2.GetMaterializedViewRequest result = + new com.google.bigtable.admin.v2.GetMaterializedViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.GetMaterializedViewRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.bigtable.admin.v2.GetMaterializedViewRequest) { + return mergeFrom((com.google.bigtable.admin.v2.GetMaterializedViewRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.GetMaterializedViewRequest other) { + if (other == com.google.bigtable.admin.v2.GetMaterializedViewRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + 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 java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. The unique name of the requested materialized view. Values are of
    +     * the form
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The unique name of the requested materialized view. Values are of
    +     * the form
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The unique name of the requested materialized view. Values are of
    +     * the form
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The unique name of the requested materialized view. Values are of
    +     * the form
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The unique name of the requested materialized view. Values are of
    +     * the form
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.bigtable.admin.v2.GetMaterializedViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetMaterializedViewRequest) + private static final com.google.bigtable.admin.v2.GetMaterializedViewRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.GetMaterializedViewRequest(); + } + + public static com.google.bigtable.admin.v2.GetMaterializedViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMaterializedViewRequest 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.bigtable.admin.v2.GetMaterializedViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetMaterializedViewRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetMaterializedViewRequestOrBuilder.java new file mode 100644 index 000000000000..1814faa55e4f --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetMaterializedViewRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface GetMaterializedViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.GetMaterializedViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The unique name of the requested materialized view. Values are of
    +   * the form
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The unique name of the requested materialized view. Values are of
    +   * the form
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Instance.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Instance.java index 6b1e0d9bbdea..b2507785f9a5 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Instance.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Instance.java @@ -522,11 +522,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
    -   * (`OutputOnly`)
    -   * The current state of the instance.
    +   * Output only. The current state of the instance.
        * 
    * - * .google.bigtable.admin.v2.Instance.State state = 3; + * + * .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -538,11 +539,12 @@ public int getStateValue() { * * *
    -   * (`OutputOnly`)
    -   * The current state of the instance.
    +   * Output only. The current state of the instance.
        * 
    * - * .google.bigtable.admin.v2.Instance.State state = 3; + * + * .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -736,9 +738,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
    -   * Output only. A server-assigned timestamp representing when this Instance
    -   * was created. For instances created before this field was added (August
    -   * 2021), this value is `seconds: 0, nanos: 1`.
    +   * Output only. A commit timestamp representing when this Instance was
    +   * created. For instances created before this field was added (August 2021),
    +   * this value is `seconds: 0, nanos: 1`.
        * 
    * * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -754,9 +756,9 @@ public boolean hasCreateTime() { * * *
    -   * Output only. A server-assigned timestamp representing when this Instance
    -   * was created. For instances created before this field was added (August
    -   * 2021), this value is `seconds: 0, nanos: 1`.
    +   * Output only. A commit timestamp representing when this Instance was
    +   * created. For instances created before this field was added (August 2021),
    +   * this value is `seconds: 0, nanos: 1`.
        * 
    * * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -772,9 +774,9 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
    -   * Output only. A server-assigned timestamp representing when this Instance
    -   * was created. For instances created before this field was added (August
    -   * 2021), this value is `seconds: 0, nanos: 1`.
    +   * Output only. A commit timestamp representing when this Instance was
    +   * created. For instances created before this field was added (August 2021),
    +   * this value is `seconds: 0, nanos: 1`.
        * 
    * * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -818,6 +820,39 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } + public static final int SATISFIES_PZI_FIELD_NUMBER = 11; + private boolean satisfiesPzi_ = false; + /** + * + * + *
    +   * Output only. Reserved for future use.
    +   * 
    + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * Output only. Reserved for future use.
    +   * 
    + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -852,6 +887,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(8, satisfiesPzs_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(11, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -889,6 +927,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, satisfiesPzs_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -917,6 +958,10 @@ public boolean equals(final java.lang.Object obj) { if (hasSatisfiesPzs()) { if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; } + if (hasSatisfiesPzi() != other.hasSatisfiesPzi()) return false; + if (hasSatisfiesPzi()) { + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -948,6 +993,10 @@ public int hashCode() { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); } + if (hasSatisfiesPzi()) { + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1131,6 +1180,7 @@ public Builder clear() { createTimeBuilder_ = null; } satisfiesPzs_ = false; + satisfiesPzi_ = false; return this; } @@ -1192,6 +1242,10 @@ private void buildPartial0(com.google.bigtable.admin.v2.Instance result) { result.satisfiesPzs_ = satisfiesPzs_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1264,6 +1318,9 @@ public Builder mergeFrom(com.google.bigtable.admin.v2.Instance other) { if (other.hasSatisfiesPzs()) { setSatisfiesPzs(other.getSatisfiesPzs()); } + if (other.hasSatisfiesPzi()) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1338,6 +1395,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 64 + case 88: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1589,11 +1652,12 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * (`OutputOnly`)
    -     * The current state of the instance.
    +     * Output only. The current state of the instance.
          * 
    * - * .google.bigtable.admin.v2.Instance.State state = 3; + * + * .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -1605,11 +1669,12 @@ public int getStateValue() { * * *
    -     * (`OutputOnly`)
    -     * The current state of the instance.
    +     * Output only. The current state of the instance.
          * 
    * - * .google.bigtable.admin.v2.Instance.State state = 3; + * + * .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. @@ -1624,11 +1689,12 @@ public Builder setStateValue(int value) { * * *
    -     * (`OutputOnly`)
    -     * The current state of the instance.
    +     * Output only. The current state of the instance.
          * 
    * - * .google.bigtable.admin.v2.Instance.State state = 3; + * + * .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -1642,11 +1708,12 @@ public com.google.bigtable.admin.v2.Instance.State getState() { * * *
    -     * (`OutputOnly`)
    -     * The current state of the instance.
    +     * Output only. The current state of the instance.
          * 
    * - * .google.bigtable.admin.v2.Instance.State state = 3; + * + * .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The state to set. * @return This builder for chaining. @@ -1664,11 +1731,12 @@ public Builder setState(com.google.bigtable.admin.v2.Instance.State value) { * * *
    -     * (`OutputOnly`)
    -     * The current state of the instance.
    +     * Output only. The current state of the instance.
          * 
    * - * .google.bigtable.admin.v2.Instance.State state = 3; + * + * .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -2012,9 +2080,9 @@ public Builder putAllLabels(java.util.Map va * * *
    -     * Output only. A server-assigned timestamp representing when this Instance
    -     * was created. For instances created before this field was added (August
    -     * 2021), this value is `seconds: 0, nanos: 1`.
    +     * Output only. A commit timestamp representing when this Instance was
    +     * created. For instances created before this field was added (August 2021),
    +     * this value is `seconds: 0, nanos: 1`.
          * 
    * * @@ -2030,9 +2098,9 @@ public boolean hasCreateTime() { * * *
    -     * Output only. A server-assigned timestamp representing when this Instance
    -     * was created. For instances created before this field was added (August
    -     * 2021), this value is `seconds: 0, nanos: 1`.
    +     * Output only. A commit timestamp representing when this Instance was
    +     * created. For instances created before this field was added (August 2021),
    +     * this value is `seconds: 0, nanos: 1`.
          * 
    * * @@ -2054,9 +2122,9 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
    -     * Output only. A server-assigned timestamp representing when this Instance
    -     * was created. For instances created before this field was added (August
    -     * 2021), this value is `seconds: 0, nanos: 1`.
    +     * Output only. A commit timestamp representing when this Instance was
    +     * created. For instances created before this field was added (August 2021),
    +     * this value is `seconds: 0, nanos: 1`.
          * 
    * * @@ -2080,9 +2148,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. A server-assigned timestamp representing when this Instance
    -     * was created. For instances created before this field was added (August
    -     * 2021), this value is `seconds: 0, nanos: 1`.
    +     * Output only. A commit timestamp representing when this Instance was
    +     * created. For instances created before this field was added (August 2021),
    +     * this value is `seconds: 0, nanos: 1`.
          * 
    * * @@ -2103,9 +2171,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
    -     * Output only. A server-assigned timestamp representing when this Instance
    -     * was created. For instances created before this field was added (August
    -     * 2021), this value is `seconds: 0, nanos: 1`.
    +     * Output only. A commit timestamp representing when this Instance was
    +     * created. For instances created before this field was added (August 2021),
    +     * this value is `seconds: 0, nanos: 1`.
          * 
    * * @@ -2134,9 +2202,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. A server-assigned timestamp representing when this Instance
    -     * was created. For instances created before this field was added (August
    -     * 2021), this value is `seconds: 0, nanos: 1`.
    +     * Output only. A commit timestamp representing when this Instance was
    +     * created. For instances created before this field was added (August 2021),
    +     * this value is `seconds: 0, nanos: 1`.
          * 
    * * @@ -2157,9 +2225,9 @@ public Builder clearCreateTime() { * * *
    -     * Output only. A server-assigned timestamp representing when this Instance
    -     * was created. For instances created before this field was added (August
    -     * 2021), this value is `seconds: 0, nanos: 1`.
    +     * Output only. A commit timestamp representing when this Instance was
    +     * created. For instances created before this field was added (August 2021),
    +     * this value is `seconds: 0, nanos: 1`.
          * 
    * * @@ -2175,9 +2243,9 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
    -     * Output only. A server-assigned timestamp representing when this Instance
    -     * was created. For instances created before this field was added (August
    -     * 2021), this value is `seconds: 0, nanos: 1`.
    +     * Output only. A commit timestamp representing when this Instance was
    +     * created. For instances created before this field was added (August 2021),
    +     * this value is `seconds: 0, nanos: 1`.
          * 
    * * @@ -2197,9 +2265,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
    -     * Output only. A server-assigned timestamp representing when this Instance
    -     * was created. For instances created before this field was added (August
    -     * 2021), this value is `seconds: 0, nanos: 1`.
    +     * Output only. A commit timestamp representing when this Instance was
    +     * created. For instances created before this field was added (August 2021),
    +     * this value is `seconds: 0, nanos: 1`.
          * 
    * * @@ -2291,6 +2359,74 @@ public Builder clearSatisfiesPzs() { return this; } + private boolean satisfiesPzi_; + /** + * + * + *
    +     * Output only. Reserved for future use.
    +     * 
    + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
    +     * Output only. Reserved for future use.
    +     * 
    + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
    +     * Output only. Reserved for future use.
    +     * 
    + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Reserved for future use.
    +     * 
    + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00000080); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceOrBuilder.java index 753de864692d..1e82cd84e44f 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceOrBuilder.java @@ -84,11 +84,12 @@ public interface InstanceOrBuilder * * *
    -   * (`OutputOnly`)
    -   * The current state of the instance.
    +   * Output only. The current state of the instance.
        * 
    * - * .google.bigtable.admin.v2.Instance.State state = 3; + * + * .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -97,11 +98,12 @@ public interface InstanceOrBuilder * * *
    -   * (`OutputOnly`)
    -   * The current state of the instance.
    +   * Output only. The current state of the instance.
        * 
    * - * .google.bigtable.admin.v2.Instance.State state = 3; + * + * .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -244,9 +246,9 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Output only. A server-assigned timestamp representing when this Instance
    -   * was created. For instances created before this field was added (August
    -   * 2021), this value is `seconds: 0, nanos: 1`.
    +   * Output only. A commit timestamp representing when this Instance was
    +   * created. For instances created before this field was added (August 2021),
    +   * this value is `seconds: 0, nanos: 1`.
        * 
    * * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -259,9 +261,9 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Output only. A server-assigned timestamp representing when this Instance
    -   * was created. For instances created before this field was added (August
    -   * 2021), this value is `seconds: 0, nanos: 1`.
    +   * Output only. A commit timestamp representing when this Instance was
    +   * created. For instances created before this field was added (August 2021),
    +   * this value is `seconds: 0, nanos: 1`.
        * 
    * * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -274,9 +276,9 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Output only. A server-assigned timestamp representing when this Instance
    -   * was created. For instances created before this field was added (August
    -   * 2021), this value is `seconds: 0, nanos: 1`.
    +   * Output only. A commit timestamp representing when this Instance was
    +   * created. For instances created before this field was added (August 2021),
    +   * this value is `seconds: 0, nanos: 1`.
        * 
    * * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -308,4 +310,29 @@ java.lang.String getLabelsOrDefault( * @return The satisfiesPzs. */ boolean getSatisfiesPzs(); + + /** + * + * + *
    +   * Output only. Reserved for future use.
    +   * 
    + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + boolean hasSatisfiesPzi(); + /** + * + * + *
    +   * Output only. Reserved for future use.
    +   * 
    + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceProto.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceProto.java index f65a79eba6a8..3493652227f6 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceProto.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceProto.java @@ -88,6 +88,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_bigtable_admin_v2_HotTablet_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_bigtable_admin_v2_HotTablet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_LogicalView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_LogicalView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_MaterializedView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_MaterializedView_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -102,108 +110,124 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "field_behavior.proto\032\031google/api/resourc" + "e.proto\032%google/bigtable/admin/v2/common" + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\306\004\n\010Instance\022\014\n\004name\030\001 \001(\t\022\031\n\014display_na" - + "me\030\002 \001(\tB\003\340A\002\0227\n\005state\030\003 \001(\0162(.google.bi" - + "gtable.admin.v2.Instance.State\0225\n\004type\030\004" - + " \001(\0162\'.google.bigtable.admin.v2.Instance" - + ".Type\022>\n\006labels\030\005 \003(\0132..google.bigtable." - + "admin.v2.Instance.LabelsEntry\0224\n\013create_" - + "time\030\007 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022\037\n\rsatisfies_pzs\030\010 \001(\010B\003\340A\003H\000\210\001\001\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"5\n\005State\022\023\n\017STATE_NOT_KNOWN\020\000\022\t\n\005REA" - + "DY\020\001\022\014\n\010CREATING\020\002\"=\n\004Type\022\024\n\020TYPE_UNSPE" - + "CIFIED\020\000\022\016\n\nPRODUCTION\020\001\022\017\n\013DEVELOPMENT\020" - + "\002:S\352AP\n%bigtableadmin.googleapis.com/Ins" - + "tance\022\'projects/{project}/instances/{ins" - + "tance}B\020\n\016_satisfies_pzs\"_\n\022AutoscalingT" - + "argets\022\037\n\027cpu_utilization_percent\030\002 \001(\005\022" - + "(\n storage_utilization_gib_per_node\030\003 \001(" - + "\005\"O\n\021AutoscalingLimits\022\034\n\017min_serve_node" - + "s\030\001 \001(\005B\003\340A\002\022\034\n\017max_serve_nodes\030\002 \001(\005B\003\340" - + "A\002\"\232\t\n\007Cluster\022\014\n\004name\030\001 \001(\t\022;\n\010location" - + "\030\002 \001(\tB)\340A\005\372A#\n!locations.googleapis.com" - + "/Location\022;\n\005state\030\003 \001(\0162\'.google.bigtab" - + "le.admin.v2.Cluster.StateB\003\340A\003\022\023\n\013serve_" - + "nodes\030\004 \001(\005\022U\n\023node_scaling_factor\030\t \001(\016" - + "23.google.bigtable.admin.v2.Cluster.Node" - + "ScalingFactorB\003\340A\005\022I\n\016cluster_config\030\007 \001" - + "(\0132/.google.bigtable.admin.v2.Cluster.Cl" - + "usterConfigH\000\022H\n\024default_storage_type\030\005 " - + "\001(\0162%.google.bigtable.admin.v2.StorageTy" - + "peB\003\340A\005\022R\n\021encryption_config\030\006 \001(\01322.goo" - + "gle.bigtable.admin.v2.Cluster.Encryption" - + "ConfigB\003\340A\005\032\270\001\n\030ClusterAutoscalingConfig" - + "\022L\n\022autoscaling_limits\030\001 \001(\0132+.google.bi" - + "gtable.admin.v2.AutoscalingLimitsB\003\340A\002\022N" - + "\n\023autoscaling_targets\030\002 \001(\0132,.google.big" - + "table.admin.v2.AutoscalingTargetsB\003\340A\002\032o" - + "\n\rClusterConfig\022^\n\032cluster_autoscaling_c" - + "onfig\030\001 \001(\0132:.google.bigtable.admin.v2.C" - + "luster.ClusterAutoscalingConfig\032P\n\020Encry" - + "ptionConfig\022<\n\014kms_key_name\030\001 \001(\tB&\372A#\n!" - + "cloudkms.googleapis.com/CryptoKey\"Q\n\005Sta" - + "te\022\023\n\017STATE_NOT_KNOWN\020\000\022\t\n\005READY\020\001\022\014\n\010CR" - + "EATING\020\002\022\014\n\010RESIZING\020\003\022\014\n\010DISABLED\020\004\"p\n\021" - + "NodeScalingFactor\022#\n\037NODE_SCALING_FACTOR" - + "_UNSPECIFIED\020\000\022\032\n\026NODE_SCALING_FACTOR_1X" - + "\020\001\022\032\n\026NODE_SCALING_FACTOR_2X\020\002:e\352Ab\n$big" - + "tableadmin.googleapis.com/Cluster\022:proje" - + "cts/{project}/instances/{instance}/clust" - + "ers/{cluster}B\010\n\006config\"\322\n\n\nAppProfile\022\014" - + "\n\004name\030\001 \001(\t\022\014\n\004etag\030\002 \001(\t\022\023\n\013descriptio" - + "n\030\003 \001(\t\022g\n\035multi_cluster_routing_use_any" - + "\030\005 \001(\0132>.google.bigtable.admin.v2.AppPro" - + "file.MultiClusterRoutingUseAnyH\000\022[\n\026sing" - + "le_cluster_routing\030\006 \001(\01329.google.bigtab" - + "le.admin.v2.AppProfile.SingleClusterRout" - + "ingH\000\022E\n\010priority\030\007 \001(\0162-.google.bigtabl" - + "e.admin.v2.AppProfile.PriorityB\002\030\001H\001\022T\n\022" - + "standard_isolation\030\013 \001(\01326.google.bigtab" - + "le.admin.v2.AppProfile.StandardIsolation" - + "H\001\022i\n\036data_boost_isolation_read_only\030\n \001" - + "(\0132?.google.bigtable.admin.v2.AppProfile" - + ".DataBoostIsolationReadOnlyH\001\032\257\001\n\031MultiC" - + "lusterRoutingUseAny\022\023\n\013cluster_ids\030\001 \003(\t" - + "\022b\n\014row_affinity\030\003 \001(\0132J.google.bigtable" + + "\223\005\n\010Instance\022\014\n\004name\030\001 \001(\t\022\031\n\014display_na" + + "me\030\002 \001(\tB\003\340A\002\022<\n\005state\030\003 \001(\0162(.google.bi" + + "gtable.admin.v2.Instance.StateB\003\340A\003\0225\n\004t" + + "ype\030\004 \001(\0162\'.google.bigtable.admin.v2.Ins" + + "tance.Type\022>\n\006labels\030\005 \003(\0132..google.bigt" + + "able.admin.v2.Instance.LabelsEntry\0224\n\013cr" + + "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022\037\n\rsatisfies_pzs\030\010 \001(\010B\003\340A\003H\000\210\001" + + "\001\022\037\n\rsatisfies_pzi\030\013 \001(\010B\003\340A\003H\001\210\001\001\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"5\n\005State\022\023\n\017STATE_NOT_KNOWN\020\000\022\t\n\005READY" + + "\020\001\022\014\n\010CREATING\020\002\"=\n\004Type\022\024\n\020TYPE_UNSPECI" + + "FIED\020\000\022\016\n\nPRODUCTION\020\001\022\017\n\013DEVELOPMENT\020\002:" + + "h\352Ae\n%bigtableadmin.googleapis.com/Insta" + + "nce\022\'projects/{project}/instances/{insta" + + "nce}*\tinstances2\010instanceB\020\n\016_satisfies_" + + "pzsB\020\n\016_satisfies_pzi\"_\n\022AutoscalingTarg" + + "ets\022\037\n\027cpu_utilization_percent\030\002 \001(\005\022(\n " + + "storage_utilization_gib_per_node\030\003 \001(\005\"O" + + "\n\021AutoscalingLimits\022\034\n\017min_serve_nodes\030\001" + + " \001(\005B\003\340A\002\022\034\n\017max_serve_nodes\030\002 \001(\005B\003\340A\002\"" + + "\255\t\n\007Cluster\022\014\n\004name\030\001 \001(\t\022;\n\010location\030\002 " + + "\001(\tB)\340A\005\372A#\n!locations.googleapis.com/Lo" + + "cation\022;\n\005state\030\003 \001(\0162\'.google.bigtable." + + "admin.v2.Cluster.StateB\003\340A\003\022\023\n\013serve_nod" + + "es\030\004 \001(\005\022U\n\023node_scaling_factor\030\t \001(\01623." + + "google.bigtable.admin.v2.Cluster.NodeSca" + + "lingFactorB\003\340A\005\022I\n\016cluster_config\030\007 \001(\0132" + + "/.google.bigtable.admin.v2.Cluster.Clust" + + "erConfigH\000\022H\n\024default_storage_type\030\005 \001(\016" + + "2%.google.bigtable.admin.v2.StorageTypeB" + + "\003\340A\005\022R\n\021encryption_config\030\006 \001(\01322.google" + + ".bigtable.admin.v2.Cluster.EncryptionCon" + + "figB\003\340A\005\032\270\001\n\030ClusterAutoscalingConfig\022L\n" + + "\022autoscaling_limits\030\001 \001(\0132+.google.bigta" + + "ble.admin.v2.AutoscalingLimitsB\003\340A\002\022N\n\023a" + + "utoscaling_targets\030\002 \001(\0132,.google.bigtab" + + "le.admin.v2.AutoscalingTargetsB\003\340A\002\032o\n\rC" + + "lusterConfig\022^\n\032cluster_autoscaling_conf" + + "ig\030\001 \001(\0132:.google.bigtable.admin.v2.Clus" + + "ter.ClusterAutoscalingConfig\032P\n\020Encrypti" + + "onConfig\022<\n\014kms_key_name\030\001 \001(\tB&\372A#\n!clo" + + "udkms.googleapis.com/CryptoKey\"Q\n\005State\022" + + "\023\n\017STATE_NOT_KNOWN\020\000\022\t\n\005READY\020\001\022\014\n\010CREAT" + + "ING\020\002\022\014\n\010RESIZING\020\003\022\014\n\010DISABLED\020\004\"p\n\021Nod" + + "eScalingFactor\022#\n\037NODE_SCALING_FACTOR_UN" + + "SPECIFIED\020\000\022\032\n\026NODE_SCALING_FACTOR_1X\020\001\022" + + "\032\n\026NODE_SCALING_FACTOR_2X\020\002:x\352Au\n$bigtab" + + "leadmin.googleapis.com/Cluster\022:projects" + + "/{project}/instances/{instance}/clusters" + + "/{cluster}*\010clusters2\007clusterB\010\n\006config\"" + + "\355\n\n\nAppProfile\022\014\n\004name\030\001 \001(\t\022\014\n\004etag\030\002 \001" + + "(\t\022\023\n\013description\030\003 \001(\t\022g\n\035multi_cluster" + + "_routing_use_any\030\005 \001(\0132>.google.bigtable" + ".admin.v2.AppProfile.MultiClusterRouting" - + "UseAny.RowAffinityH\000\032\r\n\013RowAffinityB\n\n\010a" - + "ffinity\032N\n\024SingleClusterRouting\022\022\n\nclust" - + "er_id\030\001 \001(\t\022\"\n\032allow_transactional_write" - + "s\030\002 \001(\010\032T\n\021StandardIsolation\022?\n\010priority" - + "\030\001 \001(\0162-.google.bigtable.admin.v2.AppPro" - + "file.Priority\032\374\001\n\032DataBoostIsolationRead" - + "Only\022w\n\025compute_billing_owner\030\001 \001(\0162S.go" - + "ogle.bigtable.admin.v2.AppProfile.DataBo" - + "ostIsolationReadOnly.ComputeBillingOwner" - + "H\000\210\001\001\"K\n\023ComputeBillingOwner\022%\n!COMPUTE_" - + "BILLING_OWNER_UNSPECIFIED\020\000\022\r\n\tHOST_PAYS" - + "\020\001B\030\n\026_compute_billing_owner\"^\n\010Priority" - + "\022\030\n\024PRIORITY_UNSPECIFIED\020\000\022\020\n\014PRIORITY_L" - + "OW\020\001\022\023\n\017PRIORITY_MEDIUM\020\002\022\021\n\rPRIORITY_HI" - + "GH\020\003:o\352Al\n\'bigtableadmin.googleapis.com/" - + "AppProfile\022Aprojects/{project}/instances" - + "/{instance}/appProfiles/{app_profile}B\020\n" - + "\016routing_policyB\013\n\tisolation\"\210\003\n\tHotTabl" - + "et\022\014\n\004name\030\001 \001(\t\022;\n\ntable_name\030\002 \001(\tB\'\372A" - + "$\n\"bigtableadmin.googleapis.com/Table\0223\n" - + "\nstart_time\030\003 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0221\n\010end_time\030\004 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022\021\n\tstart_key\030\005 \001(\t" - + "\022\017\n\007end_key\030\006 \001(\t\022#\n\026node_cpu_usage_perc" - + "ent\030\007 \001(\002B\003\340A\003:\177\352A|\n&bigtableadmin.googl" - + "eapis.com/HotTablet\022Rprojects/{project}/" - + "instances/{instance}/clusters/{cluster}/" - + "hotTablets/{hot_tablet}B\313\002\n\034com.google.b" - + "igtable.admin.v2B\rInstanceProtoP\001Z8cloud" - + ".google.com/go/bigtable/admin/apiv2/admi" - + "npb;adminpb\252\002\036Google.Cloud.Bigtable.Admi" - + "n.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2\352\002\"" - + "Google::Cloud::Bigtable::Admin::V2\352Ax\n!c" - + "loudkms.googleapis.com/CryptoKey\022Sprojec" - + "ts/{project}/locations/{location}/keyRin" - + "gs/{key_ring}/cryptoKeys/{crypto_key}b\006p" - + "roto3" + + "UseAnyH\000\022[\n\026single_cluster_routing\030\006 \001(\013" + + "29.google.bigtable.admin.v2.AppProfile.S" + + "ingleClusterRoutingH\000\022E\n\010priority\030\007 \001(\0162" + + "-.google.bigtable.admin.v2.AppProfile.Pr" + + "iorityB\002\030\001H\001\022T\n\022standard_isolation\030\013 \001(\013" + + "26.google.bigtable.admin.v2.AppProfile.S" + + "tandardIsolationH\001\022i\n\036data_boost_isolati" + + "on_read_only\030\n \001(\0132?.google.bigtable.adm" + + "in.v2.AppProfile.DataBoostIsolationReadO" + + "nlyH\001\032\257\001\n\031MultiClusterRoutingUseAny\022\023\n\013c" + + "luster_ids\030\001 \003(\t\022b\n\014row_affinity\030\003 \001(\0132J" + + ".google.bigtable.admin.v2.AppProfile.Mul" + + "tiClusterRoutingUseAny.RowAffinityH\000\032\r\n\013" + + "RowAffinityB\n\n\010affinity\032N\n\024SingleCluster" + + "Routing\022\022\n\ncluster_id\030\001 \001(\t\022\"\n\032allow_tra" + + "nsactional_writes\030\002 \001(\010\032T\n\021StandardIsola" + + "tion\022?\n\010priority\030\001 \001(\0162-.google.bigtable" + + ".admin.v2.AppProfile.Priority\032\374\001\n\032DataBo" + + "ostIsolationReadOnly\022w\n\025compute_billing_" + + "owner\030\001 \001(\0162S.google.bigtable.admin.v2.A" + + "ppProfile.DataBoostIsolationReadOnly.Com" + + "puteBillingOwnerH\000\210\001\001\"K\n\023ComputeBillingO" + + "wner\022%\n!COMPUTE_BILLING_OWNER_UNSPECIFIE" + + "D\020\000\022\r\n\tHOST_PAYS\020\001B\030\n\026_compute_billing_o" + + "wner\"^\n\010Priority\022\030\n\024PRIORITY_UNSPECIFIED" + + "\020\000\022\020\n\014PRIORITY_LOW\020\001\022\023\n\017PRIORITY_MEDIUM\020" + + "\002\022\021\n\rPRIORITY_HIGH\020\003:\211\001\352A\205\001\n\'bigtableadm" + + "in.googleapis.com/AppProfile\022Aprojects/{" + + "project}/instances/{instance}/appProfile" + + "s/{app_profile}*\013appProfiles2\nappProfile" + + "B\020\n\016routing_policyB\013\n\tisolation\"\241\003\n\tHotT" + + "ablet\022\014\n\004name\030\001 \001(\t\022;\n\ntable_name\030\002 \001(\tB" + + "\'\372A$\n\"bigtableadmin.googleapis.com/Table" + + "\0223\n\nstart_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0221\n\010end_time\030\004 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022\021\n\tstart_key\030\005 " + + "\001(\t\022\017\n\007end_key\030\006 \001(\t\022#\n\026node_cpu_usage_p" + + "ercent\030\007 \001(\002B\003\340A\003:\227\001\352A\223\001\n&bigtableadmin." + + "googleapis.com/HotTablet\022Rprojects/{proj" + + "ect}/instances/{instance}/clusters/{clus" + + "ter}/hotTablets/{hot_tablet}*\nhotTablets" + + "2\thotTablet\"\330\001\n\013LogicalView\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\010\022\022\n\005query\030\002 \001(\tB\003\340A\002\022\021\n\004etag\030\003 \001(\t" + + "B\003\340A\001:\216\001\352A\212\001\n(bigtableadmin.googleapis.c" + + "om/LogicalView\022Cprojects/{project}/insta" + + "nces/{instance}/logicalViews/{logical_vi" + + "ew}*\014logicalViews2\013logicalView\"\226\002\n\020Mater" + + "ializedView\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\025\n\005query\030" + + "\002 \001(\tB\006\340A\002\340A\005\022\021\n\004etag\030\003 \001(\tB\003\340A\001\022\033\n\023dele" + + "tion_protection\030\006 \001(\010:\247\001\352A\243\001\n-bigtablead" + + "min.googleapis.com/MaterializedView\022Mpro" + + "jects/{project}/instances/{instance}/mat" + + "erializedViews/{materialized_view}*\021mate" + + "rializedViews2\020materializedViewB\313\002\n\034com." + + "google.bigtable.admin.v2B\rInstanceProtoP" + + "\001Z8cloud.google.com/go/bigtable/admin/ap" + + "iv2/adminpb;adminpb\252\002\036Google.Cloud.Bigta" + + "ble.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Adm" + + "in\\V2\352\002\"Google::Cloud::Bigtable::Admin::" + + "V2\352Ax\n!cloudkms.googleapis.com/CryptoKey" + + "\022Sprojects/{project}/locations/{location" + + "}/keyRings/{key_ring}/cryptoKeys/{crypto" + + "_key}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -220,7 +244,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_Instance_descriptor, new java.lang.String[] { - "Name", "DisplayName", "State", "Type", "Labels", "CreateTime", "SatisfiesPzs", + "Name", + "DisplayName", + "State", + "Type", + "Labels", + "CreateTime", + "SatisfiesPzs", + "SatisfiesPzi", }); internal_static_google_bigtable_admin_v2_Instance_LabelsEntry_descriptor = internal_static_google_bigtable_admin_v2_Instance_descriptor.getNestedTypes().get(0); @@ -357,6 +388,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EndKey", "NodeCpuUsagePercent", }); + internal_static_google_bigtable_admin_v2_LogicalView_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_bigtable_admin_v2_LogicalView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_LogicalView_descriptor, + new java.lang.String[] { + "Name", "Query", "Etag", + }); + internal_static_google_bigtable_admin_v2_MaterializedView_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_bigtable_admin_v2_MaterializedView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_MaterializedView_descriptor, + new java.lang.String[] { + "Name", "Query", "Etag", "DeletionProtection", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListLogicalViewsRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListLogicalViewsRequest.java new file mode 100644 index 000000000000..ab3a0c47e423 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListLogicalViewsRequest.java @@ -0,0 +1,960 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * Request message for BigtableInstanceAdmin.ListLogicalViews.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.ListLogicalViewsRequest} + */ +public final class ListLogicalViewsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.ListLogicalViewsRequest) + ListLogicalViewsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListLogicalViewsRequest.newBuilder() to construct. + private ListLogicalViewsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLogicalViewsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLogicalViewsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListLogicalViewsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListLogicalViewsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.ListLogicalViewsRequest.class, + com.google.bigtable.admin.v2.ListLogicalViewsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The unique name of the instance for which the list of logical
    +   * views is requested. Values are of the form
    +   * `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * 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. The unique name of the instance for which the list of logical
    +   * views is requested. Values are of the form
    +   * `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
    +   * Optional. The maximum number of logical views to return. The service may
    +   * return fewer than this value
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListLogicalViews` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListLogicalViews` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListLogicalViews` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListLogicalViews` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.bigtable.admin.v2.ListLogicalViewsRequest)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.ListLogicalViewsRequest other = + (com.google.bigtable.admin.v2.ListLogicalViewsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsRequest 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.bigtable.admin.v2.ListLogicalViewsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsRequest 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.bigtable.admin.v2.ListLogicalViewsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsRequest 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.bigtable.admin.v2.ListLogicalViewsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsRequest 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.bigtable.admin.v2.ListLogicalViewsRequest 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; + } + /** + * + * + *
    +   * Request message for BigtableInstanceAdmin.ListLogicalViews.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.ListLogicalViewsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.ListLogicalViewsRequest) + com.google.bigtable.admin.v2.ListLogicalViewsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListLogicalViewsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListLogicalViewsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.ListLogicalViewsRequest.class, + com.google.bigtable.admin.v2.ListLogicalViewsRequest.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.ListLogicalViewsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListLogicalViewsRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.ListLogicalViewsRequest getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.ListLogicalViewsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.ListLogicalViewsRequest build() { + com.google.bigtable.admin.v2.ListLogicalViewsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.ListLogicalViewsRequest buildPartial() { + com.google.bigtable.admin.v2.ListLogicalViewsRequest result = + new com.google.bigtable.admin.v2.ListLogicalViewsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.ListLogicalViewsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.bigtable.admin.v2.ListLogicalViewsRequest) { + return mergeFrom((com.google.bigtable.admin.v2.ListLogicalViewsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.ListLogicalViewsRequest other) { + if (other == com.google.bigtable.admin.v2.ListLogicalViewsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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. The unique name of the instance for which the list of logical
    +     * views is requested. Values are of the form
    +     * `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The unique name of the instance for which the list of logical
    +     * views is requested. Values are of the form
    +     * `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The unique name of the instance for which the list of logical
    +     * views is requested. Values are of the form
    +     * `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The unique name of the instance for which the list of logical
    +     * views is requested. Values are of the form
    +     * `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The unique name of the instance for which the list of logical
    +     * views is requested. Values are of the form
    +     * `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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 int pageSize_; + /** + * + * + *
    +     * Optional. The maximum number of logical views to return. The service may
    +     * return fewer than this value
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
    +     * Optional. The maximum number of logical views to return. The service may
    +     * return fewer than this value
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The maximum number of logical views to return. The service may
    +     * return fewer than this value
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
    +     * Optional. A page token, received from a previous `ListLogicalViews` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListLogicalViews` must
    +     * match the call that provided the page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. A page token, received from a previous `ListLogicalViews` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListLogicalViews` must
    +     * match the call that provided the page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. A page token, received from a previous `ListLogicalViews` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListLogicalViews` must
    +     * match the call that provided the page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. A page token, received from a previous `ListLogicalViews` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListLogicalViews` must
    +     * match the call that provided the page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. A page token, received from a previous `ListLogicalViews` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListLogicalViews` must
    +     * match the call that provided the page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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.bigtable.admin.v2.ListLogicalViewsRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListLogicalViewsRequest) + private static final com.google.bigtable.admin.v2.ListLogicalViewsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.ListLogicalViewsRequest(); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogicalViewsRequest 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.bigtable.admin.v2.ListLogicalViewsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListLogicalViewsRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListLogicalViewsRequestOrBuilder.java new file mode 100644 index 000000000000..dd21e30ea87a --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListLogicalViewsRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface ListLogicalViewsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.ListLogicalViewsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The unique name of the instance for which the list of logical
    +   * views is requested. Values are of the form
    +   * `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
    +   * Required. The unique name of the instance for which the list of logical
    +   * views is requested. Values are of the form
    +   * `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of logical views to return. The service may
    +   * return fewer than this value
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListLogicalViews` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListLogicalViews` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListLogicalViews` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListLogicalViews` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListLogicalViewsResponse.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListLogicalViewsResponse.java new file mode 100644 index 000000000000..3f53c0cc6fc2 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListLogicalViewsResponse.java @@ -0,0 +1,1128 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * Response message for BigtableInstanceAdmin.ListLogicalViews.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.ListLogicalViewsResponse} + */ +public final class ListLogicalViewsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.ListLogicalViewsResponse) + ListLogicalViewsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListLogicalViewsResponse.newBuilder() to construct. + private ListLogicalViewsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLogicalViewsResponse() { + logicalViews_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLogicalViewsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListLogicalViewsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListLogicalViewsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.ListLogicalViewsResponse.class, + com.google.bigtable.admin.v2.ListLogicalViewsResponse.Builder.class); + } + + public static final int LOGICAL_VIEWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List logicalViews_; + /** + * + * + *
    +   * The list of requested logical views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + @java.lang.Override + public java.util.List getLogicalViewsList() { + return logicalViews_; + } + /** + * + * + *
    +   * The list of requested logical views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + @java.lang.Override + public java.util.List + getLogicalViewsOrBuilderList() { + return logicalViews_; + } + /** + * + * + *
    +   * The list of requested logical views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + @java.lang.Override + public int getLogicalViewsCount() { + return logicalViews_.size(); + } + /** + * + * + *
    +   * The list of requested logical views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.LogicalView getLogicalViews(int index) { + return logicalViews_.get(index); + } + /** + * + * + *
    +   * The list of requested logical views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.LogicalViewOrBuilder getLogicalViewsOrBuilder(int index) { + return logicalViews_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < logicalViews_.size(); i++) { + output.writeMessage(1, logicalViews_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < logicalViews_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, logicalViews_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.bigtable.admin.v2.ListLogicalViewsResponse)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.ListLogicalViewsResponse other = + (com.google.bigtable.admin.v2.ListLogicalViewsResponse) obj; + + if (!getLogicalViewsList().equals(other.getLogicalViewsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getLogicalViewsCount() > 0) { + hash = (37 * hash) + LOGICAL_VIEWS_FIELD_NUMBER; + hash = (53 * hash) + getLogicalViewsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsResponse 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.bigtable.admin.v2.ListLogicalViewsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsResponse 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.bigtable.admin.v2.ListLogicalViewsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsResponse 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.bigtable.admin.v2.ListLogicalViewsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsResponse 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.bigtable.admin.v2.ListLogicalViewsResponse 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; + } + /** + * + * + *
    +   * Response message for BigtableInstanceAdmin.ListLogicalViews.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.ListLogicalViewsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.ListLogicalViewsResponse) + com.google.bigtable.admin.v2.ListLogicalViewsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListLogicalViewsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListLogicalViewsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.ListLogicalViewsResponse.class, + com.google.bigtable.admin.v2.ListLogicalViewsResponse.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.ListLogicalViewsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (logicalViewsBuilder_ == null) { + logicalViews_ = java.util.Collections.emptyList(); + } else { + logicalViews_ = null; + logicalViewsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListLogicalViewsResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.ListLogicalViewsResponse getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.ListLogicalViewsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.ListLogicalViewsResponse build() { + com.google.bigtable.admin.v2.ListLogicalViewsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.ListLogicalViewsResponse buildPartial() { + com.google.bigtable.admin.v2.ListLogicalViewsResponse result = + new com.google.bigtable.admin.v2.ListLogicalViewsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.bigtable.admin.v2.ListLogicalViewsResponse result) { + if (logicalViewsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + logicalViews_ = java.util.Collections.unmodifiableList(logicalViews_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.logicalViews_ = logicalViews_; + } else { + result.logicalViews_ = logicalViewsBuilder_.build(); + } + } + + private void buildPartial0(com.google.bigtable.admin.v2.ListLogicalViewsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.bigtable.admin.v2.ListLogicalViewsResponse) { + return mergeFrom((com.google.bigtable.admin.v2.ListLogicalViewsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.ListLogicalViewsResponse other) { + if (other == com.google.bigtable.admin.v2.ListLogicalViewsResponse.getDefaultInstance()) + return this; + if (logicalViewsBuilder_ == null) { + if (!other.logicalViews_.isEmpty()) { + if (logicalViews_.isEmpty()) { + logicalViews_ = other.logicalViews_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLogicalViewsIsMutable(); + logicalViews_.addAll(other.logicalViews_); + } + onChanged(); + } + } else { + if (!other.logicalViews_.isEmpty()) { + if (logicalViewsBuilder_.isEmpty()) { + logicalViewsBuilder_.dispose(); + logicalViewsBuilder_ = null; + logicalViews_ = other.logicalViews_; + bitField0_ = (bitField0_ & ~0x00000001); + logicalViewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogicalViewsFieldBuilder() + : null; + } else { + logicalViewsBuilder_.addAllMessages(other.logicalViews_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + 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: + { + com.google.bigtable.admin.v2.LogicalView m = + input.readMessage( + com.google.bigtable.admin.v2.LogicalView.parser(), extensionRegistry); + if (logicalViewsBuilder_ == null) { + ensureLogicalViewsIsMutable(); + logicalViews_.add(m); + } else { + logicalViewsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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.util.List logicalViews_ = + java.util.Collections.emptyList(); + + private void ensureLogicalViewsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + logicalViews_ = + new java.util.ArrayList(logicalViews_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.bigtable.admin.v2.LogicalView, + com.google.bigtable.admin.v2.LogicalView.Builder, + com.google.bigtable.admin.v2.LogicalViewOrBuilder> + logicalViewsBuilder_; + + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public java.util.List getLogicalViewsList() { + if (logicalViewsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logicalViews_); + } else { + return logicalViewsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public int getLogicalViewsCount() { + if (logicalViewsBuilder_ == null) { + return logicalViews_.size(); + } else { + return logicalViewsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public com.google.bigtable.admin.v2.LogicalView getLogicalViews(int index) { + if (logicalViewsBuilder_ == null) { + return logicalViews_.get(index); + } else { + return logicalViewsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public Builder setLogicalViews(int index, com.google.bigtable.admin.v2.LogicalView value) { + if (logicalViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalViewsIsMutable(); + logicalViews_.set(index, value); + onChanged(); + } else { + logicalViewsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public Builder setLogicalViews( + int index, com.google.bigtable.admin.v2.LogicalView.Builder builderForValue) { + if (logicalViewsBuilder_ == null) { + ensureLogicalViewsIsMutable(); + logicalViews_.set(index, builderForValue.build()); + onChanged(); + } else { + logicalViewsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public Builder addLogicalViews(com.google.bigtable.admin.v2.LogicalView value) { + if (logicalViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalViewsIsMutable(); + logicalViews_.add(value); + onChanged(); + } else { + logicalViewsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public Builder addLogicalViews(int index, com.google.bigtable.admin.v2.LogicalView value) { + if (logicalViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalViewsIsMutable(); + logicalViews_.add(index, value); + onChanged(); + } else { + logicalViewsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public Builder addLogicalViews( + com.google.bigtable.admin.v2.LogicalView.Builder builderForValue) { + if (logicalViewsBuilder_ == null) { + ensureLogicalViewsIsMutable(); + logicalViews_.add(builderForValue.build()); + onChanged(); + } else { + logicalViewsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public Builder addLogicalViews( + int index, com.google.bigtable.admin.v2.LogicalView.Builder builderForValue) { + if (logicalViewsBuilder_ == null) { + ensureLogicalViewsIsMutable(); + logicalViews_.add(index, builderForValue.build()); + onChanged(); + } else { + logicalViewsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public Builder addAllLogicalViews( + java.lang.Iterable values) { + if (logicalViewsBuilder_ == null) { + ensureLogicalViewsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalViews_); + onChanged(); + } else { + logicalViewsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public Builder clearLogicalViews() { + if (logicalViewsBuilder_ == null) { + logicalViews_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + logicalViewsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public Builder removeLogicalViews(int index) { + if (logicalViewsBuilder_ == null) { + ensureLogicalViewsIsMutable(); + logicalViews_.remove(index); + onChanged(); + } else { + logicalViewsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public com.google.bigtable.admin.v2.LogicalView.Builder getLogicalViewsBuilder(int index) { + return getLogicalViewsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public com.google.bigtable.admin.v2.LogicalViewOrBuilder getLogicalViewsOrBuilder(int index) { + if (logicalViewsBuilder_ == null) { + return logicalViews_.get(index); + } else { + return logicalViewsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public java.util.List + getLogicalViewsOrBuilderList() { + if (logicalViewsBuilder_ != null) { + return logicalViewsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logicalViews_); + } + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public com.google.bigtable.admin.v2.LogicalView.Builder addLogicalViewsBuilder() { + return getLogicalViewsFieldBuilder() + .addBuilder(com.google.bigtable.admin.v2.LogicalView.getDefaultInstance()); + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public com.google.bigtable.admin.v2.LogicalView.Builder addLogicalViewsBuilder(int index) { + return getLogicalViewsFieldBuilder() + .addBuilder(index, com.google.bigtable.admin.v2.LogicalView.getDefaultInstance()); + } + /** + * + * + *
    +     * The list of requested logical views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + public java.util.List + getLogicalViewsBuilderList() { + return getLogicalViewsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.bigtable.admin.v2.LogicalView, + com.google.bigtable.admin.v2.LogicalView.Builder, + com.google.bigtable.admin.v2.LogicalViewOrBuilder> + getLogicalViewsFieldBuilder() { + if (logicalViewsBuilder_ == null) { + logicalViewsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.bigtable.admin.v2.LogicalView, + com.google.bigtable.admin.v2.LogicalView.Builder, + com.google.bigtable.admin.v2.LogicalViewOrBuilder>( + logicalViews_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + logicalViews_ = null; + } + return logicalViewsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + 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.bigtable.admin.v2.ListLogicalViewsResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListLogicalViewsResponse) + private static final com.google.bigtable.admin.v2.ListLogicalViewsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.ListLogicalViewsResponse(); + } + + public static com.google.bigtable.admin.v2.ListLogicalViewsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogicalViewsResponse 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.bigtable.admin.v2.ListLogicalViewsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListLogicalViewsResponseOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListLogicalViewsResponseOrBuilder.java new file mode 100644 index 000000000000..7d83504a9d05 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListLogicalViewsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface ListLogicalViewsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.ListLogicalViewsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The list of requested logical views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + java.util.List getLogicalViewsList(); + /** + * + * + *
    +   * The list of requested logical views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + com.google.bigtable.admin.v2.LogicalView getLogicalViews(int index); + /** + * + * + *
    +   * The list of requested logical views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + int getLogicalViewsCount(); + /** + * + * + *
    +   * The list of requested logical views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + java.util.List + getLogicalViewsOrBuilderList(); + /** + * + * + *
    +   * The list of requested logical views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + com.google.bigtable.admin.v2.LogicalViewOrBuilder getLogicalViewsOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListMaterializedViewsRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListMaterializedViewsRequest.java new file mode 100644 index 000000000000..c43ecb59c388 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListMaterializedViewsRequest.java @@ -0,0 +1,961 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * Request message for BigtableInstanceAdmin.ListMaterializedViews.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.ListMaterializedViewsRequest} + */ +public final class ListMaterializedViewsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.ListMaterializedViewsRequest) + ListMaterializedViewsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMaterializedViewsRequest.newBuilder() to construct. + private ListMaterializedViewsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMaterializedViewsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMaterializedViewsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListMaterializedViewsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListMaterializedViewsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.ListMaterializedViewsRequest.class, + com.google.bigtable.admin.v2.ListMaterializedViewsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The unique name of the instance for which the list of
    +   * materialized views is requested. Values are of the form
    +   * `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * 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. The unique name of the instance for which the list of
    +   * materialized views is requested. Values are of the form
    +   * `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
    +   * Optional. The maximum number of materialized views to return. The service
    +   * may return fewer than this value
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListMaterializedViews`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListMaterializedViews`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListMaterializedViews`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListMaterializedViews`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.bigtable.admin.v2.ListMaterializedViewsRequest)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.ListMaterializedViewsRequest other = + (com.google.bigtable.admin.v2.ListMaterializedViewsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsRequest 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.bigtable.admin.v2.ListMaterializedViewsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsRequest 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.bigtable.admin.v2.ListMaterializedViewsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsRequest 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.bigtable.admin.v2.ListMaterializedViewsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsRequest 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.bigtable.admin.v2.ListMaterializedViewsRequest 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; + } + /** + * + * + *
    +   * Request message for BigtableInstanceAdmin.ListMaterializedViews.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.ListMaterializedViewsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.ListMaterializedViewsRequest) + com.google.bigtable.admin.v2.ListMaterializedViewsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListMaterializedViewsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListMaterializedViewsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.ListMaterializedViewsRequest.class, + com.google.bigtable.admin.v2.ListMaterializedViewsRequest.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.ListMaterializedViewsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListMaterializedViewsRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.ListMaterializedViewsRequest getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.ListMaterializedViewsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.ListMaterializedViewsRequest build() { + com.google.bigtable.admin.v2.ListMaterializedViewsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.ListMaterializedViewsRequest buildPartial() { + com.google.bigtable.admin.v2.ListMaterializedViewsRequest result = + new com.google.bigtable.admin.v2.ListMaterializedViewsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.ListMaterializedViewsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.bigtable.admin.v2.ListMaterializedViewsRequest) { + return mergeFrom((com.google.bigtable.admin.v2.ListMaterializedViewsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.ListMaterializedViewsRequest other) { + if (other == com.google.bigtable.admin.v2.ListMaterializedViewsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = 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. The unique name of the instance for which the list of
    +     * materialized views is requested. Values are of the form
    +     * `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The unique name of the instance for which the list of
    +     * materialized views is requested. Values are of the form
    +     * `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The unique name of the instance for which the list of
    +     * materialized views is requested. Values are of the form
    +     * `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The unique name of the instance for which the list of
    +     * materialized views is requested. Values are of the form
    +     * `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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. The unique name of the instance for which the list of
    +     * materialized views is requested. Values are of the form
    +     * `projects/{project}/instances/{instance}`.
    +     * 
    + * + * + * 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 int pageSize_; + /** + * + * + *
    +     * Optional. The maximum number of materialized views to return. The service
    +     * may return fewer than this value
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
    +     * Optional. The maximum number of materialized views to return. The service
    +     * may return fewer than this value
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The maximum number of materialized views to return. The service
    +     * may return fewer than this value
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
    +     * Optional. A page token, received from a previous `ListMaterializedViews`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMaterializedViews`
    +     * must match the call that provided the page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. A page token, received from a previous `ListMaterializedViews`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMaterializedViews`
    +     * must match the call that provided the page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. A page token, received from a previous `ListMaterializedViews`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMaterializedViews`
    +     * must match the call that provided the page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. A page token, received from a previous `ListMaterializedViews`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMaterializedViews`
    +     * must match the call that provided the page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. A page token, received from a previous `ListMaterializedViews`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMaterializedViews`
    +     * must match the call that provided the page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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.bigtable.admin.v2.ListMaterializedViewsRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListMaterializedViewsRequest) + private static final com.google.bigtable.admin.v2.ListMaterializedViewsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.ListMaterializedViewsRequest(); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMaterializedViewsRequest 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.bigtable.admin.v2.ListMaterializedViewsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListMaterializedViewsRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListMaterializedViewsRequestOrBuilder.java new file mode 100644 index 000000000000..b5066b43b378 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListMaterializedViewsRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface ListMaterializedViewsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.ListMaterializedViewsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The unique name of the instance for which the list of
    +   * materialized views is requested. Values are of the form
    +   * `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
    +   * Required. The unique name of the instance for which the list of
    +   * materialized views is requested. Values are of the form
    +   * `projects/{project}/instances/{instance}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of materialized views to return. The service
    +   * may return fewer than this value
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListMaterializedViews`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListMaterializedViews`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListMaterializedViews`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListMaterializedViews`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListMaterializedViewsResponse.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListMaterializedViewsResponse.java new file mode 100644 index 000000000000..5ea174409912 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListMaterializedViewsResponse.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * Response message for BigtableInstanceAdmin.ListMaterializedViews.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.ListMaterializedViewsResponse} + */ +public final class ListMaterializedViewsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.ListMaterializedViewsResponse) + ListMaterializedViewsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMaterializedViewsResponse.newBuilder() to construct. + private ListMaterializedViewsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMaterializedViewsResponse() { + materializedViews_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMaterializedViewsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListMaterializedViewsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListMaterializedViewsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.ListMaterializedViewsResponse.class, + com.google.bigtable.admin.v2.ListMaterializedViewsResponse.Builder.class); + } + + public static final int MATERIALIZED_VIEWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List materializedViews_; + /** + * + * + *
    +   * The list of requested materialized views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + @java.lang.Override + public java.util.List getMaterializedViewsList() { + return materializedViews_; + } + /** + * + * + *
    +   * The list of requested materialized views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + @java.lang.Override + public java.util.List + getMaterializedViewsOrBuilderList() { + return materializedViews_; + } + /** + * + * + *
    +   * The list of requested materialized views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + @java.lang.Override + public int getMaterializedViewsCount() { + return materializedViews_.size(); + } + /** + * + * + *
    +   * The list of requested materialized views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.MaterializedView getMaterializedViews(int index) { + return materializedViews_.get(index); + } + /** + * + * + *
    +   * The list of requested materialized views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.MaterializedViewOrBuilder getMaterializedViewsOrBuilder( + int index) { + return materializedViews_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < materializedViews_.size(); i++) { + output.writeMessage(1, materializedViews_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < materializedViews_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, materializedViews_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.bigtable.admin.v2.ListMaterializedViewsResponse)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.ListMaterializedViewsResponse other = + (com.google.bigtable.admin.v2.ListMaterializedViewsResponse) obj; + + if (!getMaterializedViewsList().equals(other.getMaterializedViewsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getMaterializedViewsCount() > 0) { + hash = (37 * hash) + MATERIALIZED_VIEWS_FIELD_NUMBER; + hash = (53 * hash) + getMaterializedViewsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsResponse 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.bigtable.admin.v2.ListMaterializedViewsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsResponse 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.bigtable.admin.v2.ListMaterializedViewsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsResponse 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.bigtable.admin.v2.ListMaterializedViewsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsResponse 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.bigtable.admin.v2.ListMaterializedViewsResponse 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; + } + /** + * + * + *
    +   * Response message for BigtableInstanceAdmin.ListMaterializedViews.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.ListMaterializedViewsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.ListMaterializedViewsResponse) + com.google.bigtable.admin.v2.ListMaterializedViewsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListMaterializedViewsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListMaterializedViewsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.ListMaterializedViewsResponse.class, + com.google.bigtable.admin.v2.ListMaterializedViewsResponse.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.ListMaterializedViewsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (materializedViewsBuilder_ == null) { + materializedViews_ = java.util.Collections.emptyList(); + } else { + materializedViews_ = null; + materializedViewsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_ListMaterializedViewsResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.ListMaterializedViewsResponse getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.ListMaterializedViewsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.ListMaterializedViewsResponse build() { + com.google.bigtable.admin.v2.ListMaterializedViewsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.ListMaterializedViewsResponse buildPartial() { + com.google.bigtable.admin.v2.ListMaterializedViewsResponse result = + new com.google.bigtable.admin.v2.ListMaterializedViewsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.bigtable.admin.v2.ListMaterializedViewsResponse result) { + if (materializedViewsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + materializedViews_ = java.util.Collections.unmodifiableList(materializedViews_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.materializedViews_ = materializedViews_; + } else { + result.materializedViews_ = materializedViewsBuilder_.build(); + } + } + + private void buildPartial0(com.google.bigtable.admin.v2.ListMaterializedViewsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.bigtable.admin.v2.ListMaterializedViewsResponse) { + return mergeFrom((com.google.bigtable.admin.v2.ListMaterializedViewsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.ListMaterializedViewsResponse other) { + if (other == com.google.bigtable.admin.v2.ListMaterializedViewsResponse.getDefaultInstance()) + return this; + if (materializedViewsBuilder_ == null) { + if (!other.materializedViews_.isEmpty()) { + if (materializedViews_.isEmpty()) { + materializedViews_ = other.materializedViews_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMaterializedViewsIsMutable(); + materializedViews_.addAll(other.materializedViews_); + } + onChanged(); + } + } else { + if (!other.materializedViews_.isEmpty()) { + if (materializedViewsBuilder_.isEmpty()) { + materializedViewsBuilder_.dispose(); + materializedViewsBuilder_ = null; + materializedViews_ = other.materializedViews_; + bitField0_ = (bitField0_ & ~0x00000001); + materializedViewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMaterializedViewsFieldBuilder() + : null; + } else { + materializedViewsBuilder_.addAllMessages(other.materializedViews_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + 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: + { + com.google.bigtable.admin.v2.MaterializedView m = + input.readMessage( + com.google.bigtable.admin.v2.MaterializedView.parser(), extensionRegistry); + if (materializedViewsBuilder_ == null) { + ensureMaterializedViewsIsMutable(); + materializedViews_.add(m); + } else { + materializedViewsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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.util.List materializedViews_ = + java.util.Collections.emptyList(); + + private void ensureMaterializedViewsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + materializedViews_ = + new java.util.ArrayList( + materializedViews_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.bigtable.admin.v2.MaterializedView, + com.google.bigtable.admin.v2.MaterializedView.Builder, + com.google.bigtable.admin.v2.MaterializedViewOrBuilder> + materializedViewsBuilder_; + + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public java.util.List + getMaterializedViewsList() { + if (materializedViewsBuilder_ == null) { + return java.util.Collections.unmodifiableList(materializedViews_); + } else { + return materializedViewsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public int getMaterializedViewsCount() { + if (materializedViewsBuilder_ == null) { + return materializedViews_.size(); + } else { + return materializedViewsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public com.google.bigtable.admin.v2.MaterializedView getMaterializedViews(int index) { + if (materializedViewsBuilder_ == null) { + return materializedViews_.get(index); + } else { + return materializedViewsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public Builder setMaterializedViews( + int index, com.google.bigtable.admin.v2.MaterializedView value) { + if (materializedViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMaterializedViewsIsMutable(); + materializedViews_.set(index, value); + onChanged(); + } else { + materializedViewsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public Builder setMaterializedViews( + int index, com.google.bigtable.admin.v2.MaterializedView.Builder builderForValue) { + if (materializedViewsBuilder_ == null) { + ensureMaterializedViewsIsMutable(); + materializedViews_.set(index, builderForValue.build()); + onChanged(); + } else { + materializedViewsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public Builder addMaterializedViews(com.google.bigtable.admin.v2.MaterializedView value) { + if (materializedViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMaterializedViewsIsMutable(); + materializedViews_.add(value); + onChanged(); + } else { + materializedViewsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public Builder addMaterializedViews( + int index, com.google.bigtable.admin.v2.MaterializedView value) { + if (materializedViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMaterializedViewsIsMutable(); + materializedViews_.add(index, value); + onChanged(); + } else { + materializedViewsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public Builder addMaterializedViews( + com.google.bigtable.admin.v2.MaterializedView.Builder builderForValue) { + if (materializedViewsBuilder_ == null) { + ensureMaterializedViewsIsMutable(); + materializedViews_.add(builderForValue.build()); + onChanged(); + } else { + materializedViewsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public Builder addMaterializedViews( + int index, com.google.bigtable.admin.v2.MaterializedView.Builder builderForValue) { + if (materializedViewsBuilder_ == null) { + ensureMaterializedViewsIsMutable(); + materializedViews_.add(index, builderForValue.build()); + onChanged(); + } else { + materializedViewsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public Builder addAllMaterializedViews( + java.lang.Iterable values) { + if (materializedViewsBuilder_ == null) { + ensureMaterializedViewsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, materializedViews_); + onChanged(); + } else { + materializedViewsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public Builder clearMaterializedViews() { + if (materializedViewsBuilder_ == null) { + materializedViews_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + materializedViewsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public Builder removeMaterializedViews(int index) { + if (materializedViewsBuilder_ == null) { + ensureMaterializedViewsIsMutable(); + materializedViews_.remove(index); + onChanged(); + } else { + materializedViewsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public com.google.bigtable.admin.v2.MaterializedView.Builder getMaterializedViewsBuilder( + int index) { + return getMaterializedViewsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public com.google.bigtable.admin.v2.MaterializedViewOrBuilder getMaterializedViewsOrBuilder( + int index) { + if (materializedViewsBuilder_ == null) { + return materializedViews_.get(index); + } else { + return materializedViewsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public java.util.List + getMaterializedViewsOrBuilderList() { + if (materializedViewsBuilder_ != null) { + return materializedViewsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(materializedViews_); + } + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public com.google.bigtable.admin.v2.MaterializedView.Builder addMaterializedViewsBuilder() { + return getMaterializedViewsFieldBuilder() + .addBuilder(com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance()); + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public com.google.bigtable.admin.v2.MaterializedView.Builder addMaterializedViewsBuilder( + int index) { + return getMaterializedViewsFieldBuilder() + .addBuilder(index, com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance()); + } + /** + * + * + *
    +     * The list of requested materialized views.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + public java.util.List + getMaterializedViewsBuilderList() { + return getMaterializedViewsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.bigtable.admin.v2.MaterializedView, + com.google.bigtable.admin.v2.MaterializedView.Builder, + com.google.bigtable.admin.v2.MaterializedViewOrBuilder> + getMaterializedViewsFieldBuilder() { + if (materializedViewsBuilder_ == null) { + materializedViewsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.bigtable.admin.v2.MaterializedView, + com.google.bigtable.admin.v2.MaterializedView.Builder, + com.google.bigtable.admin.v2.MaterializedViewOrBuilder>( + materializedViews_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + materializedViews_ = null; + } + return materializedViewsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + 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.bigtable.admin.v2.ListMaterializedViewsResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListMaterializedViewsResponse) + private static final com.google.bigtable.admin.v2.ListMaterializedViewsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.ListMaterializedViewsResponse(); + } + + public static com.google.bigtable.admin.v2.ListMaterializedViewsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMaterializedViewsResponse 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.bigtable.admin.v2.ListMaterializedViewsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListMaterializedViewsResponseOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListMaterializedViewsResponseOrBuilder.java new file mode 100644 index 000000000000..dcfc1360421f --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListMaterializedViewsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface ListMaterializedViewsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.ListMaterializedViewsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The list of requested materialized views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + java.util.List getMaterializedViewsList(); + /** + * + * + *
    +   * The list of requested materialized views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + com.google.bigtable.admin.v2.MaterializedView getMaterializedViews(int index); + /** + * + * + *
    +   * The list of requested materialized views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + int getMaterializedViewsCount(); + /** + * + * + *
    +   * The list of requested materialized views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + java.util.List + getMaterializedViewsOrBuilderList(); + /** + * + * + *
    +   * The list of requested materialized views.
    +   * 
    + * + * repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + com.google.bigtable.admin.v2.MaterializedViewOrBuilder getMaterializedViewsOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalView.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalView.java new file mode 100644 index 000000000000..03adc5957a4c --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalView.java @@ -0,0 +1,1022 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/instance.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * A SQL logical view object that can be referenced in SQL queries.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.LogicalView} + */ +public final class LogicalView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.LogicalView) + LogicalViewOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogicalView.newBuilder() to construct. + private LogicalView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LogicalView() { + name_ = ""; + query_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LogicalView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.InstanceProto + .internal_static_google_bigtable_admin_v2_LogicalView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.InstanceProto + .internal_static_google_bigtable_admin_v2_LogicalView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.LogicalView.class, + com.google.bigtable.admin.v2.LogicalView.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Identifier. The unique name of the logical view.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Identifier. The unique name of the logical view.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * + * + *
    +   * Required. The logical view's select query.
    +   * 
    + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The logical view's select query.
    +   * 
    + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
    +   * Optional. The etag for this logical view.
    +   * This may be sent on update requests to ensure that the client has an
    +   * up-to-date value before proceeding. The server returns an ABORTED error on
    +   * a mismatched etag.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The etag for this logical view.
    +   * This may be sent on update requests to ensure that the client has an
    +   * up-to-date value before proceeding. The server returns an ABORTED error on
    +   * a mismatched etag.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + 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.bigtable.admin.v2.LogicalView)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.LogicalView other = (com.google.bigtable.admin.v2.LogicalView) obj; + + if (!getName().equals(other.getName())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (!getEtag().equals(other.getEtag())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.LogicalView parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.LogicalView parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.LogicalView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.LogicalView 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.bigtable.admin.v2.LogicalView parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.LogicalView parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.LogicalView parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.LogicalView 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.bigtable.admin.v2.LogicalView parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.LogicalView 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.bigtable.admin.v2.LogicalView parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.LogicalView 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.bigtable.admin.v2.LogicalView 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; + } + /** + * + * + *
    +   * A SQL logical view object that can be referenced in SQL queries.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.LogicalView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.LogicalView) + com.google.bigtable.admin.v2.LogicalViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.InstanceProto + .internal_static_google_bigtable_admin_v2_LogicalView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.InstanceProto + .internal_static_google_bigtable_admin_v2_LogicalView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.LogicalView.class, + com.google.bigtable.admin.v2.LogicalView.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.LogicalView.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + query_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.InstanceProto + .internal_static_google_bigtable_admin_v2_LogicalView_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.LogicalView getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.LogicalView.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.LogicalView build() { + com.google.bigtable.admin.v2.LogicalView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.LogicalView buildPartial() { + com.google.bigtable.admin.v2.LogicalView result = + new com.google.bigtable.admin.v2.LogicalView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.LogicalView result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + + @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.bigtable.admin.v2.LogicalView) { + return mergeFrom((com.google.bigtable.admin.v2.LogicalView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.LogicalView other) { + if (other == com.google.bigtable.admin.v2.LogicalView.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + etag_ = 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 name_ = ""; + /** + * + * + *
    +     * Identifier. The unique name of the logical view.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Identifier. The unique name of the logical view.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Identifier. The unique name of the logical view.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Identifier. The unique name of the logical view.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Identifier. The unique name of the logical view.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + /** + * + * + *
    +     * Required. The logical view's select query.
    +     * 
    + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The logical view's select query.
    +     * 
    + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The logical view's select query.
    +     * 
    + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The logical view's select query.
    +     * 
    + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The logical view's select query.
    +     * 
    + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
    +     * Optional. The etag for this logical view.
    +     * This may be sent on update requests to ensure that the client has an
    +     * up-to-date value before proceeding. The server returns an ABORTED error on
    +     * a mismatched etag.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The etag for this logical view.
    +     * This may be sent on update requests to ensure that the client has an
    +     * up-to-date value before proceeding. The server returns an ABORTED error on
    +     * a mismatched etag.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The etag for this logical view.
    +     * This may be sent on update requests to ensure that the client has an
    +     * up-to-date value before proceeding. The server returns an ABORTED error on
    +     * a mismatched etag.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The etag for this logical view.
    +     * This may be sent on update requests to ensure that the client has an
    +     * up-to-date value before proceeding. The server returns an ABORTED error on
    +     * a mismatched etag.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The etag for this logical view.
    +     * This may be sent on update requests to ensure that the client has an
    +     * up-to-date value before proceeding. The server returns an ABORTED error on
    +     * a mismatched etag.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = 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.bigtable.admin.v2.LogicalView) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.LogicalView) + private static final com.google.bigtable.admin.v2.LogicalView DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.LogicalView(); + } + + public static com.google.bigtable.admin.v2.LogicalView getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalView 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.bigtable.admin.v2.LogicalView getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalViewName.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalViewName.java new file mode 100644 index 000000000000..54108f013a38 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalViewName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 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. + */ + +package com.google.bigtable.admin.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LogicalViewName implements ResourceName { + private static final PathTemplate PROJECT_INSTANCE_LOGICAL_VIEW = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/instances/{instance}/logicalViews/{logical_view}"); + private volatile Map fieldValuesMap; + private final String project; + private final String instance; + private final String logicalView; + + @Deprecated + protected LogicalViewName() { + project = null; + instance = null; + logicalView = null; + } + + private LogicalViewName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + instance = Preconditions.checkNotNull(builder.getInstance()); + logicalView = Preconditions.checkNotNull(builder.getLogicalView()); + } + + public String getProject() { + return project; + } + + public String getInstance() { + return instance; + } + + public String getLogicalView() { + return logicalView; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LogicalViewName of(String project, String instance, String logicalView) { + return newBuilder() + .setProject(project) + .setInstance(instance) + .setLogicalView(logicalView) + .build(); + } + + public static String format(String project, String instance, String logicalView) { + return newBuilder() + .setProject(project) + .setInstance(instance) + .setLogicalView(logicalView) + .build() + .toString(); + } + + public static LogicalViewName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_INSTANCE_LOGICAL_VIEW.validatedMatch( + formattedString, "LogicalViewName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("instance"), matchMap.get("logical_view")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LogicalViewName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_INSTANCE_LOGICAL_VIEW.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (instance != null) { + fieldMapBuilder.put("instance", instance); + } + if (logicalView != null) { + fieldMapBuilder.put("logical_view", logicalView); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_INSTANCE_LOGICAL_VIEW.instantiate( + "project", project, "instance", instance, "logical_view", logicalView); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LogicalViewName that = ((LogicalViewName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.instance, that.instance) + && Objects.equals(this.logicalView, that.logicalView); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(instance); + h *= 1000003; + h ^= Objects.hashCode(logicalView); + return h; + } + + /** Builder for projects/{project}/instances/{instance}/logicalViews/{logical_view}. */ + public static class Builder { + private String project; + private String instance; + private String logicalView; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getInstance() { + return instance; + } + + public String getLogicalView() { + return logicalView; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + public Builder setLogicalView(String logicalView) { + this.logicalView = logicalView; + return this; + } + + private Builder(LogicalViewName logicalViewName) { + this.project = logicalViewName.project; + this.instance = logicalViewName.instance; + this.logicalView = logicalViewName.logicalView; + } + + public LogicalViewName build() { + return new LogicalViewName(this); + } + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalViewOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalViewOrBuilder.java new file mode 100644 index 000000000000..5a2a28053a63 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalViewOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/instance.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface LogicalViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.LogicalView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The unique name of the logical view.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Identifier. The unique name of the logical view.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The logical view's select query.
    +   * 
    + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
    +   * Required. The logical view's select query.
    +   * 
    + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
    +   * Optional. The etag for this logical view.
    +   * This may be sent on update requests to ensure that the client has an
    +   * up-to-date value before proceeding. The server returns an ABORTED error on
    +   * a mismatched etag.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
    +   * Optional. The etag for this logical view.
    +   * This may be sent on update requests to ensure that the client has an
    +   * up-to-date value before proceeding. The server returns an ABORTED error on
    +   * a mismatched etag.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedView.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedView.java new file mode 100644 index 000000000000..81ddd07d1b3a --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedView.java @@ -0,0 +1,1130 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/instance.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * A materialized view object that can be referenced in SQL queries.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.MaterializedView} + */ +public final class MaterializedView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.MaterializedView) + MaterializedViewOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaterializedView.newBuilder() to construct. + private MaterializedView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaterializedView() { + name_ = ""; + query_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaterializedView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.InstanceProto + .internal_static_google_bigtable_admin_v2_MaterializedView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.InstanceProto + .internal_static_google_bigtable_admin_v2_MaterializedView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.MaterializedView.class, + com.google.bigtable.admin.v2.MaterializedView.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Identifier. The unique name of the materialized view.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Identifier. The unique name of the materialized view.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * + * + *
    +   * Required. Immutable. The materialized view's select query.
    +   * 
    + * + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. Immutable. The materialized view's select query.
    +   * 
    + * + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
    +   * Optional. The etag for this materialized view.
    +   * This may be sent on update requests to ensure that the client has an
    +   * up-to-date value before proceeding. The server returns an ABORTED error on
    +   * a mismatched etag.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The etag for this materialized view.
    +   * This may be sent on update requests to ensure that the client has an
    +   * up-to-date value before proceeding. The server returns an ABORTED error on
    +   * a mismatched etag.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DELETION_PROTECTION_FIELD_NUMBER = 6; + private boolean deletionProtection_ = false; + /** + * + * + *
    +   * Set to true to make the MaterializedView protected against deletion.
    +   * 
    + * + * bool deletion_protection = 6; + * + * @return The deletionProtection. + */ + @java.lang.Override + public boolean getDeletionProtection() { + return deletionProtection_; + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + if (deletionProtection_ != false) { + output.writeBool(6, deletionProtection_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + if (deletionProtection_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, deletionProtection_); + } + 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.bigtable.admin.v2.MaterializedView)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.MaterializedView other = + (com.google.bigtable.admin.v2.MaterializedView) obj; + + if (!getName().equals(other.getName())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getDeletionProtection() != other.getDeletionProtection()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + DELETION_PROTECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletionProtection()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.MaterializedView parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.MaterializedView parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.MaterializedView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.MaterializedView 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.bigtable.admin.v2.MaterializedView parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.MaterializedView parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.MaterializedView parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.MaterializedView 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.bigtable.admin.v2.MaterializedView parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.MaterializedView 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.bigtable.admin.v2.MaterializedView parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.MaterializedView 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.bigtable.admin.v2.MaterializedView 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; + } + /** + * + * + *
    +   * A materialized view object that can be referenced in SQL queries.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.MaterializedView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.MaterializedView) + com.google.bigtable.admin.v2.MaterializedViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.InstanceProto + .internal_static_google_bigtable_admin_v2_MaterializedView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.InstanceProto + .internal_static_google_bigtable_admin_v2_MaterializedView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.MaterializedView.class, + com.google.bigtable.admin.v2.MaterializedView.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.MaterializedView.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + query_ = ""; + etag_ = ""; + deletionProtection_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.InstanceProto + .internal_static_google_bigtable_admin_v2_MaterializedView_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.MaterializedView getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.MaterializedView build() { + com.google.bigtable.admin.v2.MaterializedView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.MaterializedView buildPartial() { + com.google.bigtable.admin.v2.MaterializedView result = + new com.google.bigtable.admin.v2.MaterializedView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.MaterializedView result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deletionProtection_ = deletionProtection_; + } + } + + @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.bigtable.admin.v2.MaterializedView) { + return mergeFrom((com.google.bigtable.admin.v2.MaterializedView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.MaterializedView other) { + if (other == com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getDeletionProtection() != false) { + setDeletionProtection(other.getDeletionProtection()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 48: + { + deletionProtection_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 48 + 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 name_ = ""; + /** + * + * + *
    +     * Identifier. The unique name of the materialized view.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Identifier. The unique name of the materialized view.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Identifier. The unique name of the materialized view.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Identifier. The unique name of the materialized view.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Identifier. The unique name of the materialized view.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + /** + * + * + *
    +     * Required. Immutable. The materialized view's select query.
    +     * 
    + * + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. Immutable. The materialized view's select query.
    +     * 
    + * + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. Immutable. The materialized view's select query.
    +     * 
    + * + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Immutable. The materialized view's select query.
    +     * 
    + * + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Immutable. The materialized view's select query.
    +     * 
    + * + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
    +     * Optional. The etag for this materialized view.
    +     * This may be sent on update requests to ensure that the client has an
    +     * up-to-date value before proceeding. The server returns an ABORTED error on
    +     * a mismatched etag.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The etag for this materialized view.
    +     * This may be sent on update requests to ensure that the client has an
    +     * up-to-date value before proceeding. The server returns an ABORTED error on
    +     * a mismatched etag.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The etag for this materialized view.
    +     * This may be sent on update requests to ensure that the client has an
    +     * up-to-date value before proceeding. The server returns an ABORTED error on
    +     * a mismatched etag.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The etag for this materialized view.
    +     * This may be sent on update requests to ensure that the client has an
    +     * up-to-date value before proceeding. The server returns an ABORTED error on
    +     * a mismatched etag.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The etag for this materialized view.
    +     * This may be sent on update requests to ensure that the client has an
    +     * up-to-date value before proceeding. The server returns an ABORTED error on
    +     * a mismatched etag.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean deletionProtection_; + /** + * + * + *
    +     * Set to true to make the MaterializedView protected against deletion.
    +     * 
    + * + * bool deletion_protection = 6; + * + * @return The deletionProtection. + */ + @java.lang.Override + public boolean getDeletionProtection() { + return deletionProtection_; + } + /** + * + * + *
    +     * Set to true to make the MaterializedView protected against deletion.
    +     * 
    + * + * bool deletion_protection = 6; + * + * @param value The deletionProtection to set. + * @return This builder for chaining. + */ + public Builder setDeletionProtection(boolean value) { + + deletionProtection_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Set to true to make the MaterializedView protected against deletion.
    +     * 
    + * + * bool deletion_protection = 6; + * + * @return This builder for chaining. + */ + public Builder clearDeletionProtection() { + bitField0_ = (bitField0_ & ~0x00000008); + deletionProtection_ = false; + 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.bigtable.admin.v2.MaterializedView) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.MaterializedView) + private static final com.google.bigtable.admin.v2.MaterializedView DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.MaterializedView(); + } + + public static com.google.bigtable.admin.v2.MaterializedView getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaterializedView 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.bigtable.admin.v2.MaterializedView getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedViewName.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedViewName.java new file mode 100644 index 000000000000..c8f45670f408 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedViewName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 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. + */ + +package com.google.bigtable.admin.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class MaterializedViewName implements ResourceName { + private static final PathTemplate PROJECT_INSTANCE_MATERIALIZED_VIEW = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/instances/{instance}/materializedViews/{materialized_view}"); + private volatile Map fieldValuesMap; + private final String project; + private final String instance; + private final String materializedView; + + @Deprecated + protected MaterializedViewName() { + project = null; + instance = null; + materializedView = null; + } + + private MaterializedViewName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + instance = Preconditions.checkNotNull(builder.getInstance()); + materializedView = Preconditions.checkNotNull(builder.getMaterializedView()); + } + + public String getProject() { + return project; + } + + public String getInstance() { + return instance; + } + + public String getMaterializedView() { + return materializedView; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MaterializedViewName of(String project, String instance, String materializedView) { + return newBuilder() + .setProject(project) + .setInstance(instance) + .setMaterializedView(materializedView) + .build(); + } + + public static String format(String project, String instance, String materializedView) { + return newBuilder() + .setProject(project) + .setInstance(instance) + .setMaterializedView(materializedView) + .build() + .toString(); + } + + public static MaterializedViewName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_INSTANCE_MATERIALIZED_VIEW.validatedMatch( + formattedString, "MaterializedViewName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("instance"), matchMap.get("materialized_view")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (MaterializedViewName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_INSTANCE_MATERIALIZED_VIEW.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (instance != null) { + fieldMapBuilder.put("instance", instance); + } + if (materializedView != null) { + fieldMapBuilder.put("materialized_view", materializedView); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_INSTANCE_MATERIALIZED_VIEW.instantiate( + "project", project, "instance", instance, "materialized_view", materializedView); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MaterializedViewName that = ((MaterializedViewName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.instance, that.instance) + && Objects.equals(this.materializedView, that.materializedView); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(instance); + h *= 1000003; + h ^= Objects.hashCode(materializedView); + return h; + } + + /** Builder for projects/{project}/instances/{instance}/materializedViews/{materialized_view}. */ + public static class Builder { + private String project; + private String instance; + private String materializedView; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getInstance() { + return instance; + } + + public String getMaterializedView() { + return materializedView; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + public Builder setMaterializedView(String materializedView) { + this.materializedView = materializedView; + return this; + } + + private Builder(MaterializedViewName materializedViewName) { + this.project = materializedViewName.project; + this.instance = materializedViewName.instance; + this.materializedView = materializedViewName.materializedView; + } + + public MaterializedViewName build() { + return new MaterializedViewName(this); + } + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedViewOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedViewOrBuilder.java new file mode 100644 index 000000000000..7da3a476303a --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedViewOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/instance.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface MaterializedViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.MaterializedView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The unique name of the materialized view.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Identifier. The unique name of the materialized view.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. Immutable. The materialized view's select query.
    +   * 
    + * + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
    +   * Required. Immutable. The materialized view's select query.
    +   * 
    + * + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
    +   * Optional. The etag for this materialized view.
    +   * This may be sent on update requests to ensure that the client has an
    +   * up-to-date value before proceeding. The server returns an ABORTED error on
    +   * a mismatched etag.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
    +   * Optional. The etag for this materialized view.
    +   * This may be sent on update requests to ensure that the client has an
    +   * up-to-date value before proceeding. The server returns an ABORTED error on
    +   * a mismatched etag.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
    +   * Set to true to make the MaterializedView protected against deletion.
    +   * 
    + * + * bool deletion_protection = 6; + * + * @return The deletionProtection. + */ + boolean getDeletionProtection(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Table.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Table.java index fa8b919db7fb..6970a6ae4232 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Table.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Table.java @@ -3777,6 +3777,221 @@ public com.google.bigtable.admin.v2.Table.AutomatedBackupPolicy getAutomatedBack return com.google.bigtable.admin.v2.Table.AutomatedBackupPolicy.getDefaultInstance(); } + public static final int ROW_KEY_SCHEMA_FIELD_NUMBER = 15; + private com.google.bigtable.admin.v2.Type.Struct rowKeySchema_; + /** + * + * + *
    +   * The row key schema for this table. The schema is used to decode the raw row
    +   * key bytes into a structured format. The order of field declarations in this
    +   * schema is important, as it reflects how the raw row key bytes are
    +   * structured. Currently, this only affects how the key is read via a
    +   * GoogleSQL query from the ExecuteQuery API.
    +   *
    +   * For a SQL query, the _key column is still read as raw bytes. But queries
    +   * can reference the key fields by name, which will be decoded from _key using
    +   * provided type and encoding. Queries that reference key fields will fail if
    +   * they encounter an invalid row key.
    +   *
    +   * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +   * following schema:
    +   * {
    +   *   fields {
    +   *     field_name: "id"
    +   *     type { string { encoding: utf8_bytes {} } }
    +   *   }
    +   *   fields {
    +   *     field_name: "date"
    +   *     type { string { encoding: utf8_bytes {} } }
    +   *   }
    +   *   fields {
    +   *     field_name: "product_code"
    +   *     type { int64 { encoding: big_endian_bytes {} } }
    +   *   }
    +   *   encoding { delimited_bytes { delimiter: "#" } }
    +   * }
    +   *
    +   * The decoded key parts would be:
    +   *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +   * The query "SELECT _key, product_code FROM table" will return two columns:
    +   * /------------------------------------------------------\
    +   * |              _key                     | product_code |
    +   * | --------------------------------------|--------------|
    +   * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +   * \------------------------------------------------------/
    +   *
    +   * The schema has the following invariants:
    +   * (1) The decoded field values are order-preserved. For read, the field
    +   * values will be decoded in sorted mode from the raw bytes.
    +   * (2) Every field in the schema must specify a non-empty name.
    +   * (3) Every field must specify a type with an associated encoding. The type
    +   * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +   * allowed.
    +   * (4) The field names must not collide with existing column family
    +   * names and reserved keywords "_key" and "_timestamp".
    +   *
    +   * The following update operations are allowed for row_key_schema:
    +   * - Update from an empty schema to a new schema.
    +   * - Remove the existing schema. This operation requires setting the
    +   *   `ignore_warnings` flag to `true`, since it might be a backward
    +   *   incompatible change. Without the flag, the update request will fail with
    +   *   an INVALID_ARGUMENT error.
    +   * Any other row key schema update operation (e.g. update existing schema
    +   * columns names or types) is currently unsupported.
    +   * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + * + * @return Whether the rowKeySchema field is set. + */ + @java.lang.Override + public boolean hasRowKeySchema() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * The row key schema for this table. The schema is used to decode the raw row
    +   * key bytes into a structured format. The order of field declarations in this
    +   * schema is important, as it reflects how the raw row key bytes are
    +   * structured. Currently, this only affects how the key is read via a
    +   * GoogleSQL query from the ExecuteQuery API.
    +   *
    +   * For a SQL query, the _key column is still read as raw bytes. But queries
    +   * can reference the key fields by name, which will be decoded from _key using
    +   * provided type and encoding. Queries that reference key fields will fail if
    +   * they encounter an invalid row key.
    +   *
    +   * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +   * following schema:
    +   * {
    +   *   fields {
    +   *     field_name: "id"
    +   *     type { string { encoding: utf8_bytes {} } }
    +   *   }
    +   *   fields {
    +   *     field_name: "date"
    +   *     type { string { encoding: utf8_bytes {} } }
    +   *   }
    +   *   fields {
    +   *     field_name: "product_code"
    +   *     type { int64 { encoding: big_endian_bytes {} } }
    +   *   }
    +   *   encoding { delimited_bytes { delimiter: "#" } }
    +   * }
    +   *
    +   * The decoded key parts would be:
    +   *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +   * The query "SELECT _key, product_code FROM table" will return two columns:
    +   * /------------------------------------------------------\
    +   * |              _key                     | product_code |
    +   * | --------------------------------------|--------------|
    +   * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +   * \------------------------------------------------------/
    +   *
    +   * The schema has the following invariants:
    +   * (1) The decoded field values are order-preserved. For read, the field
    +   * values will be decoded in sorted mode from the raw bytes.
    +   * (2) Every field in the schema must specify a non-empty name.
    +   * (3) Every field must specify a type with an associated encoding. The type
    +   * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +   * allowed.
    +   * (4) The field names must not collide with existing column family
    +   * names and reserved keywords "_key" and "_timestamp".
    +   *
    +   * The following update operations are allowed for row_key_schema:
    +   * - Update from an empty schema to a new schema.
    +   * - Remove the existing schema. This operation requires setting the
    +   *   `ignore_warnings` flag to `true`, since it might be a backward
    +   *   incompatible change. Without the flag, the update request will fail with
    +   *   an INVALID_ARGUMENT error.
    +   * Any other row key schema update operation (e.g. update existing schema
    +   * columns names or types) is currently unsupported.
    +   * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + * + * @return The rowKeySchema. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct getRowKeySchema() { + return rowKeySchema_ == null + ? com.google.bigtable.admin.v2.Type.Struct.getDefaultInstance() + : rowKeySchema_; + } + /** + * + * + *
    +   * The row key schema for this table. The schema is used to decode the raw row
    +   * key bytes into a structured format. The order of field declarations in this
    +   * schema is important, as it reflects how the raw row key bytes are
    +   * structured. Currently, this only affects how the key is read via a
    +   * GoogleSQL query from the ExecuteQuery API.
    +   *
    +   * For a SQL query, the _key column is still read as raw bytes. But queries
    +   * can reference the key fields by name, which will be decoded from _key using
    +   * provided type and encoding. Queries that reference key fields will fail if
    +   * they encounter an invalid row key.
    +   *
    +   * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +   * following schema:
    +   * {
    +   *   fields {
    +   *     field_name: "id"
    +   *     type { string { encoding: utf8_bytes {} } }
    +   *   }
    +   *   fields {
    +   *     field_name: "date"
    +   *     type { string { encoding: utf8_bytes {} } }
    +   *   }
    +   *   fields {
    +   *     field_name: "product_code"
    +   *     type { int64 { encoding: big_endian_bytes {} } }
    +   *   }
    +   *   encoding { delimited_bytes { delimiter: "#" } }
    +   * }
    +   *
    +   * The decoded key parts would be:
    +   *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +   * The query "SELECT _key, product_code FROM table" will return two columns:
    +   * /------------------------------------------------------\
    +   * |              _key                     | product_code |
    +   * | --------------------------------------|--------------|
    +   * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +   * \------------------------------------------------------/
    +   *
    +   * The schema has the following invariants:
    +   * (1) The decoded field values are order-preserved. For read, the field
    +   * values will be decoded in sorted mode from the raw bytes.
    +   * (2) Every field in the schema must specify a non-empty name.
    +   * (3) Every field must specify a type with an associated encoding. The type
    +   * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +   * allowed.
    +   * (4) The field names must not collide with existing column family
    +   * names and reserved keywords "_key" and "_timestamp".
    +   *
    +   * The following update operations are allowed for row_key_schema:
    +   * - Update from an empty schema to a new schema.
    +   * - Remove the existing schema. This operation requires setting the
    +   *   `ignore_warnings` flag to `true`, since it might be a backward
    +   *   incompatible change. Without the flag, the update request will fail with
    +   *   an INVALID_ARGUMENT error.
    +   * Any other row key schema update operation (e.g. update existing schema
    +   * columns names or types) is currently unsupported.
    +   * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.StructOrBuilder getRowKeySchemaOrBuilder() { + return rowKeySchema_ == null + ? com.google.bigtable.admin.v2.Type.Struct.getDefaultInstance() + : rowKeySchema_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3816,6 +4031,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 13, (com.google.bigtable.admin.v2.Table.AutomatedBackupPolicy) automatedBackupConfig_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(15, getRowKeySchema()); + } getUnknownFields().writeTo(output); } @@ -3871,6 +4089,9 @@ public int getSerializedSize() { 13, (com.google.bigtable.admin.v2.Table.AutomatedBackupPolicy) automatedBackupConfig_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getRowKeySchema()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3899,6 +4120,10 @@ public boolean equals(final java.lang.Object obj) { if (!getChangeStreamConfig().equals(other.getChangeStreamConfig())) return false; } if (getDeletionProtection() != other.getDeletionProtection()) return false; + if (hasRowKeySchema() != other.hasRowKeySchema()) return false; + if (hasRowKeySchema()) { + if (!getRowKeySchema().equals(other.getRowKeySchema())) return false; + } if (!getAutomatedBackupConfigCase().equals(other.getAutomatedBackupConfigCase())) return false; switch (automatedBackupConfigCase_) { case 13: @@ -3940,6 +4165,10 @@ public int hashCode() { } hash = (37 * hash) + DELETION_PROTECTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletionProtection()); + if (hasRowKeySchema()) { + hash = (37 * hash) + ROW_KEY_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getRowKeySchema().hashCode(); + } switch (automatedBackupConfigCase_) { case 13: hash = (37 * hash) + AUTOMATED_BACKUP_POLICY_FIELD_NUMBER; @@ -4116,6 +4345,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRestoreInfoFieldBuilder(); getChangeStreamConfigFieldBuilder(); + getRowKeySchemaFieldBuilder(); } } @@ -4141,6 +4371,11 @@ public Builder clear() { if (automatedBackupPolicyBuilder_ != null) { automatedBackupPolicyBuilder_.clear(); } + rowKeySchema_ = null; + if (rowKeySchemaBuilder_ != null) { + rowKeySchemaBuilder_.dispose(); + rowKeySchemaBuilder_ = null; + } automatedBackupConfigCase_ = 0; automatedBackupConfig_ = null; return this; @@ -4209,6 +4444,11 @@ private void buildPartial0(com.google.bigtable.admin.v2.Table result) { if (((from_bitField0_ & 0x00000040) != 0)) { result.deletionProtection_ = deletionProtection_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.rowKeySchema_ = + rowKeySchemaBuilder_ == null ? rowKeySchema_ : rowKeySchemaBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -4286,6 +4526,9 @@ public Builder mergeFrom(com.google.bigtable.admin.v2.Table other) { if (other.getDeletionProtection() != false) { setDeletionProtection(other.getDeletionProtection()); } + if (other.hasRowKeySchema()) { + mergeRowKeySchema(other.getRowKeySchema()); + } switch (other.getAutomatedBackupConfigCase()) { case AUTOMATED_BACKUP_POLICY: { @@ -4389,6 +4632,12 @@ public Builder mergeFrom( automatedBackupConfigCase_ = 13; break; } // case 106 + case 122: + { + input.readMessage(getRowKeySchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5912,6 +6161,687 @@ public Builder clearAutomatedBackupPolicy() { return automatedBackupPolicyBuilder_; } + private com.google.bigtable.admin.v2.Type.Struct rowKeySchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct, + com.google.bigtable.admin.v2.Type.Struct.Builder, + com.google.bigtable.admin.v2.Type.StructOrBuilder> + rowKeySchemaBuilder_; + /** + * + * + *
    +     * The row key schema for this table. The schema is used to decode the raw row
    +     * key bytes into a structured format. The order of field declarations in this
    +     * schema is important, as it reflects how the raw row key bytes are
    +     * structured. Currently, this only affects how the key is read via a
    +     * GoogleSQL query from the ExecuteQuery API.
    +     *
    +     * For a SQL query, the _key column is still read as raw bytes. But queries
    +     * can reference the key fields by name, which will be decoded from _key using
    +     * provided type and encoding. Queries that reference key fields will fail if
    +     * they encounter an invalid row key.
    +     *
    +     * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +     * following schema:
    +     * {
    +     *   fields {
    +     *     field_name: "id"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "date"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "product_code"
    +     *     type { int64 { encoding: big_endian_bytes {} } }
    +     *   }
    +     *   encoding { delimited_bytes { delimiter: "#" } }
    +     * }
    +     *
    +     * The decoded key parts would be:
    +     *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +     * The query "SELECT _key, product_code FROM table" will return two columns:
    +     * /------------------------------------------------------\
    +     * |              _key                     | product_code |
    +     * | --------------------------------------|--------------|
    +     * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +     * \------------------------------------------------------/
    +     *
    +     * The schema has the following invariants:
    +     * (1) The decoded field values are order-preserved. For read, the field
    +     * values will be decoded in sorted mode from the raw bytes.
    +     * (2) Every field in the schema must specify a non-empty name.
    +     * (3) Every field must specify a type with an associated encoding. The type
    +     * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +     * allowed.
    +     * (4) The field names must not collide with existing column family
    +     * names and reserved keywords "_key" and "_timestamp".
    +     *
    +     * The following update operations are allowed for row_key_schema:
    +     * - Update from an empty schema to a new schema.
    +     * - Remove the existing schema. This operation requires setting the
    +     *   `ignore_warnings` flag to `true`, since it might be a backward
    +     *   incompatible change. Without the flag, the update request will fail with
    +     *   an INVALID_ARGUMENT error.
    +     * Any other row key schema update operation (e.g. update existing schema
    +     * columns names or types) is currently unsupported.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + * + * @return Whether the rowKeySchema field is set. + */ + public boolean hasRowKeySchema() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
    +     * The row key schema for this table. The schema is used to decode the raw row
    +     * key bytes into a structured format. The order of field declarations in this
    +     * schema is important, as it reflects how the raw row key bytes are
    +     * structured. Currently, this only affects how the key is read via a
    +     * GoogleSQL query from the ExecuteQuery API.
    +     *
    +     * For a SQL query, the _key column is still read as raw bytes. But queries
    +     * can reference the key fields by name, which will be decoded from _key using
    +     * provided type and encoding. Queries that reference key fields will fail if
    +     * they encounter an invalid row key.
    +     *
    +     * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +     * following schema:
    +     * {
    +     *   fields {
    +     *     field_name: "id"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "date"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "product_code"
    +     *     type { int64 { encoding: big_endian_bytes {} } }
    +     *   }
    +     *   encoding { delimited_bytes { delimiter: "#" } }
    +     * }
    +     *
    +     * The decoded key parts would be:
    +     *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +     * The query "SELECT _key, product_code FROM table" will return two columns:
    +     * /------------------------------------------------------\
    +     * |              _key                     | product_code |
    +     * | --------------------------------------|--------------|
    +     * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +     * \------------------------------------------------------/
    +     *
    +     * The schema has the following invariants:
    +     * (1) The decoded field values are order-preserved. For read, the field
    +     * values will be decoded in sorted mode from the raw bytes.
    +     * (2) Every field in the schema must specify a non-empty name.
    +     * (3) Every field must specify a type with an associated encoding. The type
    +     * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +     * allowed.
    +     * (4) The field names must not collide with existing column family
    +     * names and reserved keywords "_key" and "_timestamp".
    +     *
    +     * The following update operations are allowed for row_key_schema:
    +     * - Update from an empty schema to a new schema.
    +     * - Remove the existing schema. This operation requires setting the
    +     *   `ignore_warnings` flag to `true`, since it might be a backward
    +     *   incompatible change. Without the flag, the update request will fail with
    +     *   an INVALID_ARGUMENT error.
    +     * Any other row key schema update operation (e.g. update existing schema
    +     * columns names or types) is currently unsupported.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + * + * @return The rowKeySchema. + */ + public com.google.bigtable.admin.v2.Type.Struct getRowKeySchema() { + if (rowKeySchemaBuilder_ == null) { + return rowKeySchema_ == null + ? com.google.bigtable.admin.v2.Type.Struct.getDefaultInstance() + : rowKeySchema_; + } else { + return rowKeySchemaBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The row key schema for this table. The schema is used to decode the raw row
    +     * key bytes into a structured format. The order of field declarations in this
    +     * schema is important, as it reflects how the raw row key bytes are
    +     * structured. Currently, this only affects how the key is read via a
    +     * GoogleSQL query from the ExecuteQuery API.
    +     *
    +     * For a SQL query, the _key column is still read as raw bytes. But queries
    +     * can reference the key fields by name, which will be decoded from _key using
    +     * provided type and encoding. Queries that reference key fields will fail if
    +     * they encounter an invalid row key.
    +     *
    +     * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +     * following schema:
    +     * {
    +     *   fields {
    +     *     field_name: "id"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "date"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "product_code"
    +     *     type { int64 { encoding: big_endian_bytes {} } }
    +     *   }
    +     *   encoding { delimited_bytes { delimiter: "#" } }
    +     * }
    +     *
    +     * The decoded key parts would be:
    +     *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +     * The query "SELECT _key, product_code FROM table" will return two columns:
    +     * /------------------------------------------------------\
    +     * |              _key                     | product_code |
    +     * | --------------------------------------|--------------|
    +     * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +     * \------------------------------------------------------/
    +     *
    +     * The schema has the following invariants:
    +     * (1) The decoded field values are order-preserved. For read, the field
    +     * values will be decoded in sorted mode from the raw bytes.
    +     * (2) Every field in the schema must specify a non-empty name.
    +     * (3) Every field must specify a type with an associated encoding. The type
    +     * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +     * allowed.
    +     * (4) The field names must not collide with existing column family
    +     * names and reserved keywords "_key" and "_timestamp".
    +     *
    +     * The following update operations are allowed for row_key_schema:
    +     * - Update from an empty schema to a new schema.
    +     * - Remove the existing schema. This operation requires setting the
    +     *   `ignore_warnings` flag to `true`, since it might be a backward
    +     *   incompatible change. Without the flag, the update request will fail with
    +     *   an INVALID_ARGUMENT error.
    +     * Any other row key schema update operation (e.g. update existing schema
    +     * columns names or types) is currently unsupported.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + */ + public Builder setRowKeySchema(com.google.bigtable.admin.v2.Type.Struct value) { + if (rowKeySchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rowKeySchema_ = value; + } else { + rowKeySchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * The row key schema for this table. The schema is used to decode the raw row
    +     * key bytes into a structured format. The order of field declarations in this
    +     * schema is important, as it reflects how the raw row key bytes are
    +     * structured. Currently, this only affects how the key is read via a
    +     * GoogleSQL query from the ExecuteQuery API.
    +     *
    +     * For a SQL query, the _key column is still read as raw bytes. But queries
    +     * can reference the key fields by name, which will be decoded from _key using
    +     * provided type and encoding. Queries that reference key fields will fail if
    +     * they encounter an invalid row key.
    +     *
    +     * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +     * following schema:
    +     * {
    +     *   fields {
    +     *     field_name: "id"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "date"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "product_code"
    +     *     type { int64 { encoding: big_endian_bytes {} } }
    +     *   }
    +     *   encoding { delimited_bytes { delimiter: "#" } }
    +     * }
    +     *
    +     * The decoded key parts would be:
    +     *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +     * The query "SELECT _key, product_code FROM table" will return two columns:
    +     * /------------------------------------------------------\
    +     * |              _key                     | product_code |
    +     * | --------------------------------------|--------------|
    +     * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +     * \------------------------------------------------------/
    +     *
    +     * The schema has the following invariants:
    +     * (1) The decoded field values are order-preserved. For read, the field
    +     * values will be decoded in sorted mode from the raw bytes.
    +     * (2) Every field in the schema must specify a non-empty name.
    +     * (3) Every field must specify a type with an associated encoding. The type
    +     * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +     * allowed.
    +     * (4) The field names must not collide with existing column family
    +     * names and reserved keywords "_key" and "_timestamp".
    +     *
    +     * The following update operations are allowed for row_key_schema:
    +     * - Update from an empty schema to a new schema.
    +     * - Remove the existing schema. This operation requires setting the
    +     *   `ignore_warnings` flag to `true`, since it might be a backward
    +     *   incompatible change. Without the flag, the update request will fail with
    +     *   an INVALID_ARGUMENT error.
    +     * Any other row key schema update operation (e.g. update existing schema
    +     * columns names or types) is currently unsupported.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + */ + public Builder setRowKeySchema( + com.google.bigtable.admin.v2.Type.Struct.Builder builderForValue) { + if (rowKeySchemaBuilder_ == null) { + rowKeySchema_ = builderForValue.build(); + } else { + rowKeySchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * The row key schema for this table. The schema is used to decode the raw row
    +     * key bytes into a structured format. The order of field declarations in this
    +     * schema is important, as it reflects how the raw row key bytes are
    +     * structured. Currently, this only affects how the key is read via a
    +     * GoogleSQL query from the ExecuteQuery API.
    +     *
    +     * For a SQL query, the _key column is still read as raw bytes. But queries
    +     * can reference the key fields by name, which will be decoded from _key using
    +     * provided type and encoding. Queries that reference key fields will fail if
    +     * they encounter an invalid row key.
    +     *
    +     * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +     * following schema:
    +     * {
    +     *   fields {
    +     *     field_name: "id"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "date"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "product_code"
    +     *     type { int64 { encoding: big_endian_bytes {} } }
    +     *   }
    +     *   encoding { delimited_bytes { delimiter: "#" } }
    +     * }
    +     *
    +     * The decoded key parts would be:
    +     *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +     * The query "SELECT _key, product_code FROM table" will return two columns:
    +     * /------------------------------------------------------\
    +     * |              _key                     | product_code |
    +     * | --------------------------------------|--------------|
    +     * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +     * \------------------------------------------------------/
    +     *
    +     * The schema has the following invariants:
    +     * (1) The decoded field values are order-preserved. For read, the field
    +     * values will be decoded in sorted mode from the raw bytes.
    +     * (2) Every field in the schema must specify a non-empty name.
    +     * (3) Every field must specify a type with an associated encoding. The type
    +     * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +     * allowed.
    +     * (4) The field names must not collide with existing column family
    +     * names and reserved keywords "_key" and "_timestamp".
    +     *
    +     * The following update operations are allowed for row_key_schema:
    +     * - Update from an empty schema to a new schema.
    +     * - Remove the existing schema. This operation requires setting the
    +     *   `ignore_warnings` flag to `true`, since it might be a backward
    +     *   incompatible change. Without the flag, the update request will fail with
    +     *   an INVALID_ARGUMENT error.
    +     * Any other row key schema update operation (e.g. update existing schema
    +     * columns names or types) is currently unsupported.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + */ + public Builder mergeRowKeySchema(com.google.bigtable.admin.v2.Type.Struct value) { + if (rowKeySchemaBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && rowKeySchema_ != null + && rowKeySchema_ != com.google.bigtable.admin.v2.Type.Struct.getDefaultInstance()) { + getRowKeySchemaBuilder().mergeFrom(value); + } else { + rowKeySchema_ = value; + } + } else { + rowKeySchemaBuilder_.mergeFrom(value); + } + if (rowKeySchema_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The row key schema for this table. The schema is used to decode the raw row
    +     * key bytes into a structured format. The order of field declarations in this
    +     * schema is important, as it reflects how the raw row key bytes are
    +     * structured. Currently, this only affects how the key is read via a
    +     * GoogleSQL query from the ExecuteQuery API.
    +     *
    +     * For a SQL query, the _key column is still read as raw bytes. But queries
    +     * can reference the key fields by name, which will be decoded from _key using
    +     * provided type and encoding. Queries that reference key fields will fail if
    +     * they encounter an invalid row key.
    +     *
    +     * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +     * following schema:
    +     * {
    +     *   fields {
    +     *     field_name: "id"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "date"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "product_code"
    +     *     type { int64 { encoding: big_endian_bytes {} } }
    +     *   }
    +     *   encoding { delimited_bytes { delimiter: "#" } }
    +     * }
    +     *
    +     * The decoded key parts would be:
    +     *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +     * The query "SELECT _key, product_code FROM table" will return two columns:
    +     * /------------------------------------------------------\
    +     * |              _key                     | product_code |
    +     * | --------------------------------------|--------------|
    +     * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +     * \------------------------------------------------------/
    +     *
    +     * The schema has the following invariants:
    +     * (1) The decoded field values are order-preserved. For read, the field
    +     * values will be decoded in sorted mode from the raw bytes.
    +     * (2) Every field in the schema must specify a non-empty name.
    +     * (3) Every field must specify a type with an associated encoding. The type
    +     * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +     * allowed.
    +     * (4) The field names must not collide with existing column family
    +     * names and reserved keywords "_key" and "_timestamp".
    +     *
    +     * The following update operations are allowed for row_key_schema:
    +     * - Update from an empty schema to a new schema.
    +     * - Remove the existing schema. This operation requires setting the
    +     *   `ignore_warnings` flag to `true`, since it might be a backward
    +     *   incompatible change. Without the flag, the update request will fail with
    +     *   an INVALID_ARGUMENT error.
    +     * Any other row key schema update operation (e.g. update existing schema
    +     * columns names or types) is currently unsupported.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + */ + public Builder clearRowKeySchema() { + bitField0_ = (bitField0_ & ~0x00000100); + rowKeySchema_ = null; + if (rowKeySchemaBuilder_ != null) { + rowKeySchemaBuilder_.dispose(); + rowKeySchemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The row key schema for this table. The schema is used to decode the raw row
    +     * key bytes into a structured format. The order of field declarations in this
    +     * schema is important, as it reflects how the raw row key bytes are
    +     * structured. Currently, this only affects how the key is read via a
    +     * GoogleSQL query from the ExecuteQuery API.
    +     *
    +     * For a SQL query, the _key column is still read as raw bytes. But queries
    +     * can reference the key fields by name, which will be decoded from _key using
    +     * provided type and encoding. Queries that reference key fields will fail if
    +     * they encounter an invalid row key.
    +     *
    +     * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +     * following schema:
    +     * {
    +     *   fields {
    +     *     field_name: "id"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "date"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "product_code"
    +     *     type { int64 { encoding: big_endian_bytes {} } }
    +     *   }
    +     *   encoding { delimited_bytes { delimiter: "#" } }
    +     * }
    +     *
    +     * The decoded key parts would be:
    +     *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +     * The query "SELECT _key, product_code FROM table" will return two columns:
    +     * /------------------------------------------------------\
    +     * |              _key                     | product_code |
    +     * | --------------------------------------|--------------|
    +     * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +     * \------------------------------------------------------/
    +     *
    +     * The schema has the following invariants:
    +     * (1) The decoded field values are order-preserved. For read, the field
    +     * values will be decoded in sorted mode from the raw bytes.
    +     * (2) Every field in the schema must specify a non-empty name.
    +     * (3) Every field must specify a type with an associated encoding. The type
    +     * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +     * allowed.
    +     * (4) The field names must not collide with existing column family
    +     * names and reserved keywords "_key" and "_timestamp".
    +     *
    +     * The following update operations are allowed for row_key_schema:
    +     * - Update from an empty schema to a new schema.
    +     * - Remove the existing schema. This operation requires setting the
    +     *   `ignore_warnings` flag to `true`, since it might be a backward
    +     *   incompatible change. Without the flag, the update request will fail with
    +     *   an INVALID_ARGUMENT error.
    +     * Any other row key schema update operation (e.g. update existing schema
    +     * columns names or types) is currently unsupported.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + */ + public com.google.bigtable.admin.v2.Type.Struct.Builder getRowKeySchemaBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getRowKeySchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The row key schema for this table. The schema is used to decode the raw row
    +     * key bytes into a structured format. The order of field declarations in this
    +     * schema is important, as it reflects how the raw row key bytes are
    +     * structured. Currently, this only affects how the key is read via a
    +     * GoogleSQL query from the ExecuteQuery API.
    +     *
    +     * For a SQL query, the _key column is still read as raw bytes. But queries
    +     * can reference the key fields by name, which will be decoded from _key using
    +     * provided type and encoding. Queries that reference key fields will fail if
    +     * they encounter an invalid row key.
    +     *
    +     * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +     * following schema:
    +     * {
    +     *   fields {
    +     *     field_name: "id"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "date"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "product_code"
    +     *     type { int64 { encoding: big_endian_bytes {} } }
    +     *   }
    +     *   encoding { delimited_bytes { delimiter: "#" } }
    +     * }
    +     *
    +     * The decoded key parts would be:
    +     *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +     * The query "SELECT _key, product_code FROM table" will return two columns:
    +     * /------------------------------------------------------\
    +     * |              _key                     | product_code |
    +     * | --------------------------------------|--------------|
    +     * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +     * \------------------------------------------------------/
    +     *
    +     * The schema has the following invariants:
    +     * (1) The decoded field values are order-preserved. For read, the field
    +     * values will be decoded in sorted mode from the raw bytes.
    +     * (2) Every field in the schema must specify a non-empty name.
    +     * (3) Every field must specify a type with an associated encoding. The type
    +     * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +     * allowed.
    +     * (4) The field names must not collide with existing column family
    +     * names and reserved keywords "_key" and "_timestamp".
    +     *
    +     * The following update operations are allowed for row_key_schema:
    +     * - Update from an empty schema to a new schema.
    +     * - Remove the existing schema. This operation requires setting the
    +     *   `ignore_warnings` flag to `true`, since it might be a backward
    +     *   incompatible change. Without the flag, the update request will fail with
    +     *   an INVALID_ARGUMENT error.
    +     * Any other row key schema update operation (e.g. update existing schema
    +     * columns names or types) is currently unsupported.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + */ + public com.google.bigtable.admin.v2.Type.StructOrBuilder getRowKeySchemaOrBuilder() { + if (rowKeySchemaBuilder_ != null) { + return rowKeySchemaBuilder_.getMessageOrBuilder(); + } else { + return rowKeySchema_ == null + ? com.google.bigtable.admin.v2.Type.Struct.getDefaultInstance() + : rowKeySchema_; + } + } + /** + * + * + *
    +     * The row key schema for this table. The schema is used to decode the raw row
    +     * key bytes into a structured format. The order of field declarations in this
    +     * schema is important, as it reflects how the raw row key bytes are
    +     * structured. Currently, this only affects how the key is read via a
    +     * GoogleSQL query from the ExecuteQuery API.
    +     *
    +     * For a SQL query, the _key column is still read as raw bytes. But queries
    +     * can reference the key fields by name, which will be decoded from _key using
    +     * provided type and encoding. Queries that reference key fields will fail if
    +     * they encounter an invalid row key.
    +     *
    +     * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +     * following schema:
    +     * {
    +     *   fields {
    +     *     field_name: "id"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "date"
    +     *     type { string { encoding: utf8_bytes {} } }
    +     *   }
    +     *   fields {
    +     *     field_name: "product_code"
    +     *     type { int64 { encoding: big_endian_bytes {} } }
    +     *   }
    +     *   encoding { delimited_bytes { delimiter: "#" } }
    +     * }
    +     *
    +     * The decoded key parts would be:
    +     *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +     * The query "SELECT _key, product_code FROM table" will return two columns:
    +     * /------------------------------------------------------\
    +     * |              _key                     | product_code |
    +     * | --------------------------------------|--------------|
    +     * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +     * \------------------------------------------------------/
    +     *
    +     * The schema has the following invariants:
    +     * (1) The decoded field values are order-preserved. For read, the field
    +     * values will be decoded in sorted mode from the raw bytes.
    +     * (2) Every field in the schema must specify a non-empty name.
    +     * (3) Every field must specify a type with an associated encoding. The type
    +     * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +     * allowed.
    +     * (4) The field names must not collide with existing column family
    +     * names and reserved keywords "_key" and "_timestamp".
    +     *
    +     * The following update operations are allowed for row_key_schema:
    +     * - Update from an empty schema to a new schema.
    +     * - Remove the existing schema. This operation requires setting the
    +     *   `ignore_warnings` flag to `true`, since it might be a backward
    +     *   incompatible change. Without the flag, the update request will fail with
    +     *   an INVALID_ARGUMENT error.
    +     * Any other row key schema update operation (e.g. update existing schema
    +     * columns names or types) is currently unsupported.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct, + com.google.bigtable.admin.v2.Type.Struct.Builder, + com.google.bigtable.admin.v2.Type.StructOrBuilder> + getRowKeySchemaFieldBuilder() { + if (rowKeySchemaBuilder_ == null) { + rowKeySchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct, + com.google.bigtable.admin.v2.Type.Struct.Builder, + com.google.bigtable.admin.v2.Type.StructOrBuilder>( + getRowKeySchema(), getParentForChildren(), isClean()); + rowKeySchema_ = null; + } + return rowKeySchemaBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableOrBuilder.java index b47d9954e30d..d6af61f284e0 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableOrBuilder.java @@ -388,5 +388,205 @@ com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrDefault( com.google.bigtable.admin.v2.Table.AutomatedBackupPolicyOrBuilder getAutomatedBackupPolicyOrBuilder(); + /** + * + * + *
    +   * The row key schema for this table. The schema is used to decode the raw row
    +   * key bytes into a structured format. The order of field declarations in this
    +   * schema is important, as it reflects how the raw row key bytes are
    +   * structured. Currently, this only affects how the key is read via a
    +   * GoogleSQL query from the ExecuteQuery API.
    +   *
    +   * For a SQL query, the _key column is still read as raw bytes. But queries
    +   * can reference the key fields by name, which will be decoded from _key using
    +   * provided type and encoding. Queries that reference key fields will fail if
    +   * they encounter an invalid row key.
    +   *
    +   * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +   * following schema:
    +   * {
    +   *   fields {
    +   *     field_name: "id"
    +   *     type { string { encoding: utf8_bytes {} } }
    +   *   }
    +   *   fields {
    +   *     field_name: "date"
    +   *     type { string { encoding: utf8_bytes {} } }
    +   *   }
    +   *   fields {
    +   *     field_name: "product_code"
    +   *     type { int64 { encoding: big_endian_bytes {} } }
    +   *   }
    +   *   encoding { delimited_bytes { delimiter: "#" } }
    +   * }
    +   *
    +   * The decoded key parts would be:
    +   *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +   * The query "SELECT _key, product_code FROM table" will return two columns:
    +   * /------------------------------------------------------\
    +   * |              _key                     | product_code |
    +   * | --------------------------------------|--------------|
    +   * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +   * \------------------------------------------------------/
    +   *
    +   * The schema has the following invariants:
    +   * (1) The decoded field values are order-preserved. For read, the field
    +   * values will be decoded in sorted mode from the raw bytes.
    +   * (2) Every field in the schema must specify a non-empty name.
    +   * (3) Every field must specify a type with an associated encoding. The type
    +   * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +   * allowed.
    +   * (4) The field names must not collide with existing column family
    +   * names and reserved keywords "_key" and "_timestamp".
    +   *
    +   * The following update operations are allowed for row_key_schema:
    +   * - Update from an empty schema to a new schema.
    +   * - Remove the existing schema. This operation requires setting the
    +   *   `ignore_warnings` flag to `true`, since it might be a backward
    +   *   incompatible change. Without the flag, the update request will fail with
    +   *   an INVALID_ARGUMENT error.
    +   * Any other row key schema update operation (e.g. update existing schema
    +   * columns names or types) is currently unsupported.
    +   * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + * + * @return Whether the rowKeySchema field is set. + */ + boolean hasRowKeySchema(); + /** + * + * + *
    +   * The row key schema for this table. The schema is used to decode the raw row
    +   * key bytes into a structured format. The order of field declarations in this
    +   * schema is important, as it reflects how the raw row key bytes are
    +   * structured. Currently, this only affects how the key is read via a
    +   * GoogleSQL query from the ExecuteQuery API.
    +   *
    +   * For a SQL query, the _key column is still read as raw bytes. But queries
    +   * can reference the key fields by name, which will be decoded from _key using
    +   * provided type and encoding. Queries that reference key fields will fail if
    +   * they encounter an invalid row key.
    +   *
    +   * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +   * following schema:
    +   * {
    +   *   fields {
    +   *     field_name: "id"
    +   *     type { string { encoding: utf8_bytes {} } }
    +   *   }
    +   *   fields {
    +   *     field_name: "date"
    +   *     type { string { encoding: utf8_bytes {} } }
    +   *   }
    +   *   fields {
    +   *     field_name: "product_code"
    +   *     type { int64 { encoding: big_endian_bytes {} } }
    +   *   }
    +   *   encoding { delimited_bytes { delimiter: "#" } }
    +   * }
    +   *
    +   * The decoded key parts would be:
    +   *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +   * The query "SELECT _key, product_code FROM table" will return two columns:
    +   * /------------------------------------------------------\
    +   * |              _key                     | product_code |
    +   * | --------------------------------------|--------------|
    +   * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +   * \------------------------------------------------------/
    +   *
    +   * The schema has the following invariants:
    +   * (1) The decoded field values are order-preserved. For read, the field
    +   * values will be decoded in sorted mode from the raw bytes.
    +   * (2) Every field in the schema must specify a non-empty name.
    +   * (3) Every field must specify a type with an associated encoding. The type
    +   * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +   * allowed.
    +   * (4) The field names must not collide with existing column family
    +   * names and reserved keywords "_key" and "_timestamp".
    +   *
    +   * The following update operations are allowed for row_key_schema:
    +   * - Update from an empty schema to a new schema.
    +   * - Remove the existing schema. This operation requires setting the
    +   *   `ignore_warnings` flag to `true`, since it might be a backward
    +   *   incompatible change. Without the flag, the update request will fail with
    +   *   an INVALID_ARGUMENT error.
    +   * Any other row key schema update operation (e.g. update existing schema
    +   * columns names or types) is currently unsupported.
    +   * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + * + * @return The rowKeySchema. + */ + com.google.bigtable.admin.v2.Type.Struct getRowKeySchema(); + /** + * + * + *
    +   * The row key schema for this table. The schema is used to decode the raw row
    +   * key bytes into a structured format. The order of field declarations in this
    +   * schema is important, as it reflects how the raw row key bytes are
    +   * structured. Currently, this only affects how the key is read via a
    +   * GoogleSQL query from the ExecuteQuery API.
    +   *
    +   * For a SQL query, the _key column is still read as raw bytes. But queries
    +   * can reference the key fields by name, which will be decoded from _key using
    +   * provided type and encoding. Queries that reference key fields will fail if
    +   * they encounter an invalid row key.
    +   *
    +   * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
    +   * following schema:
    +   * {
    +   *   fields {
    +   *     field_name: "id"
    +   *     type { string { encoding: utf8_bytes {} } }
    +   *   }
    +   *   fields {
    +   *     field_name: "date"
    +   *     type { string { encoding: utf8_bytes {} } }
    +   *   }
    +   *   fields {
    +   *     field_name: "product_code"
    +   *     type { int64 { encoding: big_endian_bytes {} } }
    +   *   }
    +   *   encoding { delimited_bytes { delimiter: "#" } }
    +   * }
    +   *
    +   * The decoded key parts would be:
    +   *   id = "some_id", date = "2024-04-30", product_code = 1245427
    +   * The query "SELECT _key, product_code FROM table" will return two columns:
    +   * /------------------------------------------------------\
    +   * |              _key                     | product_code |
    +   * | --------------------------------------|--------------|
    +   * | "some_id#2024-04-30#\x00\x13\x00\xf3" |   1245427    |
    +   * \------------------------------------------------------/
    +   *
    +   * The schema has the following invariants:
    +   * (1) The decoded field values are order-preserved. For read, the field
    +   * values will be decoded in sorted mode from the raw bytes.
    +   * (2) Every field in the schema must specify a non-empty name.
    +   * (3) Every field must specify a type with an associated encoding. The type
    +   * is limited to scalar types only: Array, Map, Aggregate, and Struct are not
    +   * allowed.
    +   * (4) The field names must not collide with existing column family
    +   * names and reserved keywords "_key" and "_timestamp".
    +   *
    +   * The following update operations are allowed for row_key_schema:
    +   * - Update from an empty schema to a new schema.
    +   * - Remove the existing schema. This operation requires setting the
    +   *   `ignore_warnings` flag to `true`, since it might be a backward
    +   *   incompatible change. Without the flag, the update request will fail with
    +   *   an INVALID_ARGUMENT error.
    +   * Any other row key schema update operation (e.g. update existing schema
    +   * columns names or types) is currently unsupported.
    +   * 
    + * + * .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + */ + com.google.bigtable.admin.v2.Type.StructOrBuilder getRowKeySchemaOrBuilder(); + com.google.bigtable.admin.v2.Table.AutomatedBackupConfigCase getAutomatedBackupConfigCase(); } diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableProto.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableProto.java index a01b08570439..84eb5cc2ae82 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableProto.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableProto.java @@ -125,7 +125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle.bigtable.admin.v2.BackupInfoH\000B\r\n\013s" + "ource_info\"I\n\022ChangeStreamConfig\0223\n\020rete" + "ntion_period\030\001 \001(\0132\031.google.protobuf.Dur" - + "ation\"\326\013\n\005Table\022\014\n\004name\030\001 \001(\t\022O\n\016cluster" + + "ation\"\225\014\n\005Table\022\014\n\004name\030\001 \001(\t\022O\n\016cluster" + "_states\030\002 \003(\01322.google.bigtable.admin.v2" + ".Table.ClusterStatesEntryB\003\340A\003\022L\n\017column" + "_families\030\003 \003(\01323.google.bigtable.admin." @@ -138,117 +138,119 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "reamConfig\022\033\n\023deletion_protection\030\t \001(\010\022" + "X\n\027automated_backup_policy\030\r \001(\01325.googl" + "e.bigtable.admin.v2.Table.AutomatedBacku" - + "pPolicyH\000\032\306\002\n\014ClusterState\022]\n\021replicatio" - + "n_state\030\001 \001(\0162=.google.bigtable.admin.v2" - + ".Table.ClusterState.ReplicationStateB\003\340A" - + "\003\022F\n\017encryption_info\030\002 \003(\0132(.google.bigt" - + "able.admin.v2.EncryptionInfoB\003\340A\003\"\216\001\n\020Re" - + "plicationState\022\023\n\017STATE_NOT_KNOWN\020\000\022\020\n\014I" - + "NITIALIZING\020\001\022\027\n\023PLANNED_MAINTENANCE\020\002\022\031" - + "\n\025UNPLANNED_MAINTENANCE\020\003\022\t\n\005READY\020\004\022\024\n\020" - + "READY_OPTIMIZING\020\005\032\204\001\n\025AutomatedBackupPo" - + "licy\0228\n\020retention_period\030\001 \001(\0132\031.google." - + "protobuf.DurationB\003\340A\002\0221\n\tfrequency\030\002 \001(" - + "\0132\031.google.protobuf.DurationB\003\340A\002\032b\n\022Clu" - + "sterStatesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 " - + "\001(\0132,.google.bigtable.admin.v2.Table.Clu" - + "sterState:\0028\001\032]\n\023ColumnFamiliesEntry\022\013\n\003" - + "key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.google.bigtab" - + "le.admin.v2.ColumnFamily:\0028\001\"I\n\024Timestam" - + "pGranularity\022%\n!TIMESTAMP_GRANULARITY_UN" - + "SPECIFIED\020\000\022\n\n\006MILLIS\020\001\"q\n\004View\022\024\n\020VIEW_" - + "UNSPECIFIED\020\000\022\r\n\tNAME_ONLY\020\001\022\017\n\013SCHEMA_V" - + "IEW\020\002\022\024\n\020REPLICATION_VIEW\020\003\022\023\n\017ENCRYPTIO" - + "N_VIEW\020\005\022\010\n\004FULL\020\004:_\352A\\\n\"bigtableadmin.g" - + "oogleapis.com/Table\0226projects/{project}/" - + "instances/{instance}/tables/{table}B\031\n\027a" - + "utomated_backup_config\"\343\005\n\016AuthorizedVie" - + "w\022\021\n\004name\030\001 \001(\tB\003\340A\010\022J\n\013subset_view\030\002 \001(" - + "\01323.google.bigtable.admin.v2.AuthorizedV" - + "iew.SubsetViewH\000\022\014\n\004etag\030\003 \001(\t\022\033\n\023deleti" - + "on_protection\030\004 \001(\010\032?\n\rFamilySubsets\022\022\n\n" - + "qualifiers\030\001 \003(\014\022\032\n\022qualifier_prefixes\030\002" - + " \003(\014\032\360\001\n\nSubsetView\022\024\n\014row_prefixes\030\001 \003(" - + "\014\022^\n\016family_subsets\030\002 \003(\0132F.google.bigta" - + "ble.admin.v2.AuthorizedView.SubsetView.F" - + "amilySubsetsEntry\032l\n\022FamilySubsetsEntry\022" - + "\013\n\003key\030\001 \001(\t\022E\n\005value\030\002 \001(\01326.google.big" - + "table.admin.v2.AuthorizedView.FamilySubs" - + "ets:\0028\001\"Q\n\014ResponseView\022\035\n\031RESPONSE_VIEW" - + "_UNSPECIFIED\020\000\022\r\n\tNAME_ONLY\020\001\022\t\n\005BASIC\020\002" - + "\022\010\n\004FULL\020\003:\254\001\352A\250\001\n+bigtableadmin.googlea" - + "pis.com/AuthorizedView\022Xprojects/{projec" - + "t}/instances/{instance}/tables/{table}/a" - + "uthorizedViews/{authorized_view}*\017author" - + "izedViews2\016authorizedViewB\021\n\017authorized_" - + "view\"u\n\014ColumnFamily\0221\n\007gc_rule\030\001 \001(\0132 ." - + "google.bigtable.admin.v2.GcRule\0222\n\nvalue" - + "_type\030\003 \001(\0132\036.google.bigtable.admin.v2.T" - + "ype\"\325\002\n\006GcRule\022\032\n\020max_num_versions\030\001 \001(\005" - + "H\000\022,\n\007max_age\030\002 \001(\0132\031.google.protobuf.Du" - + "rationH\000\022E\n\014intersection\030\003 \001(\0132-.google." - + "bigtable.admin.v2.GcRule.IntersectionH\000\022" - + "7\n\005union\030\004 \001(\0132&.google.bigtable.admin.v" - + "2.GcRule.UnionH\000\032?\n\014Intersection\022/\n\005rule" - + "s\030\001 \003(\0132 .google.bigtable.admin.v2.GcRul" - + "e\0328\n\005Union\022/\n\005rules\030\001 \003(\0132 .google.bigta" - + "ble.admin.v2.GcRuleB\006\n\004rule\"\331\002\n\016Encrypti" - + "onInfo\022U\n\017encryption_type\030\003 \001(\01627.google" - + ".bigtable.admin.v2.EncryptionInfo.Encryp" - + "tionTypeB\003\340A\003\0222\n\021encryption_status\030\004 \001(\013" - + "2\022.google.rpc.StatusB\003\340A\003\022I\n\017kms_key_ver" - + "sion\030\002 \001(\tB0\340A\003\372A*\n(cloudkms.googleapis." - + "com/CryptoKeyVersion\"q\n\016EncryptionType\022\037" - + "\n\033ENCRYPTION_TYPE_UNSPECIFIED\020\000\022\035\n\031GOOGL" - + "E_DEFAULT_ENCRYPTION\020\001\022\037\n\033CUSTOMER_MANAG" - + "ED_ENCRYPTION\020\002\"\340\003\n\010Snapshot\022\014\n\004name\030\001 \001" - + "(\t\022:\n\014source_table\030\002 \001(\0132\037.google.bigtab" - + "le.admin.v2.TableB\003\340A\003\022\034\n\017data_size_byte" - + "s\030\003 \001(\003B\003\340A\003\0224\n\013create_time\030\004 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\022/\n\013delete_tim" - + "e\030\005 \001(\0132\032.google.protobuf.Timestamp\022<\n\005s" - + "tate\030\006 \001(\0162(.google.bigtable.admin.v2.Sn" - + "apshot.StateB\003\340A\003\022\023\n\013description\030\007 \001(\t\"5" - + "\n\005State\022\023\n\017STATE_NOT_KNOWN\020\000\022\t\n\005READY\020\001\022" - + "\014\n\010CREATING\020\002:{\352Ax\n%bigtableadmin.google" - + "apis.com/Snapshot\022Oprojects/{project}/in" - + "stances/{instance}/clusters/{cluster}/sn" - + "apshots/{snapshot}\"\371\005\n\006Backup\022\014\n\004name\030\001 " - + "\001(\t\022\034\n\014source_table\030\002 \001(\tB\006\340A\005\340A\002\022\032\n\rsou" - + "rce_backup\030\n \001(\tB\003\340A\003\0224\n\013expire_time\030\003 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\002\0223\n\ns" - + "tart_time\030\004 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\022\027\n\nsize_bytes\030\006 \001(\003B" - + "\003\340A\003\022:\n\005state\030\007 \001(\0162&.google.bigtable.ad" - + "min.v2.Backup.StateB\003\340A\003\022F\n\017encryption_i" - + "nfo\030\t \001(\0132(.google.bigtable.admin.v2.Enc" - + "ryptionInfoB\003\340A\003\022@\n\013backup_type\030\013 \001(\0162+." - + "google.bigtable.admin.v2.Backup.BackupTy" - + "pe\0228\n\024hot_to_standard_time\030\014 \001(\0132\032.googl" - + "e.protobuf.Timestamp\"7\n\005State\022\025\n\021STATE_U" - + "NSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\"@\n" - + "\nBackupType\022\033\n\027BACKUP_TYPE_UNSPECIFIED\020\000" - + "\022\014\n\010STANDARD\020\001\022\007\n\003HOT\020\002:u\352Ar\n#bigtablead" - + "min.googleapis.com/Backup\022Kprojects/{pro" - + "ject}/instances/{instance}/clusters/{clu" - + "ster}/backups/{backup}\"\300\001\n\nBackupInfo\022\023\n" - + "\006backup\030\001 \001(\tB\003\340A\003\0223\n\nstart_time\030\002 \001(\0132\032" + + "pPolicyH\000\022=\n\016row_key_schema\030\017 \001(\0132%.goog" + + "le.bigtable.admin.v2.Type.Struct\032\306\002\n\014Clu" + + "sterState\022]\n\021replication_state\030\001 \001(\0162=.g" + + "oogle.bigtable.admin.v2.Table.ClusterSta" + + "te.ReplicationStateB\003\340A\003\022F\n\017encryption_i" + + "nfo\030\002 \003(\0132(.google.bigtable.admin.v2.Enc" + + "ryptionInfoB\003\340A\003\"\216\001\n\020ReplicationState\022\023\n" + + "\017STATE_NOT_KNOWN\020\000\022\020\n\014INITIALIZING\020\001\022\027\n\023" + + "PLANNED_MAINTENANCE\020\002\022\031\n\025UNPLANNED_MAINT" + + "ENANCE\020\003\022\t\n\005READY\020\004\022\024\n\020READY_OPTIMIZING\020" + + "\005\032\204\001\n\025AutomatedBackupPolicy\0228\n\020retention" + + "_period\030\001 \001(\0132\031.google.protobuf.Duration" + + "B\003\340A\002\0221\n\tfrequency\030\002 \001(\0132\031.google.protob" + + "uf.DurationB\003\340A\002\032b\n\022ClusterStatesEntry\022\013" + + "\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.bigt" + + "able.admin.v2.Table.ClusterState:\0028\001\032]\n\023" + + "ColumnFamiliesEntry\022\013\n\003key\030\001 \001(\t\0225\n\005valu" + + "e\030\002 \001(\0132&.google.bigtable.admin.v2.Colum" + + "nFamily:\0028\001\"I\n\024TimestampGranularity\022%\n!T" + + "IMESTAMP_GRANULARITY_UNSPECIFIED\020\000\022\n\n\006MI" + + "LLIS\020\001\"q\n\004View\022\024\n\020VIEW_UNSPECIFIED\020\000\022\r\n\t" + + "NAME_ONLY\020\001\022\017\n\013SCHEMA_VIEW\020\002\022\024\n\020REPLICAT" + + "ION_VIEW\020\003\022\023\n\017ENCRYPTION_VIEW\020\005\022\010\n\004FULL\020" + + "\004:_\352A\\\n\"bigtableadmin.googleapis.com/Tab" + + "le\0226projects/{project}/instances/{instan" + + "ce}/tables/{table}B\031\n\027automated_backup_c" + + "onfig\"\343\005\n\016AuthorizedView\022\021\n\004name\030\001 \001(\tB\003" + + "\340A\010\022J\n\013subset_view\030\002 \001(\01323.google.bigtab" + + "le.admin.v2.AuthorizedView.SubsetViewH\000\022" + + "\014\n\004etag\030\003 \001(\t\022\033\n\023deletion_protection\030\004 \001" + + "(\010\032?\n\rFamilySubsets\022\022\n\nqualifiers\030\001 \003(\014\022" + + "\032\n\022qualifier_prefixes\030\002 \003(\014\032\360\001\n\nSubsetVi" + + "ew\022\024\n\014row_prefixes\030\001 \003(\014\022^\n\016family_subse" + + "ts\030\002 \003(\0132F.google.bigtable.admin.v2.Auth" + + "orizedView.SubsetView.FamilySubsetsEntry" + + "\032l\n\022FamilySubsetsEntry\022\013\n\003key\030\001 \001(\t\022E\n\005v" + + "alue\030\002 \001(\01326.google.bigtable.admin.v2.Au" + + "thorizedView.FamilySubsets:\0028\001\"Q\n\014Respon" + + "seView\022\035\n\031RESPONSE_VIEW_UNSPECIFIED\020\000\022\r\n" + + "\tNAME_ONLY\020\001\022\t\n\005BASIC\020\002\022\010\n\004FULL\020\003:\254\001\352A\250\001" + + "\n+bigtableadmin.googleapis.com/Authorize" + + "dView\022Xprojects/{project}/instances/{ins" + + "tance}/tables/{table}/authorizedViews/{a" + + "uthorized_view}*\017authorizedViews2\016author" + + "izedViewB\021\n\017authorized_view\"u\n\014ColumnFam" + + "ily\0221\n\007gc_rule\030\001 \001(\0132 .google.bigtable.a" + + "dmin.v2.GcRule\0222\n\nvalue_type\030\003 \001(\0132\036.goo" + + "gle.bigtable.admin.v2.Type\"\325\002\n\006GcRule\022\032\n" + + "\020max_num_versions\030\001 \001(\005H\000\022,\n\007max_age\030\002 \001" + + "(\0132\031.google.protobuf.DurationH\000\022E\n\014inter" + + "section\030\003 \001(\0132-.google.bigtable.admin.v2" + + ".GcRule.IntersectionH\000\0227\n\005union\030\004 \001(\0132&." + + "google.bigtable.admin.v2.GcRule.UnionH\000\032" + + "?\n\014Intersection\022/\n\005rules\030\001 \003(\0132 .google." + + "bigtable.admin.v2.GcRule\0328\n\005Union\022/\n\005rul" + + "es\030\001 \003(\0132 .google.bigtable.admin.v2.GcRu" + + "leB\006\n\004rule\"\331\002\n\016EncryptionInfo\022U\n\017encrypt" + + "ion_type\030\003 \001(\01627.google.bigtable.admin.v" + + "2.EncryptionInfo.EncryptionTypeB\003\340A\003\0222\n\021" + + "encryption_status\030\004 \001(\0132\022.google.rpc.Sta" + + "tusB\003\340A\003\022I\n\017kms_key_version\030\002 \001(\tB0\340A\003\372A" + + "*\n(cloudkms.googleapis.com/CryptoKeyVers" + + "ion\"q\n\016EncryptionType\022\037\n\033ENCRYPTION_TYPE" + + "_UNSPECIFIED\020\000\022\035\n\031GOOGLE_DEFAULT_ENCRYPT" + + "ION\020\001\022\037\n\033CUSTOMER_MANAGED_ENCRYPTION\020\002\"\340" + + "\003\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022:\n\014source_tabl" + + "e\030\002 \001(\0132\037.google.bigtable.admin.v2.Table" + + "B\003\340A\003\022\034\n\017data_size_bytes\030\003 \001(\003B\003\340A\003\0224\n\013c" + + "reate_time\030\004 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022/\n\013delete_time\030\005 \001(\0132\032.google." + + "protobuf.Timestamp\022<\n\005state\030\006 \001(\0162(.goog" + + "le.bigtable.admin.v2.Snapshot.StateB\003\340A\003" + + "\022\023\n\013description\030\007 \001(\t\"5\n\005State\022\023\n\017STATE_" + + "NOT_KNOWN\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002:{\352A" + + "x\n%bigtableadmin.googleapis.com/Snapshot" + + "\022Oprojects/{project}/instances/{instance" + + "}/clusters/{cluster}/snapshots/{snapshot" + + "}\"\371\005\n\006Backup\022\014\n\004name\030\001 \001(\t\022\034\n\014source_tab" + + "le\030\002 \001(\tB\006\340A\005\340A\002\022\032\n\rsource_backup\030\n \001(\tB" + + "\003\340A\003\0224\n\013expire_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\002\0223\n\nstart_time\030\004 \001(\0132\032" + ".google.protobuf.TimestampB\003\340A\003\0221\n\010end_t" - + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022\031\n\014source_table\030\004 \001(\tB\003\340A\003\022\032\n\rsource_" - + "backup\030\n \001(\tB\003\340A\003*D\n\021RestoreSourceType\022#" - + "\n\037RESTORE_SOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006B" - + "ACKUP\020\001B\367\002\n\034com.google.bigtable.admin.v2" - + "B\nTableProtoP\001Z8cloud.google.com/go/bigt" - + "able/admin/apiv2/adminpb;adminpb\252\002\036Googl" - + "e.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud" - + "\\Bigtable\\Admin\\V2\352\002\"Google::Cloud::Bigt" - + "able::Admin::V2\352A\246\001\n(cloudkms.googleapis" - + ".com/CryptoKeyVersion\022zprojects/{project" - + "}/locations/{location}/keyRings/{key_rin" - + "g}/cryptoKeys/{crypto_key}/cryptoKeyVers" - + "ions/{crypto_key_version}b\006proto3" + + "ime\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022\027\n\nsize_bytes\030\006 \001(\003B\003\340A\003\022:\n\005state\030\007 \001" + + "(\0162&.google.bigtable.admin.v2.Backup.Sta" + + "teB\003\340A\003\022F\n\017encryption_info\030\t \001(\0132(.googl" + + "e.bigtable.admin.v2.EncryptionInfoB\003\340A\003\022" + + "@\n\013backup_type\030\013 \001(\0162+.google.bigtable.a" + + "dmin.v2.Backup.BackupType\0228\n\024hot_to_stan" + + "dard_time\030\014 \001(\0132\032.google.protobuf.Timest" + + "amp\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010C" + + "REATING\020\001\022\t\n\005READY\020\002\"@\n\nBackupType\022\033\n\027BA" + + "CKUP_TYPE_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\007\n" + + "\003HOT\020\002:u\352Ar\n#bigtableadmin.googleapis.co" + + "m/Backup\022Kprojects/{project}/instances/{" + + "instance}/clusters/{cluster}/backups/{ba" + + "ckup}\"\300\001\n\nBackupInfo\022\023\n\006backup\030\001 \001(\tB\003\340A" + + "\003\0223\n\nstart_time\030\002 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022\031\n\014source_tabl" + + "e\030\004 \001(\tB\003\340A\003\022\032\n\rsource_backup\030\n \001(\tB\003\340A\003" + + "*D\n\021RestoreSourceType\022#\n\037RESTORE_SOURCE_" + + "TYPE_UNSPECIFIED\020\000\022\n\n\006BACKUP\020\001B\367\002\n\034com.g" + + "oogle.bigtable.admin.v2B\nTableProtoP\001Z8c" + + "loud.google.com/go/bigtable/admin/apiv2/" + + "adminpb;adminpb\252\002\036Google.Cloud.Bigtable." + + "Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V" + + "2\352\002\"Google::Cloud::Bigtable::Admin::V2\352A" + + "\246\001\n(cloudkms.googleapis.com/CryptoKeyVer" + + "sion\022zprojects/{project}/locations/{loca" + + "tion}/keyRings/{key_ring}/cryptoKeys/{cr" + + "ypto_key}/cryptoKeyVersions/{crypto_key_" + + "version}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -291,6 +293,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChangeStreamConfig", "DeletionProtection", "AutomatedBackupPolicy", + "RowKeySchema", "AutomatedBackupConfig", }); internal_static_google_bigtable_admin_v2_Table_ClusterState_descriptor = diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Type.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Type.java index 5f314e19ea2b..2dfac212d081 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Type.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Type.java @@ -28,25 +28,23 @@ * familiarity and consistency across products and features. * * For compatibility with Bigtable's existing untyped APIs, each `Type` includes - * an `Encoding` which describes how to convert to/from the underlying data. + * an `Encoding` which describes how to convert to or from the underlying data. * - * Each encoding also defines the following properties: + * Each encoding can operate in one of two modes: * - * * Order-preserving: Does the encoded value sort consistently with the - * original typed value? Note that Bigtable will always sort data based on - * the raw encoded value, *not* the decoded type. - * - Example: BYTES values sort in the same order as their raw encodings. - * - Counterexample: Encoding INT64 as a fixed-width decimal string does - * *not* preserve sort order when dealing with negative numbers. - * `INT64(1) > INT64(-1)`, but `STRING("-00001") > STRING("00001)`. - * * Self-delimiting: If we concatenate two encoded values, can we always tell - * where the first one ends and the second one begins? - * - Example: If we encode INT64s to fixed-width STRINGs, the first value - * will always contain exactly N digits, possibly preceded by a sign. - * - Counterexample: If we concatenate two UTF-8 encoded STRINGs, we have - * no way to tell where the first one ends. - * * Compatibility: Which other systems have matching encoding schemes? For - * example, does this encoding have a GoogleSQL equivalent? HBase? Java? + * - Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` + * if and only if `X <= Y`. This is useful anywhere sort order is important, + * for example when encoding keys. + * - Distinct: In this mode, Bigtable guarantees that if `X != Y` then + * `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For + * example, both "{'foo': '1', 'bar': '2'}" and "{'bar': '2', 'foo': '1'}" + * are valid encodings of the same JSON value. + * + * The API clearly documents which mode is used wherever an encoding can be + * configured. Each encoding also documents which values are supported in which + * modes. For example, when encoding INT64 as a numeric STRING, negative numbers + * cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but + * `STRING("-00001") > STRING("00001")`. * * * Protobuf type {@code google.bigtable.admin.v2.Type} @@ -93,7 +91,7 @@ public interface BytesOrBuilder * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -105,7 +103,7 @@ public interface BytesOrBuilder * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -117,7 +115,7 @@ public interface BytesOrBuilder * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -213,7 +211,7 @@ public interface EncodingOrBuilder * * *
    -     * Rules used to convert to/from lower level types.
    +     * Rules used to convert to or from lower level types.
          * 
    * * Protobuf type {@code google.bigtable.admin.v2.Type.Bytes.Encoding} @@ -259,10 +257,11 @@ public interface RawOrBuilder * * *
    -       * Leaves the value "as-is"
    -       * * Order-preserving? Yes
    -       * * Self-delimiting? No
    -       * * Compatibility? N/A
    +       * Leaves the value as-is.
    +       *
    +       * Sorted mode: all values are supported.
    +       *
    +       * Distinct mode: all values are supported.
            * 
    * * Protobuf type {@code google.bigtable.admin.v2.Type.Bytes.Encoding.Raw} @@ -458,10 +457,11 @@ protected Builder newBuilderForType( * * *
    -         * Leaves the value "as-is"
    -         * * Order-preserving? Yes
    -         * * Self-delimiting? No
    -         * * Compatibility? N/A
    +         * Leaves the value as-is.
    +         *
    +         * Sorted mode: all values are supported.
    +         *
    +         * Distinct mode: all values are supported.
              * 
    * * Protobuf type {@code google.bigtable.admin.v2.Type.Bytes.Encoding.Raw} @@ -958,7 +958,7 @@ protected Builder newBuilderForType( * * *
    -       * Rules used to convert to/from lower level types.
    +       * Rules used to convert to or from lower level types.
            * 
    * * Protobuf type {@code google.bigtable.admin.v2.Type.Bytes.Encoding} @@ -1451,7 +1451,7 @@ public com.google.bigtable.admin.v2.Type.Bytes.Encoding getDefaultInstanceForTyp * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -1466,7 +1466,7 @@ public boolean hasEncoding() { * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -1483,7 +1483,7 @@ public com.google.bigtable.admin.v2.Type.Bytes.Encoding getEncoding() { * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -1869,7 +1869,7 @@ public Builder mergeFrom( * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -1883,7 +1883,7 @@ public boolean hasEncoding() { * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -1903,7 +1903,7 @@ public com.google.bigtable.admin.v2.Type.Bytes.Encoding getEncoding() { * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -1925,7 +1925,7 @@ public Builder setEncoding(com.google.bigtable.admin.v2.Type.Bytes.Encoding valu * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -1945,7 +1945,7 @@ public Builder setEncoding( * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -1973,7 +1973,7 @@ public Builder mergeEncoding(com.google.bigtable.admin.v2.Type.Bytes.Encoding va * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -1992,7 +1992,7 @@ public Builder clearEncoding() { * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -2006,7 +2006,7 @@ public com.google.bigtable.admin.v2.Type.Bytes.Encoding.Builder getEncodingBuild * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -2024,7 +2024,7 @@ public com.google.bigtable.admin.v2.Type.Bytes.EncodingOrBuilder getEncodingOrBu * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; @@ -2119,7 +2119,7 @@ public interface StringOrBuilder * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -2131,7 +2131,7 @@ public interface StringOrBuilder * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -2143,7 +2143,7 @@ public interface StringOrBuilder * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -2210,7 +2210,7 @@ public interface EncodingOrBuilder *
    * * @deprecated google.bigtable.admin.v2.Type.String.Encoding.utf8_raw is deprecated. See - * google/bigtable/admin/v2/types.proto;l=97 + * google/bigtable/admin/v2/types.proto;l=102 * @return Whether the utf8Raw field is set. */ @java.lang.Deprecated @@ -2227,7 +2227,7 @@ public interface EncodingOrBuilder *
    * * @deprecated google.bigtable.admin.v2.Type.String.Encoding.utf8_raw is deprecated. See - * google/bigtable/admin/v2/types.proto;l=97 + * google/bigtable/admin/v2/types.proto;l=102 * @return The utf8Raw. */ @java.lang.Deprecated @@ -2287,7 +2287,7 @@ public interface EncodingOrBuilder * * *
    -     * Rules used to convert to/from lower level types.
    +     * Rules used to convert to or from lower level types.
          * 
    * * Protobuf type {@code google.bigtable.admin.v2.Type.String.Encoding} @@ -2766,13 +2766,19 @@ public interface Utf8BytesOrBuilder * * *
    -       * UTF-8 encoding
    -       * * Order-preserving? Yes (code point order)
    -       * * Self-delimiting? No
    -       * * Compatibility?
    -       *    - BigQuery Federation `TEXT` encoding
    -       *    - HBase `Bytes.toBytes`
    -       *    - Java `String#getBytes(StandardCharsets.UTF_8)`
    +       * UTF-8 encoding.
    +       *
    +       * Sorted mode:
    +       *  - All values are supported.
    +       *  - Code point order is preserved.
    +       *
    +       * Distinct mode: all values are supported.
    +       *
    +       * Compatible with:
    +       *
    +       *  - BigQuery `TEXT` encoding
    +       *  - HBase `Bytes.toBytes`
    +       *  - Java `String#getBytes(StandardCharsets.UTF_8)`
            * 
    * * Protobuf type {@code google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes} @@ -2970,13 +2976,19 @@ protected Builder newBuilderForType( * * *
    -         * UTF-8 encoding
    -         * * Order-preserving? Yes (code point order)
    -         * * Self-delimiting? No
    -         * * Compatibility?
    -         *    - BigQuery Federation `TEXT` encoding
    -         *    - HBase `Bytes.toBytes`
    -         *    - Java `String#getBytes(StandardCharsets.UTF_8)`
    +         * UTF-8 encoding.
    +         *
    +         * Sorted mode:
    +         *  - All values are supported.
    +         *  - Code point order is preserved.
    +         *
    +         * Distinct mode: all values are supported.
    +         *
    +         * Compatible with:
    +         *
    +         *  - BigQuery `TEXT` encoding
    +         *  - HBase `Bytes.toBytes`
    +         *  - Java `String#getBytes(StandardCharsets.UTF_8)`
              * 
    * * Protobuf type {@code google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes} @@ -3267,7 +3279,7 @@ public EncodingCase getEncodingCase() { *
    * * @deprecated google.bigtable.admin.v2.Type.String.Encoding.utf8_raw is deprecated. See - * google/bigtable/admin/v2/types.proto;l=97 + * google/bigtable/admin/v2/types.proto;l=102 * @return Whether the utf8Raw field is set. */ @java.lang.Override @@ -3287,7 +3299,7 @@ public boolean hasUtf8Raw() { *
    * * @deprecated google.bigtable.admin.v2.Type.String.Encoding.utf8_raw is deprecated. See - * google/bigtable/admin/v2/types.proto;l=97 + * google/bigtable/admin/v2/types.proto;l=102 * @return The utf8Raw. */ @java.lang.Override @@ -3568,7 +3580,7 @@ protected Builder newBuilderForType( * * *
    -       * Rules used to convert to/from lower level types.
    +       * Rules used to convert to or from lower level types.
            * 
    * * Protobuf type {@code google.bigtable.admin.v2.Type.String.Encoding} @@ -3814,7 +3826,7 @@ public Builder clearEncoding() { *
    * * @deprecated google.bigtable.admin.v2.Type.String.Encoding.utf8_raw is deprecated. See - * google/bigtable/admin/v2/types.proto;l=97 + * google/bigtable/admin/v2/types.proto;l=102 * @return Whether the utf8Raw field is set. */ @java.lang.Override @@ -3834,7 +3846,7 @@ public boolean hasUtf8Raw() { *
    * * @deprecated google.bigtable.admin.v2.Type.String.Encoding.utf8_raw is deprecated. See - * google/bigtable/admin/v2/types.proto;l=97 + * google/bigtable/admin/v2/types.proto;l=102 * @return The utf8Raw. */ @java.lang.Override @@ -4329,7 +4341,7 @@ public com.google.bigtable.admin.v2.Type.String.Encoding getDefaultInstanceForTy * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -4344,7 +4356,7 @@ public boolean hasEncoding() { * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -4361,7 +4373,7 @@ public com.google.bigtable.admin.v2.Type.String.Encoding getEncoding() { * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -4748,7 +4760,7 @@ public Builder mergeFrom( * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -4762,7 +4774,7 @@ public boolean hasEncoding() { * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -4782,7 +4794,7 @@ public com.google.bigtable.admin.v2.Type.String.Encoding getEncoding() { * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -4804,7 +4816,7 @@ public Builder setEncoding(com.google.bigtable.admin.v2.Type.String.Encoding val * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -4824,7 +4836,7 @@ public Builder setEncoding( * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -4852,7 +4864,7 @@ public Builder mergeEncoding(com.google.bigtable.admin.v2.Type.String.Encoding v * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -4871,7 +4883,7 @@ public Builder clearEncoding() { * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -4885,7 +4897,7 @@ public com.google.bigtable.admin.v2.Type.String.Encoding.Builder getEncodingBuil * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -4903,7 +4915,7 @@ public com.google.bigtable.admin.v2.Type.String.EncodingOrBuilder getEncodingOrB * * *
    -       * The encoding to use when converting to/from lower level types.
    +       * The encoding to use when converting to or from lower level types.
            * 
    * * .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; @@ -4998,7 +5010,7 @@ public interface Int64OrBuilder * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; @@ -5010,7 +5022,7 @@ public interface Int64OrBuilder * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; @@ -5022,7 +5034,7 @@ public interface Int64OrBuilder * * *
    -     * The encoding to use when converting to/from lower level types.
    +     * The encoding to use when converting to or from lower level types.
          * 
    * * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; @@ -5116,13 +5128,55 @@ public interface EncodingOrBuilder com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesOrBuilder getBigEndianBytesOrBuilder(); + /** + * + * + *
    +       * Use `OrderedCodeBytes` encoding.
    +       * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + * + * @return Whether the orderedCodeBytes field is set. + */ + boolean hasOrderedCodeBytes(); + /** + * + * + *
    +       * Use `OrderedCodeBytes` encoding.
    +       * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + * + * @return The orderedCodeBytes. + */ + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes getOrderedCodeBytes(); + /** + * + * + *
    +       * Use `OrderedCodeBytes` encoding.
    +       * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + */ + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesOrBuilder + getOrderedCodeBytesOrBuilder(); + com.google.bigtable.admin.v2.Type.Int64.Encoding.EncodingCase getEncodingCase(); } /** * * *
    -     * Rules used to convert to/from lower level types.
    +     * Rules used to convert to or from lower level types.
          * 
    * * Protobuf type {@code google.bigtable.admin.v2.Type.Int64.Encoding} @@ -5172,10 +5226,13 @@ public interface BigEndianBytesOrBuilder * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; * + * @deprecated google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.bytes_type is + * deprecated. See google/bigtable/admin/v2/types.proto;l=131 * @return Whether the bytesType field is set. */ + @java.lang.Deprecated boolean hasBytesType(); /** * @@ -5184,10 +5241,13 @@ public interface BigEndianBytesOrBuilder * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; * + * @deprecated google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.bytes_type is + * deprecated. See google/bigtable/admin/v2/types.proto;l=131 * @return The bytesType. */ + @java.lang.Deprecated com.google.bigtable.admin.v2.Type.Bytes getBytesType(); /** * @@ -5196,22 +5256,26 @@ public interface BigEndianBytesOrBuilder * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; */ + @java.lang.Deprecated com.google.bigtable.admin.v2.Type.BytesOrBuilder getBytesTypeOrBuilder(); } /** * * *
    -       * Encodes the value as an 8-byte big endian twos complement `Bytes`
    -       * value.
    -       * * Order-preserving? No (positive values only)
    -       * * Self-delimiting? Yes
    -       * * Compatibility?
    -       *    - BigQuery Federation `BINARY` encoding
    -       *    - HBase `Bytes.toBytes`
    -       *    - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN`
    +       * Encodes the value as an 8-byte big-endian two's complement value.
    +       *
    +       * Sorted mode: non-negative values are supported.
    +       *
    +       * Distinct mode: all values are supported.
    +       *
    +       * Compatible with:
    +       *
    +       *  - BigQuery `BINARY` encoding
    +       *  - HBase `Bytes.toBytes`
    +       *  - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN`
            * 
    * * Protobuf type {@code google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes} @@ -5259,11 +5323,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; * + * @deprecated google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.bytes_type is + * deprecated. See google/bigtable/admin/v2/types.proto;l=131 * @return Whether the bytesType field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasBytesType() { return ((bitField0_ & 0x00000001) != 0); } @@ -5274,11 +5341,14 @@ public boolean hasBytesType() { * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; * + * @deprecated google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.bytes_type is + * deprecated. See google/bigtable/admin/v2/types.proto;l=131 * @return The bytesType. */ @java.lang.Override + @java.lang.Deprecated public com.google.bigtable.admin.v2.Type.Bytes getBytesType() { return bytesType_ == null ? com.google.bigtable.admin.v2.Type.Bytes.getDefaultInstance() @@ -5291,9 +5361,10 @@ public com.google.bigtable.admin.v2.Type.Bytes getBytesType() { * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; */ @java.lang.Override + @java.lang.Deprecated public com.google.bigtable.admin.v2.Type.BytesOrBuilder getBytesTypeOrBuilder() { return bytesType_ == null ? com.google.bigtable.admin.v2.Type.Bytes.getDefaultInstance() @@ -5474,14 +5545,17 @@ protected Builder newBuilderForType( * * *
    -         * Encodes the value as an 8-byte big endian twos complement `Bytes`
    -         * value.
    -         * * Order-preserving? No (positive values only)
    -         * * Self-delimiting? Yes
    -         * * Compatibility?
    -         *    - BigQuery Federation `BINARY` encoding
    -         *    - HBase `Bytes.toBytes`
    -         *    - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN`
    +         * Encodes the value as an 8-byte big-endian two's complement value.
    +         *
    +         * Sorted mode: non-negative values are supported.
    +         *
    +         * Distinct mode: all values are supported.
    +         *
    +         * Compatible with:
    +         *
    +         *  - BigQuery `BINARY` encoding
    +         *  - HBase `Bytes.toBytes`
    +         *  - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN`
              * 
    * * Protobuf type {@code google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes} @@ -5698,10 +5772,13 @@ public Builder mergeFrom( * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; * + * @deprecated google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.bytes_type is + * deprecated. See google/bigtable/admin/v2/types.proto;l=131 * @return Whether the bytesType field is set. */ + @java.lang.Deprecated public boolean hasBytesType() { return ((bitField0_ & 0x00000001) != 0); } @@ -5712,10 +5789,13 @@ public boolean hasBytesType() { * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; * + * @deprecated google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.bytes_type is + * deprecated. See google/bigtable/admin/v2/types.proto;l=131 * @return The bytesType. */ + @java.lang.Deprecated public com.google.bigtable.admin.v2.Type.Bytes getBytesType() { if (bytesTypeBuilder_ == null) { return bytesType_ == null @@ -5732,8 +5812,9 @@ public com.google.bigtable.admin.v2.Type.Bytes getBytesType() { * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; */ + @java.lang.Deprecated public Builder setBytesType(com.google.bigtable.admin.v2.Type.Bytes value) { if (bytesTypeBuilder_ == null) { if (value == null) { @@ -5754,8 +5835,9 @@ public Builder setBytesType(com.google.bigtable.admin.v2.Type.Bytes value) { * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; */ + @java.lang.Deprecated public Builder setBytesType( com.google.bigtable.admin.v2.Type.Bytes.Builder builderForValue) { if (bytesTypeBuilder_ == null) { @@ -5774,8 +5856,9 @@ public Builder setBytesType( * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; */ + @java.lang.Deprecated public Builder mergeBytesType(com.google.bigtable.admin.v2.Type.Bytes value) { if (bytesTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) @@ -5801,8 +5884,9 @@ public Builder mergeBytesType(com.google.bigtable.admin.v2.Type.Bytes value) { * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearBytesType() { bitField0_ = (bitField0_ & ~0x00000001); bytesType_ = null; @@ -5820,8 +5904,9 @@ public Builder clearBytesType() { * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; */ + @java.lang.Deprecated public com.google.bigtable.admin.v2.Type.Bytes.Builder getBytesTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); @@ -5834,8 +5919,9 @@ public com.google.bigtable.admin.v2.Type.Bytes.Builder getBytesTypeBuilder() { * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; */ + @java.lang.Deprecated public com.google.bigtable.admin.v2.Type.BytesOrBuilder getBytesTypeOrBuilder() { if (bytesTypeBuilder_ != null) { return bytesTypeBuilder_.getMessageOrBuilder(); @@ -5852,7 +5938,7 @@ public com.google.bigtable.admin.v2.Type.BytesOrBuilder getBytesTypeOrBuilder() * Deprecated: ignored if set. * * - * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.bigtable.admin.v2.Type.Bytes, @@ -5938,1546 +6024,1683 @@ public com.google.protobuf.Parser getParserForType() { } } - private int encodingCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object encoding_; - - public enum EncodingCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BIG_ENDIAN_BYTES(1), - ENCODING_NOT_SET(0); - private final int value; - - private EncodingCase(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 EncodingCase valueOf(int value) { - return forNumber(value); - } - - public static EncodingCase forNumber(int value) { - switch (value) { - case 1: - return BIG_ENDIAN_BYTES; - case 0: - return ENCODING_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public EncodingCase getEncodingCase() { - return EncodingCase.forNumber(encodingCase_); - } - - public static final int BIG_ENDIAN_BYTES_FIELD_NUMBER = 1; + public interface OrderedCodeBytesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) + com.google.protobuf.MessageOrBuilder {} /** * * *
    -       * Use `BigEndianBytes` encoding.
    -       * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * - * - * @return Whether the bigEndianBytes field is set. - */ - @java.lang.Override - public boolean hasBigEndianBytes() { - return encodingCase_ == 1; - } - /** + * Encodes the value in a variable length binary format of up to 10 bytes. + * Values that are closer to zero use fewer bytes. * + * Sorted mode: all values are supported. * - *
    -       * Use `BigEndianBytes` encoding.
    +       * Distinct mode: all values are supported.
            * 
    * - * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * - * - * @return The bigEndianBytes. + * Protobuf type {@code google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes} */ - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes getBigEndianBytes() { - if (encodingCase_ == 1) { - return (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_; + public static final class OrderedCodeBytes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) + OrderedCodeBytesOrBuilder { + private static final long serialVersionUID = 0L; + // Use OrderedCodeBytes.newBuilder() to construct. + private OrderedCodeBytes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.getDefaultInstance(); - } - /** - * - * - *
    -       * Use `BigEndianBytes` encoding.
    -       * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * - */ - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesOrBuilder - getBigEndianBytesOrBuilder() { - if (encodingCase_ == 1) { - return (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_; + + private OrderedCodeBytes() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OrderedCodeBytes(); } - return com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_OrderedCodeBytes_descriptor; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_OrderedCodeBytes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.class, + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (encodingCase_ == 1) { - output.writeMessage( - 1, (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } - size = 0; - if (encodingCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes other = + (com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } - if (!(obj instanceof com.google.bigtable.admin.v2.Type.Int64.Encoding)) { - return super.equals(obj); + + @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; } - com.google.bigtable.admin.v2.Type.Int64.Encoding other = - (com.google.bigtable.admin.v2.Type.Int64.Encoding) obj; - if (!getEncodingCase().equals(other.getEncodingCase())) return false; - switch (encodingCase_) { - case 1: - if (!getBigEndianBytes().equals(other.getBigEndianBytes())) return false; - break; - case 0: - default: + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes 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(); - switch (encodingCase_) { - case 1: - hash = (37 * hash) + BIG_ENDIAN_BYTES_FIELD_NUMBER; - hash = (53 * hash) + getBigEndianBytes().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.bigtable.admin.v2.Type.Int64.Encoding 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.bigtable.admin.v2.Type.Int64.Encoding parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.bigtable.admin.v2.Type.Int64.Encoding 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.bigtable.admin.v2.Type.Int64.Encoding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.bigtable.admin.v2.Type.Int64.Encoding 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.bigtable.admin.v2.Type.Int64.Encoding parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.bigtable.admin.v2.Type.Int64.Encoding 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.bigtable.admin.v2.Type.Int64.Encoding 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; - } - /** - * - * - *
    -       * Rules used to convert to/from lower level types.
    -       * 
    - * - * Protobuf type {@code google.bigtable.admin.v2.Type.Int64.Encoding} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Int64.Encoding) - com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_descriptor; + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Int64.Encoding.class, - com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder.class); + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - // Construct using com.google.bigtable.admin.v2.Type.Int64.Encoding.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (bigEndianBytesBuilder_ != null) { - bigEndianBytesBuilder_.clear(); - } - encodingCase_ = 0; - encoding_ = null; - return this; + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_descriptor; + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Int64.Encoding getDefaultInstanceForType() { - return com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance(); + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Int64.Encoding build() { - com.google.bigtable.admin.v2.Type.Int64.Encoding result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes 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.bigtable.admin.v2.Type.Int64.Encoding buildPartial() { - com.google.bigtable.admin.v2.Type.Int64.Encoding result = - new com.google.bigtable.admin.v2.Type.Int64.Encoding(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - private void buildPartial0(com.google.bigtable.admin.v2.Type.Int64.Encoding result) { - int from_bitField0_ = bitField0_; + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + 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 buildPartialOneofs(com.google.bigtable.admin.v2.Type.Int64.Encoding result) { - result.encodingCase_ = encodingCase_; - result.encoding_ = this.encoding_; - if (encodingCase_ == 1 && bigEndianBytesBuilder_ != null) { - result.encoding_ = bigEndianBytesBuilder_.build(); - } + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - @java.lang.Override - public Builder clone() { - return super.clone(); + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes 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 setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public Builder newBuilderForType() { + return newBuilder(); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public static Builder newBuilder( + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } + /** + * + * + *
    +         * Encodes the value in a variable length binary format of up to 10 bytes.
    +         * Values that are closer to zero use fewer bytes.
    +         *
    +         * Sorted mode: all values are supported.
    +         *
    +         * Distinct mode: all values are supported.
    +         * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_OrderedCodeBytes_descriptor; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.bigtable.admin.v2.Type.Int64.Encoding) { - return mergeFrom((com.google.bigtable.admin.v2.Type.Int64.Encoding) other); - } else { - super.mergeFrom(other); - return this; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_OrderedCodeBytes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.class, + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.Builder + .class); } - } - public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Int64.Encoding other) { - if (other == com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance()) + // Construct using + // com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); return this; - switch (other.getEncodingCase()) { - case BIG_ENDIAN_BYTES: - { - mergeBigEndianBytes(other.getBigEndianBytes()); - break; - } - case ENCODING_NOT_SET: - { - break; - } } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_OrderedCodeBytes_descriptor; + } - @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(); + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + .getDefaultInstance(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getBigEndianBytesFieldBuilder().getBuilder(), extensionRegistry); - encodingCase_ = 1; - 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 encodingCase_ = 0; - private java.lang.Object encoding_; + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes build() { + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public EncodingCase getEncodingCase() { - return EncodingCase.forNumber(encodingCase_); - } + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes buildPartial() { + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes result = + new com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes(this); + onBuilt(); + return result; + } - public Builder clearEncoding() { - encodingCase_ = 0; - encoding_ = null; - onChanged(); - return this; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - private int bitField0_; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes, - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.Builder, - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesOrBuilder> - bigEndianBytesBuilder_; - /** - * - * - *
    -         * Use `BigEndianBytes` encoding.
    -         * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * - * - * @return Whether the bigEndianBytes field is set. - */ - @java.lang.Override - public boolean hasBigEndianBytes() { - return encodingCase_ == 1; - } - /** - * - * - *
    -         * Use `BigEndianBytes` encoding.
    -         * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * - * - * @return The bigEndianBytes. - */ - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes getBigEndianBytes() { - if (bigEndianBytesBuilder_ == null) { - if (encodingCase_ == 1) { - return (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_; - } - return com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - .getDefaultInstance(); - } else { - if (encodingCase_ == 1) { - return bigEndianBytesBuilder_.getMessage(); - } - return com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - .getDefaultInstance(); + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - } - /** - * - * - *
    -         * Use `BigEndianBytes` encoding.
    -         * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * - */ - public Builder setBigEndianBytes( - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes value) { - if (bigEndianBytesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + + @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.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) { + return mergeFrom( + (com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) other); + } else { + super.mergeFrom(other); + return this; } - encoding_ = value; - onChanged(); - } else { - bigEndianBytesBuilder_.setMessage(value); } - encodingCase_ = 1; - return this; - } - /** - * - * - *
    -         * Use `BigEndianBytes` encoding.
    -         * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * - */ - public Builder setBigEndianBytes( - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.Builder - builderForValue) { - if (bigEndianBytesBuilder_ == null) { - encoding_ = builderForValue.build(); + + public Builder mergeFrom( + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes other) { + if (other + == com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); - } else { - bigEndianBytesBuilder_.setMessage(builderForValue.build()); + return this; } - encodingCase_ = 1; - return this; - } - /** - * - * - *
    -         * Use `BigEndianBytes` encoding.
    -         * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * - */ - public Builder mergeBigEndianBytes( - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes value) { - if (bigEndianBytesBuilder_ == null) { - if (encodingCase_ == 1 - && encoding_ - != com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - .getDefaultInstance()) { - encoding_ = - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.newBuilder( - (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) - encoding_) - .mergeFrom(value) - .buildPartial(); - } else { - encoding_ = value; - } - onChanged(); - } else { - if (encodingCase_ == 1) { - bigEndianBytesBuilder_.mergeFrom(value); - } else { - bigEndianBytesBuilder_.setMessage(value); - } + + @java.lang.Override + public final boolean isInitialized() { + return true; } - encodingCase_ = 1; - return this; - } - /** - * - * - *
    -         * Use `BigEndianBytes` encoding.
    -         * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * - */ - public Builder clearBigEndianBytes() { - if (bigEndianBytesBuilder_ == null) { - if (encodingCase_ == 1) { - encodingCase_ = 0; - encoding_ = null; - onChanged(); - } - } else { - if (encodingCase_ == 1) { - encodingCase_ = 0; - encoding_ = null; + + @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(); } - bigEndianBytesBuilder_.clear(); + 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; } - 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.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) } - /** - * - * - *
    -         * Use `BigEndianBytes` encoding.
    -         * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * - */ - public com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.Builder - getBigEndianBytesBuilder() { - return getBigEndianBytesFieldBuilder().getBuilder(); + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) + private static final com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes(); } - /** - * - * - *
    -         * Use `BigEndianBytes` encoding.
    -         * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * - */ - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesOrBuilder - getBigEndianBytesOrBuilder() { - if ((encodingCase_ == 1) && (bigEndianBytesBuilder_ != null)) { - return bigEndianBytesBuilder_.getMessageOrBuilder(); - } else { - if (encodingCase_ == 1) { - return (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_; - } - return com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - .getDefaultInstance(); - } + + public static com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + getDefaultInstance() { + return DEFAULT_INSTANCE; } - /** - * - * - *
    -         * Use `BigEndianBytes` encoding.
    -         * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes, - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.Builder, - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesOrBuilder> - getBigEndianBytesFieldBuilder() { - if (bigEndianBytesBuilder_ == null) { - if (!(encodingCase_ == 1)) { - encoding_ = - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - .getDefaultInstance(); - } - bigEndianBytesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes, - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.Builder, - com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesOrBuilder>( - (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_, - getParentForChildren(), - isClean()); - encoding_ = null; - } - encodingCase_ = 1; - onChanged(); - return bigEndianBytesBuilder_; + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrderedCodeBytes 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 final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - - // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Int64.Encoding) } - // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Int64.Encoding) - private static final com.google.bigtable.admin.v2.Type.Int64.Encoding DEFAULT_INSTANCE; + private int encodingCase_ = 0; - static { - DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Int64.Encoding(); - } + @SuppressWarnings("serial") + private java.lang.Object encoding_; - public static com.google.bigtable.admin.v2.Type.Int64.Encoding getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public enum EncodingCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BIG_ENDIAN_BYTES(1), + ORDERED_CODE_BYTES(2), + ENCODING_NOT_SET(0); + private final int value; - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Encoding 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(); - } - }; + private EncodingCase(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 EncodingCase valueOf(int value) { + return forNumber(value); + } - public static com.google.protobuf.Parser parser() { - return PARSER; + public static EncodingCase forNumber(int value) { + switch (value) { + case 1: + return BIG_ENDIAN_BYTES; + case 2: + return ORDERED_CODE_BYTES; + case 0: + return ENCODING_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EncodingCase getEncodingCase() { + return EncodingCase.forNumber(encodingCase_); } + public static final int BIG_ENDIAN_BYTES_FIELD_NUMBER = 1; + /** + * + * + *
    +       * Use `BigEndianBytes` encoding.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * + * + * @return Whether the bigEndianBytes field is set. + */ @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public boolean hasBigEndianBytes() { + return encodingCase_ == 1; } - + /** + * + * + *
    +       * Use `BigEndianBytes` encoding.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * + * + * @return The bigEndianBytes. + */ @java.lang.Override - public com.google.bigtable.admin.v2.Type.Int64.Encoding getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes getBigEndianBytes() { + if (encodingCase_ == 1) { + return (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.getDefaultInstance(); } - } - - private int bitField0_; - public static final int ENCODING_FIELD_NUMBER = 1; - private com.google.bigtable.admin.v2.Type.Int64.Encoding encoding_; - /** - * - * - *
    -     * The encoding to use when converting to/from lower level types.
    -     * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - * - * @return Whether the encoding field is set. - */ - @java.lang.Override - public boolean hasEncoding() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
    -     * The encoding to use when converting to/from lower level types.
    -     * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - * - * @return The encoding. - */ - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Int64.Encoding getEncoding() { - return encoding_ == null - ? com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance() - : encoding_; - } - /** - * - * - *
    -     * The encoding to use when converting to/from lower level types.
    -     * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - */ - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder getEncodingOrBuilder() { - return encoding_ == null - ? com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance() - : encoding_; - } - - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getEncoding()); + /** + * + * + *
    +       * Use `BigEndianBytes` encoding.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesOrBuilder + getBigEndianBytesOrBuilder() { + if (encodingCase_ == 1) { + return (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.getDefaultInstance(); } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEncoding()); + public static final int ORDERED_CODE_BYTES_FIELD_NUMBER = 2; + /** + * + * + *
    +       * Use `OrderedCodeBytes` encoding.
    +       * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + * + * @return Whether the orderedCodeBytes field is set. + */ + @java.lang.Override + public boolean hasOrderedCodeBytes() { + return encodingCase_ == 2; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + * + * + *
    +       * Use `OrderedCodeBytes` encoding.
    +       * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + * + * @return The orderedCodeBytes. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + getOrderedCodeBytes() { + if (encodingCase_ == 2) { + return (com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + .getDefaultInstance(); } - if (!(obj instanceof com.google.bigtable.admin.v2.Type.Int64)) { - return super.equals(obj); + /** + * + * + *
    +       * Use `OrderedCodeBytes` encoding.
    +       * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesOrBuilder + getOrderedCodeBytesOrBuilder() { + if (encodingCase_ == 2) { + return (com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + .getDefaultInstance(); } - com.google.bigtable.admin.v2.Type.Int64 other = (com.google.bigtable.admin.v2.Type.Int64) obj; - if (hasEncoding() != other.hasEncoding()) return false; - if (hasEncoding()) { - if (!getEncoding().equals(other.getEncoding())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEncoding()) { - hash = (37 * hash) + ENCODING_FIELD_NUMBER; - hash = (53 * hash) + getEncoding().hashCode(); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (encodingCase_ == 1) { + output.writeMessage( + 1, (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_); + } + if (encodingCase_ == 2) { + output.writeMessage( + 2, (com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) encoding_); + } + getUnknownFields().writeTo(output); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.bigtable.admin.v2.Type.Int64 parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.bigtable.admin.v2.Type.Int64 parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.bigtable.admin.v2.Type.Int64 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + size = 0; + if (encodingCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_); + } + if (encodingCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) encoding_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.bigtable.admin.v2.Type.Int64 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.admin.v2.Type.Int64.Encoding)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.Type.Int64.Encoding other = + (com.google.bigtable.admin.v2.Type.Int64.Encoding) obj; - public static com.google.bigtable.admin.v2.Type.Int64 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + if (!getEncodingCase().equals(other.getEncodingCase())) return false; + switch (encodingCase_) { + case 1: + if (!getBigEndianBytes().equals(other.getBigEndianBytes())) return false; + break; + case 2: + if (!getOrderedCodeBytes().equals(other.getOrderedCodeBytes())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.bigtable.admin.v2.Type.Int64 parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (encodingCase_) { + case 1: + hash = (37 * hash) + BIG_ENDIAN_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getBigEndianBytes().hashCode(); + break; + case 2: + hash = (37 * hash) + ORDERED_CODE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getOrderedCodeBytes().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.bigtable.admin.v2.Type.Int64 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.bigtable.admin.v2.Type.Int64 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.bigtable.admin.v2.Type.Int64.Encoding parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.bigtable.admin.v2.Type.Int64 parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.bigtable.admin.v2.Type.Int64 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.bigtable.admin.v2.Type.Int64.Encoding 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.bigtable.admin.v2.Type.Int64 parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.bigtable.admin.v2.Type.Int64 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.bigtable.admin.v2.Type.Int64.Encoding 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 Builder newBuilder(com.google.bigtable.admin.v2.Type.Int64 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
    -     * Int64
    -     * Values of type `Int64` are stored in `Value.int_value`.
    -     * 
    - * - * Protobuf type {@code google.bigtable.admin.v2.Type.Int64} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Int64) - com.google.bigtable.admin.v2.Type.Int64OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Int64_descriptor; + public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Int64_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Int64.class, - com.google.bigtable.admin.v2.Type.Int64.Builder.class); + public static com.google.bigtable.admin.v2.Type.Int64.Encoding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - // Construct using com.google.bigtable.admin.v2.Type.Int64.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getEncodingFieldBuilder(); - } + public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Int64.Encoding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - encoding_ = null; - if (encodingBuilder_ != null) { - encodingBuilder_.dispose(); - encodingBuilder_ = null; - } - return this; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Int64_descriptor; + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } + /** + * + * + *
    +       * Rules used to convert to or from lower level types.
    +       * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Int64.Encoding} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Int64.Encoding) + com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_descriptor; + } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Int64 getDefaultInstanceForType() { - return com.google.bigtable.admin.v2.Type.Int64.getDefaultInstance(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Int64.Encoding.class, + com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder.class); + } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Int64 build() { - com.google.bigtable.admin.v2.Type.Int64 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + // Construct using com.google.bigtable.admin.v2.Type.Int64.Encoding.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); } - return result; - } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Int64 buildPartial() { - com.google.bigtable.admin.v2.Type.Int64 result = - new com.google.bigtable.admin.v2.Type.Int64(this); - if (bitField0_ != 0) { - buildPartial0(result); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bigEndianBytesBuilder_ != null) { + bigEndianBytesBuilder_.clear(); + } + if (orderedCodeBytesBuilder_ != null) { + orderedCodeBytesBuilder_.clear(); + } + encodingCase_ = 0; + encoding_ = null; + return this; } - onBuilt(); - return result; - } - private void buildPartial0(com.google.bigtable.admin.v2.Type.Int64 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.encoding_ = encodingBuilder_ == null ? encoding_ : encodingBuilder_.build(); - to_bitField0_ |= 0x00000001; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_descriptor; } - result.bitField0_ |= to_bitField0_; - } - @java.lang.Override - public Builder clone() { - return super.clone(); - } + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance(); + } - @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 com.google.bigtable.admin.v2.Type.Int64.Encoding build() { + com.google.bigtable.admin.v2.Type.Int64.Encoding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding buildPartial() { + com.google.bigtable.admin.v2.Type.Int64.Encoding result = + new com.google.bigtable.admin.v2.Type.Int64.Encoding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + private void buildPartial0(com.google.bigtable.admin.v2.Type.Int64.Encoding result) { + int from_bitField0_ = bitField0_; + } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } + private void buildPartialOneofs(com.google.bigtable.admin.v2.Type.Int64.Encoding result) { + result.encodingCase_ = encodingCase_; + result.encoding_ = this.encoding_; + if (encodingCase_ == 1 && bigEndianBytesBuilder_ != null) { + result.encoding_ = bigEndianBytesBuilder_.build(); + } + if (encodingCase_ == 2 && orderedCodeBytesBuilder_ != null) { + result.encoding_ = orderedCodeBytesBuilder_.build(); + } + } - @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 clone() { + return super.clone(); + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.bigtable.admin.v2.Type.Int64) { - return mergeFrom((com.google.bigtable.admin.v2.Type.Int64) other); - } else { - super.mergeFrom(other); - return this; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); } - } - public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Int64 other) { - if (other == com.google.bigtable.admin.v2.Type.Int64.getDefaultInstance()) return this; - if (other.hasEncoding()) { - mergeEncoding(other.getEncoding()); + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @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(); + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; + + @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.bigtable.admin.v2.Type.Int64.Encoding) { + return mergeFrom((com.google.bigtable.admin.v2.Type.Int64.Encoding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Int64.Encoding other) { + if (other == com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance()) + return this; + switch (other.getEncodingCase()) { + case BIG_ENDIAN_BYTES: + { + mergeBigEndianBytes(other.getBigEndianBytes()); break; - case 10: - { - input.readMessage(getEncodingFieldBuilder().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 { + } + case ORDERED_CODE_BYTES: + { + mergeOrderedCodeBytes(other.getOrderedCodeBytes()); + break; + } + case ENCODING_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); - } // finally - return this; - } + return this; + } - private int bitField0_; - - private com.google.bigtable.admin.v2.Type.Int64.Encoding encoding_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.bigtable.admin.v2.Type.Int64.Encoding, - com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder, - com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder> - encodingBuilder_; - /** - * - * - *
    -       * The encoding to use when converting to/from lower level types.
    -       * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - * - * @return Whether the encoding field is set. - */ - public boolean hasEncoding() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
    -       * The encoding to use when converting to/from lower level types.
    -       * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - * - * @return The encoding. - */ - public com.google.bigtable.admin.v2.Type.Int64.Encoding getEncoding() { - if (encodingBuilder_ == null) { - return encoding_ == null - ? com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance() - : encoding_; - } else { - return encodingBuilder_.getMessage(); + @java.lang.Override + public final boolean isInitialized() { + return true; } - } - /** - * - * - *
    -       * The encoding to use when converting to/from lower level types.
    -       * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - */ - public Builder setEncoding(com.google.bigtable.admin.v2.Type.Int64.Encoding value) { - if (encodingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + + @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(); } - encoding_ = value; - } else { - encodingBuilder_.setMessage(value); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getBigEndianBytesFieldBuilder().getBuilder(), extensionRegistry); + encodingCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getOrderedCodeBytesFieldBuilder().getBuilder(), extensionRegistry); + encodingCase_ = 2; + break; + } // case 18 + 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; } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
    -       * The encoding to use when converting to/from lower level types.
    -       * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - */ - public Builder setEncoding( - com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder builderForValue) { - if (encodingBuilder_ == null) { - encoding_ = builderForValue.build(); - } else { - encodingBuilder_.setMessage(builderForValue.build()); + + private int encodingCase_ = 0; + private java.lang.Object encoding_; + + public EncodingCase getEncodingCase() { + return EncodingCase.forNumber(encodingCase_); } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
    -       * The encoding to use when converting to/from lower level types.
    -       * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - */ - public Builder mergeEncoding(com.google.bigtable.admin.v2.Type.Int64.Encoding value) { - if (encodingBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && encoding_ != null - && encoding_ - != com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance()) { - getEncodingBuilder().mergeFrom(value); + + public Builder clearEncoding() { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes, + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.Builder, + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesOrBuilder> + bigEndianBytesBuilder_; + /** + * + * + *
    +         * Use `BigEndianBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * + * + * @return Whether the bigEndianBytes field is set. + */ + @java.lang.Override + public boolean hasBigEndianBytes() { + return encodingCase_ == 1; + } + /** + * + * + *
    +         * Use `BigEndianBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * + * + * @return The bigEndianBytes. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes getBigEndianBytes() { + if (bigEndianBytesBuilder_ == null) { + if (encodingCase_ == 1) { + return (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + .getDefaultInstance(); } else { + if (encodingCase_ == 1) { + return bigEndianBytesBuilder_.getMessage(); + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + .getDefaultInstance(); + } + } + /** + * + * + *
    +         * Use `BigEndianBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * + */ + public Builder setBigEndianBytes( + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes value) { + if (bigEndianBytesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } encoding_ = value; + onChanged(); + } else { + bigEndianBytesBuilder_.setMessage(value); } - } else { - encodingBuilder_.mergeFrom(value); + encodingCase_ = 1; + return this; } - if (encoding_ != null) { - bitField0_ |= 0x00000001; - onChanged(); + /** + * + * + *
    +         * Use `BigEndianBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * + */ + public Builder setBigEndianBytes( + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.Builder + builderForValue) { + if (bigEndianBytesBuilder_ == null) { + encoding_ = builderForValue.build(); + onChanged(); + } else { + bigEndianBytesBuilder_.setMessage(builderForValue.build()); + } + encodingCase_ = 1; + return this; } - return this; - } - /** - * - * - *
    -       * The encoding to use when converting to/from lower level types.
    -       * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - */ - public Builder clearEncoding() { - bitField0_ = (bitField0_ & ~0x00000001); - encoding_ = null; - if (encodingBuilder_ != null) { - encodingBuilder_.dispose(); - encodingBuilder_ = null; + /** + * + * + *
    +         * Use `BigEndianBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * + */ + public Builder mergeBigEndianBytes( + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes value) { + if (bigEndianBytesBuilder_ == null) { + if (encodingCase_ == 1 + && encoding_ + != com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + .getDefaultInstance()) { + encoding_ = + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.newBuilder( + (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) + encoding_) + .mergeFrom(value) + .buildPartial(); + } else { + encoding_ = value; + } + onChanged(); + } else { + if (encodingCase_ == 1) { + bigEndianBytesBuilder_.mergeFrom(value); + } else { + bigEndianBytesBuilder_.setMessage(value); + } + } + encodingCase_ = 1; + return this; } - onChanged(); - return this; - } - /** - * - * - *
    -       * The encoding to use when converting to/from lower level types.
    -       * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - */ - public com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder getEncodingBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getEncodingFieldBuilder().getBuilder(); - } - /** - * - * - *
    -       * The encoding to use when converting to/from lower level types.
    -       * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - */ - public com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder getEncodingOrBuilder() { - if (encodingBuilder_ != null) { - return encodingBuilder_.getMessageOrBuilder(); - } else { - return encoding_ == null - ? com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance() - : encoding_; + /** + * + * + *
    +         * Use `BigEndianBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * + */ + public Builder clearBigEndianBytes() { + if (bigEndianBytesBuilder_ == null) { + if (encodingCase_ == 1) { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + } + } else { + if (encodingCase_ == 1) { + encodingCase_ = 0; + encoding_ = null; + } + bigEndianBytesBuilder_.clear(); + } + return this; } - } - /** - * - * - *
    -       * The encoding to use when converting to/from lower level types.
    -       * 
    - * - * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.bigtable.admin.v2.Type.Int64.Encoding, - com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder, - com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder> - getEncodingFieldBuilder() { - if (encodingBuilder_ == null) { - encodingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.bigtable.admin.v2.Type.Int64.Encoding, - com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder, - com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder>( - getEncoding(), getParentForChildren(), isClean()); - encoding_ = null; + /** + * + * + *
    +         * Use `BigEndianBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * + */ + public com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.Builder + getBigEndianBytesBuilder() { + return getBigEndianBytesFieldBuilder().getBuilder(); } - return encodingBuilder_; - } - - @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.bigtable.admin.v2.Type.Int64) - } - - // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Int64) - private static final com.google.bigtable.admin.v2.Type.Int64 DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Int64(); - } - - public static com.google.bigtable.admin.v2.Type.Int64 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64 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()); + /** + * + * + *
    +         * Use `BigEndianBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesOrBuilder + getBigEndianBytesOrBuilder() { + if ((encodingCase_ == 1) && (bigEndianBytesBuilder_ != null)) { + return bigEndianBytesBuilder_.getMessageOrBuilder(); + } else { + if (encodingCase_ == 1) { + return (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_; } - return builder.buildPartial(); + return com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + .getDefaultInstance(); } - }; - - 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.bigtable.admin.v2.Type.Int64 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + } + /** + * + * + *
    +         * Use `BigEndianBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes, + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.Builder, + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesOrBuilder> + getBigEndianBytesFieldBuilder() { + if (bigEndianBytesBuilder_ == null) { + if (!(encodingCase_ == 1)) { + encoding_ = + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + .getDefaultInstance(); + } + bigEndianBytesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes, + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.Builder, + com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesOrBuilder>( + (com.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) encoding_, + getParentForChildren(), + isClean()); + encoding_ = null; + } + encodingCase_ = 1; + onChanged(); + return bigEndianBytesBuilder_; + } - public interface BoolOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Bool) - com.google.protobuf.MessageOrBuilder {} - /** - * - * - *
    -   * bool
    -   * Values of type `Bool` are stored in `Value.bool_value`.
    -   * 
    - * - * Protobuf type {@code google.bigtable.admin.v2.Type.Bool} - */ - public static final class Bool extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Bool) - BoolOrBuilder { - private static final long serialVersionUID = 0L; - // Use Bool.newBuilder() to construct. - private Bool(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Bool() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Bool(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Bool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Bool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Bool.class, - com.google.bigtable.admin.v2.Type.Bool.Builder.class); - } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes, + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.Builder, + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesOrBuilder> + orderedCodeBytesBuilder_; + /** + * + * + *
    +         * Use `OrderedCodeBytes` encoding.
    +         * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + * + * @return Whether the orderedCodeBytes field is set. + */ + @java.lang.Override + public boolean hasOrderedCodeBytes() { + return encodingCase_ == 2; + } + /** + * + * + *
    +         * Use `OrderedCodeBytes` encoding.
    +         * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + * + * @return The orderedCodeBytes. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + getOrderedCodeBytes() { + if (orderedCodeBytesBuilder_ == null) { + if (encodingCase_ == 2) { + return (com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + .getDefaultInstance(); + } else { + if (encodingCase_ == 2) { + return orderedCodeBytesBuilder_.getMessage(); + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + .getDefaultInstance(); + } + } + /** + * + * + *
    +         * Use `OrderedCodeBytes` encoding.
    +         * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + */ + public Builder setOrderedCodeBytes( + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes value) { + if (orderedCodeBytesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encoding_ = value; + onChanged(); + } else { + orderedCodeBytesBuilder_.setMessage(value); + } + encodingCase_ = 2; + return this; + } + /** + * + * + *
    +         * Use `OrderedCodeBytes` encoding.
    +         * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + */ + public Builder setOrderedCodeBytes( + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.Builder + builderForValue) { + if (orderedCodeBytesBuilder_ == null) { + encoding_ = builderForValue.build(); + onChanged(); + } else { + orderedCodeBytesBuilder_.setMessage(builderForValue.build()); + } + encodingCase_ = 2; + return this; + } + /** + * + * + *
    +         * Use `OrderedCodeBytes` encoding.
    +         * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + */ + public Builder mergeOrderedCodeBytes( + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes value) { + if (orderedCodeBytesBuilder_ == null) { + if (encodingCase_ == 2 + && encoding_ + != com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + .getDefaultInstance()) { + encoding_ = + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.newBuilder( + (com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) + encoding_) + .mergeFrom(value) + .buildPartial(); + } else { + encoding_ = value; + } + onChanged(); + } else { + if (encodingCase_ == 2) { + orderedCodeBytesBuilder_.mergeFrom(value); + } else { + orderedCodeBytesBuilder_.setMessage(value); + } + } + encodingCase_ = 2; + return this; + } + /** + * + * + *
    +         * Use `OrderedCodeBytes` encoding.
    +         * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + */ + public Builder clearOrderedCodeBytes() { + if (orderedCodeBytesBuilder_ == null) { + if (encodingCase_ == 2) { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + } + } else { + if (encodingCase_ == 2) { + encodingCase_ = 0; + encoding_ = null; + } + orderedCodeBytesBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +         * Use `OrderedCodeBytes` encoding.
    +         * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + */ + public com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.Builder + getOrderedCodeBytesBuilder() { + return getOrderedCodeBytesFieldBuilder().getBuilder(); + } + /** + * + * + *
    +         * Use `OrderedCodeBytes` encoding.
    +         * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesOrBuilder + getOrderedCodeBytesOrBuilder() { + if ((encodingCase_ == 2) && (orderedCodeBytesBuilder_ != null)) { + return orderedCodeBytesBuilder_.getMessageOrBuilder(); + } else { + if (encodingCase_ == 2) { + return (com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + .getDefaultInstance(); + } + } + /** + * + * + *
    +         * Use `OrderedCodeBytes` encoding.
    +         * 
    + * + * + * .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes, + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.Builder, + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesOrBuilder> + getOrderedCodeBytesFieldBuilder() { + if (orderedCodeBytesBuilder_ == null) { + if (!(encodingCase_ == 2)) { + encoding_ = + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + .getDefaultInstance(); + } + orderedCodeBytesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes, + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.Builder, + com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesOrBuilder>( + (com.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) encoding_, + getParentForChildren(), + isClean()); + encoding_ = null; + } + encodingCase_ = 2; + onChanged(); + return orderedCodeBytesBuilder_; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Int64.Encoding) + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getUnknownFields().writeTo(output); - } + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Int64.Encoding) + private static final com.google.bigtable.admin.v2.Type.Int64.Encoding DEFAULT_INSTANCE; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Int64.Encoding(); + } - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static com.google.bigtable.admin.v2.Type.Int64.Encoding getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Encoding 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.bigtable.admin.v2.Type.Int64.Encoding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ENCODING_FIELD_NUMBER = 1; + private com.google.bigtable.admin.v2.Type.Int64.Encoding encoding_; + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + * + * @return Whether the encoding field is set. + */ + @java.lang.Override + public boolean hasEncoding() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + * + * @return The encoding. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding getEncoding() { + return encoding_ == null + ? com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance() + : encoding_; + } + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder getEncodingOrBuilder() { + return encoding_ == null + ? com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance() + : encoding_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEncoding()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEncoding()); + } + 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.bigtable.admin.v2.Type.Bool)) { + if (!(obj instanceof com.google.bigtable.admin.v2.Type.Int64)) { return super.equals(obj); } - com.google.bigtable.admin.v2.Type.Bool other = (com.google.bigtable.admin.v2.Type.Bool) obj; + com.google.bigtable.admin.v2.Type.Int64 other = (com.google.bigtable.admin.v2.Type.Int64) obj; + if (hasEncoding() != other.hasEncoding()) return false; + if (hasEncoding()) { + if (!getEncoding().equals(other.getEncoding())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7489,76 +7712,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEncoding()) { + hash = (37 * hash) + ENCODING_FIELD_NUMBER; + hash = (53 * hash) + getEncoding().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.bigtable.admin.v2.Type.Bool parseFrom(java.nio.ByteBuffer data) + public static com.google.bigtable.admin.v2.Type.Int64 parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.bigtable.admin.v2.Type.Bool parseFrom( + public static com.google.bigtable.admin.v2.Type.Int64 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.bigtable.admin.v2.Type.Bool parseFrom( + public static com.google.bigtable.admin.v2.Type.Int64 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.bigtable.admin.v2.Type.Bool parseFrom( + public static com.google.bigtable.admin.v2.Type.Int64 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.bigtable.admin.v2.Type.Bool parseFrom(byte[] data) + public static com.google.bigtable.admin.v2.Type.Int64 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.bigtable.admin.v2.Type.Bool parseFrom( + public static com.google.bigtable.admin.v2.Type.Int64 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.bigtable.admin.v2.Type.Bool parseFrom(java.io.InputStream input) + public static com.google.bigtable.admin.v2.Type.Int64 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.bigtable.admin.v2.Type.Bool parseFrom( + public static com.google.bigtable.admin.v2.Type.Int64 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.bigtable.admin.v2.Type.Bool parseDelimitedFrom( + public static com.google.bigtable.admin.v2.Type.Int64 parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.bigtable.admin.v2.Type.Bool parseDelimitedFrom( + public static com.google.bigtable.admin.v2.Type.Int64 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.bigtable.admin.v2.Type.Bool parseFrom( + public static com.google.bigtable.admin.v2.Type.Int64 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.bigtable.admin.v2.Type.Bool parseFrom( + public static com.google.bigtable.admin.v2.Type.Int64 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7575,7 +7802,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Bool prototype) { + public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Int64 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -7594,59 +7821,74 @@ protected Builder newBuilderForType( * * *
    -     * bool
    -     * Values of type `Bool` are stored in `Value.bool_value`.
    +     * Int64
    +     * Values of type `Int64` are stored in `Value.int_value`.
          * 
    * - * Protobuf type {@code google.bigtable.admin.v2.Type.Bool} + * Protobuf type {@code google.bigtable.admin.v2.Type.Int64} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Bool) - com.google.bigtable.admin.v2.Type.BoolOrBuilder { + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Int64) + com.google.bigtable.admin.v2.Type.Int64OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Bool_descriptor; + .internal_static_google_bigtable_admin_v2_Type_Int64_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Bool_fieldAccessorTable + .internal_static_google_bigtable_admin_v2_Type_Int64_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Bool.class, - com.google.bigtable.admin.v2.Type.Bool.Builder.class); + com.google.bigtable.admin.v2.Type.Int64.class, + com.google.bigtable.admin.v2.Type.Int64.Builder.class); } - // Construct using com.google.bigtable.admin.v2.Type.Bool.newBuilder() - private Builder() {} + // Construct using com.google.bigtable.admin.v2.Type.Int64.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEncodingFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; + encoding_ = null; + if (encodingBuilder_ != null) { + encodingBuilder_.dispose(); + encodingBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Bool_descriptor; + .internal_static_google_bigtable_admin_v2_Type_Int64_descriptor; } @java.lang.Override - public com.google.bigtable.admin.v2.Type.Bool getDefaultInstanceForType() { - return com.google.bigtable.admin.v2.Type.Bool.getDefaultInstance(); + public com.google.bigtable.admin.v2.Type.Int64 getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Int64.getDefaultInstance(); } @java.lang.Override - public com.google.bigtable.admin.v2.Type.Bool build() { - com.google.bigtable.admin.v2.Type.Bool result = buildPartial(); + public com.google.bigtable.admin.v2.Type.Int64 build() { + com.google.bigtable.admin.v2.Type.Int64 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7654,13 +7896,26 @@ public com.google.bigtable.admin.v2.Type.Bool build() { } @java.lang.Override - public com.google.bigtable.admin.v2.Type.Bool buildPartial() { - com.google.bigtable.admin.v2.Type.Bool result = - new com.google.bigtable.admin.v2.Type.Bool(this); + public com.google.bigtable.admin.v2.Type.Int64 buildPartial() { + com.google.bigtable.admin.v2.Type.Int64 result = + new com.google.bigtable.admin.v2.Type.Int64(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.bigtable.admin.v2.Type.Int64 result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.encoding_ = encodingBuilder_ == null ? encoding_ : encodingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -7698,16 +7953,19 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.bigtable.admin.v2.Type.Bool) { - return mergeFrom((com.google.bigtable.admin.v2.Type.Bool) other); + if (other instanceof com.google.bigtable.admin.v2.Type.Int64) { + return mergeFrom((com.google.bigtable.admin.v2.Type.Int64) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Bool other) { - if (other == com.google.bigtable.admin.v2.Type.Bool.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Int64 other) { + if (other == com.google.bigtable.admin.v2.Type.Int64.getDefaultInstance()) return this; + if (other.hasEncoding()) { + mergeEncoding(other.getEncoding()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -7734,6 +7992,12 @@ public Builder mergeFrom( case 0: done = true; break; + case 10: + { + input.readMessage(getEncodingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7751,36 +8015,225 @@ public Builder mergeFrom( 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); - } + private int bitField0_; - // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Bool) - } + private com.google.bigtable.admin.v2.Type.Int64.Encoding encoding_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Int64.Encoding, + com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder, + com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder> + encodingBuilder_; + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + * + * @return Whether the encoding field is set. + */ + public boolean hasEncoding() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + * + * @return The encoding. + */ + public com.google.bigtable.admin.v2.Type.Int64.Encoding getEncoding() { + if (encodingBuilder_ == null) { + return encoding_ == null + ? com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance() + : encoding_; + } else { + return encodingBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + */ + public Builder setEncoding(com.google.bigtable.admin.v2.Type.Int64.Encoding value) { + if (encodingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encoding_ = value; + } else { + encodingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + */ + public Builder setEncoding( + com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder builderForValue) { + if (encodingBuilder_ == null) { + encoding_ = builderForValue.build(); + } else { + encodingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + */ + public Builder mergeEncoding(com.google.bigtable.admin.v2.Type.Int64.Encoding value) { + if (encodingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && encoding_ != null + && encoding_ + != com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance()) { + getEncodingBuilder().mergeFrom(value); + } else { + encoding_ = value; + } + } else { + encodingBuilder_.mergeFrom(value); + } + if (encoding_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + */ + public Builder clearEncoding() { + bitField0_ = (bitField0_ & ~0x00000001); + encoding_ = null; + if (encodingBuilder_ != null) { + encodingBuilder_.dispose(); + encodingBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + */ + public com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder getEncodingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEncodingFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + */ + public com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder getEncodingOrBuilder() { + if (encodingBuilder_ != null) { + return encodingBuilder_.getMessageOrBuilder(); + } else { + return encoding_ == null + ? com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance() + : encoding_; + } + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Int64.Encoding, + com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder, + com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder> + getEncodingFieldBuilder() { + if (encodingBuilder_ == null) { + encodingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Int64.Encoding, + com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder, + com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder>( + getEncoding(), getParentForChildren(), isClean()); + encoding_ = null; + } + return encodingBuilder_; + } - // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Bool) - private static final com.google.bigtable.admin.v2.Type.Bool DEFAULT_INSTANCE; + @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.bigtable.admin.v2.Type.Int64) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Int64) + private static final com.google.bigtable.admin.v2.Type.Int64 DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Bool(); + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Int64(); } - public static com.google.bigtable.admin.v2.Type.Bool getDefaultInstance() { + public static com.google.bigtable.admin.v2.Type.Int64 getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public Bool parsePartialFrom( + public Int64 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7800,66 +8253,66 @@ public Bool parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.bigtable.admin.v2.Type.Bool getDefaultInstanceForType() { + public com.google.bigtable.admin.v2.Type.Int64 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface Float32OrBuilder + public interface BoolOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Float32) + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Bool) com.google.protobuf.MessageOrBuilder {} /** * * *
    -   * Float32
    -   * Values of type `Float32` are stored in `Value.float_value`.
    +   * bool
    +   * Values of type `Bool` are stored in `Value.bool_value`.
        * 
    * - * Protobuf type {@code google.bigtable.admin.v2.Type.Float32} + * Protobuf type {@code google.bigtable.admin.v2.Type.Bool} */ - public static final class Float32 extends com.google.protobuf.GeneratedMessageV3 + public static final class Bool extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Float32) - Float32OrBuilder { + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Bool) + BoolOrBuilder { private static final long serialVersionUID = 0L; - // Use Float32.newBuilder() to construct. - private Float32(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Bool.newBuilder() to construct. + private Bool(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Float32() {} + private Bool() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Float32(); + return new Bool(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Float32_descriptor; + .internal_static_google_bigtable_admin_v2_Type_Bool_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Float32_fieldAccessorTable + .internal_static_google_bigtable_admin_v2_Type_Bool_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Float32.class, - com.google.bigtable.admin.v2.Type.Float32.Builder.class); + com.google.bigtable.admin.v2.Type.Bool.class, + com.google.bigtable.admin.v2.Type.Bool.Builder.class); } private byte memoizedIsInitialized = -1; @@ -7895,11 +8348,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.bigtable.admin.v2.Type.Float32)) { + if (!(obj instanceof com.google.bigtable.admin.v2.Type.Bool)) { return super.equals(obj); } - com.google.bigtable.admin.v2.Type.Float32 other = - (com.google.bigtable.admin.v2.Type.Float32) obj; + com.google.bigtable.admin.v2.Type.Bool other = (com.google.bigtable.admin.v2.Type.Bool) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -7917,71 +8369,71 @@ public int hashCode() { return hash; } - public static com.google.bigtable.admin.v2.Type.Float32 parseFrom(java.nio.ByteBuffer data) + public static com.google.bigtable.admin.v2.Type.Bool parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.bigtable.admin.v2.Type.Float32 parseFrom( + public static com.google.bigtable.admin.v2.Type.Bool parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.bigtable.admin.v2.Type.Float32 parseFrom( + public static com.google.bigtable.admin.v2.Type.Bool parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.bigtable.admin.v2.Type.Float32 parseFrom( + public static com.google.bigtable.admin.v2.Type.Bool 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.bigtable.admin.v2.Type.Float32 parseFrom(byte[] data) + public static com.google.bigtable.admin.v2.Type.Bool parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.bigtable.admin.v2.Type.Float32 parseFrom( + public static com.google.bigtable.admin.v2.Type.Bool parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.bigtable.admin.v2.Type.Float32 parseFrom(java.io.InputStream input) + public static com.google.bigtable.admin.v2.Type.Bool parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.bigtable.admin.v2.Type.Float32 parseFrom( + public static com.google.bigtable.admin.v2.Type.Bool 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.bigtable.admin.v2.Type.Float32 parseDelimitedFrom( + public static com.google.bigtable.admin.v2.Type.Bool parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.bigtable.admin.v2.Type.Float32 parseDelimitedFrom( + public static com.google.bigtable.admin.v2.Type.Bool 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.bigtable.admin.v2.Type.Float32 parseFrom( + public static com.google.bigtable.admin.v2.Type.Bool parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.bigtable.admin.v2.Type.Float32 parseFrom( + public static com.google.bigtable.admin.v2.Type.Bool parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7998,7 +8450,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Float32 prototype) { + public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Bool prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -8017,33 +8469,33 @@ protected Builder newBuilderForType( * * *
    -     * Float32
    -     * Values of type `Float32` are stored in `Value.float_value`.
    +     * bool
    +     * Values of type `Bool` are stored in `Value.bool_value`.
          * 
    * - * Protobuf type {@code google.bigtable.admin.v2.Type.Float32} + * Protobuf type {@code google.bigtable.admin.v2.Type.Bool} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Float32) - com.google.bigtable.admin.v2.Type.Float32OrBuilder { + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Bool) + com.google.bigtable.admin.v2.Type.BoolOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Float32_descriptor; + .internal_static_google_bigtable_admin_v2_Type_Bool_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Float32_fieldAccessorTable + .internal_static_google_bigtable_admin_v2_Type_Bool_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Float32.class, - com.google.bigtable.admin.v2.Type.Float32.Builder.class); + com.google.bigtable.admin.v2.Type.Bool.class, + com.google.bigtable.admin.v2.Type.Bool.Builder.class); } - // Construct using com.google.bigtable.admin.v2.Type.Float32.newBuilder() + // Construct using com.google.bigtable.admin.v2.Type.Bool.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -8059,17 +8511,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Float32_descriptor; + .internal_static_google_bigtable_admin_v2_Type_Bool_descriptor; } @java.lang.Override - public com.google.bigtable.admin.v2.Type.Float32 getDefaultInstanceForType() { - return com.google.bigtable.admin.v2.Type.Float32.getDefaultInstance(); + public com.google.bigtable.admin.v2.Type.Bool getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Bool.getDefaultInstance(); } @java.lang.Override - public com.google.bigtable.admin.v2.Type.Float32 build() { - com.google.bigtable.admin.v2.Type.Float32 result = buildPartial(); + public com.google.bigtable.admin.v2.Type.Bool build() { + com.google.bigtable.admin.v2.Type.Bool result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8077,9 +8529,9 @@ public com.google.bigtable.admin.v2.Type.Float32 build() { } @java.lang.Override - public com.google.bigtable.admin.v2.Type.Float32 buildPartial() { - com.google.bigtable.admin.v2.Type.Float32 result = - new com.google.bigtable.admin.v2.Type.Float32(this); + public com.google.bigtable.admin.v2.Type.Bool buildPartial() { + com.google.bigtable.admin.v2.Type.Bool result = + new com.google.bigtable.admin.v2.Type.Bool(this); onBuilt(); return result; } @@ -8119,1706 +8571,6102 @@ public Builder addRepeatedField( return super.addRepeatedField(field, value); } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.bigtable.admin.v2.Type.Float32) { - return mergeFrom((com.google.bigtable.admin.v2.Type.Float32) other); - } else { - super.mergeFrom(other); - return this; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.admin.v2.Type.Bool) { + return mergeFrom((com.google.bigtable.admin.v2.Type.Bool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Bool other) { + if (other == com.google.bigtable.admin.v2.Type.Bool.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.bigtable.admin.v2.Type.Bool) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Bool) + private static final com.google.bigtable.admin.v2.Type.Bool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Bool(); + } + + public static com.google.bigtable.admin.v2.Type.Bool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Bool 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.bigtable.admin.v2.Type.Bool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface Float32OrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Float32) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Float32
    +   * Values of type `Float32` are stored in `Value.float_value`.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Float32} + */ + public static final class Float32 extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Float32) + Float32OrBuilder { + private static final long serialVersionUID = 0L; + // Use Float32.newBuilder() to construct. + private Float32(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Float32() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Float32(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Float32_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Float32_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Float32.class, + com.google.bigtable.admin.v2.Type.Float32.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.bigtable.admin.v2.Type.Float32)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.Type.Float32 other = + (com.google.bigtable.admin.v2.Type.Float32) 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.bigtable.admin.v2.Type.Float32 parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Float32 parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.Type.Float32 parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Float32 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.bigtable.admin.v2.Type.Float32 parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Float32 parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.Type.Float32 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Float32 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.bigtable.admin.v2.Type.Float32 parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Float32 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.bigtable.admin.v2.Type.Float32 parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Float32 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.bigtable.admin.v2.Type.Float32 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; + } + /** + * + * + *
    +     * Float32
    +     * Values of type `Float32` are stored in `Value.float_value`.
    +     * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Float32} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Float32) + com.google.bigtable.admin.v2.Type.Float32OrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Float32_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Float32_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Float32.class, + com.google.bigtable.admin.v2.Type.Float32.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.Type.Float32.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.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Float32_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Float32 getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Float32.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Float32 build() { + com.google.bigtable.admin.v2.Type.Float32 result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Float32 buildPartial() { + com.google.bigtable.admin.v2.Type.Float32 result = + new com.google.bigtable.admin.v2.Type.Float32(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.bigtable.admin.v2.Type.Float32) { + return mergeFrom((com.google.bigtable.admin.v2.Type.Float32) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Float32 other) { + if (other == com.google.bigtable.admin.v2.Type.Float32.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.bigtable.admin.v2.Type.Float32) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Float32) + private static final com.google.bigtable.admin.v2.Type.Float32 DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Float32(); + } + + public static com.google.bigtable.admin.v2.Type.Float32 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Float32 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.bigtable.admin.v2.Type.Float32 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface Float64OrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Float64) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Float64
    +   * Values of type `Float64` are stored in `Value.float_value`.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Float64} + */ + public static final class Float64 extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Float64) + Float64OrBuilder { + private static final long serialVersionUID = 0L; + // Use Float64.newBuilder() to construct. + private Float64(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Float64() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Float64(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Float64_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Float64_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Float64.class, + com.google.bigtable.admin.v2.Type.Float64.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.bigtable.admin.v2.Type.Float64)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.Type.Float64 other = + (com.google.bigtable.admin.v2.Type.Float64) 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.bigtable.admin.v2.Type.Float64 parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Float64 parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.Type.Float64 parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Float64 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.bigtable.admin.v2.Type.Float64 parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Float64 parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.Type.Float64 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Float64 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.bigtable.admin.v2.Type.Float64 parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Float64 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.bigtable.admin.v2.Type.Float64 parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Float64 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.bigtable.admin.v2.Type.Float64 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; + } + /** + * + * + *
    +     * Float64
    +     * Values of type `Float64` are stored in `Value.float_value`.
    +     * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Float64} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Float64) + com.google.bigtable.admin.v2.Type.Float64OrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Float64_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Float64_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Float64.class, + com.google.bigtable.admin.v2.Type.Float64.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.Type.Float64.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.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Float64_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Float64 getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Float64.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Float64 build() { + com.google.bigtable.admin.v2.Type.Float64 result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Float64 buildPartial() { + com.google.bigtable.admin.v2.Type.Float64 result = + new com.google.bigtable.admin.v2.Type.Float64(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.bigtable.admin.v2.Type.Float64) { + return mergeFrom((com.google.bigtable.admin.v2.Type.Float64) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Float64 other) { + if (other == com.google.bigtable.admin.v2.Type.Float64.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.bigtable.admin.v2.Type.Float64) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Float64) + private static final com.google.bigtable.admin.v2.Type.Float64 DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Float64(); + } + + public static com.google.bigtable.admin.v2.Type.Float64 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Float64 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.bigtable.admin.v2.Type.Float64 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TimestampOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Timestamp) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + * + * @return Whether the encoding field is set. + */ + boolean hasEncoding(); + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + * + * @return The encoding. + */ + com.google.bigtable.admin.v2.Type.Timestamp.Encoding getEncoding(); + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + */ + com.google.bigtable.admin.v2.Type.Timestamp.EncodingOrBuilder getEncodingOrBuilder(); + } + /** + * + * + *
    +   * Timestamp
    +   * Values of type `Timestamp` are stored in `Value.timestamp_value`.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Timestamp} + */ + public static final class Timestamp extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Timestamp) + TimestampOrBuilder { + private static final long serialVersionUID = 0L; + // Use Timestamp.newBuilder() to construct. + private Timestamp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Timestamp() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Timestamp(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Timestamp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Timestamp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Timestamp.class, + com.google.bigtable.admin.v2.Type.Timestamp.Builder.class); + } + + public interface EncodingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Timestamp.Encoding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Encodes the number of microseconds since the Unix epoch using the
    +       * given `Int64` encoding. Values must be microsecond-aligned.
    +       *
    +       * Compatible with:
    +       *
    +       *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + * + * @return Whether the unixMicrosInt64 field is set. + */ + boolean hasUnixMicrosInt64(); + /** + * + * + *
    +       * Encodes the number of microseconds since the Unix epoch using the
    +       * given `Int64` encoding. Values must be microsecond-aligned.
    +       *
    +       * Compatible with:
    +       *
    +       *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + * + * @return The unixMicrosInt64. + */ + com.google.bigtable.admin.v2.Type.Int64.Encoding getUnixMicrosInt64(); + /** + * + * + *
    +       * Encodes the number of microseconds since the Unix epoch using the
    +       * given `Int64` encoding. Values must be microsecond-aligned.
    +       *
    +       * Compatible with:
    +       *
    +       *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + */ + com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder getUnixMicrosInt64OrBuilder(); + + com.google.bigtable.admin.v2.Type.Timestamp.Encoding.EncodingCase getEncodingCase(); + } + /** + * + * + *
    +     * Rules used to convert to or from lower level types.
    +     * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Timestamp.Encoding} + */ + public static final class Encoding extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Timestamp.Encoding) + EncodingOrBuilder { + private static final long serialVersionUID = 0L; + // Use Encoding.newBuilder() to construct. + private Encoding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Encoding() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Encoding(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Timestamp_Encoding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Timestamp_Encoding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Timestamp.Encoding.class, + com.google.bigtable.admin.v2.Type.Timestamp.Encoding.Builder.class); + } + + private int encodingCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object encoding_; + + public enum EncodingCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + UNIX_MICROS_INT64(1), + ENCODING_NOT_SET(0); + private final int value; + + private EncodingCase(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 EncodingCase valueOf(int value) { + return forNumber(value); + } + + public static EncodingCase forNumber(int value) { + switch (value) { + case 1: + return UNIX_MICROS_INT64; + case 0: + return ENCODING_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EncodingCase getEncodingCase() { + return EncodingCase.forNumber(encodingCase_); + } + + public static final int UNIX_MICROS_INT64_FIELD_NUMBER = 1; + /** + * + * + *
    +       * Encodes the number of microseconds since the Unix epoch using the
    +       * given `Int64` encoding. Values must be microsecond-aligned.
    +       *
    +       * Compatible with:
    +       *
    +       *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + * + * @return Whether the unixMicrosInt64 field is set. + */ + @java.lang.Override + public boolean hasUnixMicrosInt64() { + return encodingCase_ == 1; + } + /** + * + * + *
    +       * Encodes the number of microseconds since the Unix epoch using the
    +       * given `Int64` encoding. Values must be microsecond-aligned.
    +       *
    +       * Compatible with:
    +       *
    +       *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + * + * @return The unixMicrosInt64. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding getUnixMicrosInt64() { + if (encodingCase_ == 1) { + return (com.google.bigtable.admin.v2.Type.Int64.Encoding) encoding_; + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance(); + } + /** + * + * + *
    +       * Encodes the number of microseconds since the Unix epoch using the
    +       * given `Int64` encoding. Values must be microsecond-aligned.
    +       *
    +       * Compatible with:
    +       *
    +       *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder + getUnixMicrosInt64OrBuilder() { + if (encodingCase_ == 1) { + return (com.google.bigtable.admin.v2.Type.Int64.Encoding) encoding_; + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance(); + } + + 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 (encodingCase_ == 1) { + output.writeMessage(1, (com.google.bigtable.admin.v2.Type.Int64.Encoding) encoding_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (encodingCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.bigtable.admin.v2.Type.Int64.Encoding) encoding_); + } + 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.bigtable.admin.v2.Type.Timestamp.Encoding)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.Type.Timestamp.Encoding other = + (com.google.bigtable.admin.v2.Type.Timestamp.Encoding) obj; + + if (!getEncodingCase().equals(other.getEncodingCase())) return false; + switch (encodingCase_) { + case 1: + if (!getUnixMicrosInt64().equals(other.getUnixMicrosInt64())) 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(); + switch (encodingCase_) { + case 1: + hash = (37 * hash) + UNIX_MICROS_INT64_FIELD_NUMBER; + hash = (53 * hash) + getUnixMicrosInt64().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.Type.Timestamp.Encoding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp.Encoding parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp.Encoding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp.Encoding 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.bigtable.admin.v2.Type.Timestamp.Encoding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp.Encoding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp.Encoding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp.Encoding 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.bigtable.admin.v2.Type.Timestamp.Encoding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp.Encoding 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.bigtable.admin.v2.Type.Timestamp.Encoding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp.Encoding 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.bigtable.admin.v2.Type.Timestamp.Encoding 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; + } + /** + * + * + *
    +       * Rules used to convert to or from lower level types.
    +       * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Timestamp.Encoding} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Timestamp.Encoding) + com.google.bigtable.admin.v2.Type.Timestamp.EncodingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Timestamp_Encoding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Timestamp_Encoding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Timestamp.Encoding.class, + com.google.bigtable.admin.v2.Type.Timestamp.Encoding.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.Type.Timestamp.Encoding.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (unixMicrosInt64Builder_ != null) { + unixMicrosInt64Builder_.clear(); + } + encodingCase_ = 0; + encoding_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Timestamp_Encoding_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Timestamp.Encoding getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Timestamp.Encoding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Timestamp.Encoding build() { + com.google.bigtable.admin.v2.Type.Timestamp.Encoding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Timestamp.Encoding buildPartial() { + com.google.bigtable.admin.v2.Type.Timestamp.Encoding result = + new com.google.bigtable.admin.v2.Type.Timestamp.Encoding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.Type.Timestamp.Encoding result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.bigtable.admin.v2.Type.Timestamp.Encoding result) { + result.encodingCase_ = encodingCase_; + result.encoding_ = this.encoding_; + if (encodingCase_ == 1 && unixMicrosInt64Builder_ != null) { + result.encoding_ = unixMicrosInt64Builder_.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.bigtable.admin.v2.Type.Timestamp.Encoding) { + return mergeFrom((com.google.bigtable.admin.v2.Type.Timestamp.Encoding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Timestamp.Encoding other) { + if (other == com.google.bigtable.admin.v2.Type.Timestamp.Encoding.getDefaultInstance()) + return this; + switch (other.getEncodingCase()) { + case UNIX_MICROS_INT64: + { + mergeUnixMicrosInt64(other.getUnixMicrosInt64()); + break; + } + case ENCODING_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( + getUnixMicrosInt64FieldBuilder().getBuilder(), extensionRegistry); + encodingCase_ = 1; + 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 encodingCase_ = 0; + private java.lang.Object encoding_; + + public EncodingCase getEncodingCase() { + return EncodingCase.forNumber(encodingCase_); + } + + public Builder clearEncoding() { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Int64.Encoding, + com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder, + com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder> + unixMicrosInt64Builder_; + /** + * + * + *
    +         * Encodes the number of microseconds since the Unix epoch using the
    +         * given `Int64` encoding. Values must be microsecond-aligned.
    +         *
    +         * Compatible with:
    +         *
    +         *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + * + * @return Whether the unixMicrosInt64 field is set. + */ + @java.lang.Override + public boolean hasUnixMicrosInt64() { + return encodingCase_ == 1; + } + /** + * + * + *
    +         * Encodes the number of microseconds since the Unix epoch using the
    +         * given `Int64` encoding. Values must be microsecond-aligned.
    +         *
    +         * Compatible with:
    +         *
    +         *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + * + * @return The unixMicrosInt64. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.Encoding getUnixMicrosInt64() { + if (unixMicrosInt64Builder_ == null) { + if (encodingCase_ == 1) { + return (com.google.bigtable.admin.v2.Type.Int64.Encoding) encoding_; + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance(); + } else { + if (encodingCase_ == 1) { + return unixMicrosInt64Builder_.getMessage(); + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance(); + } + } + /** + * + * + *
    +         * Encodes the number of microseconds since the Unix epoch using the
    +         * given `Int64` encoding. Values must be microsecond-aligned.
    +         *
    +         * Compatible with:
    +         *
    +         *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + */ + public Builder setUnixMicrosInt64(com.google.bigtable.admin.v2.Type.Int64.Encoding value) { + if (unixMicrosInt64Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encoding_ = value; + onChanged(); + } else { + unixMicrosInt64Builder_.setMessage(value); + } + encodingCase_ = 1; + return this; + } + /** + * + * + *
    +         * Encodes the number of microseconds since the Unix epoch using the
    +         * given `Int64` encoding. Values must be microsecond-aligned.
    +         *
    +         * Compatible with:
    +         *
    +         *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + */ + public Builder setUnixMicrosInt64( + com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder builderForValue) { + if (unixMicrosInt64Builder_ == null) { + encoding_ = builderForValue.build(); + onChanged(); + } else { + unixMicrosInt64Builder_.setMessage(builderForValue.build()); + } + encodingCase_ = 1; + return this; + } + /** + * + * + *
    +         * Encodes the number of microseconds since the Unix epoch using the
    +         * given `Int64` encoding. Values must be microsecond-aligned.
    +         *
    +         * Compatible with:
    +         *
    +         *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + */ + public Builder mergeUnixMicrosInt64( + com.google.bigtable.admin.v2.Type.Int64.Encoding value) { + if (unixMicrosInt64Builder_ == null) { + if (encodingCase_ == 1 + && encoding_ + != com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance()) { + encoding_ = + com.google.bigtable.admin.v2.Type.Int64.Encoding.newBuilder( + (com.google.bigtable.admin.v2.Type.Int64.Encoding) encoding_) + .mergeFrom(value) + .buildPartial(); + } else { + encoding_ = value; + } + onChanged(); + } else { + if (encodingCase_ == 1) { + unixMicrosInt64Builder_.mergeFrom(value); + } else { + unixMicrosInt64Builder_.setMessage(value); + } + } + encodingCase_ = 1; + return this; + } + /** + * + * + *
    +         * Encodes the number of microseconds since the Unix epoch using the
    +         * given `Int64` encoding. Values must be microsecond-aligned.
    +         *
    +         * Compatible with:
    +         *
    +         *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + */ + public Builder clearUnixMicrosInt64() { + if (unixMicrosInt64Builder_ == null) { + if (encodingCase_ == 1) { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + } + } else { + if (encodingCase_ == 1) { + encodingCase_ = 0; + encoding_ = null; + } + unixMicrosInt64Builder_.clear(); + } + return this; + } + /** + * + * + *
    +         * Encodes the number of microseconds since the Unix epoch using the
    +         * given `Int64` encoding. Values must be microsecond-aligned.
    +         *
    +         * Compatible with:
    +         *
    +         *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + */ + public com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder + getUnixMicrosInt64Builder() { + return getUnixMicrosInt64FieldBuilder().getBuilder(); + } + /** + * + * + *
    +         * Encodes the number of microseconds since the Unix epoch using the
    +         * given `Int64` encoding. Values must be microsecond-aligned.
    +         *
    +         * Compatible with:
    +         *
    +         *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder + getUnixMicrosInt64OrBuilder() { + if ((encodingCase_ == 1) && (unixMicrosInt64Builder_ != null)) { + return unixMicrosInt64Builder_.getMessageOrBuilder(); + } else { + if (encodingCase_ == 1) { + return (com.google.bigtable.admin.v2.Type.Int64.Encoding) encoding_; + } + return com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance(); + } + } + /** + * + * + *
    +         * Encodes the number of microseconds since the Unix epoch using the
    +         * given `Int64` encoding. Values must be microsecond-aligned.
    +         *
    +         * Compatible with:
    +         *
    +         *  - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS`
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Int64.Encoding, + com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder, + com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder> + getUnixMicrosInt64FieldBuilder() { + if (unixMicrosInt64Builder_ == null) { + if (!(encodingCase_ == 1)) { + encoding_ = com.google.bigtable.admin.v2.Type.Int64.Encoding.getDefaultInstance(); + } + unixMicrosInt64Builder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Int64.Encoding, + com.google.bigtable.admin.v2.Type.Int64.Encoding.Builder, + com.google.bigtable.admin.v2.Type.Int64.EncodingOrBuilder>( + (com.google.bigtable.admin.v2.Type.Int64.Encoding) encoding_, + getParentForChildren(), + isClean()); + encoding_ = null; + } + encodingCase_ = 1; + onChanged(); + return unixMicrosInt64Builder_; + } + + @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.bigtable.admin.v2.Type.Timestamp.Encoding) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Timestamp.Encoding) + private static final com.google.bigtable.admin.v2.Type.Timestamp.Encoding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Timestamp.Encoding(); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp.Encoding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Encoding 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.bigtable.admin.v2.Type.Timestamp.Encoding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ENCODING_FIELD_NUMBER = 1; + private com.google.bigtable.admin.v2.Type.Timestamp.Encoding encoding_; + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + * + * @return Whether the encoding field is set. + */ + @java.lang.Override + public boolean hasEncoding() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + * + * @return The encoding. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Timestamp.Encoding getEncoding() { + return encoding_ == null + ? com.google.bigtable.admin.v2.Type.Timestamp.Encoding.getDefaultInstance() + : encoding_; + } + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Timestamp.EncodingOrBuilder getEncodingOrBuilder() { + return encoding_ == null + ? com.google.bigtable.admin.v2.Type.Timestamp.Encoding.getDefaultInstance() + : encoding_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEncoding()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEncoding()); + } + 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.bigtable.admin.v2.Type.Timestamp)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.Type.Timestamp other = + (com.google.bigtable.admin.v2.Type.Timestamp) obj; + + if (hasEncoding() != other.hasEncoding()) return false; + if (hasEncoding()) { + if (!getEncoding().equals(other.getEncoding())) 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 (hasEncoding()) { + hash = (37 * hash) + ENCODING_FIELD_NUMBER; + hash = (53 * hash) + getEncoding().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp 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.bigtable.admin.v2.Type.Timestamp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp 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.bigtable.admin.v2.Type.Timestamp parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp 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.bigtable.admin.v2.Type.Timestamp parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp 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.bigtable.admin.v2.Type.Timestamp 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; + } + /** + * + * + *
    +     * Timestamp
    +     * Values of type `Timestamp` are stored in `Value.timestamp_value`.
    +     * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Timestamp} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Timestamp) + com.google.bigtable.admin.v2.Type.TimestampOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Timestamp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Timestamp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Timestamp.class, + com.google.bigtable.admin.v2.Type.Timestamp.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.Type.Timestamp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEncodingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + encoding_ = null; + if (encodingBuilder_ != null) { + encodingBuilder_.dispose(); + encodingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Timestamp_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Timestamp getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Timestamp.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Timestamp build() { + com.google.bigtable.admin.v2.Type.Timestamp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Timestamp buildPartial() { + com.google.bigtable.admin.v2.Type.Timestamp result = + new com.google.bigtable.admin.v2.Type.Timestamp(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.Type.Timestamp result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.encoding_ = encodingBuilder_ == null ? encoding_ : encodingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.bigtable.admin.v2.Type.Timestamp) { + return mergeFrom((com.google.bigtable.admin.v2.Type.Timestamp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Timestamp other) { + if (other == com.google.bigtable.admin.v2.Type.Timestamp.getDefaultInstance()) return this; + if (other.hasEncoding()) { + mergeEncoding(other.getEncoding()); + } + 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(getEncodingFieldBuilder().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.bigtable.admin.v2.Type.Timestamp.Encoding encoding_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Timestamp.Encoding, + com.google.bigtable.admin.v2.Type.Timestamp.Encoding.Builder, + com.google.bigtable.admin.v2.Type.Timestamp.EncodingOrBuilder> + encodingBuilder_; + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + * + * @return Whether the encoding field is set. + */ + public boolean hasEncoding() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + * + * @return The encoding. + */ + public com.google.bigtable.admin.v2.Type.Timestamp.Encoding getEncoding() { + if (encodingBuilder_ == null) { + return encoding_ == null + ? com.google.bigtable.admin.v2.Type.Timestamp.Encoding.getDefaultInstance() + : encoding_; + } else { + return encodingBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + */ + public Builder setEncoding(com.google.bigtable.admin.v2.Type.Timestamp.Encoding value) { + if (encodingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encoding_ = value; + } else { + encodingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + */ + public Builder setEncoding( + com.google.bigtable.admin.v2.Type.Timestamp.Encoding.Builder builderForValue) { + if (encodingBuilder_ == null) { + encoding_ = builderForValue.build(); + } else { + encodingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + */ + public Builder mergeEncoding(com.google.bigtable.admin.v2.Type.Timestamp.Encoding value) { + if (encodingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && encoding_ != null + && encoding_ + != com.google.bigtable.admin.v2.Type.Timestamp.Encoding.getDefaultInstance()) { + getEncodingBuilder().mergeFrom(value); + } else { + encoding_ = value; + } + } else { + encodingBuilder_.mergeFrom(value); + } + if (encoding_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + */ + public Builder clearEncoding() { + bitField0_ = (bitField0_ & ~0x00000001); + encoding_ = null; + if (encodingBuilder_ != null) { + encodingBuilder_.dispose(); + encodingBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + */ + public com.google.bigtable.admin.v2.Type.Timestamp.Encoding.Builder getEncodingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEncodingFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + */ + public com.google.bigtable.admin.v2.Type.Timestamp.EncodingOrBuilder getEncodingOrBuilder() { + if (encodingBuilder_ != null) { + return encodingBuilder_.getMessageOrBuilder(); + } else { + return encoding_ == null + ? com.google.bigtable.admin.v2.Type.Timestamp.Encoding.getDefaultInstance() + : encoding_; + } + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Timestamp.Encoding, + com.google.bigtable.admin.v2.Type.Timestamp.Encoding.Builder, + com.google.bigtable.admin.v2.Type.Timestamp.EncodingOrBuilder> + getEncodingFieldBuilder() { + if (encodingBuilder_ == null) { + encodingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Timestamp.Encoding, + com.google.bigtable.admin.v2.Type.Timestamp.Encoding.Builder, + com.google.bigtable.admin.v2.Type.Timestamp.EncodingOrBuilder>( + getEncoding(), getParentForChildren(), isClean()); + encoding_ = null; + } + return encodingBuilder_; + } + + @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.bigtable.admin.v2.Type.Timestamp) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Timestamp) + private static final com.google.bigtable.admin.v2.Type.Timestamp DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Timestamp(); + } + + public static com.google.bigtable.admin.v2.Type.Timestamp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Timestamp 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.bigtable.admin.v2.Type.Timestamp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Date) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Date
    +   * Values of type `Date` are stored in `Value.date_value`.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Date} + */ + public static final class Date extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Date) + DateOrBuilder { + private static final long serialVersionUID = 0L; + // Use Date.newBuilder() to construct. + private Date(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Date() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Date(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Date_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Date_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Date.class, + com.google.bigtable.admin.v2.Type.Date.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.bigtable.admin.v2.Type.Date)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.Type.Date other = (com.google.bigtable.admin.v2.Type.Date) 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.bigtable.admin.v2.Type.Date parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Date parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.Type.Date parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Date 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.bigtable.admin.v2.Type.Date parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Date parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.Type.Date parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Date 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.bigtable.admin.v2.Type.Date parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Date 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.bigtable.admin.v2.Type.Date parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Date 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.bigtable.admin.v2.Type.Date 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; + } + /** + * + * + *
    +     * Date
    +     * Values of type `Date` are stored in `Value.date_value`.
    +     * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Date} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Date) + com.google.bigtable.admin.v2.Type.DateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Date_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Date_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Date.class, + com.google.bigtable.admin.v2.Type.Date.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.Type.Date.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.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Date_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Date getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Date.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Date build() { + com.google.bigtable.admin.v2.Type.Date result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Date buildPartial() { + com.google.bigtable.admin.v2.Type.Date result = + new com.google.bigtable.admin.v2.Type.Date(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.bigtable.admin.v2.Type.Date) { + return mergeFrom((com.google.bigtable.admin.v2.Type.Date) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Date other) { + if (other == com.google.bigtable.admin.v2.Type.Date.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.bigtable.admin.v2.Type.Date) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Date) + private static final com.google.bigtable.admin.v2.Type.Date DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Date(); + } + + public static com.google.bigtable.admin.v2.Type.Date getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Date 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.bigtable.admin.v2.Type.Date getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface StructOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Struct) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The names and types of the fields in this struct.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; + */ + java.util.List getFieldsList(); + /** + * + * + *
    +     * The names and types of the fields in this struct.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; + */ + com.google.bigtable.admin.v2.Type.Struct.Field getFields(int index); + /** + * + * + *
    +     * The names and types of the fields in this struct.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; + */ + int getFieldsCount(); + /** + * + * + *
    +     * The names and types of the fields in this struct.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; + */ + java.util.List + getFieldsOrBuilderList(); + /** + * + * + *
    +     * The names and types of the fields in this struct.
    +     * 
    + * + * repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; + */ + com.google.bigtable.admin.v2.Type.Struct.FieldOrBuilder getFieldsOrBuilder(int index); + + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + * + * @return Whether the encoding field is set. + */ + boolean hasEncoding(); + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + * + * @return The encoding. + */ + com.google.bigtable.admin.v2.Type.Struct.Encoding getEncoding(); + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + */ + com.google.bigtable.admin.v2.Type.Struct.EncodingOrBuilder getEncodingOrBuilder(); + } + /** + * + * + *
    +   * A structured data value, consisting of fields which map to dynamically
    +   * typed values.
    +   * Values of type `Struct` are stored in `Value.array_value` where entries are
    +   * in the same order and number as `field_types`.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Struct} + */ + public static final class Struct extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Struct) + StructOrBuilder { + private static final long serialVersionUID = 0L; + // Use Struct.newBuilder() to construct. + private Struct(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Struct() { + fields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Struct(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Struct.class, + com.google.bigtable.admin.v2.Type.Struct.Builder.class); + } + + public interface FieldOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Struct.Field) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * The field name (optional). Fields without a `field_name` are considered
    +       * anonymous and cannot be referenced by name.
    +       * 
    + * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
    +       * The field name (optional). Fields without a `field_name` are considered
    +       * anonymous and cannot be referenced by name.
    +       * 
    + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
    +       * The type of values in this field.
    +       * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + * + * @return Whether the type field is set. + */ + boolean hasType(); + /** + * + * + *
    +       * The type of values in this field.
    +       * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + * + * @return The type. + */ + com.google.bigtable.admin.v2.Type getType(); + /** + * + * + *
    +       * The type of values in this field.
    +       * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + */ + com.google.bigtable.admin.v2.TypeOrBuilder getTypeOrBuilder(); + } + /** + * + * + *
    +     * A struct field and its type.
    +     * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Struct.Field} + */ + public static final class Field extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Struct.Field) + FieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use Field.newBuilder() to construct. + private Field(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Field() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Field(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Field_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Struct.Field.class, + com.google.bigtable.admin.v2.Type.Struct.Field.Builder.class); + } + + private int bitField0_; + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * + * + *
    +       * The field name (optional). Fields without a `field_name` are considered
    +       * anonymous and cannot be referenced by name.
    +       * 
    + * + * string field_name = 1; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + 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(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
    +       * The field name (optional). Fields without a `field_name` are considered
    +       * anonymous and cannot be referenced by name.
    +       * 
    + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private com.google.bigtable.admin.v2.Type type_; + /** + * + * + *
    +       * The type of values in this field.
    +       * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * The type of values in this field.
    +       * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type getType() { + return type_ == null ? com.google.bigtable.admin.v2.Type.getDefaultInstance() : type_; + } + /** + * + * + *
    +       * The type of values in this field.
    +       * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.TypeOrBuilder getTypeOrBuilder() { + return type_ == null ? com.google.bigtable.admin.v2.Type.getDefaultInstance() : type_; + } + + 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(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getType()); + } + 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(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); + } + 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.bigtable.admin.v2.Type.Struct.Field)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.Type.Struct.Field other = + (com.google.bigtable.admin.v2.Type.Struct.Field) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType().equals(other.getType())) 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) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Struct.Field 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.bigtable.admin.v2.Type.Struct.Field parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Struct.Field 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.bigtable.admin.v2.Type.Struct.Field parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Struct.Field 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.bigtable.admin.v2.Type.Struct.Field parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.Type.Struct.Field 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.bigtable.admin.v2.Type.Struct.Field 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; + } + /** + * + * + *
    +       * A struct field and its type.
    +       * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Struct.Field} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Struct.Field) + com.google.bigtable.admin.v2.Type.Struct.FieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Field_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Struct.Field.class, + com.google.bigtable.admin.v2.Type.Struct.Field.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.Type.Struct.Field.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTypeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldName_ = ""; + type_ = null; + if (typeBuilder_ != null) { + typeBuilder_.dispose(); + typeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Field_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Field getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Struct.Field.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Field build() { + com.google.bigtable.admin.v2.Type.Struct.Field result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Field buildPartial() { + com.google.bigtable.admin.v2.Type.Struct.Field result = + new com.google.bigtable.admin.v2.Type.Struct.Field(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.Type.Struct.Field result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldName_ = fieldName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.bigtable.admin.v2.Type.Struct.Field) { + return mergeFrom((com.google.bigtable.admin.v2.Type.Struct.Field) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Struct.Field other) { + if (other == com.google.bigtable.admin.v2.Type.Struct.Field.getDefaultInstance()) + return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasType()) { + mergeType(other.getType()); + } + 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: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getTypeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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 fieldName_ = ""; + /** + * + * + *
    +         * The field name (optional). Fields without a `field_name` are considered
    +         * anonymous and cannot be referenced by name.
    +         * 
    + * + * string field_name = 1; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +         * The field name (optional). Fields without a `field_name` are considered
    +         * anonymous and cannot be referenced by name.
    +         * 
    + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +         * The field name (optional). Fields without a `field_name` are considered
    +         * anonymous and cannot be referenced by name.
    +         * 
    + * + * string field_name = 1; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +         * The field name (optional). Fields without a `field_name` are considered
    +         * anonymous and cannot be referenced by name.
    +         * 
    + * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +         * The field name (optional). Fields without a `field_name` are considered
    +         * anonymous and cannot be referenced by name.
    +         * 
    + * + * string field_name = 1; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.bigtable.admin.v2.Type type_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type, + com.google.bigtable.admin.v2.Type.Builder, + com.google.bigtable.admin.v2.TypeOrBuilder> + typeBuilder_; + /** + * + * + *
    +         * The type of values in this field.
    +         * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + * + * @return Whether the type field is set. + */ + public boolean hasType() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +         * The type of values in this field.
    +         * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + * + * @return The type. + */ + public com.google.bigtable.admin.v2.Type getType() { + if (typeBuilder_ == null) { + return type_ == null ? com.google.bigtable.admin.v2.Type.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + * + * + *
    +         * The type of values in this field.
    +         * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + */ + public Builder setType(com.google.bigtable.admin.v2.Type value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + } else { + typeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +         * The type of values in this field.
    +         * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + */ + public Builder setType(com.google.bigtable.admin.v2.Type.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +         * The type of values in this field.
    +         * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + */ + public Builder mergeType(com.google.bigtable.admin.v2.Type value) { + if (typeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && type_ != null + && type_ != com.google.bigtable.admin.v2.Type.getDefaultInstance()) { + getTypeBuilder().mergeFrom(value); + } else { + type_ = value; + } + } else { + typeBuilder_.mergeFrom(value); + } + if (type_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +         * The type of values in this field.
    +         * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = null; + if (typeBuilder_ != null) { + typeBuilder_.dispose(); + typeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +         * The type of values in this field.
    +         * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + */ + public com.google.bigtable.admin.v2.Type.Builder getTypeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +         * The type of values in this field.
    +         * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + */ + public com.google.bigtable.admin.v2.TypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? com.google.bigtable.admin.v2.Type.getDefaultInstance() : type_; + } + } + /** + * + * + *
    +         * The type of values in this field.
    +         * 
    + * + * .google.bigtable.admin.v2.Type type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type, + com.google.bigtable.admin.v2.Type.Builder, + com.google.bigtable.admin.v2.TypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type, + com.google.bigtable.admin.v2.Type.Builder, + com.google.bigtable.admin.v2.TypeOrBuilder>( + getType(), getParentForChildren(), isClean()); + type_ = null; + } + return typeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - } - public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Float32 other) { - if (other == com.google.bigtable.admin.v2.Type.Float32.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public final boolean isInitialized() { - return true; + // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Struct.Field) } - @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; - } + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Struct.Field) + private static final com.google.bigtable.admin.v2.Type.Struct.Field DEFAULT_INSTANCE; - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Struct.Field(); } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public static com.google.bigtable.admin.v2.Type.Struct.Field getDefaultInstance() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Float32) - } - - // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Float32) - private static final com.google.bigtable.admin.v2.Type.Float32 DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Float32(); - } - - public static com.google.bigtable.admin.v2.Type.Float32 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Float32 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()); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Field 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(); } - 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.bigtable.admin.v2.Type.Float32 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface Float64OrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Float64) - com.google.protobuf.MessageOrBuilder {} - /** - * - * - *
    -   * Float64
    -   * Values of type `Float64` are stored in `Value.float_value`.
    -   * 
    - * - * Protobuf type {@code google.bigtable.admin.v2.Type.Float64} - */ - public static final class Float64 extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Float64) - Float64OrBuilder { - private static final long serialVersionUID = 0L; - // Use Float64.newBuilder() to construct. - private Float64(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Float64() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Float64(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Float64_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Float64_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Float64.class, - com.google.bigtable.admin.v2.Type.Float64.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.bigtable.admin.v2.Type.Float64)) { - return super.equals(obj); + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - com.google.bigtable.admin.v2.Type.Float64 other = - (com.google.bigtable.admin.v2.Type.Float64) obj; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Field getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; } - public static com.google.bigtable.admin.v2.Type.Float64 parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public interface EncodingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Struct.Encoding) + com.google.protobuf.MessageOrBuilder { - public static com.google.bigtable.admin.v2.Type.Float64 parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
    +       * Use `Singleton` encoding.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + * + * @return Whether the singleton field is set. + */ + boolean hasSingleton(); + /** + * + * + *
    +       * Use `Singleton` encoding.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + * + * @return The singleton. + */ + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton getSingleton(); + /** + * + * + *
    +       * Use `Singleton` encoding.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + */ + com.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonOrBuilder getSingletonOrBuilder(); - public static com.google.bigtable.admin.v2.Type.Float64 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
    +       * Use `DelimitedBytes` encoding.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * + * + * @return Whether the delimitedBytes field is set. + */ + boolean hasDelimitedBytes(); + /** + * + * + *
    +       * Use `DelimitedBytes` encoding.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * + * + * @return The delimitedBytes. + */ + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes getDelimitedBytes(); + /** + * + * + *
    +       * Use `DelimitedBytes` encoding.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * + */ + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesOrBuilder + getDelimitedBytesOrBuilder(); - public static com.google.bigtable.admin.v2.Type.Float64 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
    +       * User `OrderedCodeBytes` encoding.
    +       * 
    + * + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * + * + * @return Whether the orderedCodeBytes field is set. + */ + boolean hasOrderedCodeBytes(); + /** + * + * + *
    +       * User `OrderedCodeBytes` encoding.
    +       * 
    + * + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * + * + * @return The orderedCodeBytes. + */ + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes getOrderedCodeBytes(); + /** + * + * + *
    +       * User `OrderedCodeBytes` encoding.
    +       * 
    + * + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * + */ + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesOrBuilder + getOrderedCodeBytesOrBuilder(); - public static com.google.bigtable.admin.v2.Type.Float64 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + com.google.bigtable.admin.v2.Type.Struct.Encoding.EncodingCase getEncodingCase(); } + /** + * + * + *
    +     * Rules used to convert to or from lower level types.
    +     * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Struct.Encoding} + */ + public static final class Encoding extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Struct.Encoding) + EncodingOrBuilder { + private static final long serialVersionUID = 0L; + // Use Encoding.newBuilder() to construct. + private Encoding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static com.google.bigtable.admin.v2.Type.Float64 parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private Encoding() {} - public static com.google.bigtable.admin.v2.Type.Float64 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Encoding(); + } - public static com.google.bigtable.admin.v2.Type.Float64 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 final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_descriptor; + } - public static com.google.bigtable.admin.v2.Type.Float64 parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Struct.Encoding.class, + com.google.bigtable.admin.v2.Type.Struct.Encoding.Builder.class); + } - public static com.google.bigtable.admin.v2.Type.Float64 parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public interface SingletonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +       * Uses the encoding of `fields[0].type` as-is.
    +       * Only valid if `fields.size == 1`.
    +       * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Struct.Encoding.Singleton} + */ + public static final class Singleton extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) + SingletonOrBuilder { + private static final long serialVersionUID = 0L; + // Use Singleton.newBuilder() to construct. + private Singleton(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static com.google.bigtable.admin.v2.Type.Float64 parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + private Singleton() {} - public static com.google.bigtable.admin.v2.Type.Float64 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 + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Singleton(); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_Singleton_descriptor; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_Singleton_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.class, + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.Builder.class); + } - public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Float64 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @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 - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
    -     * Float64
    -     * Values of type `Float64` are stored in `Value.float_value`.
    -     * 
    - * - * Protobuf type {@code google.bigtable.admin.v2.Type.Float64} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Float64) - com.google.bigtable.admin.v2.Type.Float64OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Float64_descriptor; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton other = + (com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) obj; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Float64_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Float64.class, - com.google.bigtable.admin.v2.Type.Float64.Builder.class); - } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - // Construct using com.google.bigtable.admin.v2.Type.Float64.newBuilder() - private Builder() {} + @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; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton parseFrom( + java.nio.ByteBuffer 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.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Float64_descriptor; - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Float64 getDefaultInstanceForType() { - return com.google.bigtable.admin.v2.Type.Float64.getDefaultInstance(); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Float64 build() { - com.google.bigtable.admin.v2.Type.Float64 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - return result; - } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Float64 buildPartial() { - com.google.bigtable.admin.v2.Type.Float64 result = - new com.google.bigtable.admin.v2.Type.Float64(this); - onBuilt(); - return result; - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder clone() { - return super.clone(); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton 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 Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton 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 mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.bigtable.admin.v2.Type.Float64) { - return mergeFrom((com.google.bigtable.admin.v2.Type.Float64) other); - } else { - super.mergeFrom(other); - return this; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - } - public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Float64 other) { - if (other == com.google.bigtable.admin.v2.Type.Float64.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public static Builder newBuilder( + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @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(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - 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 + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +         * Uses the encoding of `fields[0].type` as-is.
    +         * Only valid if `fields.size == 1`.
    +         * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Struct.Encoding.Singleton} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) + com.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_Singleton_descriptor; + } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_Singleton_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.class, + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.Builder.class); + } - // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Float64) - } + // Construct using + // com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.newBuilder() + private Builder() {} - // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Float64) - private static final com.google.bigtable.admin.v2.Type.Float64 DEFAULT_INSTANCE; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - static { - DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Float64(); - } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } - public static com.google.bigtable.admin.v2.Type.Float64 getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_Singleton_descriptor; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { @java.lang.Override - public Float64 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()); + public com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton build() { + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - return builder.buildPartial(); + return result; } - }; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton buildPartial() { + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton result = + new com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton(this); + onBuilt(); + return result; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Float64 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public interface TimestampOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Timestamp) - com.google.protobuf.MessageOrBuilder {} - /** - * - * - *
    -   * Timestamp
    -   * Values of type `Timestamp` are stored in `Value.timestamp_value`.
    -   * 
    - * - * Protobuf type {@code google.bigtable.admin.v2.Type.Timestamp} - */ - public static final class Timestamp extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Timestamp) - TimestampOrBuilder { - private static final long serialVersionUID = 0L; - // Use Timestamp.newBuilder() to construct. - private Timestamp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - private Timestamp() {} + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Timestamp(); - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Timestamp_descriptor; - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Timestamp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Timestamp.class, - com.google.bigtable.admin.v2.Type.Timestamp.Builder.class); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) { + return mergeFrom((com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) other); + } else { + super.mergeFrom(other); + return this; + } + } - private byte memoizedIsInitialized = -1; + public Builder mergeFrom( + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton other) { + if (other + == com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final boolean isInitialized() { + return true; + } - memoizedIsInitialized = 1; - 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 void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getUnknownFields().writeTo(output); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) + private static final com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton(); + } + + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Singleton 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(); + } + }; - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.bigtable.admin.v2.Type.Timestamp)) { - return super.equals(obj); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - com.google.bigtable.admin.v2.Type.Timestamp other = - (com.google.bigtable.admin.v2.Type.Timestamp) obj; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public interface DelimitedBytesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * + * + *
    +         * Byte sequence used to delimit concatenated fields. The delimiter must
    +         * contain at least 1 character and at most 50 characters.
    +         * 
    + * + * bytes delimiter = 1; + * + * @return The delimiter. + */ + com.google.protobuf.ByteString getDelimiter(); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * + * + *
    +       * Fields are encoded independently and concatenated with a configurable
    +       * `delimiter` in between.
    +       *
    +       * A struct with no fields defined is encoded as a single `delimiter`.
    +       *
    +       * Sorted mode:
    +       *
    +       *  - Fields are encoded in sorted mode.
    +       *  - Encoded field values must not contain any bytes <= `delimiter[0]`
    +       *  - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if
    +       *    `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first.
    +       *
    +       * Distinct mode:
    +       *
    +       *  - Fields are encoded in distinct mode.
    +       *  - Encoded field values must not contain `delimiter[0]`.
    +       * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes} + */ + public static final class DelimitedBytes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) + DelimitedBytesOrBuilder { + private static final long serialVersionUID = 0L; + // Use DelimitedBytes.newBuilder() to construct. + private DelimitedBytes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private DelimitedBytes() { + delimiter_ = com.google.protobuf.ByteString.EMPTY; + } - public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DelimitedBytes(); + } - public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_DelimitedBytes_descriptor; + } - public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_DelimitedBytes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.class, + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.Builder.class); + } - public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int DELIMITER_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString delimiter_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
    +         * Byte sequence used to delimit concatenated fields. The delimiter must
    +         * contain at least 1 character and at most 50 characters.
    +         * 
    + * + * bytes delimiter = 1; + * + * @return The delimiter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDelimiter() { + return delimiter_; + } - public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private byte memoizedIsInitialized = -1; - public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.bigtable.admin.v2.Type.Timestamp parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!delimiter_.isEmpty()) { + output.writeBytes(1, delimiter_); + } + getUnknownFields().writeTo(output); + } - public static com.google.bigtable.admin.v2.Type.Timestamp parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.bigtable.admin.v2.Type.Timestamp parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + size = 0; + if (!delimiter_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, delimiter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.bigtable.admin.v2.Type.Timestamp 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes other = + (com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) obj; - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + if (!getDelimiter().equals(other.getDelimiter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DELIMITER_FIELD_NUMBER; + hash = (53 * hash) + getDelimiter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Timestamp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
    -     * Timestamp
    -     * Values of type `Timestamp` are stored in `Value.timestamp_value`.
    -     * 
    - * - * Protobuf type {@code google.bigtable.admin.v2.Type.Timestamp} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Timestamp) - com.google.bigtable.admin.v2.Type.TimestampOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Timestamp_descriptor; - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes 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.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Timestamp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Timestamp.class, - com.google.bigtable.admin.v2.Type.Timestamp.Builder.class); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // Construct using com.google.bigtable.admin.v2.Type.Timestamp.newBuilder() - private Builder() {} + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Timestamp_descriptor; - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Timestamp getDefaultInstanceForType() { - return com.google.bigtable.admin.v2.Type.Timestamp.getDefaultInstance(); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes 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 com.google.bigtable.admin.v2.Type.Timestamp build() { - com.google.bigtable.admin.v2.Type.Timestamp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - return result; - } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Timestamp buildPartial() { - com.google.bigtable.admin.v2.Type.Timestamp result = - new com.google.bigtable.admin.v2.Type.Timestamp(this); - onBuilt(); - return result; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public Builder clone() { - return super.clone(); - } + public static Builder newBuilder( + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @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 toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +         * Fields are encoded independently and concatenated with a configurable
    +         * `delimiter` in between.
    +         *
    +         * A struct with no fields defined is encoded as a single `delimiter`.
    +         *
    +         * Sorted mode:
    +         *
    +         *  - Fields are encoded in sorted mode.
    +         *  - Encoded field values must not contain any bytes <= `delimiter[0]`
    +         *  - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if
    +         *    `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first.
    +         *
    +         * Distinct mode:
    +         *
    +         *  - Fields are encoded in distinct mode.
    +         *  - Encoded field values must not contain `delimiter[0]`.
    +         * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_DelimitedBytes_descriptor; + } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_DelimitedBytes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.class, + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.Builder.class); + } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } + // Construct using + // com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.newBuilder() + private Builder() {} - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.bigtable.admin.v2.Type.Timestamp) { - return mergeFrom((com.google.bigtable.admin.v2.Type.Timestamp) other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + delimiter_ = com.google.protobuf.ByteString.EMPTY; + return this; + } - public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Timestamp other) { - if (other == com.google.bigtable.admin.v2.Type.Timestamp.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_DelimitedBytes_descriptor; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + .getDefaultInstance(); + } - @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 com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes build() { + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes buildPartial() { + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes result = + new com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.delimiter_ = delimiter_; + } + } + + @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 final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Timestamp) - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Timestamp) - private static final com.google.bigtable.admin.v2.Type.Timestamp DEFAULT_INSTANCE; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) { + return mergeFrom( + (com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) other); + } else { + super.mergeFrom(other); + return this; + } + } - static { - DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Timestamp(); - } + public Builder mergeFrom( + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes other) { + if (other + == com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + .getDefaultInstance()) return this; + if (other.getDelimiter() != com.google.protobuf.ByteString.EMPTY) { + setDelimiter(other.getDelimiter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static com.google.bigtable.admin.v2.Type.Timestamp getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { @java.lang.Override - public Timestamp parsePartialFrom( + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - builder.mergeFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + delimiter_ = input.readBytes(); + 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.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(); + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - }; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private int bitField0_; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private com.google.protobuf.ByteString delimiter_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
    +           * Byte sequence used to delimit concatenated fields. The delimiter must
    +           * contain at least 1 character and at most 50 characters.
    +           * 
    + * + * bytes delimiter = 1; + * + * @return The delimiter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDelimiter() { + return delimiter_; + } + /** + * + * + *
    +           * Byte sequence used to delimit concatenated fields. The delimiter must
    +           * contain at least 1 character and at most 50 characters.
    +           * 
    + * + * bytes delimiter = 1; + * + * @param value The delimiter to set. + * @return This builder for chaining. + */ + public Builder setDelimiter(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + delimiter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +           * Byte sequence used to delimit concatenated fields. The delimiter must
    +           * contain at least 1 character and at most 50 characters.
    +           * 
    + * + * bytes delimiter = 1; + * + * @return This builder for chaining. + */ + public Builder clearDelimiter() { + bitField0_ = (bitField0_ & ~0x00000001); + delimiter_ = getDefaultInstance().getDelimiter(); + onChanged(); + return this; + } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Timestamp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public interface DateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Date) - com.google.protobuf.MessageOrBuilder {} - /** - * - * - *
    -   * Date
    -   * Values of type `Date` are stored in `Value.date_value`.
    -   * 
    - * - * Protobuf type {@code google.bigtable.admin.v2.Type.Date} - */ - public static final class Date extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Date) - DateOrBuilder { - private static final long serialVersionUID = 0L; - // Use Date.newBuilder() to construct. - private Date(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private Date() {} + // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Date(); - } + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) + private static final com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + DEFAULT_INSTANCE; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Date_descriptor; - } + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Date_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Date.class, - com.google.bigtable.admin.v2.Type.Date.Builder.class); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private byte memoizedIsInitialized = -1; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DelimitedBytes 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(); + } + }; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getUnknownFields().writeTo(output); - } + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OrderedCodeBytesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +       * Fields are encoded independently and concatenated with the fixed byte
    +       * pair {0x00, 0x01} in between.
    +       *
    +       * Any null (0x00) byte in an encoded field is replaced by the fixed byte
    +       * pair {0x00, 0xFF}.
    +       *
    +       * Fields that encode to the empty string "" have special handling:
    +       *
    +       *  - If *every* field encodes to "", or if the STRUCT has no fields
    +       *    defined, then the STRUCT is encoded as the fixed byte pair
    +       *    {0x00, 0x00}.
    +       *  - Otherwise, the STRUCT only encodes until the last non-empty field,
    +       *    omitting any trailing empty fields. Any empty fields that aren't
    +       *    omitted are replaced with the fixed byte pair {0x00, 0x00}.
    +       *
    +       * Examples:
    +       *
    +       *  - STRUCT()             -> "\00\00"
    +       *  - STRUCT("")           -> "\00\00"
    +       *  - STRUCT("", "")       -> "\00\00"
    +       *  - STRUCT("", "B")      -> "\00\00" + "\00\01" + "B"
    +       *  - STRUCT("A", "")      -> "A"
    +       *  - STRUCT("", "B", "")  -> "\00\00" + "\00\01" + "B"
    +       *  - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C"
    +       *
    +       *
    +       * Since null bytes are always escaped, this encoding can cause size
    +       * blowup for encodings like `Int64.BigEndianBytes` that are likely to
    +       * produce many such bytes.
    +       *
    +       * Sorted mode:
    +       *
    +       *  - Fields are encoded in sorted mode.
    +       *  - All values supported by the field encodings are allowed
    +       *  - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if
    +       *    `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first.
    +       *
    +       * Distinct mode:
    +       *
    +       *  - Fields are encoded in distinct mode.
    +       *  - All values supported by the field encodings are allowed.
    +       * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes} + */ + public static final class OrderedCodeBytes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) + OrderedCodeBytesOrBuilder { + private static final long serialVersionUID = 0L; + // Use OrderedCodeBytes.newBuilder() to construct. + private OrderedCodeBytes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private OrderedCodeBytes() {} - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OrderedCodeBytes(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.bigtable.admin.v2.Type.Date)) { - return super.equals(obj); - } - com.google.bigtable.admin.v2.Type.Date other = (com.google.bigtable.admin.v2.Type.Date) obj; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_OrderedCodeBytes_descriptor; + } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_OrderedCodeBytes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.class, + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.Builder.class); + } - @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; - } + private byte memoizedIsInitialized = -1; - public static com.google.bigtable.admin.v2.Type.Date parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.bigtable.admin.v2.Type.Date parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.bigtable.admin.v2.Type.Date parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } - public static com.google.bigtable.admin.v2.Type.Date parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.bigtable.admin.v2.Type.Date parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.bigtable.admin.v2.Type.Date parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes other = + (com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) obj; - public static com.google.bigtable.admin.v2.Type.Date parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.bigtable.admin.v2.Type.Date 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 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.bigtable.admin.v2.Type.Date parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.bigtable.admin.v2.Type.Date 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.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.bigtable.admin.v2.Type.Date parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.bigtable.admin.v2.Type.Date parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Date prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes 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 - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
    -     * Date
    -     * Values of type `Date` are stored in `Value.date_value`.
    -     * 
    - * - * Protobuf type {@code google.bigtable.admin.v2.Type.Date} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Date) - com.google.bigtable.admin.v2.Type.DateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Date_descriptor; - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Date_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Date.class, - com.google.bigtable.admin.v2.Type.Date.Builder.class); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - // Construct using com.google.bigtable.admin.v2.Type.Date.newBuilder() - private Builder() {} + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes 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 clear() { - super.clear(); - return this; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Date_descriptor; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Date getDefaultInstanceForType() { - return com.google.bigtable.admin.v2.Type.Date.getDefaultInstance(); - } + public static Builder newBuilder( + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Date build() { - com.google.bigtable.admin.v2.Type.Date result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - return result; - } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Date buildPartial() { - com.google.bigtable.admin.v2.Type.Date result = - new com.google.bigtable.admin.v2.Type.Date(this); - onBuilt(); - return result; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +         * Fields are encoded independently and concatenated with the fixed byte
    +         * pair {0x00, 0x01} in between.
    +         *
    +         * Any null (0x00) byte in an encoded field is replaced by the fixed byte
    +         * pair {0x00, 0xFF}.
    +         *
    +         * Fields that encode to the empty string "" have special handling:
    +         *
    +         *  - If *every* field encodes to "", or if the STRUCT has no fields
    +         *    defined, then the STRUCT is encoded as the fixed byte pair
    +         *    {0x00, 0x00}.
    +         *  - Otherwise, the STRUCT only encodes until the last non-empty field,
    +         *    omitting any trailing empty fields. Any empty fields that aren't
    +         *    omitted are replaced with the fixed byte pair {0x00, 0x00}.
    +         *
    +         * Examples:
    +         *
    +         *  - STRUCT()             -> "\00\00"
    +         *  - STRUCT("")           -> "\00\00"
    +         *  - STRUCT("", "")       -> "\00\00"
    +         *  - STRUCT("", "B")      -> "\00\00" + "\00\01" + "B"
    +         *  - STRUCT("A", "")      -> "A"
    +         *  - STRUCT("", "B", "")  -> "\00\00" + "\00\01" + "B"
    +         *  - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C"
    +         *
    +         *
    +         * Since null bytes are always escaped, this encoding can cause size
    +         * blowup for encodings like `Int64.BigEndianBytes` that are likely to
    +         * produce many such bytes.
    +         *
    +         * Sorted mode:
    +         *
    +         *  - Fields are encoded in sorted mode.
    +         *  - All values supported by the field encodings are allowed
    +         *  - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if
    +         *    `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first.
    +         *
    +         * Distinct mode:
    +         *
    +         *  - Fields are encoded in distinct mode.
    +         *  - All values supported by the field encodings are allowed.
    +         * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_OrderedCodeBytes_descriptor; + } - @java.lang.Override - public Builder clone() { - return super.clone(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_OrderedCodeBytes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.class, + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.Builder + .class); + } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } + // Construct using + // com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.newBuilder() + private Builder() {} - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + @java.lang.Override + public Builder clear() { + super.clear(); + return 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); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.TypesProto + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_OrderedCodeBytes_descriptor; + } - @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 com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + .getDefaultInstance(); + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.bigtable.admin.v2.Type.Date) { - return mergeFrom((com.google.bigtable.admin.v2.Type.Date) other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes build() { + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Date other) { - if (other == com.google.bigtable.admin.v2.Type.Date.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes buildPartial() { + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes result = + new com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes(this); + onBuilt(); + return result; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @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 Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Date) - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Date) - private static final com.google.bigtable.admin.v2.Type.Date DEFAULT_INSTANCE; + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - static { - DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Date(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) { + return mergeFrom( + (com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes other) { + if (other + == com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static com.google.bigtable.admin.v2.Type.Date getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { @java.lang.Override - public Date parsePartialFrom( + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - builder.mergeFrom(input, extensionRegistry); + 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.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(); + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - }; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public com.google.bigtable.admin.v2.Type.Date getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) + } - public interface StructOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Struct) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) + private static final com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + DEFAULT_INSTANCE; - /** - * - * - *
    -     * The names and types of the fields in this struct.
    -     * 
    - * - * repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; - */ - java.util.List getFieldsList(); - /** - * - * - *
    -     * The names and types of the fields in this struct.
    -     * 
    - * - * repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; - */ - com.google.bigtable.admin.v2.Type.Struct.Field getFields(int index); - /** - * - * - *
    -     * The names and types of the fields in this struct.
    -     * 
    - * - * repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; - */ - int getFieldsCount(); - /** - * - * - *
    -     * The names and types of the fields in this struct.
    -     * 
    - * - * repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; - */ - java.util.List - getFieldsOrBuilderList(); - /** - * - * - *
    -     * The names and types of the fields in this struct.
    -     * 
    - * - * repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; - */ - com.google.bigtable.admin.v2.Type.Struct.FieldOrBuilder getFieldsOrBuilder(int index); - } - /** - * - * - *
    -   * A structured data value, consisting of fields which map to dynamically
    -   * typed values.
    -   * Values of type `Struct` are stored in `Value.array_value` where entries are
    -   * in the same order and number as `field_types`.
    -   * 
    - * - * Protobuf type {@code google.bigtable.admin.v2.Type.Struct} - */ - public static final class Struct extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Struct) - StructOrBuilder { - private static final long serialVersionUID = 0L; - // Use Struct.newBuilder() to construct. - private Struct(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } + static { + DEFAULT_INSTANCE = + new com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes(); + } - private Struct() { - fields_ = java.util.Collections.emptyList(); - } + public static com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Struct(); - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrderedCodeBytes 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 final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Struct_descriptor; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Struct_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Struct.class, - com.google.bigtable.admin.v2.Type.Struct.Builder.class); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public interface FieldOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Type.Struct.Field) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int encodingCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object encoding_; + + public enum EncodingCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SINGLETON(1), + DELIMITED_BYTES(2), + ORDERED_CODE_BYTES(3), + ENCODING_NOT_SET(0); + private final int value; + + private EncodingCase(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 EncodingCase valueOf(int value) { + return forNumber(value); + } + + public static EncodingCase forNumber(int value) { + switch (value) { + case 1: + return SINGLETON; + case 2: + return DELIMITED_BYTES; + case 3: + return ORDERED_CODE_BYTES; + case 0: + return ENCODING_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EncodingCase getEncodingCase() { + return EncodingCase.forNumber(encodingCase_); + } + public static final int SINGLETON_FIELD_NUMBER = 1; /** * * *
    -       * The field name (optional). Fields without a `field_name` are considered
    -       * anonymous and cannot be referenced by name.
    +       * Use `Singleton` encoding.
            * 
    * - * string field_name = 1; + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; * - * @return The fieldName. + * @return Whether the singleton field is set. */ - java.lang.String getFieldName(); + @java.lang.Override + public boolean hasSingleton() { + return encodingCase_ == 1; + } /** * * *
    -       * The field name (optional). Fields without a `field_name` are considered
    -       * anonymous and cannot be referenced by name.
    +       * Use `Singleton` encoding.
            * 
    * - * string field_name = 1; + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; * - * @return The bytes for fieldName. + * @return The singleton. */ - com.google.protobuf.ByteString getFieldNameBytes(); - + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton getSingleton() { + if (encodingCase_ == 1) { + return (com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) encoding_; + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.getDefaultInstance(); + } /** * * *
    -       * The type of values in this field.
    +       * Use `Singleton` encoding.
            * 
    * - * .google.bigtable.admin.v2.Type type = 2; - * - * @return Whether the type field is set. + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; */ - boolean hasType(); + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonOrBuilder + getSingletonOrBuilder() { + if (encodingCase_ == 1) { + return (com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) encoding_; + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.getDefaultInstance(); + } + + public static final int DELIMITED_BYTES_FIELD_NUMBER = 2; /** * * *
    -       * The type of values in this field.
    +       * Use `DelimitedBytes` encoding.
            * 
    * - * .google.bigtable.admin.v2.Type type = 2; - * - * @return The type. - */ - com.google.bigtable.admin.v2.Type getType(); - /** - * - * - *
    -       * The type of values in this field.
    -       * 
    + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * * - * .google.bigtable.admin.v2.Type type = 2; + * @return Whether the delimitedBytes field is set. */ - com.google.bigtable.admin.v2.TypeOrBuilder getTypeOrBuilder(); - } - /** - * - * - *
    -     * A struct field and its type.
    -     * 
    - * - * Protobuf type {@code google.bigtable.admin.v2.Type.Struct.Field} - */ - public static final class Field extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Struct.Field) - FieldOrBuilder { - private static final long serialVersionUID = 0L; - // Use Field.newBuilder() to construct. - private Field(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Field() { - fieldName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Field(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Struct_Field_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Struct_Field_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Struct.Field.class, - com.google.bigtable.admin.v2.Type.Struct.Field.Builder.class); + public boolean hasDelimitedBytes() { + return encodingCase_ == 2; } - - private int bitField0_; - public static final int FIELD_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object fieldName_ = ""; /** * * *
    -       * The field name (optional). Fields without a `field_name` are considered
    -       * anonymous and cannot be referenced by name.
    +       * Use `DelimitedBytes` encoding.
            * 
    * - * string field_name = 1; + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * * - * @return The fieldName. + * @return The delimitedBytes. */ @java.lang.Override - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - 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(); - fieldName_ = s; - return s; + public com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes getDelimitedBytes() { + if (encodingCase_ == 2) { + return (com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) encoding_; } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + .getDefaultInstance(); } /** * * *
    -       * The field name (optional). Fields without a `field_name` are considered
    -       * anonymous and cannot be referenced by name.
    +       * Use `DelimitedBytes` encoding.
            * 
    * - * string field_name = 1; - * - * @return The bytes for fieldName. + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * */ @java.lang.Override - public com.google.protobuf.ByteString getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesOrBuilder + getDelimitedBytesOrBuilder() { + if (encodingCase_ == 2) { + return (com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) encoding_; } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + .getDefaultInstance(); } - public static final int TYPE_FIELD_NUMBER = 2; - private com.google.bigtable.admin.v2.Type type_; + public static final int ORDERED_CODE_BYTES_FIELD_NUMBER = 3; /** * * *
    -       * The type of values in this field.
    +       * User `OrderedCodeBytes` encoding.
            * 
    * - * .google.bigtable.admin.v2.Type type = 2; + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * * - * @return Whether the type field is set. + * @return Whether the orderedCodeBytes field is set. */ @java.lang.Override - public boolean hasType() { - return ((bitField0_ & 0x00000001) != 0); + public boolean hasOrderedCodeBytes() { + return encodingCase_ == 3; } /** * * *
    -       * The type of values in this field.
    +       * User `OrderedCodeBytes` encoding.
            * 
    * - * .google.bigtable.admin.v2.Type type = 2; + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * * - * @return The type. + * @return The orderedCodeBytes. */ @java.lang.Override - public com.google.bigtable.admin.v2.Type getType() { - return type_ == null ? com.google.bigtable.admin.v2.Type.getDefaultInstance() : type_; + public com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + getOrderedCodeBytes() { + if (encodingCase_ == 3) { + return (com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + .getDefaultInstance(); } /** * * *
    -       * The type of values in this field.
    +       * User `OrderedCodeBytes` encoding.
            * 
    * - * .google.bigtable.admin.v2.Type type = 2; + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * */ @java.lang.Override - public com.google.bigtable.admin.v2.TypeOrBuilder getTypeOrBuilder() { - return type_ == null ? com.google.bigtable.admin.v2.Type.getDefaultInstance() : type_; + public com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesOrBuilder + getOrderedCodeBytesOrBuilder() { + if (encodingCase_ == 3) { + return (com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -9835,11 +14683,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + if (encodingCase_ == 1) { + output.writeMessage( + 1, (com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) encoding_); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getType()); + if (encodingCase_ == 2) { + output.writeMessage( + 2, (com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) encoding_); + } + if (encodingCase_ == 3) { + output.writeMessage( + 3, (com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) encoding_); } getUnknownFields().writeTo(output); } @@ -9850,11 +14704,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + if (encodingCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) encoding_); } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); + if (encodingCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) encoding_); + } + if (encodingCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) encoding_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9866,16 +14730,25 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.bigtable.admin.v2.Type.Struct.Field)) { + if (!(obj instanceof com.google.bigtable.admin.v2.Type.Struct.Encoding)) { return super.equals(obj); } - com.google.bigtable.admin.v2.Type.Struct.Field other = - (com.google.bigtable.admin.v2.Type.Struct.Field) obj; + com.google.bigtable.admin.v2.Type.Struct.Encoding other = + (com.google.bigtable.admin.v2.Type.Struct.Encoding) obj; - if (!getFieldName().equals(other.getFieldName())) return false; - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType().equals(other.getType())) return false; + if (!getEncodingCase().equals(other.getEncodingCase())) return false; + switch (encodingCase_) { + case 1: + if (!getSingleton().equals(other.getSingleton())) return false; + break; + case 2: + if (!getDelimitedBytes().equals(other.getDelimitedBytes())) return false; + break; + case 3: + if (!getOrderedCodeBytes().equals(other.getOrderedCodeBytes())) return false; + break; + case 0: + default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -9888,82 +14761,92 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); + switch (encodingCase_) { + case 1: + hash = (37 * hash) + SINGLETON_FIELD_NUMBER; + hash = (53 * hash) + getSingleton().hashCode(); + break; + case 2: + hash = (37 * hash) + DELIMITED_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getDelimitedBytes().hashCode(); + break; + case 3: + hash = (37 * hash) + ORDERED_CODE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getOrderedCodeBytes().hashCode(); + break; + case 0: + default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + public static com.google.bigtable.admin.v2.Type.Struct.Encoding parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + public static com.google.bigtable.admin.v2.Type.Struct.Encoding parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + public static com.google.bigtable.admin.v2.Type.Struct.Encoding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + public static com.google.bigtable.admin.v2.Type.Struct.Encoding 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.bigtable.admin.v2.Type.Struct.Field parseFrom(byte[] data) + public static com.google.bigtable.admin.v2.Type.Struct.Encoding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + public static com.google.bigtable.admin.v2.Type.Struct.Encoding parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + public static com.google.bigtable.admin.v2.Type.Struct.Encoding parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + public static com.google.bigtable.admin.v2.Type.Struct.Encoding 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.bigtable.admin.v2.Type.Struct.Field parseDelimitedFrom( + public static com.google.bigtable.admin.v2.Type.Struct.Encoding parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.bigtable.admin.v2.Type.Struct.Field parseDelimitedFrom( + public static com.google.bigtable.admin.v2.Type.Struct.Encoding 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.bigtable.admin.v2.Type.Struct.Field parseFrom( + public static com.google.bigtable.admin.v2.Type.Struct.Encoding parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.bigtable.admin.v2.Type.Struct.Field parseFrom( + public static com.google.bigtable.admin.v2.Type.Struct.Encoding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9980,7 +14863,8 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Struct.Field prototype) { + public static Builder newBuilder( + com.google.bigtable.admin.v2.Type.Struct.Encoding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -9999,74 +14883,70 @@ protected Builder newBuilderForType( * * *
    -       * A struct field and its type.
    +       * Rules used to convert to or from lower level types.
            * 
    * - * Protobuf type {@code google.bigtable.admin.v2.Type.Struct.Field} + * Protobuf type {@code google.bigtable.admin.v2.Type.Struct.Encoding} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Struct.Field) - com.google.bigtable.admin.v2.Type.Struct.FieldOrBuilder { + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Type.Struct.Encoding) + com.google.bigtable.admin.v2.Type.Struct.EncodingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Struct_Field_descriptor; + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Struct_Field_fieldAccessorTable + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.bigtable.admin.v2.Type.Struct.Field.class, - com.google.bigtable.admin.v2.Type.Struct.Field.Builder.class); + com.google.bigtable.admin.v2.Type.Struct.Encoding.class, + com.google.bigtable.admin.v2.Type.Struct.Encoding.Builder.class); } - // Construct using com.google.bigtable.admin.v2.Type.Struct.Field.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // Construct using com.google.bigtable.admin.v2.Type.Struct.Encoding.newBuilder() + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTypeFieldBuilder(); - } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - fieldName_ = ""; - type_ = null; - if (typeBuilder_ != null) { - typeBuilder_.dispose(); - typeBuilder_ = null; + if (singletonBuilder_ != null) { + singletonBuilder_.clear(); + } + if (delimitedBytesBuilder_ != null) { + delimitedBytesBuilder_.clear(); } + if (orderedCodeBytesBuilder_ != null) { + orderedCodeBytesBuilder_.clear(); + } + encodingCase_ = 0; + encoding_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.bigtable.admin.v2.TypesProto - .internal_static_google_bigtable_admin_v2_Type_Struct_Field_descriptor; + .internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_descriptor; } @java.lang.Override - public com.google.bigtable.admin.v2.Type.Struct.Field getDefaultInstanceForType() { - return com.google.bigtable.admin.v2.Type.Struct.Field.getDefaultInstance(); + public com.google.bigtable.admin.v2.Type.Struct.Encoding getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.Type.Struct.Encoding.getDefaultInstance(); } @java.lang.Override - public com.google.bigtable.admin.v2.Type.Struct.Field build() { - com.google.bigtable.admin.v2.Type.Struct.Field result = buildPartial(); + public com.google.bigtable.admin.v2.Type.Struct.Encoding build() { + com.google.bigtable.admin.v2.Type.Struct.Encoding result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10074,27 +14954,33 @@ public com.google.bigtable.admin.v2.Type.Struct.Field build() { } @java.lang.Override - public com.google.bigtable.admin.v2.Type.Struct.Field buildPartial() { - com.google.bigtable.admin.v2.Type.Struct.Field result = - new com.google.bigtable.admin.v2.Type.Struct.Field(this); + public com.google.bigtable.admin.v2.Type.Struct.Encoding buildPartial() { + com.google.bigtable.admin.v2.Type.Struct.Encoding result = + new com.google.bigtable.admin.v2.Type.Struct.Encoding(this); if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.bigtable.admin.v2.Type.Struct.Field result) { + private void buildPartial0(com.google.bigtable.admin.v2.Type.Struct.Encoding result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.fieldName_ = fieldName_; + } + + private void buildPartialOneofs(com.google.bigtable.admin.v2.Type.Struct.Encoding result) { + result.encodingCase_ = encodingCase_; + result.encoding_ = this.encoding_; + if (encodingCase_ == 1 && singletonBuilder_ != null) { + result.encoding_ = singletonBuilder_.build(); } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); - to_bitField0_ |= 0x00000001; + if (encodingCase_ == 2 && delimitedBytesBuilder_ != null) { + result.encoding_ = delimitedBytesBuilder_.build(); + } + if (encodingCase_ == 3 && orderedCodeBytesBuilder_ != null) { + result.encoding_ = orderedCodeBytesBuilder_.build(); } - result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -10134,24 +15020,37 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.bigtable.admin.v2.Type.Struct.Field) { - return mergeFrom((com.google.bigtable.admin.v2.Type.Struct.Field) other); + if (other instanceof com.google.bigtable.admin.v2.Type.Struct.Encoding) { + return mergeFrom((com.google.bigtable.admin.v2.Type.Struct.Encoding) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Struct.Field other) { - if (other == com.google.bigtable.admin.v2.Type.Struct.Field.getDefaultInstance()) + public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Struct.Encoding other) { + if (other == com.google.bigtable.admin.v2.Type.Struct.Encoding.getDefaultInstance()) return this; - if (!other.getFieldName().isEmpty()) { - fieldName_ = other.fieldName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasType()) { - mergeType(other.getType()); + switch (other.getEncodingCase()) { + case SINGLETON: + { + mergeSingleton(other.getSingleton()); + break; + } + case DELIMITED_BYTES: + { + mergeDelimitedBytes(other.getDelimitedBytes()); + break; + } + case ORDERED_CODE_BYTES: + { + mergeOrderedCodeBytes(other.getOrderedCodeBytes()); + break; + } + case ENCODING_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -10181,16 +15080,24 @@ public Builder mergeFrom( break; case 10: { - fieldName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + input.readMessage(getSingletonFieldBuilder().getBuilder(), extensionRegistry); + encodingCase_ = 1; break; } // case 10 case 18: { - input.readMessage(getTypeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + input.readMessage( + getDelimitedBytesFieldBuilder().getBuilder(), extensionRegistry); + encodingCase_ = 2; break; } // case 18 + case 26: + { + input.readMessage( + getOrderedCodeBytesFieldBuilder().getBuilder(), extensionRegistry); + encodingCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10208,298 +15115,709 @@ public Builder mergeFrom( return this; } + private int encodingCase_ = 0; + private java.lang.Object encoding_; + + public EncodingCase getEncodingCase() { + return EncodingCase.forNumber(encodingCase_); + } + + public Builder clearEncoding() { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + return this; + } + private int bitField0_; - private java.lang.Object fieldName_ = ""; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton, + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.Builder, + com.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonOrBuilder> + singletonBuilder_; + /** + * + * + *
    +         * Use `Singleton` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + * + * @return Whether the singleton field is set. + */ + @java.lang.Override + public boolean hasSingleton() { + return encodingCase_ == 1; + } + /** + * + * + *
    +         * Use `Singleton` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + * + * @return The singleton. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton getSingleton() { + if (singletonBuilder_ == null) { + if (encodingCase_ == 1) { + return (com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) encoding_; + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.getDefaultInstance(); + } else { + if (encodingCase_ == 1) { + return singletonBuilder_.getMessage(); + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.getDefaultInstance(); + } + } + /** + * + * + *
    +         * Use `Singleton` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + */ + public Builder setSingleton( + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton value) { + if (singletonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encoding_ = value; + onChanged(); + } else { + singletonBuilder_.setMessage(value); + } + encodingCase_ = 1; + return this; + } + /** + * + * + *
    +         * Use `Singleton` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + */ + public Builder setSingleton( + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.Builder builderForValue) { + if (singletonBuilder_ == null) { + encoding_ = builderForValue.build(); + onChanged(); + } else { + singletonBuilder_.setMessage(builderForValue.build()); + } + encodingCase_ = 1; + return this; + } + /** + * + * + *
    +         * Use `Singleton` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + */ + public Builder mergeSingleton( + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton value) { + if (singletonBuilder_ == null) { + if (encodingCase_ == 1 + && encoding_ + != com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + .getDefaultInstance()) { + encoding_ = + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.newBuilder( + (com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) encoding_) + .mergeFrom(value) + .buildPartial(); + } else { + encoding_ = value; + } + onChanged(); + } else { + if (encodingCase_ == 1) { + singletonBuilder_.mergeFrom(value); + } else { + singletonBuilder_.setMessage(value); + } + } + encodingCase_ = 1; + return this; + } + /** + * + * + *
    +         * Use `Singleton` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + */ + public Builder clearSingleton() { + if (singletonBuilder_ == null) { + if (encodingCase_ == 1) { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + } + } else { + if (encodingCase_ == 1) { + encodingCase_ = 0; + encoding_ = null; + } + singletonBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +         * Use `Singleton` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + */ + public com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.Builder + getSingletonBuilder() { + return getSingletonFieldBuilder().getBuilder(); + } + /** + * + * + *
    +         * Use `Singleton` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonOrBuilder + getSingletonOrBuilder() { + if ((encodingCase_ == 1) && (singletonBuilder_ != null)) { + return singletonBuilder_.getMessageOrBuilder(); + } else { + if (encodingCase_ == 1) { + return (com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) encoding_; + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.getDefaultInstance(); + } + } + /** + * + * + *
    +         * Use `Singleton` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton, + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.Builder, + com.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonOrBuilder> + getSingletonFieldBuilder() { + if (singletonBuilder_ == null) { + if (!(encodingCase_ == 1)) { + encoding_ = + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.getDefaultInstance(); + } + singletonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton, + com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.Builder, + com.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonOrBuilder>( + (com.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) encoding_, + getParentForChildren(), + isClean()); + encoding_ = null; + } + encodingCase_ = 1; + onChanged(); + return singletonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes, + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.Builder, + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesOrBuilder> + delimitedBytesBuilder_; + /** + * + * + *
    +         * Use `DelimitedBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * + * + * @return Whether the delimitedBytes field is set. + */ + @java.lang.Override + public boolean hasDelimitedBytes() { + return encodingCase_ == 2; + } + /** + * + * + *
    +         * Use `DelimitedBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * + * + * @return The delimitedBytes. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + getDelimitedBytes() { + if (delimitedBytesBuilder_ == null) { + if (encodingCase_ == 2) { + return (com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + .getDefaultInstance(); + } else { + if (encodingCase_ == 2) { + return delimitedBytesBuilder_.getMessage(); + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + .getDefaultInstance(); + } + } + /** + * + * + *
    +         * Use `DelimitedBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * + */ + public Builder setDelimitedBytes( + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes value) { + if (delimitedBytesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encoding_ = value; + onChanged(); + } else { + delimitedBytesBuilder_.setMessage(value); + } + encodingCase_ = 2; + return this; + } /** * * *
    -         * The field name (optional). Fields without a `field_name` are considered
    -         * anonymous and cannot be referenced by name.
    +         * Use `DelimitedBytes` encoding.
              * 
    * - * string field_name = 1; - * - * @return The fieldName. + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * */ - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; + public Builder setDelimitedBytes( + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.Builder + builderForValue) { + if (delimitedBytesBuilder_ == null) { + encoding_ = builderForValue.build(); + onChanged(); } else { - return (java.lang.String) ref; + delimitedBytesBuilder_.setMessage(builderForValue.build()); } + encodingCase_ = 2; + return this; } /** * * *
    -         * The field name (optional). Fields without a `field_name` are considered
    -         * anonymous and cannot be referenced by name.
    +         * Use `DelimitedBytes` encoding.
              * 
    * - * string field_name = 1; - * - * @return The bytes for fieldName. + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * */ - public com.google.protobuf.ByteString getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldName_ = b; - return b; + public Builder mergeDelimitedBytes( + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes value) { + if (delimitedBytesBuilder_ == null) { + if (encodingCase_ == 2 + && encoding_ + != com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + .getDefaultInstance()) { + encoding_ = + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.newBuilder( + (com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) + encoding_) + .mergeFrom(value) + .buildPartial(); + } else { + encoding_ = value; + } + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + if (encodingCase_ == 2) { + delimitedBytesBuilder_.mergeFrom(value); + } else { + delimitedBytesBuilder_.setMessage(value); + } } + encodingCase_ = 2; + return this; } /** * * *
    -         * The field name (optional). Fields without a `field_name` are considered
    -         * anonymous and cannot be referenced by name.
    +         * Use `DelimitedBytes` encoding.
              * 
    * - * string field_name = 1; - * - * @param value The fieldName to set. - * @return This builder for chaining. + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * */ - public Builder setFieldName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearDelimitedBytes() { + if (delimitedBytesBuilder_ == null) { + if (encodingCase_ == 2) { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + } + } else { + if (encodingCase_ == 2) { + encodingCase_ = 0; + encoding_ = null; + } + delimitedBytesBuilder_.clear(); } - fieldName_ = value; - bitField0_ |= 0x00000001; - onChanged(); return this; } /** * * *
    -         * The field name (optional). Fields without a `field_name` are considered
    -         * anonymous and cannot be referenced by name.
    +         * Use `DelimitedBytes` encoding.
              * 
    * - * string field_name = 1; - * - * @return This builder for chaining. + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * */ - public Builder clearFieldName() { - fieldName_ = getDefaultInstance().getFieldName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.Builder + getDelimitedBytesBuilder() { + return getDelimitedBytesFieldBuilder().getBuilder(); } /** * * *
    -         * The field name (optional). Fields without a `field_name` are considered
    -         * anonymous and cannot be referenced by name.
    +         * Use `DelimitedBytes` encoding.
              * 
    * - * string field_name = 1; + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesOrBuilder + getDelimitedBytesOrBuilder() { + if ((encodingCase_ == 2) && (delimitedBytesBuilder_ != null)) { + return delimitedBytesBuilder_.getMessageOrBuilder(); + } else { + if (encodingCase_ == 2) { + return (com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + .getDefaultInstance(); + } + } + /** * - * @param value The bytes for fieldName to set. - * @return This builder for chaining. + * + *
    +         * Use `DelimitedBytes` encoding.
    +         * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * */ - public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes, + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.Builder, + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesOrBuilder> + getDelimitedBytesFieldBuilder() { + if (delimitedBytesBuilder_ == null) { + if (!(encodingCase_ == 2)) { + encoding_ = + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + .getDefaultInstance(); + } + delimitedBytesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes, + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.Builder, + com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesOrBuilder>( + (com.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) encoding_, + getParentForChildren(), + isClean()); + encoding_ = null; } - checkByteStringIsUtf8(value); - fieldName_ = value; - bitField0_ |= 0x00000001; + encodingCase_ = 2; onChanged(); - return this; + return delimitedBytesBuilder_; } - private com.google.bigtable.admin.v2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.bigtable.admin.v2.Type, - com.google.bigtable.admin.v2.Type.Builder, - com.google.bigtable.admin.v2.TypeOrBuilder> - typeBuilder_; + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes, + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.Builder, + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesOrBuilder> + orderedCodeBytesBuilder_; /** * * *
    -         * The type of values in this field.
    +         * User `OrderedCodeBytes` encoding.
              * 
    * - * .google.bigtable.admin.v2.Type type = 2; + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * * - * @return Whether the type field is set. + * @return Whether the orderedCodeBytes field is set. */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) != 0); + @java.lang.Override + public boolean hasOrderedCodeBytes() { + return encodingCase_ == 3; } /** * * *
    -         * The type of values in this field.
    +         * User `OrderedCodeBytes` encoding.
              * 
    * - * .google.bigtable.admin.v2.Type type = 2; + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * * - * @return The type. + * @return The orderedCodeBytes. */ - public com.google.bigtable.admin.v2.Type getType() { - if (typeBuilder_ == null) { - return type_ == null ? com.google.bigtable.admin.v2.Type.getDefaultInstance() : type_; + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + getOrderedCodeBytes() { + if (orderedCodeBytesBuilder_ == null) { + if (encodingCase_ == 3) { + return (com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + .getDefaultInstance(); } else { - return typeBuilder_.getMessage(); + if (encodingCase_ == 3) { + return orderedCodeBytesBuilder_.getMessage(); + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + .getDefaultInstance(); } } /** * * *
    -         * The type of values in this field.
    +         * User `OrderedCodeBytes` encoding.
              * 
    * - * .google.bigtable.admin.v2.Type type = 2; + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * */ - public Builder setType(com.google.bigtable.admin.v2.Type value) { - if (typeBuilder_ == null) { + public Builder setOrderedCodeBytes( + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes value) { + if (orderedCodeBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - type_ = value; + encoding_ = value; + onChanged(); } else { - typeBuilder_.setMessage(value); + orderedCodeBytesBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; - onChanged(); + encodingCase_ = 3; return this; } /** * * *
    -         * The type of values in this field.
    +         * User `OrderedCodeBytes` encoding.
              * 
    * - * .google.bigtable.admin.v2.Type type = 2; + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * */ - public Builder setType(com.google.bigtable.admin.v2.Type.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); + public Builder setOrderedCodeBytes( + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.Builder + builderForValue) { + if (orderedCodeBytesBuilder_ == null) { + encoding_ = builderForValue.build(); + onChanged(); } else { - typeBuilder_.setMessage(builderForValue.build()); + orderedCodeBytesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; - onChanged(); + encodingCase_ = 3; return this; } /** * * *
    -         * The type of values in this field.
    +         * User `OrderedCodeBytes` encoding.
              * 
    * - * .google.bigtable.admin.v2.Type type = 2; + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * */ - public Builder mergeType(com.google.bigtable.admin.v2.Type value) { - if (typeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && type_ != null - && type_ != com.google.bigtable.admin.v2.Type.getDefaultInstance()) { - getTypeBuilder().mergeFrom(value); + public Builder mergeOrderedCodeBytes( + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes value) { + if (orderedCodeBytesBuilder_ == null) { + if (encodingCase_ == 3 + && encoding_ + != com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + .getDefaultInstance()) { + encoding_ = + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.newBuilder( + (com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) + encoding_) + .mergeFrom(value) + .buildPartial(); } else { - type_ = value; + encoding_ = value; } - } else { - typeBuilder_.mergeFrom(value); - } - if (type_ != null) { - bitField0_ |= 0x00000002; onChanged(); + } else { + if (encodingCase_ == 3) { + orderedCodeBytesBuilder_.mergeFrom(value); + } else { + orderedCodeBytesBuilder_.setMessage(value); + } } + encodingCase_ = 3; return this; } /** * * *
    -         * The type of values in this field.
    +         * User `OrderedCodeBytes` encoding.
              * 
    * - * .google.bigtable.admin.v2.Type type = 2; + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000002); - type_ = null; - if (typeBuilder_ != null) { - typeBuilder_.dispose(); - typeBuilder_ = null; + public Builder clearOrderedCodeBytes() { + if (orderedCodeBytesBuilder_ == null) { + if (encodingCase_ == 3) { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + } + } else { + if (encodingCase_ == 3) { + encodingCase_ = 0; + encoding_ = null; + } + orderedCodeBytesBuilder_.clear(); } - onChanged(); return this; } /** * * *
    -         * The type of values in this field.
    +         * User `OrderedCodeBytes` encoding.
              * 
    * - * .google.bigtable.admin.v2.Type type = 2; + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * */ - public com.google.bigtable.admin.v2.Type.Builder getTypeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getTypeFieldBuilder().getBuilder(); + public com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.Builder + getOrderedCodeBytesBuilder() { + return getOrderedCodeBytesFieldBuilder().getBuilder(); } /** * * *
    -         * The type of values in this field.
    +         * User `OrderedCodeBytes` encoding.
              * 
    * - * .google.bigtable.admin.v2.Type type = 2; + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * */ - public com.google.bigtable.admin.v2.TypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesOrBuilder + getOrderedCodeBytesOrBuilder() { + if ((encodingCase_ == 3) && (orderedCodeBytesBuilder_ != null)) { + return orderedCodeBytesBuilder_.getMessageOrBuilder(); } else { - return type_ == null ? com.google.bigtable.admin.v2.Type.getDefaultInstance() : type_; + if (encodingCase_ == 3) { + return (com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) encoding_; + } + return com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + .getDefaultInstance(); } } /** * * *
    -         * The type of values in this field.
    +         * User `OrderedCodeBytes` encoding.
              * 
    * - * .google.bigtable.admin.v2.Type type = 2; + * + * .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.bigtable.admin.v2.Type, - com.google.bigtable.admin.v2.Type.Builder, - com.google.bigtable.admin.v2.TypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.bigtable.admin.v2.Type, - com.google.bigtable.admin.v2.Type.Builder, - com.google.bigtable.admin.v2.TypeOrBuilder>( - getType(), getParentForChildren(), isClean()); - type_ = null; + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes, + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.Builder, + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesOrBuilder> + getOrderedCodeBytesFieldBuilder() { + if (orderedCodeBytesBuilder_ == null) { + if (!(encodingCase_ == 3)) { + encoding_ = + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + .getDefaultInstance(); + } + orderedCodeBytesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes, + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.Builder, + com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesOrBuilder>( + (com.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) encoding_, + getParentForChildren(), + isClean()); + encoding_ = null; } - return typeBuilder_; + encodingCase_ = 3; + onChanged(); + return orderedCodeBytesBuilder_; } @java.lang.Override @@ -10514,24 +15832,24 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Struct.Field) + // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Struct.Encoding) } - // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Struct.Field) - private static final com.google.bigtable.admin.v2.Type.Struct.Field DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Struct.Encoding) + private static final com.google.bigtable.admin.v2.Type.Struct.Encoding DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Struct.Field(); + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Struct.Encoding(); } - public static com.google.bigtable.admin.v2.Type.Struct.Field getDefaultInstance() { + public static com.google.bigtable.admin.v2.Type.Struct.Encoding getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public Field parsePartialFrom( + public Encoding parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10551,21 +15869,22 @@ public Field parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.bigtable.admin.v2.Type.Struct.Field getDefaultInstanceForType() { + public com.google.bigtable.admin.v2.Type.Struct.Encoding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } + private int bitField0_; public static final int FIELDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -10637,6 +15956,56 @@ public com.google.bigtable.admin.v2.Type.Struct.FieldOrBuilder getFieldsOrBuilde return fields_.get(index); } + public static final int ENCODING_FIELD_NUMBER = 2; + private com.google.bigtable.admin.v2.Type.Struct.Encoding encoding_; + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + * + * @return Whether the encoding field is set. + */ + @java.lang.Override + public boolean hasEncoding() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + * + * @return The encoding. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.Encoding getEncoding() { + return encoding_ == null + ? com.google.bigtable.admin.v2.Type.Struct.Encoding.getDefaultInstance() + : encoding_; + } + /** + * + * + *
    +     * The encoding to use when converting to or from lower level types.
    +     * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.Type.Struct.EncodingOrBuilder getEncodingOrBuilder() { + return encoding_ == null + ? com.google.bigtable.admin.v2.Type.Struct.Encoding.getDefaultInstance() + : encoding_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -10654,6 +16023,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < fields_.size(); i++) { output.writeMessage(1, fields_.get(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEncoding()); + } getUnknownFields().writeTo(output); } @@ -10666,6 +16038,9 @@ public int getSerializedSize() { for (int i = 0; i < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields_.get(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEncoding()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -10683,6 +16058,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.bigtable.admin.v2.Type.Struct) obj; if (!getFieldsList().equals(other.getFieldsList())) return false; + if (hasEncoding() != other.hasEncoding()) return false; + if (hasEncoding()) { + if (!getEncoding().equals(other.getEncoding())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10698,6 +16077,10 @@ public int hashCode() { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } + if (hasEncoding()) { + hash = (37 * hash) + ENCODING_FIELD_NUMBER; + hash = (53 * hash) + getEncoding().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -10832,10 +16215,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.bigtable.admin.v2.Type.Struct.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFieldsFieldBuilder(); + getEncodingFieldBuilder(); + } } @java.lang.Override @@ -10849,6 +16242,11 @@ public Builder clear() { fieldsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + encoding_ = null; + if (encodingBuilder_ != null) { + encodingBuilder_.dispose(); + encodingBuilder_ = null; + } return this; } @@ -10898,6 +16296,12 @@ private void buildPartialRepeatedFields(com.google.bigtable.admin.v2.Type.Struct private void buildPartial0(com.google.bigtable.admin.v2.Type.Struct result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.encoding_ = encodingBuilder_ == null ? encoding_ : encodingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -10974,6 +16378,9 @@ public Builder mergeFrom(com.google.bigtable.admin.v2.Type.Struct other) { } } } + if (other.hasEncoding()) { + mergeEncoding(other.getEncoding()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -11014,6 +16421,12 @@ public Builder mergeFrom( } break; } // case 10 + case 18: + { + input.readMessage(getEncodingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11384,6 +16797,193 @@ public com.google.bigtable.admin.v2.Type.Struct.Field.Builder addFieldsBuilder(i return fieldsBuilder_; } + private com.google.bigtable.admin.v2.Type.Struct.Encoding encoding_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct.Encoding, + com.google.bigtable.admin.v2.Type.Struct.Encoding.Builder, + com.google.bigtable.admin.v2.Type.Struct.EncodingOrBuilder> + encodingBuilder_; + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + * + * @return Whether the encoding field is set. + */ + public boolean hasEncoding() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + * + * @return The encoding. + */ + public com.google.bigtable.admin.v2.Type.Struct.Encoding getEncoding() { + if (encodingBuilder_ == null) { + return encoding_ == null + ? com.google.bigtable.admin.v2.Type.Struct.Encoding.getDefaultInstance() + : encoding_; + } else { + return encodingBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + */ + public Builder setEncoding(com.google.bigtable.admin.v2.Type.Struct.Encoding value) { + if (encodingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encoding_ = value; + } else { + encodingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + */ + public Builder setEncoding( + com.google.bigtable.admin.v2.Type.Struct.Encoding.Builder builderForValue) { + if (encodingBuilder_ == null) { + encoding_ = builderForValue.build(); + } else { + encodingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + */ + public Builder mergeEncoding(com.google.bigtable.admin.v2.Type.Struct.Encoding value) { + if (encodingBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && encoding_ != null + && encoding_ + != com.google.bigtable.admin.v2.Type.Struct.Encoding.getDefaultInstance()) { + getEncodingBuilder().mergeFrom(value); + } else { + encoding_ = value; + } + } else { + encodingBuilder_.mergeFrom(value); + } + if (encoding_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + */ + public Builder clearEncoding() { + bitField0_ = (bitField0_ & ~0x00000002); + encoding_ = null; + if (encodingBuilder_ != null) { + encodingBuilder_.dispose(); + encodingBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + */ + public com.google.bigtable.admin.v2.Type.Struct.Encoding.Builder getEncodingBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEncodingFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + */ + public com.google.bigtable.admin.v2.Type.Struct.EncodingOrBuilder getEncodingOrBuilder() { + if (encodingBuilder_ != null) { + return encodingBuilder_.getMessageOrBuilder(); + } else { + return encoding_ == null + ? com.google.bigtable.admin.v2.Type.Struct.Encoding.getDefaultInstance() + : encoding_; + } + } + /** + * + * + *
    +       * The encoding to use when converting to or from lower level types.
    +       * 
    + * + * .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct.Encoding, + com.google.bigtable.admin.v2.Type.Struct.Encoding.Builder, + com.google.bigtable.admin.v2.Type.Struct.EncodingOrBuilder> + getEncodingFieldBuilder() { + if (encodingBuilder_ == null) { + encodingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.Type.Struct.Encoding, + com.google.bigtable.admin.v2.Type.Struct.Encoding.Builder, + com.google.bigtable.admin.v2.Type.Struct.EncodingOrBuilder>( + getEncoding(), getParentForChildren(), isClean()); + encoding_ = null; + } + return encodingBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -18663,25 +24263,23 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * familiarity and consistency across products and features. * * For compatibility with Bigtable's existing untyped APIs, each `Type` includes - * an `Encoding` which describes how to convert to/from the underlying data. + * an `Encoding` which describes how to convert to or from the underlying data. + * + * Each encoding can operate in one of two modes: * - * Each encoding also defines the following properties: + * - Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` + * if and only if `X <= Y`. This is useful anywhere sort order is important, + * for example when encoding keys. + * - Distinct: In this mode, Bigtable guarantees that if `X != Y` then + * `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For + * example, both "{'foo': '1', 'bar': '2'}" and "{'bar': '2', 'foo': '1'}" + * are valid encodings of the same JSON value. * - * * Order-preserving: Does the encoded value sort consistently with the - * original typed value? Note that Bigtable will always sort data based on - * the raw encoded value, *not* the decoded type. - * - Example: BYTES values sort in the same order as their raw encodings. - * - Counterexample: Encoding INT64 as a fixed-width decimal string does - * *not* preserve sort order when dealing with negative numbers. - * `INT64(1) > INT64(-1)`, but `STRING("-00001") > STRING("00001)`. - * * Self-delimiting: If we concatenate two encoded values, can we always tell - * where the first one ends and the second one begins? - * - Example: If we encode INT64s to fixed-width STRINGs, the first value - * will always contain exactly N digits, possibly preceded by a sign. - * - Counterexample: If we concatenate two UTF-8 encoded STRINGs, we have - * no way to tell where the first one ends. - * * Compatibility: Which other systems have matching encoding schemes? For - * example, does this encoding have a GoogleSQL equivalent? HBase? Java? + * The API clearly documents which mode is used wherever an encoding can be + * configured. Each encoding also documents which values are supported in which + * modes. For example, when encoding INT64 as a numeric STRING, negative numbers + * cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but + * `STRING("-00001") > STRING("00001")`. * * * Protobuf type {@code google.bigtable.admin.v2.Type} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TypesProto.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TypesProto.java index 681c49f3eb3e..f33cf294d412 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TypesProto.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TypesProto.java @@ -72,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_BigEndianBytes_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_BigEndianBytes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_OrderedCodeBytes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_OrderedCodeBytes_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_bigtable_admin_v2_Type_Bool_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -88,6 +92,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_bigtable_admin_v2_Type_Timestamp_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_bigtable_admin_v2_Type_Timestamp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_Type_Timestamp_Encoding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_Type_Timestamp_Encoding_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_bigtable_admin_v2_Type_Date_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -100,6 +108,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_bigtable_admin_v2_Type_Struct_Field_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_bigtable_admin_v2_Type_Struct_Field_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_Singleton_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_Singleton_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_DelimitedBytes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_DelimitedBytes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_OrderedCodeBytes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_OrderedCodeBytes_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_bigtable_admin_v2_Type_Array_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -139,7 +163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n$google/bigtable/admin/v2/types.proto\022\030" + "google.bigtable.admin.v2\032\037google/api/fie" - + "ld_behavior.proto\"\232\022\n\004Type\022:\n\nbytes_type" + + "ld_behavior.proto\"\343\027\n\004Type\022:\n\nbytes_type" + "\030\001 \001(\0132$.google.bigtable.admin.v2.Type.B" + "ytesH\000\022<\n\013string_type\030\002 \001(\0132%.google.big" + "table.admin.v2.Type.StringH\000\022:\n\nint64_ty" @@ -169,41 +193,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tring.Encoding.Utf8RawB\002\030\001H\000\022N\n\nutf8_byt" + "es\030\002 \001(\01328.google.bigtable.admin.v2.Type" + ".String.Encoding.Utf8BytesH\000\032\r\n\007Utf8Raw:" - + "\002\030\001\032\013\n\tUtf8BytesB\n\n\010encoding\032\207\002\n\005Int64\022?" + + "\002\030\001\032\013\n\tUtf8BytesB\n\n\010encoding\032\375\002\n\005Int64\022?" + "\n\010encoding\030\001 \001(\0132-.google.bigtable.admin" - + ".v2.Type.Int64.Encoding\032\274\001\n\010Encoding\022X\n\020" + + ".v2.Type.Int64.Encoding\032\262\002\n\010Encoding\022X\n\020" + "big_endian_bytes\030\001 \001(\0132<.google.bigtable" + ".admin.v2.Type.Int64.Encoding.BigEndianB" - + "ytesH\000\032J\n\016BigEndianBytes\0228\n\nbytes_type\030\001" - + " \001(\0132$.google.bigtable.admin.v2.Type.Byt" - + "esB\n\n\010encoding\032\006\n\004Bool\032\t\n\007Float32\032\t\n\007Flo" - + "at64\032\013\n\tTimestamp\032\006\n\004Date\032\220\001\n\006Struct\022;\n\006" - + "fields\030\001 \003(\0132+.google.bigtable.admin.v2." - + "Type.Struct.Field\032I\n\005Field\022\022\n\nfield_name" - + "\030\001 \001(\t\022,\n\004type\030\002 \001(\0132\036.google.bigtable.a" - + "dmin.v2.Type\032=\n\005Array\0224\n\014element_type\030\001 " - + "\001(\0132\036.google.bigtable.admin.v2.Type\032k\n\003M" - + "ap\0220\n\010key_type\030\001 \001(\0132\036.google.bigtable.a" - + "dmin.v2.Type\0222\n\nvalue_type\030\002 \001(\0132\036.googl" - + "e.bigtable.admin.v2.Type\032\333\003\n\tAggregate\0222" - + "\n\ninput_type\030\001 \001(\0132\036.google.bigtable.adm" - + "in.v2.Type\0227\n\nstate_type\030\002 \001(\0132\036.google." - + "bigtable.admin.v2.TypeB\003\340A\003\022;\n\003sum\030\004 \001(\013" - + "2,.google.bigtable.admin.v2.Type.Aggrega" - + "te.SumH\000\022e\n\022hllpp_unique_count\030\005 \001(\0132G.g" - + "oogle.bigtable.admin.v2.Type.Aggregate.H" - + "yperLogLogPlusPlusUniqueCountH\000\022;\n\003max\030\006" - + " \001(\0132,.google.bigtable.admin.v2.Type.Agg" - + "regate.MaxH\000\022;\n\003min\030\007 \001(\0132,.google.bigta" - + "ble.admin.v2.Type.Aggregate.MinH\000\032\005\n\003Sum" - + "\032\005\n\003Max\032\005\n\003Min\032 \n\036HyperLogLogPlusPlusUni" - + "queCountB\014\n\naggregatorB\006\n\004kindB\315\001\n\034com.g" - + "oogle.bigtable.admin.v2B\nTypesProtoP\001Z8c" - + "loud.google.com/go/bigtable/admin/apiv2/" - + "adminpb;adminpb\252\002\036Google.Cloud.Bigtable." - + "Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V" - + "2\352\002\"Google::Cloud::Bigtable::Admin::V2b\006" - + "proto3" + + "ytesH\000\022\\\n\022ordered_code_bytes\030\002 \001(\0132>.goo" + + "gle.bigtable.admin.v2.Type.Int64.Encodin" + + "g.OrderedCodeBytesH\000\032N\n\016BigEndianBytes\022<" + + "\n\nbytes_type\030\001 \001(\0132$.google.bigtable.adm" + + "in.v2.Type.BytesB\002\030\001\032\022\n\020OrderedCodeBytes" + + "B\n\n\010encoding\032\006\n\004Bool\032\t\n\007Float32\032\t\n\007Float" + + "64\032\264\001\n\tTimestamp\022C\n\010encoding\030\001 \001(\01321.goo" + + "gle.bigtable.admin.v2.Type.Timestamp.Enc" + + "oding\032b\n\010Encoding\022J\n\021unix_micros_int64\030\001" + + " \001(\0132-.google.bigtable.admin.v2.Type.Int" + + "64.EncodingH\000B\n\n\010encoding\032\006\n\004Date\032\271\004\n\006St" + + "ruct\022;\n\006fields\030\001 \003(\0132+.google.bigtable.a" + + "dmin.v2.Type.Struct.Field\022@\n\010encoding\030\002 " + + "\001(\0132..google.bigtable.admin.v2.Type.Stru" + + "ct.Encoding\032I\n\005Field\022\022\n\nfield_name\030\001 \001(\t" + + "\022,\n\004type\030\002 \001(\0132\036.google.bigtable.admin.v" + + "2.Type\032\344\002\n\010Encoding\022M\n\tsingleton\030\001 \001(\01328" + + ".google.bigtable.admin.v2.Type.Struct.En" + + "coding.SingletonH\000\022X\n\017delimited_bytes\030\002 " + + "\001(\0132=.google.bigtable.admin.v2.Type.Stru" + + "ct.Encoding.DelimitedBytesH\000\022]\n\022ordered_" + + "code_bytes\030\003 \001(\0132?.google.bigtable.admin" + + ".v2.Type.Struct.Encoding.OrderedCodeByte" + + "sH\000\032\013\n\tSingleton\032#\n\016DelimitedBytes\022\021\n\tde" + + "limiter\030\001 \001(\014\032\022\n\020OrderedCodeBytesB\n\n\010enc" + + "oding\032=\n\005Array\0224\n\014element_type\030\001 \001(\0132\036.g" + + "oogle.bigtable.admin.v2.Type\032k\n\003Map\0220\n\010k" + + "ey_type\030\001 \001(\0132\036.google.bigtable.admin.v2" + + ".Type\0222\n\nvalue_type\030\002 \001(\0132\036.google.bigta" + + "ble.admin.v2.Type\032\333\003\n\tAggregate\0222\n\ninput" + + "_type\030\001 \001(\0132\036.google.bigtable.admin.v2.T" + + "ype\0227\n\nstate_type\030\002 \001(\0132\036.google.bigtabl" + + "e.admin.v2.TypeB\003\340A\003\022;\n\003sum\030\004 \001(\0132,.goog" + + "le.bigtable.admin.v2.Type.Aggregate.SumH" + + "\000\022e\n\022hllpp_unique_count\030\005 \001(\0132G.google.b" + + "igtable.admin.v2.Type.Aggregate.HyperLog" + + "LogPlusPlusUniqueCountH\000\022;\n\003max\030\006 \001(\0132,." + + "google.bigtable.admin.v2.Type.Aggregate." + + "MaxH\000\022;\n\003min\030\007 \001(\0132,.google.bigtable.adm" + + "in.v2.Type.Aggregate.MinH\000\032\005\n\003Sum\032\005\n\003Max" + + "\032\005\n\003Min\032 \n\036HyperLogLogPlusPlusUniqueCoun" + + "tB\014\n\naggregatorB\006\n\004kindB\315\001\n\034com.google.b" + + "igtable.admin.v2B\nTypesProtoP\001Z8cloud.go" + + "ogle.com/go/bigtable/admin/apiv2/adminpb" + + ";adminpb\252\002\036Google.Cloud.Bigtable.Admin.V" + + "2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2\352\002\"Goo" + + "gle::Cloud::Bigtable::Admin::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -301,7 +342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_descriptor, new java.lang.String[] { - "BigEndianBytes", "Encoding", + "BigEndianBytes", "OrderedCodeBytes", "Encoding", }); internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_BigEndianBytes_descriptor = internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_descriptor @@ -313,6 +354,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BytesType", }); + internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_OrderedCodeBytes_descriptor = + internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_descriptor + .getNestedTypes() + .get(1); + internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_OrderedCodeBytes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_Type_Int64_Encoding_OrderedCodeBytes_descriptor, + new java.lang.String[] {}); internal_static_google_bigtable_admin_v2_Type_Bool_descriptor = internal_static_google_bigtable_admin_v2_Type_descriptor.getNestedTypes().get(3); internal_static_google_bigtable_admin_v2_Type_Bool_fieldAccessorTable = @@ -336,7 +385,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_bigtable_admin_v2_Type_Timestamp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_Type_Timestamp_descriptor, - new java.lang.String[] {}); + new java.lang.String[] { + "Encoding", + }); + internal_static_google_bigtable_admin_v2_Type_Timestamp_Encoding_descriptor = + internal_static_google_bigtable_admin_v2_Type_Timestamp_descriptor.getNestedTypes().get(0); + internal_static_google_bigtable_admin_v2_Type_Timestamp_Encoding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_Type_Timestamp_Encoding_descriptor, + new java.lang.String[] { + "UnixMicrosInt64", "Encoding", + }); internal_static_google_bigtable_admin_v2_Type_Date_descriptor = internal_static_google_bigtable_admin_v2_Type_descriptor.getNestedTypes().get(7); internal_static_google_bigtable_admin_v2_Type_Date_fieldAccessorTable = @@ -349,7 +408,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_Type_Struct_descriptor, new java.lang.String[] { - "Fields", + "Fields", "Encoding", }); internal_static_google_bigtable_admin_v2_Type_Struct_Field_descriptor = internal_static_google_bigtable_admin_v2_Type_Struct_descriptor.getNestedTypes().get(0); @@ -359,6 +418,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "FieldName", "Type", }); + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_descriptor = + internal_static_google_bigtable_admin_v2_Type_Struct_descriptor.getNestedTypes().get(1); + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_descriptor, + new java.lang.String[] { + "Singleton", "DelimitedBytes", "OrderedCodeBytes", "Encoding", + }); + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_Singleton_descriptor = + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_descriptor + .getNestedTypes() + .get(0); + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_Singleton_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_Singleton_descriptor, + new java.lang.String[] {}); + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_DelimitedBytes_descriptor = + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_descriptor + .getNestedTypes() + .get(1); + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_DelimitedBytes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_DelimitedBytes_descriptor, + new java.lang.String[] { + "Delimiter", + }); + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_OrderedCodeBytes_descriptor = + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_descriptor + .getNestedTypes() + .get(2); + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_OrderedCodeBytes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_Type_Struct_Encoding_OrderedCodeBytes_descriptor, + new java.lang.String[] {}); internal_static_google_bigtable_admin_v2_Type_Array_descriptor = internal_static_google_bigtable_admin_v2_Type_descriptor.getNestedTypes().get(9); internal_static_google_bigtable_admin_v2_Type_Array_fieldAccessorTable = diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateLogicalViewMetadata.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateLogicalViewMetadata.java new file mode 100644 index 000000000000..38a8b392a1cd --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateLogicalViewMetadata.java @@ -0,0 +1,1261 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * The metadata for the Operation returned by UpdateLogicalView.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.UpdateLogicalViewMetadata} + */ +public final class UpdateLogicalViewMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.UpdateLogicalViewMetadata) + UpdateLogicalViewMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateLogicalViewMetadata.newBuilder() to construct. + private UpdateLogicalViewMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateLogicalViewMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateLogicalViewMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateLogicalViewMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateLogicalViewMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.UpdateLogicalViewMetadata.class, + com.google.bigtable.admin.v2.UpdateLogicalViewMetadata.Builder.class); + } + + private int bitField0_; + public static final int ORIGINAL_REQUEST_FIELD_NUMBER = 1; + private com.google.bigtable.admin.v2.UpdateLogicalViewRequest originalRequest_; + /** + * + * + *
    +   * The request that prompted the initiation of this UpdateLogicalView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + * + * @return Whether the originalRequest field is set. + */ + @java.lang.Override + public boolean hasOriginalRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The request that prompted the initiation of this UpdateLogicalView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + * + * @return The originalRequest. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateLogicalViewRequest getOriginalRequest() { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.UpdateLogicalViewRequest.getDefaultInstance() + : originalRequest_; + } + /** + * + * + *
    +   * The request that prompted the initiation of this UpdateLogicalView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateLogicalViewRequestOrBuilder + getOriginalRequestOrBuilder() { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.UpdateLogicalViewRequest.getDefaultInstance() + : originalRequest_; + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
    +   * The time at which this operation was started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * The time at which this operation was started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
    +   * The time at which this operation was started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOriginalRequest()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOriginalRequest()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + 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.bigtable.admin.v2.UpdateLogicalViewMetadata)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.UpdateLogicalViewMetadata other = + (com.google.bigtable.admin.v2.UpdateLogicalViewMetadata) obj; + + if (hasOriginalRequest() != other.hasOriginalRequest()) return false; + if (hasOriginalRequest()) { + if (!getOriginalRequest().equals(other.getOriginalRequest())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) 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 (hasOriginalRequest()) { + hash = (37 * hash) + ORIGINAL_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getOriginalRequest().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewMetadata 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.bigtable.admin.v2.UpdateLogicalViewMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewMetadata 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.bigtable.admin.v2.UpdateLogicalViewMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewMetadata 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.bigtable.admin.v2.UpdateLogicalViewMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewMetadata 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.bigtable.admin.v2.UpdateLogicalViewMetadata 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 metadata for the Operation returned by UpdateLogicalView.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.UpdateLogicalViewMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.UpdateLogicalViewMetadata) + com.google.bigtable.admin.v2.UpdateLogicalViewMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateLogicalViewMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateLogicalViewMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.UpdateLogicalViewMetadata.class, + com.google.bigtable.admin.v2.UpdateLogicalViewMetadata.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.UpdateLogicalViewMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOriginalRequestFieldBuilder(); + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + originalRequest_ = null; + if (originalRequestBuilder_ != null) { + originalRequestBuilder_.dispose(); + originalRequestBuilder_ = null; + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateLogicalViewMetadata_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateLogicalViewMetadata getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.UpdateLogicalViewMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateLogicalViewMetadata build() { + com.google.bigtable.admin.v2.UpdateLogicalViewMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateLogicalViewMetadata buildPartial() { + com.google.bigtable.admin.v2.UpdateLogicalViewMetadata result = + new com.google.bigtable.admin.v2.UpdateLogicalViewMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.UpdateLogicalViewMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.originalRequest_ = + originalRequestBuilder_ == null ? originalRequest_ : originalRequestBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @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.bigtable.admin.v2.UpdateLogicalViewMetadata) { + return mergeFrom((com.google.bigtable.admin.v2.UpdateLogicalViewMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.UpdateLogicalViewMetadata other) { + if (other == com.google.bigtable.admin.v2.UpdateLogicalViewMetadata.getDefaultInstance()) + return this; + if (other.hasOriginalRequest()) { + mergeOriginalRequest(other.getOriginalRequest()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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(getOriginalRequestFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.bigtable.admin.v2.UpdateLogicalViewRequest originalRequest_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.UpdateLogicalViewRequest, + com.google.bigtable.admin.v2.UpdateLogicalViewRequest.Builder, + com.google.bigtable.admin.v2.UpdateLogicalViewRequestOrBuilder> + originalRequestBuilder_; + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + * + * @return Whether the originalRequest field is set. + */ + public boolean hasOriginalRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + * + * @return The originalRequest. + */ + public com.google.bigtable.admin.v2.UpdateLogicalViewRequest getOriginalRequest() { + if (originalRequestBuilder_ == null) { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.UpdateLogicalViewRequest.getDefaultInstance() + : originalRequest_; + } else { + return originalRequestBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + */ + public Builder setOriginalRequest(com.google.bigtable.admin.v2.UpdateLogicalViewRequest value) { + if (originalRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + originalRequest_ = value; + } else { + originalRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + */ + public Builder setOriginalRequest( + com.google.bigtable.admin.v2.UpdateLogicalViewRequest.Builder builderForValue) { + if (originalRequestBuilder_ == null) { + originalRequest_ = builderForValue.build(); + } else { + originalRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + */ + public Builder mergeOriginalRequest( + com.google.bigtable.admin.v2.UpdateLogicalViewRequest value) { + if (originalRequestBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && originalRequest_ != null + && originalRequest_ + != com.google.bigtable.admin.v2.UpdateLogicalViewRequest.getDefaultInstance()) { + getOriginalRequestBuilder().mergeFrom(value); + } else { + originalRequest_ = value; + } + } else { + originalRequestBuilder_.mergeFrom(value); + } + if (originalRequest_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + */ + public Builder clearOriginalRequest() { + bitField0_ = (bitField0_ & ~0x00000001); + originalRequest_ = null; + if (originalRequestBuilder_ != null) { + originalRequestBuilder_.dispose(); + originalRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + */ + public com.google.bigtable.admin.v2.UpdateLogicalViewRequest.Builder + getOriginalRequestBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOriginalRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + */ + public com.google.bigtable.admin.v2.UpdateLogicalViewRequestOrBuilder + getOriginalRequestOrBuilder() { + if (originalRequestBuilder_ != null) { + return originalRequestBuilder_.getMessageOrBuilder(); + } else { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.UpdateLogicalViewRequest.getDefaultInstance() + : originalRequest_; + } + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateLogicalView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.UpdateLogicalViewRequest, + com.google.bigtable.admin.v2.UpdateLogicalViewRequest.Builder, + com.google.bigtable.admin.v2.UpdateLogicalViewRequestOrBuilder> + getOriginalRequestFieldBuilder() { + if (originalRequestBuilder_ == null) { + originalRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.UpdateLogicalViewRequest, + com.google.bigtable.admin.v2.UpdateLogicalViewRequest.Builder, + com.google.bigtable.admin.v2.UpdateLogicalViewRequestOrBuilder>( + getOriginalRequest(), getParentForChildren(), isClean()); + originalRequest_ = null; + } + return originalRequestBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @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.bigtable.admin.v2.UpdateLogicalViewMetadata) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateLogicalViewMetadata) + private static final com.google.bigtable.admin.v2.UpdateLogicalViewMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.UpdateLogicalViewMetadata(); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateLogicalViewMetadata 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.bigtable.admin.v2.UpdateLogicalViewMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateLogicalViewMetadataOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateLogicalViewMetadataOrBuilder.java new file mode 100644 index 000000000000..2dc7c4ed15b2 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateLogicalViewMetadataOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface UpdateLogicalViewMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.UpdateLogicalViewMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The request that prompted the initiation of this UpdateLogicalView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + * + * @return Whether the originalRequest field is set. + */ + boolean hasOriginalRequest(); + /** + * + * + *
    +   * The request that prompted the initiation of this UpdateLogicalView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + * + * @return The originalRequest. + */ + com.google.bigtable.admin.v2.UpdateLogicalViewRequest getOriginalRequest(); + /** + * + * + *
    +   * The request that prompted the initiation of this UpdateLogicalView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + */ + com.google.bigtable.admin.v2.UpdateLogicalViewRequestOrBuilder getOriginalRequestOrBuilder(); + + /** + * + * + *
    +   * The time at which this operation was started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
    +   * The time at which this operation was started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
    +   * The time at which this operation was started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateLogicalViewRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateLogicalViewRequest.java new file mode 100644 index 000000000000..45af8f022763 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateLogicalViewRequest.java @@ -0,0 +1,1072 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * Request message for BigtableInstanceAdmin.UpdateLogicalView.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.UpdateLogicalViewRequest} + */ +public final class UpdateLogicalViewRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.UpdateLogicalViewRequest) + UpdateLogicalViewRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateLogicalViewRequest.newBuilder() to construct. + private UpdateLogicalViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateLogicalViewRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateLogicalViewRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateLogicalViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateLogicalViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.UpdateLogicalViewRequest.class, + com.google.bigtable.admin.v2.UpdateLogicalViewRequest.Builder.class); + } + + private int bitField0_; + public static final int LOGICAL_VIEW_FIELD_NUMBER = 1; + private com.google.bigtable.admin.v2.LogicalView logicalView_; + /** + * + * + *
    +   * Required. The logical view to update.
    +   *
    +   * The logical view's `name` field is used to identify the view to update.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the logicalView field is set. + */ + @java.lang.Override + public boolean hasLogicalView() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Required. The logical view to update.
    +   *
    +   * The logical view's `name` field is used to identify the view to update.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The logicalView. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.LogicalView getLogicalView() { + return logicalView_ == null + ? com.google.bigtable.admin.v2.LogicalView.getDefaultInstance() + : logicalView_; + } + /** + * + * + *
    +   * Required. The logical view to update.
    +   *
    +   * The logical view's `name` field is used to identify the view to update.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.bigtable.admin.v2.LogicalViewOrBuilder getLogicalViewOrBuilder() { + return logicalView_ == null + ? com.google.bigtable.admin.v2.LogicalView.getDefaultInstance() + : logicalView_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
    +   * Optional. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Optional. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
    +   * Optional. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getLogicalView()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLogicalView()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.bigtable.admin.v2.UpdateLogicalViewRequest)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.UpdateLogicalViewRequest other = + (com.google.bigtable.admin.v2.UpdateLogicalViewRequest) obj; + + if (hasLogicalView() != other.hasLogicalView()) return false; + if (hasLogicalView()) { + if (!getLogicalView().equals(other.getLogicalView())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasLogicalView()) { + hash = (37 * hash) + LOGICAL_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getLogicalView().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewRequest 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.bigtable.admin.v2.UpdateLogicalViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewRequest 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.bigtable.admin.v2.UpdateLogicalViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewRequest 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.bigtable.admin.v2.UpdateLogicalViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewRequest 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.bigtable.admin.v2.UpdateLogicalViewRequest 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; + } + /** + * + * + *
    +   * Request message for BigtableInstanceAdmin.UpdateLogicalView.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.UpdateLogicalViewRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.UpdateLogicalViewRequest) + com.google.bigtable.admin.v2.UpdateLogicalViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateLogicalViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateLogicalViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.UpdateLogicalViewRequest.class, + com.google.bigtable.admin.v2.UpdateLogicalViewRequest.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.UpdateLogicalViewRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLogicalViewFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + logicalView_ = null; + if (logicalViewBuilder_ != null) { + logicalViewBuilder_.dispose(); + logicalViewBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateLogicalViewRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateLogicalViewRequest getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.UpdateLogicalViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateLogicalViewRequest build() { + com.google.bigtable.admin.v2.UpdateLogicalViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateLogicalViewRequest buildPartial() { + com.google.bigtable.admin.v2.UpdateLogicalViewRequest result = + new com.google.bigtable.admin.v2.UpdateLogicalViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.UpdateLogicalViewRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.logicalView_ = + logicalViewBuilder_ == null ? logicalView_ : logicalViewBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.bigtable.admin.v2.UpdateLogicalViewRequest) { + return mergeFrom((com.google.bigtable.admin.v2.UpdateLogicalViewRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.UpdateLogicalViewRequest other) { + if (other == com.google.bigtable.admin.v2.UpdateLogicalViewRequest.getDefaultInstance()) + return this; + if (other.hasLogicalView()) { + mergeLogicalView(other.getLogicalView()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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(getLogicalViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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.bigtable.admin.v2.LogicalView logicalView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.LogicalView, + com.google.bigtable.admin.v2.LogicalView.Builder, + com.google.bigtable.admin.v2.LogicalViewOrBuilder> + logicalViewBuilder_; + /** + * + * + *
    +     * Required. The logical view to update.
    +     *
    +     * The logical view's `name` field is used to identify the view to update.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the logicalView field is set. + */ + public boolean hasLogicalView() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Required. The logical view to update.
    +     *
    +     * The logical view's `name` field is used to identify the view to update.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The logicalView. + */ + public com.google.bigtable.admin.v2.LogicalView getLogicalView() { + if (logicalViewBuilder_ == null) { + return logicalView_ == null + ? com.google.bigtable.admin.v2.LogicalView.getDefaultInstance() + : logicalView_; + } else { + return logicalViewBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The logical view to update.
    +     *
    +     * The logical view's `name` field is used to identify the view to update.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLogicalView(com.google.bigtable.admin.v2.LogicalView value) { + if (logicalViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + logicalView_ = value; + } else { + logicalViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The logical view to update.
    +     *
    +     * The logical view's `name` field is used to identify the view to update.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLogicalView( + com.google.bigtable.admin.v2.LogicalView.Builder builderForValue) { + if (logicalViewBuilder_ == null) { + logicalView_ = builderForValue.build(); + } else { + logicalViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The logical view to update.
    +     *
    +     * The logical view's `name` field is used to identify the view to update.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLogicalView(com.google.bigtable.admin.v2.LogicalView value) { + if (logicalViewBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && logicalView_ != null + && logicalView_ != com.google.bigtable.admin.v2.LogicalView.getDefaultInstance()) { + getLogicalViewBuilder().mergeFrom(value); + } else { + logicalView_ = value; + } + } else { + logicalViewBuilder_.mergeFrom(value); + } + if (logicalView_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Required. The logical view to update.
    +     *
    +     * The logical view's `name` field is used to identify the view to update.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLogicalView() { + bitField0_ = (bitField0_ & ~0x00000001); + logicalView_ = null; + if (logicalViewBuilder_ != null) { + logicalViewBuilder_.dispose(); + logicalViewBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The logical view to update.
    +     *
    +     * The logical view's `name` field is used to identify the view to update.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.bigtable.admin.v2.LogicalView.Builder getLogicalViewBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getLogicalViewFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The logical view to update.
    +     *
    +     * The logical view's `name` field is used to identify the view to update.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.bigtable.admin.v2.LogicalViewOrBuilder getLogicalViewOrBuilder() { + if (logicalViewBuilder_ != null) { + return logicalViewBuilder_.getMessageOrBuilder(); + } else { + return logicalView_ == null + ? com.google.bigtable.admin.v2.LogicalView.getDefaultInstance() + : logicalView_; + } + } + /** + * + * + *
    +     * Required. The logical view to update.
    +     *
    +     * The logical view's `name` field is used to identify the view to update.
    +     * Format:
    +     * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.LogicalView, + com.google.bigtable.admin.v2.LogicalView.Builder, + com.google.bigtable.admin.v2.LogicalViewOrBuilder> + getLogicalViewFieldBuilder() { + if (logicalViewBuilder_ == null) { + logicalViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.LogicalView, + com.google.bigtable.admin.v2.LogicalView.Builder, + com.google.bigtable.admin.v2.LogicalViewOrBuilder>( + getLogicalView(), getParentForChildren(), isClean()); + logicalView_ = null; + } + return logicalViewBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.bigtable.admin.v2.UpdateLogicalViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateLogicalViewRequest) + private static final com.google.bigtable.admin.v2.UpdateLogicalViewRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.UpdateLogicalViewRequest(); + } + + public static com.google.bigtable.admin.v2.UpdateLogicalViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateLogicalViewRequest 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.bigtable.admin.v2.UpdateLogicalViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateLogicalViewRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateLogicalViewRequestOrBuilder.java new file mode 100644 index 000000000000..f77a10f84697 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateLogicalViewRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface UpdateLogicalViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.UpdateLogicalViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The logical view to update.
    +   *
    +   * The logical view's `name` field is used to identify the view to update.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the logicalView field is set. + */ + boolean hasLogicalView(); + /** + * + * + *
    +   * Required. The logical view to update.
    +   *
    +   * The logical view's `name` field is used to identify the view to update.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The logicalView. + */ + com.google.bigtable.admin.v2.LogicalView getLogicalView(); + /** + * + * + *
    +   * Required. The logical view to update.
    +   *
    +   * The logical view's `name` field is used to identify the view to update.
    +   * Format:
    +   * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
    +   * 
    + * + * + * .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.bigtable.admin.v2.LogicalViewOrBuilder getLogicalViewOrBuilder(); + + /** + * + * + *
    +   * Optional. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
    +   * Optional. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
    +   * Optional. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateMaterializedViewMetadata.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateMaterializedViewMetadata.java new file mode 100644 index 000000000000..cbd2eb29b001 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateMaterializedViewMetadata.java @@ -0,0 +1,1264 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * The metadata for the Operation returned by UpdateMaterializedView.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.UpdateMaterializedViewMetadata} + */ +public final class UpdateMaterializedViewMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.UpdateMaterializedViewMetadata) + UpdateMaterializedViewMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateMaterializedViewMetadata.newBuilder() to construct. + private UpdateMaterializedViewMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateMaterializedViewMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateMaterializedViewMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateMaterializedViewMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateMaterializedViewMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata.class, + com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata.Builder.class); + } + + private int bitField0_; + public static final int ORIGINAL_REQUEST_FIELD_NUMBER = 1; + private com.google.bigtable.admin.v2.UpdateMaterializedViewRequest originalRequest_; + /** + * + * + *
    +   * The request that prompted the initiation of this UpdateMaterializedView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + * + * @return Whether the originalRequest field is set. + */ + @java.lang.Override + public boolean hasOriginalRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The request that prompted the initiation of this UpdateMaterializedView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + * + * @return The originalRequest. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateMaterializedViewRequest getOriginalRequest() { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.getDefaultInstance() + : originalRequest_; + } + /** + * + * + *
    +   * The request that prompted the initiation of this UpdateMaterializedView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateMaterializedViewRequestOrBuilder + getOriginalRequestOrBuilder() { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.getDefaultInstance() + : originalRequest_; + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
    +   * The time at which this operation was started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * The time at which this operation was started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
    +   * The time at which this operation was started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOriginalRequest()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOriginalRequest()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + 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.bigtable.admin.v2.UpdateMaterializedViewMetadata)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata other = + (com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata) obj; + + if (hasOriginalRequest() != other.hasOriginalRequest()) return false; + if (hasOriginalRequest()) { + if (!getOriginalRequest().equals(other.getOriginalRequest())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) 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 (hasOriginalRequest()) { + hash = (37 * hash) + ORIGINAL_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getOriginalRequest().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata 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.bigtable.admin.v2.UpdateMaterializedViewMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata 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.bigtable.admin.v2.UpdateMaterializedViewMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata 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.bigtable.admin.v2.UpdateMaterializedViewMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata 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.bigtable.admin.v2.UpdateMaterializedViewMetadata 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 metadata for the Operation returned by UpdateMaterializedView.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.UpdateMaterializedViewMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.UpdateMaterializedViewMetadata) + com.google.bigtable.admin.v2.UpdateMaterializedViewMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateMaterializedViewMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateMaterializedViewMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata.class, + com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOriginalRequestFieldBuilder(); + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + originalRequest_ = null; + if (originalRequestBuilder_ != null) { + originalRequestBuilder_.dispose(); + originalRequestBuilder_ = null; + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateMaterializedViewMetadata_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata build() { + com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata buildPartial() { + com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata result = + new com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.originalRequest_ = + originalRequestBuilder_ == null ? originalRequest_ : originalRequestBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @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.bigtable.admin.v2.UpdateMaterializedViewMetadata) { + return mergeFrom((com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata other) { + if (other == com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata.getDefaultInstance()) + return this; + if (other.hasOriginalRequest()) { + mergeOriginalRequest(other.getOriginalRequest()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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(getOriginalRequestFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.bigtable.admin.v2.UpdateMaterializedViewRequest originalRequest_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest, + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.Builder, + com.google.bigtable.admin.v2.UpdateMaterializedViewRequestOrBuilder> + originalRequestBuilder_; + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + * + * @return Whether the originalRequest field is set. + */ + public boolean hasOriginalRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + * + * @return The originalRequest. + */ + public com.google.bigtable.admin.v2.UpdateMaterializedViewRequest getOriginalRequest() { + if (originalRequestBuilder_ == null) { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.getDefaultInstance() + : originalRequest_; + } else { + return originalRequestBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + */ + public Builder setOriginalRequest( + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest value) { + if (originalRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + originalRequest_ = value; + } else { + originalRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + */ + public Builder setOriginalRequest( + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.Builder builderForValue) { + if (originalRequestBuilder_ == null) { + originalRequest_ = builderForValue.build(); + } else { + originalRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + */ + public Builder mergeOriginalRequest( + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest value) { + if (originalRequestBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && originalRequest_ != null + && originalRequest_ + != com.google.bigtable.admin.v2.UpdateMaterializedViewRequest + .getDefaultInstance()) { + getOriginalRequestBuilder().mergeFrom(value); + } else { + originalRequest_ = value; + } + } else { + originalRequestBuilder_.mergeFrom(value); + } + if (originalRequest_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + */ + public Builder clearOriginalRequest() { + bitField0_ = (bitField0_ & ~0x00000001); + originalRequest_ = null; + if (originalRequestBuilder_ != null) { + originalRequestBuilder_.dispose(); + originalRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + */ + public com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.Builder + getOriginalRequestBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOriginalRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + */ + public com.google.bigtable.admin.v2.UpdateMaterializedViewRequestOrBuilder + getOriginalRequestOrBuilder() { + if (originalRequestBuilder_ != null) { + return originalRequestBuilder_.getMessageOrBuilder(); + } else { + return originalRequest_ == null + ? com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.getDefaultInstance() + : originalRequest_; + } + } + /** + * + * + *
    +     * The request that prompted the initiation of this UpdateMaterializedView
    +     * operation.
    +     * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest, + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.Builder, + com.google.bigtable.admin.v2.UpdateMaterializedViewRequestOrBuilder> + getOriginalRequestFieldBuilder() { + if (originalRequestBuilder_ == null) { + originalRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest, + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.Builder, + com.google.bigtable.admin.v2.UpdateMaterializedViewRequestOrBuilder>( + getOriginalRequest(), getParentForChildren(), isClean()); + originalRequest_ = null; + } + return originalRequestBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
    +     * The time at which this operation was started.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
    +     * If set, the time at which this operation finished or was canceled.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @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.bigtable.admin.v2.UpdateMaterializedViewMetadata) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateMaterializedViewMetadata) + private static final com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata(); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMaterializedViewMetadata 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.bigtable.admin.v2.UpdateMaterializedViewMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateMaterializedViewMetadataOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateMaterializedViewMetadataOrBuilder.java new file mode 100644 index 000000000000..7fbb8c42ed66 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateMaterializedViewMetadataOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface UpdateMaterializedViewMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.UpdateMaterializedViewMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The request that prompted the initiation of this UpdateMaterializedView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + * + * @return Whether the originalRequest field is set. + */ + boolean hasOriginalRequest(); + /** + * + * + *
    +   * The request that prompted the initiation of this UpdateMaterializedView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + * + * @return The originalRequest. + */ + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest getOriginalRequest(); + /** + * + * + *
    +   * The request that prompted the initiation of this UpdateMaterializedView
    +   * operation.
    +   * 
    + * + * .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + */ + com.google.bigtable.admin.v2.UpdateMaterializedViewRequestOrBuilder getOriginalRequestOrBuilder(); + + /** + * + * + *
    +   * The time at which this operation was started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
    +   * The time at which this operation was started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
    +   * The time at which this operation was started.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
    +   * If set, the time at which this operation finished or was canceled.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateMaterializedViewRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateMaterializedViewRequest.java new file mode 100644 index 000000000000..c301a0572b2a --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateMaterializedViewRequest.java @@ -0,0 +1,1074 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +/** + * + * + *
    + * Request message for BigtableInstanceAdmin.UpdateMaterializedView.
    + * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.UpdateMaterializedViewRequest} + */ +public final class UpdateMaterializedViewRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.UpdateMaterializedViewRequest) + UpdateMaterializedViewRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateMaterializedViewRequest.newBuilder() to construct. + private UpdateMaterializedViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateMaterializedViewRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateMaterializedViewRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateMaterializedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateMaterializedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.class, + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.Builder.class); + } + + private int bitField0_; + public static final int MATERIALIZED_VIEW_FIELD_NUMBER = 1; + private com.google.bigtable.admin.v2.MaterializedView materializedView_; + /** + * + * + *
    +   * Required. The materialized view to update.
    +   *
    +   * The materialized view's `name` field is used to identify the view to
    +   * update. Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the materializedView field is set. + */ + @java.lang.Override + public boolean hasMaterializedView() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Required. The materialized view to update.
    +   *
    +   * The materialized view's `name` field is used to identify the view to
    +   * update. Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The materializedView. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.MaterializedView getMaterializedView() { + return materializedView_ == null + ? com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance() + : materializedView_; + } + /** + * + * + *
    +   * Required. The materialized view to update.
    +   *
    +   * The materialized view's `name` field is used to identify the view to
    +   * update. Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.bigtable.admin.v2.MaterializedViewOrBuilder getMaterializedViewOrBuilder() { + return materializedView_ == null + ? com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance() + : materializedView_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
    +   * Optional. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Optional. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
    +   * Optional. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMaterializedView()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMaterializedView()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.bigtable.admin.v2.UpdateMaterializedViewRequest)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest other = + (com.google.bigtable.admin.v2.UpdateMaterializedViewRequest) obj; + + if (hasMaterializedView() != other.hasMaterializedView()) return false; + if (hasMaterializedView()) { + if (!getMaterializedView().equals(other.getMaterializedView())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasMaterializedView()) { + hash = (37 * hash) + MATERIALIZED_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getMaterializedView().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewRequest 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.bigtable.admin.v2.UpdateMaterializedViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewRequest 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.bigtable.admin.v2.UpdateMaterializedViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewRequest 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.bigtable.admin.v2.UpdateMaterializedViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewRequest 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.bigtable.admin.v2.UpdateMaterializedViewRequest 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; + } + /** + * + * + *
    +   * Request message for BigtableInstanceAdmin.UpdateMaterializedView.
    +   * 
    + * + * Protobuf type {@code google.bigtable.admin.v2.UpdateMaterializedViewRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.UpdateMaterializedViewRequest) + com.google.bigtable.admin.v2.UpdateMaterializedViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateMaterializedViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateMaterializedViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.class, + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMaterializedViewFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + materializedView_ = null; + if (materializedViewBuilder_ != null) { + materializedViewBuilder_.dispose(); + materializedViewBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableInstanceAdminProto + .internal_static_google_bigtable_admin_v2_UpdateMaterializedViewRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateMaterializedViewRequest getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateMaterializedViewRequest build() { + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UpdateMaterializedViewRequest buildPartial() { + com.google.bigtable.admin.v2.UpdateMaterializedViewRequest result = + new com.google.bigtable.admin.v2.UpdateMaterializedViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.UpdateMaterializedViewRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.materializedView_ = + materializedViewBuilder_ == null ? materializedView_ : materializedViewBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.bigtable.admin.v2.UpdateMaterializedViewRequest) { + return mergeFrom((com.google.bigtable.admin.v2.UpdateMaterializedViewRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.UpdateMaterializedViewRequest other) { + if (other == com.google.bigtable.admin.v2.UpdateMaterializedViewRequest.getDefaultInstance()) + return this; + if (other.hasMaterializedView()) { + mergeMaterializedView(other.getMaterializedView()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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( + getMaterializedViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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.bigtable.admin.v2.MaterializedView materializedView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.MaterializedView, + com.google.bigtable.admin.v2.MaterializedView.Builder, + com.google.bigtable.admin.v2.MaterializedViewOrBuilder> + materializedViewBuilder_; + /** + * + * + *
    +     * Required. The materialized view to update.
    +     *
    +     * The materialized view's `name` field is used to identify the view to
    +     * update. Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the materializedView field is set. + */ + public boolean hasMaterializedView() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Required. The materialized view to update.
    +     *
    +     * The materialized view's `name` field is used to identify the view to
    +     * update. Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The materializedView. + */ + public com.google.bigtable.admin.v2.MaterializedView getMaterializedView() { + if (materializedViewBuilder_ == null) { + return materializedView_ == null + ? com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance() + : materializedView_; + } else { + return materializedViewBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The materialized view to update.
    +     *
    +     * The materialized view's `name` field is used to identify the view to
    +     * update. Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMaterializedView(com.google.bigtable.admin.v2.MaterializedView value) { + if (materializedViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + materializedView_ = value; + } else { + materializedViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The materialized view to update.
    +     *
    +     * The materialized view's `name` field is used to identify the view to
    +     * update. Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMaterializedView( + com.google.bigtable.admin.v2.MaterializedView.Builder builderForValue) { + if (materializedViewBuilder_ == null) { + materializedView_ = builderForValue.build(); + } else { + materializedViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The materialized view to update.
    +     *
    +     * The materialized view's `name` field is used to identify the view to
    +     * update. Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMaterializedView(com.google.bigtable.admin.v2.MaterializedView value) { + if (materializedViewBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && materializedView_ != null + && materializedView_ + != com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance()) { + getMaterializedViewBuilder().mergeFrom(value); + } else { + materializedView_ = value; + } + } else { + materializedViewBuilder_.mergeFrom(value); + } + if (materializedView_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Required. The materialized view to update.
    +     *
    +     * The materialized view's `name` field is used to identify the view to
    +     * update. Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMaterializedView() { + bitField0_ = (bitField0_ & ~0x00000001); + materializedView_ = null; + if (materializedViewBuilder_ != null) { + materializedViewBuilder_.dispose(); + materializedViewBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The materialized view to update.
    +     *
    +     * The materialized view's `name` field is used to identify the view to
    +     * update. Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.bigtable.admin.v2.MaterializedView.Builder getMaterializedViewBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMaterializedViewFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The materialized view to update.
    +     *
    +     * The materialized view's `name` field is used to identify the view to
    +     * update. Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.bigtable.admin.v2.MaterializedViewOrBuilder getMaterializedViewOrBuilder() { + if (materializedViewBuilder_ != null) { + return materializedViewBuilder_.getMessageOrBuilder(); + } else { + return materializedView_ == null + ? com.google.bigtable.admin.v2.MaterializedView.getDefaultInstance() + : materializedView_; + } + } + /** + * + * + *
    +     * Required. The materialized view to update.
    +     *
    +     * The materialized view's `name` field is used to identify the view to
    +     * update. Format:
    +     * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +     * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.MaterializedView, + com.google.bigtable.admin.v2.MaterializedView.Builder, + com.google.bigtable.admin.v2.MaterializedViewOrBuilder> + getMaterializedViewFieldBuilder() { + if (materializedViewBuilder_ == null) { + materializedViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.MaterializedView, + com.google.bigtable.admin.v2.MaterializedView.Builder, + com.google.bigtable.admin.v2.MaterializedViewOrBuilder>( + getMaterializedView(), getParentForChildren(), isClean()); + materializedView_ = null; + } + return materializedViewBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
    +     * Optional. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.bigtable.admin.v2.UpdateMaterializedViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateMaterializedViewRequest) + private static final com.google.bigtable.admin.v2.UpdateMaterializedViewRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.UpdateMaterializedViewRequest(); + } + + public static com.google.bigtable.admin.v2.UpdateMaterializedViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMaterializedViewRequest 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.bigtable.admin.v2.UpdateMaterializedViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateMaterializedViewRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateMaterializedViewRequestOrBuilder.java new file mode 100644 index 000000000000..e0b9f9897f34 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateMaterializedViewRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2025 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/bigtable/admin/v2/bigtable_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.admin.v2; + +public interface UpdateMaterializedViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.UpdateMaterializedViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The materialized view to update.
    +   *
    +   * The materialized view's `name` field is used to identify the view to
    +   * update. Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the materializedView field is set. + */ + boolean hasMaterializedView(); + /** + * + * + *
    +   * Required. The materialized view to update.
    +   *
    +   * The materialized view's `name` field is used to identify the view to
    +   * update. Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The materializedView. + */ + com.google.bigtable.admin.v2.MaterializedView getMaterializedView(); + /** + * + * + *
    +   * Required. The materialized view to update.
    +   *
    +   * The materialized view's `name` field is used to identify the view to
    +   * update. Format:
    +   * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`.
    +   * 
    + * + * + * .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.bigtable.admin.v2.MaterializedViewOrBuilder getMaterializedViewOrBuilder(); + + /** + * + * + *
    +   * Optional. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
    +   * Optional. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
    +   * Optional. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequest.java index ce48324749b9..c31c3d86d440 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequest.java @@ -130,6 +130,7 @@ public com.google.bigtable.admin.v2.TableOrBuilder getTableOrBuilder() { * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -157,6 +158,7 @@ public boolean hasUpdateMask() { * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -184,6 +186,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -197,6 +200,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } + public static final int IGNORE_WARNINGS_FIELD_NUMBER = 3; + private boolean ignoreWarnings_ = false; + /** + * + * + *
    +   * Optional. If true, ignore safety checks when updating the table.
    +   * 
    + * + * bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreWarnings. + */ + @java.lang.Override + public boolean getIgnoreWarnings() { + return ignoreWarnings_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -217,6 +238,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdateMask()); } + if (ignoreWarnings_ != false) { + output.writeBool(3, ignoreWarnings_); + } getUnknownFields().writeTo(output); } @@ -232,6 +256,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } + if (ignoreWarnings_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, ignoreWarnings_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -256,6 +283,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } + if (getIgnoreWarnings() != other.getIgnoreWarnings()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,6 +303,8 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } + hash = (37 * hash) + IGNORE_WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreWarnings()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -435,6 +465,7 @@ public Builder clear() { updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } + ignoreWarnings_ = false; return this; } @@ -480,6 +511,9 @@ private void buildPartial0(com.google.bigtable.admin.v2.UpdateTableRequest resul result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ignoreWarnings_ = ignoreWarnings_; + } result.bitField0_ |= to_bitField0_; } @@ -535,6 +569,9 @@ public Builder mergeFrom(com.google.bigtable.admin.v2.UpdateTableRequest other) if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } + if (other.getIgnoreWarnings() != false) { + setIgnoreWarnings(other.getIgnoreWarnings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -573,6 +610,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 24: + { + ignoreWarnings_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -810,6 +853,7 @@ public com.google.bigtable.admin.v2.TableOrBuilder getTableOrBuilder() { * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -836,6 +880,7 @@ public boolean hasUpdateMask() { * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -868,6 +913,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -902,6 +948,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -933,6 +980,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -972,6 +1020,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -1003,6 +1052,7 @@ public Builder clearUpdateMask() { * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -1029,6 +1079,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -1059,6 +1110,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -1084,6 +1136,59 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return updateMaskBuilder_; } + private boolean ignoreWarnings_; + /** + * + * + *
    +     * Optional. If true, ignore safety checks when updating the table.
    +     * 
    + * + * bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreWarnings. + */ + @java.lang.Override + public boolean getIgnoreWarnings() { + return ignoreWarnings_; + } + /** + * + * + *
    +     * Optional. If true, ignore safety checks when updating the table.
    +     * 
    + * + * bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ignoreWarnings to set. + * @return This builder for chaining. + */ + public Builder setIgnoreWarnings(boolean value) { + + ignoreWarnings_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. If true, ignore safety checks when updating the table.
    +     * 
    + * + * bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreWarnings() { + bitField0_ = (bitField0_ & ~0x00000004); + ignoreWarnings_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequestOrBuilder.java index c20674fbb76c..5d7157e43e4d 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequestOrBuilder.java @@ -78,6 +78,7 @@ public interface UpdateTableRequestOrBuilder * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -102,6 +103,7 @@ public interface UpdateTableRequestOrBuilder * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -126,6 +128,7 @@ public interface UpdateTableRequestOrBuilder * * `change_stream_config` * * `change_stream_config.retention_period` * * `deletion_protection` + * * `row_key_schema` * * If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. @@ -135,4 +138,17 @@ public interface UpdateTableRequestOrBuilder * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
    +   * Optional. If true, ignore safety checks when updating the table.
    +   * 
    + * + * bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreWarnings. + */ + boolean getIgnoreWarnings(); } diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_instance_admin.proto b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_instance_admin.proto index 5e3fe7affe24..a800f990da0b 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_instance_admin.proto +++ b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_instance_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -252,6 +252,7 @@ service BigtableInstanceAdmin { delete: "/v2/{name=projects/*/instances/*/appProfiles/*}" }; option (google.api.method_signature) = "name"; + option (google.api.method_signature) = "name,ignore_warnings"; } // Gets the access control policy for an instance resource. Returns an empty @@ -261,6 +262,14 @@ service BigtableInstanceAdmin { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*}:getIamPolicy" body: "*" + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy" + body: "*" + } + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy" + body: "*" + } }; option (google.api.method_signature) = "resource"; } @@ -272,6 +281,14 @@ service BigtableInstanceAdmin { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*}:setIamPolicy" body: "*" + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy" + body: "*" + } + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy" + body: "*" + } }; option (google.api.method_signature) = "resource,policy"; } @@ -282,6 +299,14 @@ service BigtableInstanceAdmin { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*}:testIamPermissions" body: "*" + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions" + body: "*" + } + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions" + body: "*" + } }; option (google.api.method_signature) = "resource,permissions"; } @@ -294,6 +319,117 @@ service BigtableInstanceAdmin { }; option (google.api.method_signature) = "parent"; } + + // Creates a logical view within an instance. + rpc CreateLogicalView(CreateLogicalViewRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/instances/*}/logicalViews" + body: "logical_view" + }; + option (google.api.method_signature) = + "parent,logical_view,logical_view_id"; + option (google.longrunning.operation_info) = { + response_type: "LogicalView" + metadata_type: "CreateLogicalViewMetadata" + }; + } + + // Gets information about a logical view. + rpc GetLogicalView(GetLogicalViewRequest) returns (LogicalView) { + option (google.api.http) = { + get: "/v2/{name=projects/*/instances/*/logicalViews/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists information about logical views in an instance. + rpc ListLogicalViews(ListLogicalViewsRequest) + returns (ListLogicalViewsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/instances/*}/logicalViews" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a logical view within an instance. + rpc UpdateLogicalView(UpdateLogicalViewRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}" + body: "logical_view" + }; + option (google.api.method_signature) = "logical_view,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "LogicalView" + metadata_type: "UpdateLogicalViewMetadata" + }; + } + + // Deletes a logical view from an instance. + rpc DeleteLogicalView(DeleteLogicalViewRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/instances/*/logicalViews/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a materialized view within an instance. + rpc CreateMaterializedView(CreateMaterializedViewRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/instances/*}/materializedViews" + body: "materialized_view" + }; + option (google.api.method_signature) = + "parent,materialized_view,materialized_view_id"; + option (google.longrunning.operation_info) = { + response_type: "MaterializedView" + metadata_type: "CreateMaterializedViewMetadata" + }; + } + + // Gets information about a materialized view. + rpc GetMaterializedView(GetMaterializedViewRequest) + returns (MaterializedView) { + option (google.api.http) = { + get: "/v2/{name=projects/*/instances/*/materializedViews/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists information about materialized views in an instance. + rpc ListMaterializedViews(ListMaterializedViewsRequest) + returns (ListMaterializedViewsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/instances/*}/materializedViews" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a materialized view within an instance. + rpc UpdateMaterializedView(UpdateMaterializedViewRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}" + body: "materialized_view" + }; + option (google.api.method_signature) = "materialized_view,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "MaterializedView" + metadata_type: "UpdateMaterializedViewMetadata" + }; + } + + // Deletes a materialized view from an instance. + rpc DeleteMaterializedView(DeleteMaterializedViewRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/instances/*/materializedViews/*}" + }; + option (google.api.method_signature) = "name"; + } } // Request message for BigtableInstanceAdmin.CreateInstance. @@ -320,7 +456,6 @@ message CreateInstanceRequest { // cluster ID, e.g., just `mycluster` rather than // `projects/myproject/instances/myinstance/clusters/mycluster`. // Fields marked `OutputOnly` must be left blank. - // Currently, at most four clusters can be specified. map clusters = 4 [(google.api.field_behavior) = REQUIRED]; } @@ -749,3 +884,254 @@ message ListHotTabletsResponse { // page of results. string next_page_token = 2; } + +// Request message for BigtableInstanceAdmin.CreateLogicalView. +message CreateLogicalViewRequest { + // Required. The parent instance where this logical view will be created. + // Format: `projects/{project}/instances/{instance}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/Instance" + } + ]; + + // Required. The ID to use for the logical view, which will become the final + // component of the logical view's resource name. + string logical_view_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The logical view to create. + LogicalView logical_view = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The metadata for the Operation returned by CreateLogicalView. +message CreateLogicalViewMetadata { + // The request that prompted the initiation of this CreateLogicalView + // operation. + CreateLogicalViewRequest original_request = 1; + + // The time at which this operation started. + google.protobuf.Timestamp start_time = 2; + + // If set, the time at which this operation finished or was canceled. + google.protobuf.Timestamp end_time = 3; +} + +// Request message for BigtableInstanceAdmin.GetLogicalView. +message GetLogicalViewRequest { + // Required. The unique name of the requested logical view. Values are of the + // form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/LogicalView" + } + ]; +} + +// Request message for BigtableInstanceAdmin.ListLogicalViews. +message ListLogicalViewsRequest { + // Required. The unique name of the instance for which the list of logical + // views is requested. Values are of the form + // `projects/{project}/instances/{instance}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "bigtableadmin.googleapis.com/LogicalView" + } + ]; + + // Optional. The maximum number of logical views to return. The service may + // return fewer than this value + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListLogicalViews` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListLogicalViews` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for BigtableInstanceAdmin.ListLogicalViews. +message ListLogicalViewsResponse { + // The list of requested logical views. + repeated LogicalView logical_views = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for BigtableInstanceAdmin.UpdateLogicalView. +message UpdateLogicalViewRequest { + // Required. The logical view to update. + // + // The logical view's `name` field is used to identify the view to update. + // Format: + // `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + LogicalView logical_view = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The metadata for the Operation returned by UpdateLogicalView. +message UpdateLogicalViewMetadata { + // The request that prompted the initiation of this UpdateLogicalView + // operation. + UpdateLogicalViewRequest original_request = 1; + + // The time at which this operation was started. + google.protobuf.Timestamp start_time = 2; + + // If set, the time at which this operation finished or was canceled. + google.protobuf.Timestamp end_time = 3; +} + +// Request message for BigtableInstanceAdmin.DeleteLogicalView. +message DeleteLogicalViewRequest { + // Required. The unique name of the logical view to be deleted. + // Format: + // `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/LogicalView" + } + ]; + + // Optional. The current etag of the logical view. + // If an etag is provided and does not match the current etag of the + // logical view, deletion will be blocked and an ABORTED error will be + // returned. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for BigtableInstanceAdmin.CreateMaterializedView. +message CreateMaterializedViewRequest { + // Required. The parent instance where this materialized view will be created. + // Format: `projects/{project}/instances/{instance}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/Instance" + } + ]; + + // Required. The ID to use for the materialized view, which will become the + // final component of the materialized view's resource name. + string materialized_view_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The materialized view to create. + MaterializedView materialized_view = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// The metadata for the Operation returned by CreateMaterializedView. +message CreateMaterializedViewMetadata { + // The request that prompted the initiation of this CreateMaterializedView + // operation. + CreateMaterializedViewRequest original_request = 1; + + // The time at which this operation started. + google.protobuf.Timestamp start_time = 2; + + // If set, the time at which this operation finished or was canceled. + google.protobuf.Timestamp end_time = 3; +} + +// Request message for BigtableInstanceAdmin.GetMaterializedView. +message GetMaterializedViewRequest { + // Required. The unique name of the requested materialized view. Values are of + // the form + // `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/MaterializedView" + } + ]; +} + +// Request message for BigtableInstanceAdmin.ListMaterializedViews. +message ListMaterializedViewsRequest { + // Required. The unique name of the instance for which the list of + // materialized views is requested. Values are of the form + // `projects/{project}/instances/{instance}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "bigtableadmin.googleapis.com/MaterializedView" + } + ]; + + // Optional. The maximum number of materialized views to return. The service + // may return fewer than this value + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListMaterializedViews` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListMaterializedViews` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for BigtableInstanceAdmin.ListMaterializedViews. +message ListMaterializedViewsResponse { + // The list of requested materialized views. + repeated MaterializedView materialized_views = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for BigtableInstanceAdmin.UpdateMaterializedView. +message UpdateMaterializedViewRequest { + // Required. The materialized view to update. + // + // The materialized view's `name` field is used to identify the view to + // update. Format: + // `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + MaterializedView materialized_view = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The metadata for the Operation returned by UpdateMaterializedView. +message UpdateMaterializedViewMetadata { + // The request that prompted the initiation of this UpdateMaterializedView + // operation. + UpdateMaterializedViewRequest original_request = 1; + + // The time at which this operation was started. + google.protobuf.Timestamp start_time = 2; + + // If set, the time at which this operation finished or was canceled. + google.protobuf.Timestamp end_time = 3; +} + +// Request message for BigtableInstanceAdmin.DeleteMaterializedView. +message DeleteMaterializedViewRequest { + // Required. The unique name of the materialized view to be deleted. + // Format: + // `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/MaterializedView" + } + ]; + + // Optional. The current etag of the materialized view. + // If an etag is provided and does not match the current etag of the + // materialized view, deletion will be blocked and an ABORTED error will be + // returned. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto index 1fdcefa4a0dd..bc8578cc9925 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto +++ b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -688,11 +688,15 @@ message UpdateTableRequest { // * `change_stream_config` // * `change_stream_config.retention_period` // * `deletion_protection` + // * `row_key_schema` // // If `column_families` is set in `update_mask`, it will return an // UNIMPLEMENTED error. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If true, ignore safety checks when updating the table. + bool ignore_warnings = 3 [(google.api.field_behavior) = OPTIONAL]; } // Metadata type for the operation returned by diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/common.proto b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/common.proto index fe28f5fa8f16..0d8c184ec0ee 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/common.proto +++ b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/common.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto index d6a3c861a347..aacccd555a5d 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto +++ b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,6 +41,8 @@ message Instance { option (google.api.resource) = { type: "bigtableadmin.googleapis.com/Instance" pattern: "projects/{project}/instances/{instance}" + plural: "instances" + singular: "instance" }; // Possible states of an instance. @@ -82,9 +84,8 @@ message Instance { // to avoid confusion. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // (`OutputOnly`) - // The current state of the instance. - State state = 3; + // Output only. The current state of the instance. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // The type of the instance. Defaults to `PRODUCTION`. Type type = 4; @@ -102,14 +103,17 @@ message Instance { // * Keys and values must both be under 128 bytes. map labels = 5; - // Output only. A server-assigned timestamp representing when this Instance - // was created. For instances created before this field was added (August - // 2021), this value is `seconds: 0, nanos: 1`. + // Output only. A commit timestamp representing when this Instance was + // created. For instances created before this field was added (August 2021), + // this value is `seconds: 0, nanos: 1`. google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Reserved for future use. optional bool satisfies_pzs = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + optional bool satisfies_pzi = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The Autoscaling targets for a Cluster. These determine the recommended nodes. @@ -145,6 +149,8 @@ message Cluster { option (google.api.resource) = { type: "bigtableadmin.googleapis.com/Cluster" pattern: "projects/{project}/instances/{instance}/clusters/{cluster}" + plural: "clusters" + singular: "cluster" }; // Possible states of a cluster. @@ -214,7 +220,6 @@ message Cluster { // `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. // 2) Only regional keys can be used and the region of the CMEK key must // match the region of the cluster. - // 3) All clusters within an instance must use the same CMEK key. // Values are of the form // `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` string kms_key_name = 1 [(google.api.resource_reference) = { @@ -240,8 +245,9 @@ message Cluster { // Output only. The current state of the cluster. State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The number of nodes allocated to this cluster. More nodes enable higher - // throughput and more consistent performance. + // The number of nodes in the cluster. If no value is set, + // Cloud Bigtable automatically allocates nodes based on your data footprint + // and optimized for 50% storage utilization. int32 serve_nodes = 4; // Immutable. The node scaling factor of this cluster. @@ -269,6 +275,8 @@ message AppProfile { option (google.api.resource) = { type: "bigtableadmin.googleapis.com/AppProfile" pattern: "projects/{project}/instances/{instance}/appProfiles/{app_profile}" + plural: "appProfiles" + singular: "appProfile" }; // Read/write requests are routed to the nearest cluster in the instance, and @@ -342,17 +350,10 @@ message AppProfile { } // Data Boost is a serverless compute capability that lets you run - // high-throughput read jobs on your Bigtable data, without impacting the - // performance of the clusters that handle your application traffic. - // Currently, Data Boost exclusively supports read-only use-cases with - // single-cluster routing. - // - // Data Boost reads are only guaranteed to see the results of writes that - // were written at least 30 minutes ago. This means newly written values may - // not become visible for up to 30m, and also means that old values may - // remain visible for up to 30m after being deleted or overwritten. To - // mitigate the staleness of the data, users may either wait 30m, or use - // CheckConsistency. + // high-throughput read jobs and queries on your Bigtable data, without + // impacting the performance of the clusters that handle your application + // traffic. Data Boost supports read-only use cases with single-cluster + // routing. message DataBoostIsolationReadOnly { // Compute Billing Owner specifies how usage should be accounted when using // Data Boost. Compute Billing Owner also configures which Cloud Project is @@ -424,6 +425,8 @@ message HotTablet { option (google.api.resource) = { type: "bigtableadmin.googleapis.com/HotTablet" pattern: "projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}" + plural: "hotTablets" + singular: "hotTablet" }; // The unique name of the hot tablet. Values are of the form @@ -456,3 +459,57 @@ message HotTablet { // to 100% (the node spent all cycles serving the hot tablet). float node_cpu_usage_percent = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// A SQL logical view object that can be referenced in SQL queries. +message LogicalView { + option (google.api.resource) = { + type: "bigtableadmin.googleapis.com/LogicalView" + pattern: "projects/{project}/instances/{instance}/logicalViews/{logical_view}" + plural: "logicalViews" + singular: "logicalView" + }; + + // Identifier. The unique name of the logical view. + // Format: + // `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The logical view's select query. + string query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The etag for this logical view. + // This may be sent on update requests to ensure that the client has an + // up-to-date value before proceeding. The server returns an ABORTED error on + // a mismatched etag. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// A materialized view object that can be referenced in SQL queries. +message MaterializedView { + option (google.api.resource) = { + type: "bigtableadmin.googleapis.com/MaterializedView" + pattern: "projects/{project}/instances/{instance}/materializedViews/{materialized_view}" + plural: "materializedViews" + singular: "materializedView" + }; + + // Identifier. The unique name of the materialized view. + // Format: + // `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Immutable. The materialized view's select query. + string query = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. The etag for this materialized view. + // This may be sent on update requests to ensure that the client has an + // up-to-date value before proceeding. The server returns an ABORTED error on + // a mismatched etag. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Set to true to make the MaterializedView protected against deletion. + bool deletion_protection = 6; +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto index b2ef458c8310..35d2a0c64de6 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto +++ b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -204,6 +204,64 @@ message Table { // Otherwise, automated backups are disabled. AutomatedBackupPolicy automated_backup_policy = 13; } + + // The row key schema for this table. The schema is used to decode the raw row + // key bytes into a structured format. The order of field declarations in this + // schema is important, as it reflects how the raw row key bytes are + // structured. Currently, this only affects how the key is read via a + // GoogleSQL query from the ExecuteQuery API. + // + // For a SQL query, the _key column is still read as raw bytes. But queries + // can reference the key fields by name, which will be decoded from _key using + // provided type and encoding. Queries that reference key fields will fail if + // they encounter an invalid row key. + // + // For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the + // following schema: + // { + // fields { + // field_name: "id" + // type { string { encoding: utf8_bytes {} } } + // } + // fields { + // field_name: "date" + // type { string { encoding: utf8_bytes {} } } + // } + // fields { + // field_name: "product_code" + // type { int64 { encoding: big_endian_bytes {} } } + // } + // encoding { delimited_bytes { delimiter: "#" } } + // } + // + // The decoded key parts would be: + // id = "some_id", date = "2024-04-30", product_code = 1245427 + // The query "SELECT _key, product_code FROM table" will return two columns: + // /------------------------------------------------------\ + // | _key | product_code | + // | --------------------------------------|--------------| + // | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | + // \------------------------------------------------------/ + // + // The schema has the following invariants: + // (1) The decoded field values are order-preserved. For read, the field + // values will be decoded in sorted mode from the raw bytes. + // (2) Every field in the schema must specify a non-empty name. + // (3) Every field must specify a type with an associated encoding. The type + // is limited to scalar types only: Array, Map, Aggregate, and Struct are not + // allowed. + // (4) The field names must not collide with existing column family + // names and reserved keywords "_key" and "_timestamp". + // + // The following update operations are allowed for row_key_schema: + // - Update from an empty schema to a new schema. + // - Remove the existing schema. This operation requires setting the + // `ignore_warnings` flag to `true`, since it might be a backward + // incompatible change. Without the flag, the update request will fail with + // an INVALID_ARGUMENT error. + // Any other row key schema update operation (e.g. update existing schema + // columns names or types) is currently unsupported. + Type.Struct row_key_schema = 15; } // AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/types.proto b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/types.proto index 49c50d17671b..81fcd674d9f9 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/types.proto +++ b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/types.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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,35 +31,34 @@ option ruby_package = "Google::Cloud::Bigtable::Admin::V2"; // familiarity and consistency across products and features. // // For compatibility with Bigtable's existing untyped APIs, each `Type` includes -// an `Encoding` which describes how to convert to/from the underlying data. +// an `Encoding` which describes how to convert to or from the underlying data. // -// Each encoding also defines the following properties: +// Each encoding can operate in one of two modes: // -// * Order-preserving: Does the encoded value sort consistently with the -// original typed value? Note that Bigtable will always sort data based on -// the raw encoded value, *not* the decoded type. -// - Example: BYTES values sort in the same order as their raw encodings. -// - Counterexample: Encoding INT64 as a fixed-width decimal string does -// *not* preserve sort order when dealing with negative numbers. -// `INT64(1) > INT64(-1)`, but `STRING("-00001") > STRING("00001)`. -// * Self-delimiting: If we concatenate two encoded values, can we always tell -// where the first one ends and the second one begins? -// - Example: If we encode INT64s to fixed-width STRINGs, the first value -// will always contain exactly N digits, possibly preceded by a sign. -// - Counterexample: If we concatenate two UTF-8 encoded STRINGs, we have -// no way to tell where the first one ends. -// * Compatibility: Which other systems have matching encoding schemes? For -// example, does this encoding have a GoogleSQL equivalent? HBase? Java? +// - Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` +// if and only if `X <= Y`. This is useful anywhere sort order is important, +// for example when encoding keys. +// - Distinct: In this mode, Bigtable guarantees that if `X != Y` then +// `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For +// example, both "{'foo': '1', 'bar': '2'}" and "{'bar': '2', 'foo': '1'}" +// are valid encodings of the same JSON value. +// +// The API clearly documents which mode is used wherever an encoding can be +// configured. Each encoding also documents which values are supported in which +// modes. For example, when encoding INT64 as a numeric STRING, negative numbers +// cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but +// `STRING("-00001") > STRING("00001")`. message Type { // Bytes // Values of type `Bytes` are stored in `Value.bytes_value`. message Bytes { - // Rules used to convert to/from lower level types. + // Rules used to convert to or from lower level types. message Encoding { - // Leaves the value "as-is" - // * Order-preserving? Yes - // * Self-delimiting? No - // * Compatibility? N/A + // Leaves the value as-is. + // + // Sorted mode: all values are supported. + // + // Distinct mode: all values are supported. message Raw {} // Which encoding to use. @@ -69,27 +68,33 @@ message Type { } } - // The encoding to use when converting to/from lower level types. + // The encoding to use when converting to or from lower level types. Encoding encoding = 1; } // String // Values of type `String` are stored in `Value.string_value`. message String { - // Rules used to convert to/from lower level types. + // Rules used to convert to or from lower level types. message Encoding { // Deprecated: prefer the equivalent `Utf8Bytes`. message Utf8Raw { option deprecated = true; } - // UTF-8 encoding - // * Order-preserving? Yes (code point order) - // * Self-delimiting? No - // * Compatibility? - // - BigQuery Federation `TEXT` encoding - // - HBase `Bytes.toBytes` - // - Java `String#getBytes(StandardCharsets.UTF_8)` + // UTF-8 encoding. + // + // Sorted mode: + // - All values are supported. + // - Code point order is preserved. + // + // Distinct mode: all values are supported. + // + // Compatible with: + // + // - BigQuery `TEXT` encoding + // - HBase `Bytes.toBytes` + // - Java `String#getBytes(StandardCharsets.UTF_8)` message Utf8Bytes {} // Which encoding to use. @@ -102,36 +107,50 @@ message Type { } } - // The encoding to use when converting to/from lower level types. + // The encoding to use when converting to or from lower level types. Encoding encoding = 1; } // Int64 // Values of type `Int64` are stored in `Value.int_value`. message Int64 { - // Rules used to convert to/from lower level types. + // Rules used to convert to or from lower level types. message Encoding { - // Encodes the value as an 8-byte big endian twos complement `Bytes` - // value. - // * Order-preserving? No (positive values only) - // * Self-delimiting? Yes - // * Compatibility? - // - BigQuery Federation `BINARY` encoding - // - HBase `Bytes.toBytes` - // - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` + // Encodes the value as an 8-byte big-endian two's complement value. + // + // Sorted mode: non-negative values are supported. + // + // Distinct mode: all values are supported. + // + // Compatible with: + // + // - BigQuery `BINARY` encoding + // - HBase `Bytes.toBytes` + // - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` message BigEndianBytes { // Deprecated: ignored if set. - Bytes bytes_type = 1; + Bytes bytes_type = 1 [deprecated = true]; } + // Encodes the value in a variable length binary format of up to 10 bytes. + // Values that are closer to zero use fewer bytes. + // + // Sorted mode: all values are supported. + // + // Distinct mode: all values are supported. + message OrderedCodeBytes {} + // Which encoding to use. oneof encoding { // Use `BigEndianBytes` encoding. BigEndianBytes big_endian_bytes = 1; + + // Use `OrderedCodeBytes` encoding. + OrderedCodeBytes ordered_code_bytes = 2; } } - // The encoding to use when converting to/from lower level types. + // The encoding to use when converting to or from lower level types. Encoding encoding = 1; } @@ -149,7 +168,24 @@ message Type { // Timestamp // Values of type `Timestamp` are stored in `Value.timestamp_value`. - message Timestamp {} + message Timestamp { + // Rules used to convert to or from lower level types. + message Encoding { + // Which encoding to use. + oneof encoding { + // Encodes the number of microseconds since the Unix epoch using the + // given `Int64` encoding. Values must be microsecond-aligned. + // + // Compatible with: + // + // - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` + Int64.Encoding unix_micros_int64 = 1; + } + } + + // The encoding to use when converting to or from lower level types. + Encoding encoding = 1; + } // Date // Values of type `Date` are stored in `Value.date_value`. @@ -170,8 +206,95 @@ message Type { Type type = 2; } + // Rules used to convert to or from lower level types. + message Encoding { + // Uses the encoding of `fields[0].type` as-is. + // Only valid if `fields.size == 1`. + message Singleton {} + + // Fields are encoded independently and concatenated with a configurable + // `delimiter` in between. + // + // A struct with no fields defined is encoded as a single `delimiter`. + // + // Sorted mode: + // + // - Fields are encoded in sorted mode. + // - Encoded field values must not contain any bytes <= `delimiter[0]` + // - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + // `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + // + // Distinct mode: + // + // - Fields are encoded in distinct mode. + // - Encoded field values must not contain `delimiter[0]`. + message DelimitedBytes { + // Byte sequence used to delimit concatenated fields. The delimiter must + // contain at least 1 character and at most 50 characters. + bytes delimiter = 1; + } + + // Fields are encoded independently and concatenated with the fixed byte + // pair {0x00, 0x01} in between. + // + // Any null (0x00) byte in an encoded field is replaced by the fixed byte + // pair {0x00, 0xFF}. + // + // Fields that encode to the empty string "" have special handling: + // + // - If *every* field encodes to "", or if the STRUCT has no fields + // defined, then the STRUCT is encoded as the fixed byte pair + // {0x00, 0x00}. + // - Otherwise, the STRUCT only encodes until the last non-empty field, + // omitting any trailing empty fields. Any empty fields that aren't + // omitted are replaced with the fixed byte pair {0x00, 0x00}. + // + // Examples: + // + // - STRUCT() -> "\00\00" + // - STRUCT("") -> "\00\00" + // - STRUCT("", "") -> "\00\00" + // - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" + // - STRUCT("A", "") -> "A" + // - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" + // - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" + // + // + // Since null bytes are always escaped, this encoding can cause size + // blowup for encodings like `Int64.BigEndianBytes` that are likely to + // produce many such bytes. + // + // Sorted mode: + // + // - Fields are encoded in sorted mode. + // - All values supported by the field encodings are allowed + // - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + // `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + // + // Distinct mode: + // + // - Fields are encoded in distinct mode. + // - All values supported by the field encodings are allowed. + message OrderedCodeBytes {} + + // Which encoding to use. + oneof encoding { + // Use `Singleton` encoding. + Singleton singleton = 1; + + // Use `DelimitedBytes` encoding. + DelimitedBytes delimited_bytes = 2; + + // User `OrderedCodeBytes` encoding. + OrderedCodeBytes ordered_code_bytes = 3; + } + } + // The names and types of the fields in this struct. repeated Field fields = 1; + + // The encoding to use when converting to or from lower level types. + Encoding encoding = 2; } // An ordered list of elements of a given type. diff --git a/proto-google-cloud-bigtable-v2/pom.xml b/proto-google-cloud-bigtable-v2/pom.xml index aeb66dd76d59..83e09a001713 100644 --- a/proto-google-cloud-bigtable-v2/pom.xml +++ b/proto-google-cloud-bigtable-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigtable-v2 - 2.54.0 + 2.55.0 proto-google-cloud-bigtable-v2 PROTO library for proto-google-cloud-bigtable-v2 com.google.cloud google-cloud-bigtable-parent - 2.54.0 + 2.55.0 @@ -18,14 +18,14 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.54.0 + 2.55.0 pom import com.google.cloud google-cloud-bigtable-bom - 2.54.0 + 2.55.0 pom import diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableProto.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableProto.java index 9b8a35ad547d..0190b43475b5 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableProto.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableProto.java @@ -148,6 +148,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_bigtable_v2_ExecuteQueryResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_bigtable_v2_ExecuteQueryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_PrepareQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_v2_PrepareQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_PrepareQueryRequest_ParamTypesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_v2_PrepareQueryRequest_ParamTypesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_PrepareQueryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_v2_PrepareQueryResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -163,279 +175,308 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/field_behavior.proto\032\031google/api/reso" + "urce.proto\032\030google/api/routing.proto\032\035go" + "ogle/bigtable/v2/data.proto\032&google/bigt" - + "able/v2/request_stats.proto\032\036google/prot" - + "obuf/duration.proto\032\037google/protobuf/tim" - + "estamp.proto\032\036google/protobuf/wrappers.p" - + "roto\032\027google/rpc/status.proto\"\365\003\n\017ReadRo" - + "wsRequest\022>\n\ntable_name\030\001 \001(\tB*\340A\001\372A$\n\"b" - + "igtableadmin.googleapis.com/Table\022Q\n\024aut" - + "horized_view_name\030\t \001(\tB3\340A\001\372A-\n+bigtabl" - + "eadmin.googleapis.com/AuthorizedView\022\026\n\016" - + "app_profile_id\030\005 \001(\t\022(\n\004rows\030\002 \001(\0132\032.goo" - + "gle.bigtable.v2.RowSet\022-\n\006filter\030\003 \001(\0132\035" - + ".google.bigtable.v2.RowFilter\022\022\n\nrows_li" - + "mit\030\004 \001(\003\022P\n\022request_stats_view\030\006 \001(\01624." - + "google.bigtable.v2.ReadRowsRequest.Reque" - + "stStatsView\022\020\n\010reversed\030\007 \001(\010\"f\n\020Request" - + "StatsView\022\"\n\036REQUEST_STATS_VIEW_UNSPECIF" - + "IED\020\000\022\026\n\022REQUEST_STATS_NONE\020\001\022\026\n\022REQUEST" - + "_STATS_FULL\020\002\"\261\003\n\020ReadRowsResponse\022>\n\006ch" - + "unks\030\001 \003(\0132..google.bigtable.v2.ReadRows" - + "Response.CellChunk\022\034\n\024last_scanned_row_k" - + "ey\030\002 \001(\014\0227\n\rrequest_stats\030\003 \001(\0132 .google" - + ".bigtable.v2.RequestStats\032\205\002\n\tCellChunk\022" - + "\017\n\007row_key\030\001 \001(\014\0221\n\013family_name\030\002 \001(\0132\034." - + "google.protobuf.StringValue\022.\n\tqualifier" - + "\030\003 \001(\0132\033.google.protobuf.BytesValue\022\030\n\020t" - + "imestamp_micros\030\004 \001(\003\022\016\n\006labels\030\005 \003(\t\022\r\n" - + "\005value\030\006 \001(\014\022\022\n\nvalue_size\030\007 \001(\005\022\023\n\trese" - + "t_row\030\010 \001(\010H\000\022\024\n\ncommit_row\030\t \001(\010H\000B\014\n\nr" - + "ow_status\"\301\001\n\024SampleRowKeysRequest\022>\n\nta" - + "ble_name\030\001 \001(\tB*\340A\001\372A$\n\"bigtableadmin.go" - + "ogleapis.com/Table\022Q\n\024authorized_view_na" - + "me\030\004 \001(\tB3\340A\001\372A-\n+bigtableadmin.googleap" - + "is.com/AuthorizedView\022\026\n\016app_profile_id\030" - + "\002 \001(\t\">\n\025SampleRowKeysResponse\022\017\n\007row_ke" - + "y\030\001 \001(\014\022\024\n\014offset_bytes\030\002 \001(\003\"\211\002\n\020Mutate" - + "RowRequest\022>\n\ntable_name\030\001 \001(\tB*\340A\001\372A$\n\"" - + "bigtableadmin.googleapis.com/Table\022Q\n\024au" - + "thorized_view_name\030\006 \001(\tB3\340A\001\372A-\n+bigtab" - + "leadmin.googleapis.com/AuthorizedView\022\026\n" - + "\016app_profile_id\030\004 \001(\t\022\024\n\007row_key\030\002 \001(\014B\003" - + "\340A\002\0224\n\tmutations\030\003 \003(\0132\034.google.bigtable" - + ".v2.MutationB\003\340A\002\"\023\n\021MutateRowResponse\"\321" - + "\002\n\021MutateRowsRequest\022>\n\ntable_name\030\001 \001(\t" - + "B*\340A\001\372A$\n\"bigtableadmin.googleapis.com/T" - + "able\022Q\n\024authorized_view_name\030\005 \001(\tB3\340A\001\372" - + "A-\n+bigtableadmin.googleapis.com/Authori" - + "zedView\022\026\n\016app_profile_id\030\003 \001(\t\022A\n\007entri" - + "es\030\002 \003(\0132+.google.bigtable.v2.MutateRows" - + "Request.EntryB\003\340A\002\032N\n\005Entry\022\017\n\007row_key\030\001" - + " \001(\014\0224\n\tmutations\030\002 \003(\0132\034.google.bigtabl" - + "e.v2.MutationB\003\340A\002\"\344\001\n\022MutateRowsRespons" - + "e\022=\n\007entries\030\001 \003(\0132,.google.bigtable.v2." - + "MutateRowsResponse.Entry\022?\n\017rate_limit_i" - + "nfo\030\003 \001(\0132!.google.bigtable.v2.RateLimit" - + "InfoH\000\210\001\001\032:\n\005Entry\022\r\n\005index\030\001 \001(\003\022\"\n\006sta" - + "tus\030\002 \001(\0132\022.google.rpc.StatusB\022\n\020_rate_l" - + "imit_info\"J\n\rRateLimitInfo\022)\n\006period\030\001 \001" - + "(\0132\031.google.protobuf.Duration\022\016\n\006factor\030" - + "\002 \001(\001\"\201\003\n\030CheckAndMutateRowRequest\022>\n\nta" - + "ble_name\030\001 \001(\tB*\340A\001\372A$\n\"bigtableadmin.go" - + "ogleapis.com/Table\022Q\n\024authorized_view_na" - + "me\030\t \001(\tB3\340A\001\372A-\n+bigtableadmin.googleap" - + "is.com/AuthorizedView\022\026\n\016app_profile_id\030" - + "\007 \001(\t\022\024\n\007row_key\030\002 \001(\014B\003\340A\002\0227\n\020predicate" - + "_filter\030\006 \001(\0132\035.google.bigtable.v2.RowFi" - + "lter\0224\n\016true_mutations\030\004 \003(\0132\034.google.bi" - + "gtable.v2.Mutation\0225\n\017false_mutations\030\005 " - + "\003(\0132\034.google.bigtable.v2.Mutation\"6\n\031Che" - + "ckAndMutateRowResponse\022\031\n\021predicate_matc" - + "hed\030\001 \001(\010\"i\n\022PingAndWarmRequest\022;\n\004name\030" - + "\001 \001(\tB-\340A\002\372A\'\n%bigtableadmin.googleapis." - + "com/Instance\022\026\n\016app_profile_id\030\002 \001(\t\"\025\n\023" - + "PingAndWarmResponse\"\231\002\n\031ReadModifyWriteR" - + "owRequest\022>\n\ntable_name\030\001 \001(\tB*\340A\001\372A$\n\"b" - + "igtableadmin.googleapis.com/Table\022Q\n\024aut" - + "horized_view_name\030\006 \001(\tB3\340A\001\372A-\n+bigtabl" - + "eadmin.googleapis.com/AuthorizedView\022\026\n\016" - + "app_profile_id\030\004 \001(\t\022\024\n\007row_key\030\002 \001(\014B\003\340" - + "A\002\022;\n\005rules\030\003 \003(\0132\'.google.bigtable.v2.R" - + "eadModifyWriteRuleB\003\340A\002\"B\n\032ReadModifyWri" - + "teRowResponse\022$\n\003row\030\001 \001(\0132\027.google.bigt" - + "able.v2.Row\"\206\001\n,GenerateInitialChangeStr" - + "eamPartitionsRequest\022>\n\ntable_name\030\001 \001(\t" - + "B*\340A\002\372A$\n\"bigtableadmin.googleapis.com/T" - + "able\022\026\n\016app_profile_id\030\002 \001(\t\"g\n-Generate" - + "InitialChangeStreamPartitionsResponse\0226\n" - + "\tpartition\030\001 \001(\0132#.google.bigtable.v2.St" - + "reamPartition\"\233\003\n\027ReadChangeStreamReques" - + "t\022>\n\ntable_name\030\001 \001(\tB*\340A\002\372A$\n\"bigtablea" - + "dmin.googleapis.com/Table\022\026\n\016app_profile" - + "_id\030\002 \001(\t\0226\n\tpartition\030\003 \001(\0132#.google.bi" - + "gtable.v2.StreamPartition\0220\n\nstart_time\030" - + "\004 \001(\0132\032.google.protobuf.TimestampH\000\022K\n\023c" - + "ontinuation_tokens\030\006 \001(\0132,.google.bigtab" - + "le.v2.StreamContinuationTokensH\000\022,\n\010end_" - + "time\030\005 \001(\0132\032.google.protobuf.Timestamp\0225" - + "\n\022heartbeat_duration\030\007 \001(\0132\031.google.prot" - + "obuf.DurationB\014\n\nstart_from\"\251\n\n\030ReadChan" - + "geStreamResponse\022N\n\013data_change\030\001 \001(\01327." - + "google.bigtable.v2.ReadChangeStreamRespo" - + "nse.DataChangeH\000\022K\n\theartbeat\030\002 \001(\01326.go" - + "ogle.bigtable.v2.ReadChangeStreamRespons" - + "e.HeartbeatH\000\022P\n\014close_stream\030\003 \001(\01328.go" - + "ogle.bigtable.v2.ReadChangeStreamRespons" - + "e.CloseStreamH\000\032\364\001\n\rMutationChunk\022X\n\nchu" - + "nk_info\030\001 \001(\0132D.google.bigtable.v2.ReadC" - + "hangeStreamResponse.MutationChunk.ChunkI" - + "nfo\022.\n\010mutation\030\002 \001(\0132\034.google.bigtable." - + "v2.Mutation\032Y\n\tChunkInfo\022\032\n\022chunked_valu" - + "e_size\030\001 \001(\005\022\034\n\024chunked_value_offset\030\002 \001" - + "(\005\022\022\n\nlast_chunk\030\003 \001(\010\032\306\003\n\nDataChange\022J\n" - + "\004type\030\001 \001(\0162<.google.bigtable.v2.ReadCha" - + "ngeStreamResponse.DataChange.Type\022\031\n\021sou" - + "rce_cluster_id\030\002 \001(\t\022\017\n\007row_key\030\003 \001(\014\0224\n" - + "\020commit_timestamp\030\004 \001(\0132\032.google.protobu" - + "f.Timestamp\022\022\n\ntiebreaker\030\005 \001(\005\022J\n\006chunk" - + "s\030\006 \003(\0132:.google.bigtable.v2.ReadChangeS" - + "treamResponse.MutationChunk\022\014\n\004done\030\010 \001(" - + "\010\022\r\n\005token\030\t \001(\t\022;\n\027estimated_low_waterm" - + "ark\030\n \001(\0132\032.google.protobuf.Timestamp\"P\n" - + "\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\026\n" - + "\022GARBAGE_COLLECTION\020\002\022\020\n\014CONTINUATION\020\003\032" - + "\221\001\n\tHeartbeat\022G\n\022continuation_token\030\001 \001(" - + "\0132+.google.bigtable.v2.StreamContinuatio" - + "nToken\022;\n\027estimated_low_watermark\030\002 \001(\0132" - + "\032.google.protobuf.Timestamp\032\270\001\n\013CloseStr" - + "eam\022\"\n\006status\030\001 \001(\0132\022.google.rpc.Status\022" - + "H\n\023continuation_tokens\030\002 \003(\0132+.google.bi" - + "gtable.v2.StreamContinuationToken\022;\n\016new" - + "_partitions\030\003 \003(\0132#.google.bigtable.v2.S" - + "treamPartitionB\017\n\rstream_record\"\203\003\n\023Exec" - + "uteQueryRequest\022D\n\rinstance_name\030\001 \001(\tB-" - + "\340A\002\372A\'\n%bigtableadmin.googleapis.com/Ins" - + "tance\022\033\n\016app_profile_id\030\002 \001(\tB\003\340A\001\022\022\n\005qu" - + "ery\030\003 \001(\tB\003\340A\002\0227\n\014proto_format\030\004 \001(\0132\037.g" - + "oogle.bigtable.v2.ProtoFormatH\000\022\031\n\014resum" - + "e_token\030\010 \001(\014B\003\340A\001\022H\n\006params\030\007 \003(\01323.goo" - + "gle.bigtable.v2.ExecuteQueryRequest.Para" - + "msEntryB\003\340A\002\032H\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t" - + "\022(\n\005value\030\002 \001(\0132\031.google.bigtable.v2.Val" - + "ue:\0028\001B\r\n\013data_format\"\226\001\n\024ExecuteQueryRe" - + "sponse\0229\n\010metadata\030\001 \001(\0132%.google.bigtab" - + "le.v2.ResultSetMetadataH\000\0227\n\007results\030\002 \001" - + "(\0132$.google.bigtable.v2.PartialResultSet" - + "H\000B\n\n\010response2\235$\n\010Bigtable\022\333\003\n\010ReadRows" - + "\022#.google.bigtable.v2.ReadRowsRequest\032$." - + "google.bigtable.v2.ReadRowsResponse\"\201\003\332A" - + "\ntable_name\332A\031table_name,app_profile_id\202" - + "\323\344\223\002\232\001\"9/v2/{table_name=projects/*/insta" - + "nces/*/tables/*}:readRows:\001*ZZ\"U/v2/{aut" - + "horized_view_name=projects/*/instances/*" - + "/tables/*/authorizedViews/*}:readRows:\001*" - + "\212\323\344\223\002\260\001\022:\n\ntable_name\022,{table_name=proje" - + "cts/*/instances/*/tables/*}\022\020\n\016app_profi" - + "le_id\022`\n\024authorized_view_name\022H{authoriz" - + "ed_view_name=projects/*/instances/*/tabl" - + "es/*/authorizedViews/*}0\001\022\356\003\n\rSampleRowK" - + "eys\022(.google.bigtable.v2.SampleRowKeysRe" - + "quest\032).google.bigtable.v2.SampleRowKeys" - + "Response\"\205\003\332A\ntable_name\332A\031table_name,ap" - + "p_profile_id\202\323\344\223\002\236\001\022>/v2/{table_name=pro" - + "jects/*/instances/*/tables/*}:sampleRowK" - + "eysZ\\\022Z/v2/{authorized_view_name=project" - + "s/*/instances/*/tables/*/authorizedViews" - + "/*}:sampleRowKeys\212\323\344\223\002\260\001\022:\n\ntable_name\022," - + "{table_name=projects/*/instances/*/table" - + "s/*}\022\020\n\016app_profile_id\022`\n\024authorized_vie" - + "w_name\022H{authorized_view_name=projects/*" - + "/instances/*/tables/*/authorizedViews/*}" - + "0\001\022\202\004\n\tMutateRow\022$.google.bigtable.v2.Mu" - + "tateRowRequest\032%.google.bigtable.v2.Muta" - + "teRowResponse\"\247\003\332A\034table_name,row_key,mu" - + "tations\332A+table_name,row_key,mutations,a" - + "pp_profile_id\202\323\344\223\002\234\001\":/v2/{table_name=pr" - + "ojects/*/instances/*/tables/*}:mutateRow" - + ":\001*Z[\"V/v2/{authorized_view_name=project" - + "s/*/instances/*/tables/*/authorizedViews" - + "/*}:mutateRow:\001*\212\323\344\223\002\260\001\022:\n\ntable_name\022,{" - + "table_name=projects/*/instances/*/tables" - + "/*}\022\020\n\016app_profile_id\022`\n\024authorized_view" - + "_name\022H{authorized_view_name=projects/*/" - + "instances/*/tables/*/authorizedViews/*}\022" - + "\365\003\n\nMutateRows\022%.google.bigtable.v2.Muta" - + "teRowsRequest\032&.google.bigtable.v2.Mutat" - + "eRowsResponse\"\225\003\332A\022table_name,entries\332A!" - + "table_name,entries,app_profile_id\202\323\344\223\002\236\001" - + "\";/v2/{table_name=projects/*/instances/*" - + "/tables/*}:mutateRows:\001*Z\\\"W/v2/{authori" - + "zed_view_name=projects/*/instances/*/tab" - + "les/*/authorizedViews/*}:mutateRows:\001*\212\323" - + "\344\223\002\260\001\022:\n\ntable_name\022,{table_name=project" - + "s/*/instances/*/tables/*}\022\020\n\016app_profile" - + "_id\022`\n\024authorized_view_name\022H{authorized" - + "_view_name=projects/*/instances/*/tables" - + "/*/authorizedViews/*}0\001\022\366\004\n\021CheckAndMuta" - + "teRow\022,.google.bigtable.v2.CheckAndMutat" - + "eRowRequest\032-.google.bigtable.v2.CheckAn" - + "dMutateRowResponse\"\203\004\332ABtable_name,row_k" - + "ey,predicate_filter,true_mutations,false" - + "_mutations\332AQtable_name,row_key,predicat" - + "e_filter,true_mutations,false_mutations," - + "app_profile_id\202\323\344\223\002\254\001\"B/v2/{table_name=p" - + "rojects/*/instances/*/tables/*}:checkAnd" - + "MutateRow:\001*Zc\"^/v2/{authorized_view_nam" - + "e=projects/*/instances/*/tables/*/author" - + "izedViews/*}:checkAndMutateRow:\001*\212\323\344\223\002\260\001" - + "\022:\n\ntable_name\022,{table_name=projects/*/i" - + "nstances/*/tables/*}\022\020\n\016app_profile_id\022`" - + "\n\024authorized_view_name\022H{authorized_view" - + "_name=projects/*/instances/*/tables/*/au" - + "thorizedViews/*}\022\356\001\n\013PingAndWarm\022&.googl" - + "e.bigtable.v2.PingAndWarmRequest\032\'.googl" - + "e.bigtable.v2.PingAndWarmResponse\"\215\001\332A\004n" - + "ame\332A\023name,app_profile_id\202\323\344\223\002+\"&/v2/{na" - + "me=projects/*/instances/*}:ping:\001*\212\323\344\223\0029" - + "\022%\n\004name\022\035{name=projects/*/instances/*}\022" - + "\020\n\016app_profile_id\022\247\004\n\022ReadModifyWriteRow" - + "\022-.google.bigtable.v2.ReadModifyWriteRow" - + "Request\032..google.bigtable.v2.ReadModifyW" - + "riteRowResponse\"\261\003\332A\030table_name,row_key," - + "rules\332A\'table_name,row_key,rules,app_pro" - + "file_id\202\323\344\223\002\256\001\"C/v2/{table_name=projects" - + "/*/instances/*/tables/*}:readModifyWrite" - + "Row:\001*Zd\"_/v2/{authorized_view_name=proj" + + "able/v2/request_stats.proto\032\036google/bigt" + + "able/v2/types.proto\032\036google/protobuf/dur" + + "ation.proto\032\037google/protobuf/timestamp.p" + + "roto\032\036google/protobuf/wrappers.proto\032\027go" + + "ogle/rpc/status.proto\"\314\004\n\017ReadRowsReques" + + "t\022>\n\ntable_name\030\001 \001(\tB*\340A\001\372A$\n\"bigtablea" + + "dmin.googleapis.com/Table\022Q\n\024authorized_" + + "view_name\030\t \001(\tB3\340A\001\372A-\n+bigtableadmin.g" + + "oogleapis.com/AuthorizedView\022U\n\026material" + + "ized_view_name\030\013 \001(\tB5\340A\001\372A/\n-bigtablead" + + "min.googleapis.com/MaterializedView\022\026\n\016a" + + "pp_profile_id\030\005 \001(\t\022(\n\004rows\030\002 \001(\0132\032.goog" + + "le.bigtable.v2.RowSet\022-\n\006filter\030\003 \001(\0132\035." + + "google.bigtable.v2.RowFilter\022\022\n\nrows_lim" + + "it\030\004 \001(\003\022P\n\022request_stats_view\030\006 \001(\01624.g" + + "oogle.bigtable.v2.ReadRowsRequest.Reques" + + "tStatsView\022\020\n\010reversed\030\007 \001(\010\"f\n\020RequestS" + + "tatsView\022\"\n\036REQUEST_STATS_VIEW_UNSPECIFI" + + "ED\020\000\022\026\n\022REQUEST_STATS_NONE\020\001\022\026\n\022REQUEST_" + + "STATS_FULL\020\002\"\261\003\n\020ReadRowsResponse\022>\n\006chu" + + "nks\030\001 \003(\0132..google.bigtable.v2.ReadRowsR" + + "esponse.CellChunk\022\034\n\024last_scanned_row_ke" + + "y\030\002 \001(\014\0227\n\rrequest_stats\030\003 \001(\0132 .google." + + "bigtable.v2.RequestStats\032\205\002\n\tCellChunk\022\017" + + "\n\007row_key\030\001 \001(\014\0221\n\013family_name\030\002 \001(\0132\034.g" + + "oogle.protobuf.StringValue\022.\n\tqualifier\030" + + "\003 \001(\0132\033.google.protobuf.BytesValue\022\030\n\020ti" + + "mestamp_micros\030\004 \001(\003\022\016\n\006labels\030\005 \003(\t\022\r\n\005" + + "value\030\006 \001(\014\022\022\n\nvalue_size\030\007 \001(\005\022\023\n\treset" + + "_row\030\010 \001(\010H\000\022\024\n\ncommit_row\030\t \001(\010H\000B\014\n\nro" + + "w_status\"\230\002\n\024SampleRowKeysRequest\022>\n\ntab" + + "le_name\030\001 \001(\tB*\340A\001\372A$\n\"bigtableadmin.goo" + + "gleapis.com/Table\022Q\n\024authorized_view_nam" + + "e\030\004 \001(\tB3\340A\001\372A-\n+bigtableadmin.googleapi" + + "s.com/AuthorizedView\022U\n\026materialized_vie" + + "w_name\030\005 \001(\tB5\340A\001\372A/\n-bigtableadmin.goog" + + "leapis.com/MaterializedView\022\026\n\016app_profi" + + "le_id\030\002 \001(\t\">\n\025SampleRowKeysResponse\022\017\n\007" + + "row_key\030\001 \001(\014\022\024\n\014offset_bytes\030\002 \001(\003\"\211\002\n\020" + + "MutateRowRequest\022>\n\ntable_name\030\001 \001(\tB*\340A" + + "\001\372A$\n\"bigtableadmin.googleapis.com/Table" + + "\022Q\n\024authorized_view_name\030\006 \001(\tB3\340A\001\372A-\n+" + + "bigtableadmin.googleapis.com/AuthorizedV" + + "iew\022\026\n\016app_profile_id\030\004 \001(\t\022\024\n\007row_key\030\002" + + " \001(\014B\003\340A\002\0224\n\tmutations\030\003 \003(\0132\034.google.bi" + + "gtable.v2.MutationB\003\340A\002\"\023\n\021MutateRowResp" + + "onse\"\321\002\n\021MutateRowsRequest\022>\n\ntable_name" + + "\030\001 \001(\tB*\340A\001\372A$\n\"bigtableadmin.googleapis" + + ".com/Table\022Q\n\024authorized_view_name\030\005 \001(\t" + + "B3\340A\001\372A-\n+bigtableadmin.googleapis.com/A" + + "uthorizedView\022\026\n\016app_profile_id\030\003 \001(\t\022A\n" + + "\007entries\030\002 \003(\0132+.google.bigtable.v2.Muta" + + "teRowsRequest.EntryB\003\340A\002\032N\n\005Entry\022\017\n\007row" + + "_key\030\001 \001(\014\0224\n\tmutations\030\002 \003(\0132\034.google.b" + + "igtable.v2.MutationB\003\340A\002\"\344\001\n\022MutateRowsR" + + "esponse\022=\n\007entries\030\001 \003(\0132,.google.bigtab" + + "le.v2.MutateRowsResponse.Entry\022?\n\017rate_l" + + "imit_info\030\003 \001(\0132!.google.bigtable.v2.Rat" + + "eLimitInfoH\000\210\001\001\032:\n\005Entry\022\r\n\005index\030\001 \001(\003\022" + + "\"\n\006status\030\002 \001(\0132\022.google.rpc.StatusB\022\n\020_" + + "rate_limit_info\"J\n\rRateLimitInfo\022)\n\006peri" + + "od\030\001 \001(\0132\031.google.protobuf.Duration\022\016\n\006f" + + "actor\030\002 \001(\001\"\201\003\n\030CheckAndMutateRowRequest" + + "\022>\n\ntable_name\030\001 \001(\tB*\340A\001\372A$\n\"bigtablead" + + "min.googleapis.com/Table\022Q\n\024authorized_v" + + "iew_name\030\t \001(\tB3\340A\001\372A-\n+bigtableadmin.go" + + "ogleapis.com/AuthorizedView\022\026\n\016app_profi" + + "le_id\030\007 \001(\t\022\024\n\007row_key\030\002 \001(\014B\003\340A\002\0227\n\020pre" + + "dicate_filter\030\006 \001(\0132\035.google.bigtable.v2" + + ".RowFilter\0224\n\016true_mutations\030\004 \003(\0132\034.goo" + + "gle.bigtable.v2.Mutation\0225\n\017false_mutati" + + "ons\030\005 \003(\0132\034.google.bigtable.v2.Mutation\"" + + "6\n\031CheckAndMutateRowResponse\022\031\n\021predicat" + + "e_matched\030\001 \001(\010\"i\n\022PingAndWarmRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n%bigtableadmin.googl" + + "eapis.com/Instance\022\026\n\016app_profile_id\030\002 \001" + + "(\t\"\025\n\023PingAndWarmResponse\"\231\002\n\031ReadModify" + + "WriteRowRequest\022>\n\ntable_name\030\001 \001(\tB*\340A\001" + + "\372A$\n\"bigtableadmin.googleapis.com/Table\022" + + "Q\n\024authorized_view_name\030\006 \001(\tB3\340A\001\372A-\n+b" + + "igtableadmin.googleapis.com/AuthorizedVi" + + "ew\022\026\n\016app_profile_id\030\004 \001(\t\022\024\n\007row_key\030\002 " + + "\001(\014B\003\340A\002\022;\n\005rules\030\003 \003(\0132\'.google.bigtabl" + + "e.v2.ReadModifyWriteRuleB\003\340A\002\"B\n\032ReadMod" + + "ifyWriteRowResponse\022$\n\003row\030\001 \001(\0132\027.googl" + + "e.bigtable.v2.Row\"\206\001\n,GenerateInitialCha" + + "ngeStreamPartitionsRequest\022>\n\ntable_name" + + "\030\001 \001(\tB*\340A\002\372A$\n\"bigtableadmin.googleapis" + + ".com/Table\022\026\n\016app_profile_id\030\002 \001(\t\"g\n-Ge" + + "nerateInitialChangeStreamPartitionsRespo" + + "nse\0226\n\tpartition\030\001 \001(\0132#.google.bigtable" + + ".v2.StreamPartition\"\233\003\n\027ReadChangeStream" + + "Request\022>\n\ntable_name\030\001 \001(\tB*\340A\002\372A$\n\"big" + + "tableadmin.googleapis.com/Table\022\026\n\016app_p" + + "rofile_id\030\002 \001(\t\0226\n\tpartition\030\003 \001(\0132#.goo" + + "gle.bigtable.v2.StreamPartition\0220\n\nstart" + + "_time\030\004 \001(\0132\032.google.protobuf.TimestampH" + + "\000\022K\n\023continuation_tokens\030\006 \001(\0132,.google." + + "bigtable.v2.StreamContinuationTokensH\000\022," + + "\n\010end_time\030\005 \001(\0132\032.google.protobuf.Times" + + "tamp\0225\n\022heartbeat_duration\030\007 \001(\0132\031.googl" + + "e.protobuf.DurationB\014\n\nstart_from\"\251\n\n\030Re" + + "adChangeStreamResponse\022N\n\013data_change\030\001 " + + "\001(\01327.google.bigtable.v2.ReadChangeStrea" + + "mResponse.DataChangeH\000\022K\n\theartbeat\030\002 \001(" + + "\01326.google.bigtable.v2.ReadChangeStreamR" + + "esponse.HeartbeatH\000\022P\n\014close_stream\030\003 \001(" + + "\01328.google.bigtable.v2.ReadChangeStreamR" + + "esponse.CloseStreamH\000\032\364\001\n\rMutationChunk\022" + + "X\n\nchunk_info\030\001 \001(\0132D.google.bigtable.v2" + + ".ReadChangeStreamResponse.MutationChunk." + + "ChunkInfo\022.\n\010mutation\030\002 \001(\0132\034.google.big" + + "table.v2.Mutation\032Y\n\tChunkInfo\022\032\n\022chunke" + + "d_value_size\030\001 \001(\005\022\034\n\024chunked_value_offs" + + "et\030\002 \001(\005\022\022\n\nlast_chunk\030\003 \001(\010\032\306\003\n\nDataCha" + + "nge\022J\n\004type\030\001 \001(\0162<.google.bigtable.v2.R" + + "eadChangeStreamResponse.DataChange.Type\022" + + "\031\n\021source_cluster_id\030\002 \001(\t\022\017\n\007row_key\030\003 " + + "\001(\014\0224\n\020commit_timestamp\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022\022\n\ntiebreaker\030\005 \001(\005\022J\n" + + "\006chunks\030\006 \003(\0132:.google.bigtable.v2.ReadC" + + "hangeStreamResponse.MutationChunk\022\014\n\004don" + + "e\030\010 \001(\010\022\r\n\005token\030\t \001(\t\022;\n\027estimated_low_" + + "watermark\030\n \001(\0132\032.google.protobuf.Timest" + + "amp\"P\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\010\n\004USE" + + "R\020\001\022\026\n\022GARBAGE_COLLECTION\020\002\022\020\n\014CONTINUAT" + + "ION\020\003\032\221\001\n\tHeartbeat\022G\n\022continuation_toke" + + "n\030\001 \001(\0132+.google.bigtable.v2.StreamConti" + + "nuationToken\022;\n\027estimated_low_watermark\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp\032\270\001\n\013Cl" + + "oseStream\022\"\n\006status\030\001 \001(\0132\022.google.rpc.S" + + "tatus\022H\n\023continuation_tokens\030\002 \003(\0132+.goo" + + "gle.bigtable.v2.StreamContinuationToken\022" + + ";\n\016new_partitions\030\003 \003(\0132#.google.bigtabl" + + "e.v2.StreamPartitionB\017\n\rstream_record\"\241\003" + + "\n\023ExecuteQueryRequest\022D\n\rinstance_name\030\001" + + " \001(\tB-\340A\002\372A\'\n%bigtableadmin.googleapis.c" + + "om/Instance\022\033\n\016app_profile_id\030\002 \001(\tB\003\340A\001" + + "\022\024\n\005query\030\003 \001(\tB\005\030\001\340A\002\022\026\n\016prepared_query" + + "\030\t \001(\014\022;\n\014proto_format\030\004 \001(\0132\037.google.bi" + + "gtable.v2.ProtoFormatB\002\030\001H\000\022\031\n\014resume_to" + + "ken\030\010 \001(\014B\003\340A\001\022H\n\006params\030\007 \003(\01323.google." + + "bigtable.v2.ExecuteQueryRequest.ParamsEn" + + "tryB\003\340A\002\032H\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022(\n\005" + + "value\030\002 \001(\0132\031.google.bigtable.v2.Value:\002" + + "8\001B\r\n\013data_format\"\226\001\n\024ExecuteQueryRespon" + + "se\0229\n\010metadata\030\001 \001(\0132%.google.bigtable.v" + + "2.ResultSetMetadataH\000\0227\n\007results\030\002 \001(\0132$" + + ".google.bigtable.v2.PartialResultSetH\000B\n" + + "\n\010response\"\364\002\n\023PrepareQueryRequest\022D\n\rin" + + "stance_name\030\001 \001(\tB-\340A\002\372A\'\n%bigtableadmin" + + ".googleapis.com/Instance\022\033\n\016app_profile_" + + "id\030\002 \001(\tB\003\340A\001\022\022\n\005query\030\003 \001(\tB\003\340A\002\0227\n\014pro" + + "to_format\030\004 \001(\0132\037.google.bigtable.v2.Pro" + + "toFormatH\000\022Q\n\013param_types\030\006 \003(\01327.google" + + ".bigtable.v2.PrepareQueryRequest.ParamTy" + + "pesEntryB\003\340A\002\032K\n\017ParamTypesEntry\022\013\n\003key\030" + + "\001 \001(\t\022\'\n\005value\030\002 \001(\0132\030.google.bigtable.v" + + "2.Type:\0028\001B\r\n\013data_format\"\230\001\n\024PrepareQue" + + "ryResponse\0227\n\010metadata\030\001 \001(\0132%.google.bi" + + "gtable.v2.ResultSetMetadata\022\026\n\016prepared_" + + "query\030\002 \001(\014\022/\n\013valid_until\030\003 \001(\0132\032.googl" + + "e.protobuf.Timestamp2\311&\n\010Bigtable\022\333\003\n\010Re" + + "adRows\022#.google.bigtable.v2.ReadRowsRequ" + + "est\032$.google.bigtable.v2.ReadRowsRespons" + + "e\"\201\003\332A\ntable_name\332A\031table_name,app_profi" + + "le_id\202\323\344\223\002\232\001\"9/v2/{table_name=projects/*" + + "/instances/*/tables/*}:readRows:\001*ZZ\"U/v" + + "2/{authorized_view_name=projects/*/insta" + + "nces/*/tables/*/authorizedViews/*}:readR" + + "ows:\001*\212\323\344\223\002\260\001\022:\n\ntable_name\022,{table_name" + + "=projects/*/instances/*/tables/*}\022\020\n\016app" + + "_profile_id\022`\n\024authorized_view_name\022H{au" + + "thorized_view_name=projects/*/instances/" + + "*/tables/*/authorizedViews/*}0\001\022\356\003\n\rSamp" + + "leRowKeys\022(.google.bigtable.v2.SampleRow" + + "KeysRequest\032).google.bigtable.v2.SampleR" + + "owKeysResponse\"\205\003\332A\ntable_name\332A\031table_n" + + "ame,app_profile_id\202\323\344\223\002\236\001\022>/v2/{table_na" + + "me=projects/*/instances/*/tables/*}:samp" + + "leRowKeysZ\\\022Z/v2/{authorized_view_name=p" + + "rojects/*/instances/*/tables/*/authorize" + + "dViews/*}:sampleRowKeys\212\323\344\223\002\260\001\022:\n\ntable_" + + "name\022,{table_name=projects/*/instances/*" + + "/tables/*}\022\020\n\016app_profile_id\022`\n\024authoriz" + + "ed_view_name\022H{authorized_view_name=proj" + "ects/*/instances/*/tables/*/authorizedVi" - + "ews/*}:readModifyWriteRow:\001*\212\323\344\223\002\260\001\022:\n\nt" - + "able_name\022,{table_name=projects/*/instan" - + "ces/*/tables/*}\022\020\n\016app_profile_id\022`\n\024aut" - + "horized_view_name\022H{authorized_view_name" - + "=projects/*/instances/*/tables/*/authori" - + "zedViews/*}\022\273\002\n%GenerateInitialChangeStr" - + "eamPartitions\022@.google.bigtable.v2.Gener" - + "ateInitialChangeStreamPartitionsRequest\032" - + "A.google.bigtable.v2.GenerateInitialChan" - + "geStreamPartitionsResponse\"\212\001\332A\ntable_na" - + "me\332A\031table_name,app_profile_id\202\323\344\223\002[\"V/v" - + "2/{table_name=projects/*/instances/*/tab" - + "les/*}:generateInitialChangeStreamPartit" - + "ions:\001*0\001\022\346\001\n\020ReadChangeStream\022+.google." - + "bigtable.v2.ReadChangeStreamRequest\032,.go" - + "ogle.bigtable.v2.ReadChangeStreamRespons" - + "e\"u\332A\ntable_name\332A\031table_name,app_profil" - + "e_id\202\323\344\223\002F\"A/v2/{table_name=projects/*/i" - + "nstances/*/tables/*}:readChangeStream:\001*" - + "0\001\022\253\002\n\014ExecuteQuery\022\'.google.bigtable.v2" - + ".ExecuteQueryRequest\032(.google.bigtable.v" - + "2.ExecuteQueryResponse\"\305\001\332A\023instance_nam" - + "e,query\332A\"instance_name,query,app_profil" - + "e_id\202\323\344\223\002<\"7/v2/{instance_name=projects/" - + "*/instances/*}:executeQuery:\001*\212\323\344\223\002B\022.\n\r" - + "instance_name\022\035{name=projects/*/instance" - + "s/*}\022\020\n\016app_profile_id0\001\032\333\002\312A\027bigtable.g" - + "oogleapis.com\322A\275\002https://www.googleapis." - + "com/auth/bigtable.data,https://www.googl" - + "eapis.com/auth/bigtable.data.readonly,ht" - + "tps://www.googleapis.com/auth/cloud-bigt" - + "able.data,https://www.googleapis.com/aut" - + "h/cloud-bigtable.data.readonly,https://w" - + "ww.googleapis.com/auth/cloud-platform,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form.read-onlyB\364\003\n\026com.google.bigtable.v" - + "2B\rBigtableProtoP\001Z8cloud.google.com/go/" - + "bigtable/apiv2/bigtablepb;bigtablepb\252\002\030G" - + "oogle.Cloud.Bigtable.V2\312\002\030Google\\Cloud\\B" - + "igtable\\V2\352\002\033Google::Cloud::Bigtable::V2" - + "\352AP\n%bigtableadmin.googleapis.com/Instan" - + "ce\022\'projects/{project}/instances/{instan" - + "ce}\352A\\\n\"bigtableadmin.googleapis.com/Tab" - + "le\0226projects/{project}/instances/{instan" - + "ce}/tables/{table}\352A\207\001\n+bigtableadmin.go" - + "ogleapis.com/AuthorizedView\022Xprojects/{p" - + "roject}/instances/{instance}/tables/{tab" - + "le}/authorizedViews/{authorized_view}b\006p" - + "roto3" + + "ews/*}0\001\022\202\004\n\tMutateRow\022$.google.bigtable" + + ".v2.MutateRowRequest\032%.google.bigtable.v" + + "2.MutateRowResponse\"\247\003\332A\034table_name,row_" + + "key,mutations\332A+table_name,row_key,mutat" + + "ions,app_profile_id\202\323\344\223\002\234\001\":/v2/{table_n" + + "ame=projects/*/instances/*/tables/*}:mut" + + "ateRow:\001*Z[\"V/v2/{authorized_view_name=p" + + "rojects/*/instances/*/tables/*/authorize" + + "dViews/*}:mutateRow:\001*\212\323\344\223\002\260\001\022:\n\ntable_n" + + "ame\022,{table_name=projects/*/instances/*/" + + "tables/*}\022\020\n\016app_profile_id\022`\n\024authorize" + + "d_view_name\022H{authorized_view_name=proje" + + "cts/*/instances/*/tables/*/authorizedVie" + + "ws/*}\022\365\003\n\nMutateRows\022%.google.bigtable.v" + + "2.MutateRowsRequest\032&.google.bigtable.v2" + + ".MutateRowsResponse\"\225\003\332A\022table_name,entr" + + "ies\332A!table_name,entries,app_profile_id\202" + + "\323\344\223\002\236\001\";/v2/{table_name=projects/*/insta" + + "nces/*/tables/*}:mutateRows:\001*Z\\\"W/v2/{a" + + "uthorized_view_name=projects/*/instances" + + "/*/tables/*/authorizedViews/*}:mutateRow" + + "s:\001*\212\323\344\223\002\260\001\022:\n\ntable_name\022,{table_name=p" + + "rojects/*/instances/*/tables/*}\022\020\n\016app_p" + + "rofile_id\022`\n\024authorized_view_name\022H{auth" + + "orized_view_name=projects/*/instances/*/" + + "tables/*/authorizedViews/*}0\001\022\366\004\n\021CheckA" + + "ndMutateRow\022,.google.bigtable.v2.CheckAn" + + "dMutateRowRequest\032-.google.bigtable.v2.C" + + "heckAndMutateRowResponse\"\203\004\332ABtable_name" + + ",row_key,predicate_filter,true_mutations" + + ",false_mutations\332AQtable_name,row_key,pr" + + "edicate_filter,true_mutations,false_muta" + + "tions,app_profile_id\202\323\344\223\002\254\001\"B/v2/{table_" + + "name=projects/*/instances/*/tables/*}:ch" + + "eckAndMutateRow:\001*Zc\"^/v2/{authorized_vi" + + "ew_name=projects/*/instances/*/tables/*/" + + "authorizedViews/*}:checkAndMutateRow:\001*\212" + + "\323\344\223\002\260\001\022:\n\ntable_name\022,{table_name=projec" + + "ts/*/instances/*/tables/*}\022\020\n\016app_profil" + + "e_id\022`\n\024authorized_view_name\022H{authorize" + + "d_view_name=projects/*/instances/*/table" + + "s/*/authorizedViews/*}\022\356\001\n\013PingAndWarm\022&" + + ".google.bigtable.v2.PingAndWarmRequest\032\'" + + ".google.bigtable.v2.PingAndWarmResponse\"" + + "\215\001\332A\004name\332A\023name,app_profile_id\202\323\344\223\002+\"&/" + + "v2/{name=projects/*/instances/*}:ping:\001*" + + "\212\323\344\223\0029\022%\n\004name\022\035{name=projects/*/instanc" + + "es/*}\022\020\n\016app_profile_id\022\247\004\n\022ReadModifyWr" + + "iteRow\022-.google.bigtable.v2.ReadModifyWr" + + "iteRowRequest\032..google.bigtable.v2.ReadM" + + "odifyWriteRowResponse\"\261\003\332A\030table_name,ro" + + "w_key,rules\332A\'table_name,row_key,rules,a" + + "pp_profile_id\202\323\344\223\002\256\001\"C/v2/{table_name=pr" + + "ojects/*/instances/*/tables/*}:readModif" + + "yWriteRow:\001*Zd\"_/v2/{authorized_view_nam" + + "e=projects/*/instances/*/tables/*/author" + + "izedViews/*}:readModifyWriteRow:\001*\212\323\344\223\002\260" + + "\001\022:\n\ntable_name\022,{table_name=projects/*/" + + "instances/*/tables/*}\022\020\n\016app_profile_id\022" + + "`\n\024authorized_view_name\022H{authorized_vie" + + "w_name=projects/*/instances/*/tables/*/a" + + "uthorizedViews/*}\022\273\002\n%GenerateInitialCha" + + "ngeStreamPartitions\022@.google.bigtable.v2" + + ".GenerateInitialChangeStreamPartitionsRe" + + "quest\032A.google.bigtable.v2.GenerateIniti" + + "alChangeStreamPartitionsResponse\"\212\001\332A\nta" + + "ble_name\332A\031table_name,app_profile_id\202\323\344\223" + + "\002[\"V/v2/{table_name=projects/*/instances" + + "/*/tables/*}:generateInitialChangeStream" + + "Partitions:\001*0\001\022\346\001\n\020ReadChangeStream\022+.g" + + "oogle.bigtable.v2.ReadChangeStreamReques" + + "t\032,.google.bigtable.v2.ReadChangeStreamR" + + "esponse\"u\332A\ntable_name\332A\031table_name,app_" + + "profile_id\202\323\344\223\002F\"A/v2/{table_name=projec" + + "ts/*/instances/*/tables/*}:readChangeStr" + + "eam:\001*0\001\022\251\002\n\014PrepareQuery\022\'.google.bigta" + + "ble.v2.PrepareQueryRequest\032(.google.bigt" + + "able.v2.PrepareQueryResponse\"\305\001\332A\023instan" + + "ce_name,query\332A\"instance_name,query,app_" + + "profile_id\202\323\344\223\002<\"7/v2/{instance_name=pro" + + "jects/*/instances/*}:prepareQuery:\001*\212\323\344\223" + + "\002B\022.\n\rinstance_name\022\035{name=projects/*/in" + + "stances/*}\022\020\n\016app_profile_id\022\253\002\n\014Execute" + + "Query\022\'.google.bigtable.v2.ExecuteQueryR" + + "equest\032(.google.bigtable.v2.ExecuteQuery" + + "Response\"\305\001\332A\023instance_name,query\332A\"inst" + + "ance_name,query,app_profile_id\202\323\344\223\002<\"7/v" + + "2/{instance_name=projects/*/instances/*}" + + ":executeQuery:\001*\212\323\344\223\002B\022.\n\rinstance_name\022" + + "\035{name=projects/*/instances/*}\022\020\n\016app_pr" + + "ofile_id0\001\032\333\002\312A\027bigtable.googleapis.com\322" + + "A\275\002https://www.googleapis.com/auth/bigta" + + "ble.data,https://www.googleapis.com/auth" + + "/bigtable.data.readonly,https://www.goog" + + "leapis.com/auth/cloud-bigtable.data,http" + + "s://www.googleapis.com/auth/cloud-bigtab" + + "le.data.readonly,https://www.googleapis." + + "com/auth/cloud-platform,https://www.goog" + + "leapis.com/auth/cloud-platform.read-only" + + "B\365\004\n\026com.google.bigtable.v2B\rBigtablePro" + + "toP\001Z8cloud.google.com/go/bigtable/apiv2" + + "/bigtablepb;bigtablepb\252\002\030Google.Cloud.Bi" + + "gtable.V2\312\002\030Google\\Cloud\\Bigtable\\V2\352\002\033G" + + "oogle::Cloud::Bigtable::V2\352AP\n%bigtablea" + + "dmin.googleapis.com/Instance\022\'projects/{" + + "project}/instances/{instance}\352A\\\n\"bigtab" + + "leadmin.googleapis.com/Table\0226projects/{" + + "project}/instances/{instance}/tables/{ta" + + "ble}\352A\207\001\n+bigtableadmin.googleapis.com/A" + + "uthorizedView\022Xprojects/{project}/instan" + + "ces/{instance}/tables/{table}/authorized" + + "Views/{authorized_view}\352A~\n-bigtableadmi" + + "n.googleapis.com/MaterializedView\022Mproje" + + "cts/{project}/instances/{instance}/mater" + + "ializedViews/{materialized_view}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -448,6 +489,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.RoutingProto.getDescriptor(), com.google.bigtable.v2.DataProto.getDescriptor(), com.google.bigtable.v2.RequestStatsProto.getDescriptor(), + com.google.bigtable.v2.TypesProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), @@ -461,6 +503,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TableName", "AuthorizedViewName", + "MaterializedViewName", "AppProfileId", "Rows", "Filter", @@ -499,7 +542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_v2_SampleRowKeysRequest_descriptor, new java.lang.String[] { - "TableName", "AuthorizedViewName", "AppProfileId", + "TableName", "AuthorizedViewName", "MaterializedViewName", "AppProfileId", }); internal_static_google_bigtable_v2_SampleRowKeysResponse_descriptor = getDescriptor().getMessageTypes().get(3); @@ -721,6 +764,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceName", "AppProfileId", "Query", + "PreparedQuery", "ProtoFormat", "ResumeToken", "Params", @@ -742,6 +786,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Metadata", "Results", "Response", }); + internal_static_google_bigtable_v2_PrepareQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_bigtable_v2_PrepareQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_v2_PrepareQueryRequest_descriptor, + new java.lang.String[] { + "InstanceName", "AppProfileId", "Query", "ProtoFormat", "ParamTypes", "DataFormat", + }); + internal_static_google_bigtable_v2_PrepareQueryRequest_ParamTypesEntry_descriptor = + internal_static_google_bigtable_v2_PrepareQueryRequest_descriptor.getNestedTypes().get(0); + internal_static_google_bigtable_v2_PrepareQueryRequest_ParamTypesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_v2_PrepareQueryRequest_ParamTypesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_bigtable_v2_PrepareQueryResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_bigtable_v2_PrepareQueryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_v2_PrepareQueryResponse_descriptor, + new java.lang.String[] { + "Metadata", "PreparedQuery", "ValidUntil", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -761,6 +829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.RoutingProto.getDescriptor(); com.google.bigtable.v2.DataProto.getDescriptor(); com.google.bigtable.v2.RequestStatsProto.getDescriptor(); + com.google.bigtable.v2.TypesProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/DataProto.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/DataProto.java index 1bb0462d0098..9fa2340c1a61 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/DataProto.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/DataProto.java @@ -280,15 +280,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gtable.v2.ProtoSchemaH\000B\010\n\006schema\"6\n\tPro" + "toRows\022)\n\006values\030\002 \003(\0132\031.google.bigtable" + ".v2.Value\"$\n\016ProtoRowsBatch\022\022\n\nbatch_dat" - + "a\030\001 \001(\014\"\226\001\n\020PartialResultSet\022>\n\020proto_ro" + + "a\030\001 \001(\014\"\325\001\n\020PartialResultSet\022>\n\020proto_ro" + "ws_batch\030\003 \001(\0132\".google.bigtable.v2.Prot" - + "oRowsBatchH\000\022\024\n\014resume_token\030\005 \001(\014\022\034\n\024es" - + "timated_batch_size\030\004 \001(\005B\016\n\014partial_rows" - + "B\263\001\n\026com.google.bigtable.v2B\tDataProtoP\001" - + "Z8cloud.google.com/go/bigtable/apiv2/big" - + "tablepb;bigtablepb\252\002\030Google.Cloud.Bigtab" - + "le.V2\312\002\030Google\\Cloud\\Bigtable\\V2\352\002\033Googl" - + "e::Cloud::Bigtable::V2b\006proto3" + + "oRowsBatchH\000\022\033\n\016batch_checksum\030\006 \001(\rH\001\210\001" + + "\001\022\024\n\014resume_token\030\005 \001(\014\022\r\n\005reset\030\007 \001(\010\022\034" + + "\n\024estimated_batch_size\030\004 \001(\005B\016\n\014partial_" + + "rowsB\021\n\017_batch_checksumB\263\001\n\026com.google.b" + + "igtable.v2B\tDataProtoP\001Z8cloud.google.co" + + "m/go/bigtable/apiv2/bigtablepb;bigtablep" + + "b\252\002\030Google.Cloud.Bigtable.V2\312\002\030Google\\Cl" + + "oud\\Bigtable\\V2\352\002\033Google::Cloud::Bigtabl" + + "e::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -597,7 +599,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_v2_PartialResultSet_descriptor, new java.lang.String[] { - "ProtoRowsBatch", "ResumeToken", "EstimatedBatchSize", "PartialRows", + "ProtoRowsBatch", + "BatchChecksum", + "ResumeToken", + "Reset", + "EstimatedBatchSize", + "PartialRows", }); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.bigtable.v2.TypesProto.getDescriptor(); diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequest.java index 0798a1b6713f..e151afb0318a 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequest.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequest.java @@ -42,6 +42,7 @@ private ExecuteQueryRequest() { instanceName_ = ""; appProfileId_ = ""; query_ = ""; + preparedQuery_ = com.google.protobuf.ByteString.EMPTY; resumeToken_ = com.google.protobuf.ByteString.EMPTY; } @@ -87,6 +88,7 @@ public enum DataFormatCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + @java.lang.Deprecated PROTO_FORMAT(4), DATAFORMAT_NOT_SET(0); private final int value; @@ -245,13 +247,19 @@ public com.google.protobuf.ByteString getAppProfileIdBytes() { * *
        * Required. The query string.
    +   *
    +   * Exactly one of `query` and `prepared_query` is required. Setting both
    +   * or neither is an `INVALID_ARGUMENT`.
        * 
    * - * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1090 * @return The query. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getQuery() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { @@ -268,13 +276,19 @@ public java.lang.String getQuery() { * *
        * Required. The query string.
    +   *
    +   * Exactly one of `query` and `prepared_query` is required. Setting both
    +   * or neither is an `INVALID_ARGUMENT`.
        * 
    * - * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1090 * @return The bytes for query. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { @@ -287,6 +301,32 @@ public com.google.protobuf.ByteString getQueryBytes() { } } + public static final int PREPARED_QUERY_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString preparedQuery_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
    +   * A prepared query that was returned from `PrepareQueryResponse`.
    +   *
    +   * Exactly one of `query` and `prepared_query` is required. Setting both
    +   * or neither is an `INVALID_ARGUMENT`.
    +   *
    +   * Setting this field also places restrictions on several other fields:
    +   * - `data_format` must be empty.
    +   * - `validate_only` must be false.
    +   * - `params` must match the `param_types` set in the `PrepareQueryRequest`.
    +   * 
    + * + * bytes prepared_query = 9; + * + * @return The preparedQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreparedQuery() { + return preparedQuery_; + } + public static final int PROTO_FORMAT_FIELD_NUMBER = 4; /** * @@ -296,11 +336,14 @@ public com.google.protobuf.ByteString getQueryBytes() { * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1111 * @return Whether the protoFormat field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasProtoFormat() { return dataFormatCase_ == 4; } @@ -312,11 +355,14 @@ public boolean hasProtoFormat() { * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1111 * @return The protoFormat. */ @java.lang.Override + @java.lang.Deprecated public com.google.bigtable.v2.ProtoFormat getProtoFormat() { if (dataFormatCase_ == 4) { return (com.google.bigtable.v2.ProtoFormat) dataFormat_; @@ -331,9 +377,10 @@ public com.google.bigtable.v2.ProtoFormat getProtoFormat() { * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; */ @java.lang.Override + @java.lang.Deprecated public com.google.bigtable.v2.ProtoFormatOrBuilder getProtoFormatOrBuilder() { if (dataFormatCase_ == 4) { return (com.google.bigtable.v2.ProtoFormat) dataFormat_; @@ -406,17 +453,21 @@ public int getParamsCount() { * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. + * + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -448,17 +499,21 @@ public java.util.Map getParams() * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -481,17 +536,21 @@ public java.util.Map getParamsMa * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. + * + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -522,17 +581,21 @@ public java.util.Map getParamsMa * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -583,6 +646,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!resumeToken_.isEmpty()) { output.writeBytes(8, resumeToken_); } + if (!preparedQuery_.isEmpty()) { + output.writeBytes(9, preparedQuery_); + } getUnknownFields().writeTo(output); } @@ -619,6 +685,9 @@ public int getSerializedSize() { if (!resumeToken_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, resumeToken_); } + if (!preparedQuery_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, preparedQuery_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -638,6 +707,7 @@ public boolean equals(final java.lang.Object obj) { if (!getInstanceName().equals(other.getInstanceName())) return false; if (!getAppProfileId().equals(other.getAppProfileId())) return false; if (!getQuery().equals(other.getQuery())) return false; + if (!getPreparedQuery().equals(other.getPreparedQuery())) return false; if (!getResumeToken().equals(other.getResumeToken())) return false; if (!internalGetParams().equals(other.internalGetParams())) return false; if (!getDataFormatCase().equals(other.getDataFormatCase())) return false; @@ -665,6 +735,8 @@ public int hashCode() { hash = (53 * hash) + getAppProfileId().hashCode(); hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + PREPARED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getPreparedQuery().hashCode(); hash = (37 * hash) + RESUME_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getResumeToken().hashCode(); if (!internalGetParams().getMap().isEmpty()) { @@ -843,6 +915,7 @@ public Builder clear() { instanceName_ = ""; appProfileId_ = ""; query_ = ""; + preparedQuery_ = com.google.protobuf.ByteString.EMPTY; if (protoFormatBuilder_ != null) { protoFormatBuilder_.clear(); } @@ -896,10 +969,13 @@ private void buildPartial0(com.google.bigtable.v2.ExecuteQueryRequest result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.query_ = query_; } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.resumeToken_ = resumeToken_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.preparedQuery_ = preparedQuery_; } if (((from_bitField0_ & 0x00000020) != 0)) { + result.resumeToken_ = resumeToken_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.params_ = internalGetParams().build(ParamsDefaultEntryHolder.defaultEntry); } } @@ -972,11 +1048,14 @@ public Builder mergeFrom(com.google.bigtable.v2.ExecuteQueryRequest other) { bitField0_ |= 0x00000004; onChanged(); } + if (other.getPreparedQuery() != com.google.protobuf.ByteString.EMPTY) { + setPreparedQuery(other.getPreparedQuery()); + } if (other.getResumeToken() != com.google.protobuf.ByteString.EMPTY) { setResumeToken(other.getResumeToken()); } internalGetMutableParams().mergeFrom(other.internalGetParams()); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; switch (other.getDataFormatCase()) { case PROTO_FORMAT: { @@ -1048,15 +1127,21 @@ public Builder mergeFrom( internalGetMutableParams() .ensureBuilderMap() .put(params__.getKey(), params__.getValue()); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 58 case 66: { resumeToken_ = input.readBytes(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 66 + case 74: + { + preparedQuery_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1333,12 +1418,18 @@ public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { * *
          * Required. The query string.
    +     *
    +     * Exactly one of `query` and `prepared_query` is required. Setting both
    +     * or neither is an `INVALID_ARGUMENT`.
          * 
    * - * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1090 * @return The query. */ + @java.lang.Deprecated public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { @@ -1355,12 +1446,18 @@ public java.lang.String getQuery() { * *
          * Required. The query string.
    +     *
    +     * Exactly one of `query` and `prepared_query` is required. Setting both
    +     * or neither is an `INVALID_ARGUMENT`.
          * 
    * - * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1090 * @return The bytes for query. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { @@ -1377,13 +1474,19 @@ public com.google.protobuf.ByteString getQueryBytes() { * *
          * Required. The query string.
    +     *
    +     * Exactly one of `query` and `prepared_query` is required. Setting both
    +     * or neither is an `INVALID_ARGUMENT`.
          * 
    * - * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1090 * @param value The query to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setQuery(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1398,12 +1501,18 @@ public Builder setQuery(java.lang.String value) { * *
          * Required. The query string.
    +     *
    +     * Exactly one of `query` and `prepared_query` is required. Setting both
    +     * or neither is an `INVALID_ARGUMENT`.
          * 
    * - * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1090 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearQuery() { query_ = getDefaultInstance().getQuery(); bitField0_ = (bitField0_ & ~0x00000004); @@ -1415,13 +1524,19 @@ public Builder clearQuery() { * *
          * Required. The query string.
    +     *
    +     * Exactly one of `query` and `prepared_query` is required. Setting both
    +     * or neither is an `INVALID_ARGUMENT`.
          * 
    * - * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1090 * @param value The bytes for query to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1433,6 +1548,85 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.ByteString preparedQuery_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
    +     * A prepared query that was returned from `PrepareQueryResponse`.
    +     *
    +     * Exactly one of `query` and `prepared_query` is required. Setting both
    +     * or neither is an `INVALID_ARGUMENT`.
    +     *
    +     * Setting this field also places restrictions on several other fields:
    +     * - `data_format` must be empty.
    +     * - `validate_only` must be false.
    +     * - `params` must match the `param_types` set in the `PrepareQueryRequest`.
    +     * 
    + * + * bytes prepared_query = 9; + * + * @return The preparedQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreparedQuery() { + return preparedQuery_; + } + /** + * + * + *
    +     * A prepared query that was returned from `PrepareQueryResponse`.
    +     *
    +     * Exactly one of `query` and `prepared_query` is required. Setting both
    +     * or neither is an `INVALID_ARGUMENT`.
    +     *
    +     * Setting this field also places restrictions on several other fields:
    +     * - `data_format` must be empty.
    +     * - `validate_only` must be false.
    +     * - `params` must match the `param_types` set in the `PrepareQueryRequest`.
    +     * 
    + * + * bytes prepared_query = 9; + * + * @param value The preparedQuery to set. + * @return This builder for chaining. + */ + public Builder setPreparedQuery(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + preparedQuery_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * A prepared query that was returned from `PrepareQueryResponse`.
    +     *
    +     * Exactly one of `query` and `prepared_query` is required. Setting both
    +     * or neither is an `INVALID_ARGUMENT`.
    +     *
    +     * Setting this field also places restrictions on several other fields:
    +     * - `data_format` must be empty.
    +     * - `validate_only` must be false.
    +     * - `params` must match the `param_types` set in the `PrepareQueryRequest`.
    +     * 
    + * + * bytes prepared_query = 9; + * + * @return This builder for chaining. + */ + public Builder clearPreparedQuery() { + bitField0_ = (bitField0_ & ~0x00000008); + preparedQuery_ = getDefaultInstance().getPreparedQuery(); + onChanged(); + return this; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.bigtable.v2.ProtoFormat, com.google.bigtable.v2.ProtoFormat.Builder, @@ -1446,11 +1640,14 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1111 * @return Whether the protoFormat field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasProtoFormat() { return dataFormatCase_ == 4; } @@ -1462,11 +1659,14 @@ public boolean hasProtoFormat() { * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1111 * @return The protoFormat. */ @java.lang.Override + @java.lang.Deprecated public com.google.bigtable.v2.ProtoFormat getProtoFormat() { if (protoFormatBuilder_ == null) { if (dataFormatCase_ == 4) { @@ -1488,8 +1688,9 @@ public com.google.bigtable.v2.ProtoFormat getProtoFormat() { * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; */ + @java.lang.Deprecated public Builder setProtoFormat(com.google.bigtable.v2.ProtoFormat value) { if (protoFormatBuilder_ == null) { if (value == null) { @@ -1511,8 +1712,9 @@ public Builder setProtoFormat(com.google.bigtable.v2.ProtoFormat value) { * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; */ + @java.lang.Deprecated public Builder setProtoFormat(com.google.bigtable.v2.ProtoFormat.Builder builderForValue) { if (protoFormatBuilder_ == null) { dataFormat_ = builderForValue.build(); @@ -1531,8 +1733,9 @@ public Builder setProtoFormat(com.google.bigtable.v2.ProtoFormat.Builder builder * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; */ + @java.lang.Deprecated public Builder mergeProtoFormat(com.google.bigtable.v2.ProtoFormat value) { if (protoFormatBuilder_ == null) { if (dataFormatCase_ == 4 @@ -1564,8 +1767,9 @@ public Builder mergeProtoFormat(com.google.bigtable.v2.ProtoFormat value) { * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearProtoFormat() { if (protoFormatBuilder_ == null) { if (dataFormatCase_ == 4) { @@ -1590,8 +1794,9 @@ public Builder clearProtoFormat() { * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; */ + @java.lang.Deprecated public com.google.bigtable.v2.ProtoFormat.Builder getProtoFormatBuilder() { return getProtoFormatFieldBuilder().getBuilder(); } @@ -1603,9 +1808,10 @@ public com.google.bigtable.v2.ProtoFormat.Builder getProtoFormatBuilder() { * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; */ @java.lang.Override + @java.lang.Deprecated public com.google.bigtable.v2.ProtoFormatOrBuilder getProtoFormatOrBuilder() { if ((dataFormatCase_ == 4) && (protoFormatBuilder_ != null)) { return protoFormatBuilder_.getMessageOrBuilder(); @@ -1624,7 +1830,7 @@ public com.google.bigtable.v2.ProtoFormatOrBuilder getProtoFormatOrBuilder() { * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.bigtable.v2.ProtoFormat, @@ -1695,7 +1901,7 @@ public Builder setResumeToken(com.google.protobuf.ByteString value) { throw new NullPointerException(); } resumeToken_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1717,7 +1923,7 @@ public Builder setResumeToken(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearResumeToken() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); resumeToken_ = getDefaultInstance().getResumeToken(); onChanged(); return this; @@ -1771,7 +1977,7 @@ public com.google.bigtable.v2.Value build(com.google.bigtable.v2.ValueOrBuilder if (params_ == null) { params_ = new com.google.protobuf.MapFieldBuilder<>(paramsConverter); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return params_; } @@ -1791,17 +1997,21 @@ public int getParamsCount() { * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -1833,17 +2043,21 @@ public java.util.Map getParams() * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. + * + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -1866,17 +2080,21 @@ public java.util.Map getParamsMa * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -1907,17 +2125,21 @@ public java.util.Map getParamsMa * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. + * + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -1938,7 +2160,7 @@ public com.google.bigtable.v2.Value getParamsOrThrow(java.lang.String key) { } public Builder clearParams() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableParams().clear(); return this; } @@ -1954,17 +2176,21 @@ public Builder clearParams() { * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -1981,7 +2207,7 @@ public Builder removeParams(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParams() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return internalGetMutableParams().ensureMessageMap(); } /** @@ -1996,17 +2222,21 @@ public java.util.Map getMutableP * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -2021,7 +2251,7 @@ public Builder putParams(java.lang.String key, com.google.bigtable.v2.Value valu throw new NullPointerException("map value"); } internalGetMutableParams().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return this; } /** @@ -2036,17 +2266,21 @@ public Builder putParams(java.lang.String key, com.google.bigtable.v2.Value valu * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -2062,7 +2296,7 @@ public Builder putAllParams( } } internalGetMutableParams().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return this; } /** @@ -2077,17 +2311,21 @@ public Builder putAllParams( * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. + * + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequestOrBuilder.java index f84005c49782..4834eceda955 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ExecuteQueryRequestOrBuilder.java @@ -89,26 +89,59 @@ public interface ExecuteQueryRequestOrBuilder * *
        * Required. The query string.
    +   *
    +   * Exactly one of `query` and `prepared_query` is required. Setting both
    +   * or neither is an `INVALID_ARGUMENT`.
        * 
    * - * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1090 * @return The query. */ + @java.lang.Deprecated java.lang.String getQuery(); /** * * *
        * Required. The query string.
    +   *
    +   * Exactly one of `query` and `prepared_query` is required. Setting both
    +   * or neither is an `INVALID_ARGUMENT`.
        * 
    * - * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1090 * @return The bytes for query. */ + @java.lang.Deprecated com.google.protobuf.ByteString getQueryBytes(); + /** + * + * + *
    +   * A prepared query that was returned from `PrepareQueryResponse`.
    +   *
    +   * Exactly one of `query` and `prepared_query` is required. Setting both
    +   * or neither is an `INVALID_ARGUMENT`.
    +   *
    +   * Setting this field also places restrictions on several other fields:
    +   * - `data_format` must be empty.
    +   * - `validate_only` must be false.
    +   * - `params` must match the `param_types` set in the `PrepareQueryRequest`.
    +   * 
    + * + * bytes prepared_query = 9; + * + * @return The preparedQuery. + */ + com.google.protobuf.ByteString getPreparedQuery(); + /** * * @@ -117,10 +150,13 @@ public interface ExecuteQueryRequestOrBuilder * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1111 * @return Whether the protoFormat field is set. */ + @java.lang.Deprecated boolean hasProtoFormat(); /** * @@ -130,10 +166,13 @@ public interface ExecuteQueryRequestOrBuilder * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; * + * @deprecated google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See + * google/bigtable/v2/bigtable.proto;l=1111 * @return The protoFormat. */ + @java.lang.Deprecated com.google.bigtable.v2.ProtoFormat getProtoFormat(); /** * @@ -143,8 +182,9 @@ public interface ExecuteQueryRequestOrBuilder * messages. * * - * .google.bigtable.v2.ProtoFormat proto_format = 4; + * .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; */ + @java.lang.Deprecated com.google.bigtable.v2.ProtoFormatOrBuilder getProtoFormatOrBuilder(); /** @@ -178,17 +218,21 @@ public interface ExecuteQueryRequestOrBuilder * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -208,17 +252,21 @@ public interface ExecuteQueryRequestOrBuilder * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. + * + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -241,17 +289,21 @@ public interface ExecuteQueryRequestOrBuilder * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. + * + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -271,17 +323,21 @@ public interface ExecuteQueryRequestOrBuilder * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * @@ -305,17 +361,21 @@ com.google.bigtable.v2.Value getParamsOrDefault( * * For example, if * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. + * then `@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. + * + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `@firstName` will be replaced with googlesql null string. * - * In case of Value.kind is not set, it will be set to corresponding null - * value in googlesql. - * `params["firstName"] = type {string_type {}}` - * then `@firstName` will be replaced with googlesql null string. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. * - * Value.type should always be set and no inference of type will be made from - * Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - * error. + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. * * * diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewName.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewName.java new file mode 100644 index 000000000000..552d1b4b0be7 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 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. + */ + +package com.google.bigtable.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class MaterializedViewName implements ResourceName { + private static final PathTemplate PROJECT_INSTANCE_MATERIALIZED_VIEW = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/instances/{instance}/materializedViews/{materialized_view}"); + private volatile Map fieldValuesMap; + private final String project; + private final String instance; + private final String materializedView; + + @Deprecated + protected MaterializedViewName() { + project = null; + instance = null; + materializedView = null; + } + + private MaterializedViewName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + instance = Preconditions.checkNotNull(builder.getInstance()); + materializedView = Preconditions.checkNotNull(builder.getMaterializedView()); + } + + public String getProject() { + return project; + } + + public String getInstance() { + return instance; + } + + public String getMaterializedView() { + return materializedView; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MaterializedViewName of(String project, String instance, String materializedView) { + return newBuilder() + .setProject(project) + .setInstance(instance) + .setMaterializedView(materializedView) + .build(); + } + + public static String format(String project, String instance, String materializedView) { + return newBuilder() + .setProject(project) + .setInstance(instance) + .setMaterializedView(materializedView) + .build() + .toString(); + } + + public static MaterializedViewName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_INSTANCE_MATERIALIZED_VIEW.validatedMatch( + formattedString, "MaterializedViewName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("instance"), matchMap.get("materialized_view")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (MaterializedViewName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_INSTANCE_MATERIALIZED_VIEW.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (instance != null) { + fieldMapBuilder.put("instance", instance); + } + if (materializedView != null) { + fieldMapBuilder.put("materialized_view", materializedView); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_INSTANCE_MATERIALIZED_VIEW.instantiate( + "project", project, "instance", instance, "materialized_view", materializedView); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MaterializedViewName that = ((MaterializedViewName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.instance, that.instance) + && Objects.equals(this.materializedView, that.materializedView); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(instance); + h *= 1000003; + h ^= Objects.hashCode(materializedView); + return h; + } + + /** Builder for projects/{project}/instances/{instance}/materializedViews/{materialized_view}. */ + public static class Builder { + private String project; + private String instance; + private String materializedView; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getInstance() { + return instance; + } + + public String getMaterializedView() { + return materializedView; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + public Builder setMaterializedView(String materializedView) { + this.materializedView = materializedView; + return this; + } + + private Builder(MaterializedViewName materializedViewName) { + this.project = materializedViewName.project; + this.instance = materializedViewName.instance; + this.materializedView = materializedViewName.materializedView; + } + + public MaterializedViewName build() { + return new MaterializedViewName(this); + } + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PartialResultSet.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PartialResultSet.java index 1c5e03f3bce2..6e2b30079f79 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PartialResultSet.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PartialResultSet.java @@ -24,8 +24,38 @@ * *
      * A partial result set from the streaming query API.
    - * CBT client will buffer partial_rows from result_sets until it gets a
    - * resumption_token.
    + * Cloud Bigtable clients buffer partial results received in this message until
    + * a `resume_token` is received.
    + *
    + * The pseudocode below describes how to buffer and parse a stream of
    + * `PartialResultSet` messages.
    + *
    + * Having:
    + * - queue of row results waiting to be returned `queue`
    + * - extensible buffer of bytes `buffer`
    + * - a place to keep track of the most recent `resume_token`
    + * for each PartialResultSet `p` received {
    + *   if p.reset {
    + *     ensure `queue` is empty
    + *     ensure `buffer` is empty
    + *   }
    + *   if p.estimated_batch_size != 0 {
    + *     (optional) ensure `buffer` is sized to at least `p.estimated_batch_size`
    + *   }
    + *   if `p.proto_rows_batch` is set {
    + *     append `p.proto_rows_batch.bytes` to `buffer`
    + *   }
    + *   if p.batch_checksum is set and `buffer` is not empty {
    + *     validate the checksum matches the contents of `buffer`
    + *     (see comments on `batch_checksum`)
    + *     parse `buffer` as `ProtoRows` message, clearing `buffer`
    + *     add parsed rows to end of `queue`
    + *   }
    + *   if p.resume_token is set {
    + *     release results in `queue`
    + *     save `p.resume_token` in `resume_token`
    + *   }
    + * }
      * 
    * * Protobuf type {@code google.bigtable.v2.PartialResultSet} @@ -65,6 +95,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.bigtable.v2.PartialResultSet.Builder.class); } + private int bitField0_; private int partialRowsCase_ = 0; @SuppressWarnings("serial") @@ -162,6 +193,69 @@ public com.google.bigtable.v2.ProtoRowsBatchOrBuilder getProtoRowsBatchOrBuilder return com.google.bigtable.v2.ProtoRowsBatch.getDefaultInstance(); } + public static final int BATCH_CHECKSUM_FIELD_NUMBER = 6; + private int batchChecksum_ = 0; + /** + * + * + *
    +   * CRC32C checksum of concatenated `partial_rows` data for the current batch.
    +   *
    +   * When present, the buffered data from `partial_rows` forms a complete
    +   * parseable message of the appropriate type.
    +   *
    +   * The client should mark the end of a parseable message and prepare to
    +   * receive a new one starting from the next `PartialResultSet` message.
    +   * Clients must verify the checksum of the serialized batch before yielding it
    +   * to the caller.
    +   *
    +   * This does NOT mean the values can be yielded to the callers since a
    +   * `resume_token` is required to safely do so.
    +   *
    +   * If `resume_token` is non-empty and any data has been received since the
    +   * last one, this field is guaranteed to be non-empty. In other words, clients
    +   * may assume that a batch will never cross a `resume_token` boundary.
    +   * 
    + * + * optional uint32 batch_checksum = 6; + * + * @return Whether the batchChecksum field is set. + */ + @java.lang.Override + public boolean hasBatchChecksum() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * CRC32C checksum of concatenated `partial_rows` data for the current batch.
    +   *
    +   * When present, the buffered data from `partial_rows` forms a complete
    +   * parseable message of the appropriate type.
    +   *
    +   * The client should mark the end of a parseable message and prepare to
    +   * receive a new one starting from the next `PartialResultSet` message.
    +   * Clients must verify the checksum of the serialized batch before yielding it
    +   * to the caller.
    +   *
    +   * This does NOT mean the values can be yielded to the callers since a
    +   * `resume_token` is required to safely do so.
    +   *
    +   * If `resume_token` is non-empty and any data has been received since the
    +   * last one, this field is guaranteed to be non-empty. In other words, clients
    +   * may assume that a batch will never cross a `resume_token` boundary.
    +   * 
    + * + * optional uint32 batch_checksum = 6; + * + * @return The batchChecksum. + */ + @java.lang.Override + public int getBatchChecksum() { + return batchChecksum_; + } + public static final int RESUME_TOKEN_FIELD_NUMBER = 5; private com.google.protobuf.ByteString resumeToken_ = com.google.protobuf.ByteString.EMPTY; /** @@ -169,23 +263,27 @@ public com.google.bigtable.v2.ProtoRowsBatchOrBuilder getProtoRowsBatchOrBuilder * *
        * An opaque token sent by the server to allow query resumption and signal
    -   * the client to accumulate `partial_rows` since the last non-empty
    -   * `resume_token`. On resumption, the resumed query will return the remaining
    -   * rows for this query.
    +   * that the buffered values constructed from received `partial_rows` can be
    +   * yielded to the caller. Clients can provide this token in a subsequent
    +   * request to resume the result stream from the current point.
    +   *
    +   * When `resume_token` is non-empty, the buffered values received from
    +   * `partial_rows` since the last non-empty `resume_token` can be yielded to
    +   * the callers, provided that the client keeps the value of `resume_token` and
    +   * uses it on subsequent retries.
        *
    -   * If there is a batch in progress, a non-empty `resume_token`
    -   * means that that the batch of `partial_rows` will be complete after merging
    -   * the `partial_rows` from this response. The client must only yield
    -   * completed batches to the application, and must ensure that any future
    -   * retries send the latest token to avoid returning duplicate data.
    +   * A `resume_token` may be sent without information in `partial_rows` to
    +   * checkpoint the progress of a sparse query. Any previous `partial_rows` data
    +   * should still be yielded in this case, and the new `resume_token` should be
    +   * saved for future retries as normal.
        *
    -   * The server may set 'resume_token' without a 'partial_rows'. If there is a
    -   * batch in progress the client should yield it.
    +   * A `resume_token` will only be sent on a boundary where there is either no
    +   * ongoing result batch, or `batch_checksum` is also populated.
        *
        * The server will also send a sentinel `resume_token` when last batch of
        * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with
        * the sentinel `resume_token`, the server will emit it again without any
    -   * `partial_rows`, then return OK.
    +   * data in `partial_rows`, then return OK.
        * 
    * * bytes resume_token = 5; @@ -197,20 +295,40 @@ public com.google.protobuf.ByteString getResumeToken() { return resumeToken_; } + public static final int RESET_FIELD_NUMBER = 7; + private boolean reset_ = false; + /** + * + * + *
    +   * If `true`, any data buffered since the last non-empty `resume_token` must
    +   * be discarded before the other parts of this message, if any, are handled.
    +   * 
    + * + * bool reset = 7; + * + * @return The reset. + */ + @java.lang.Override + public boolean getReset() { + return reset_; + } + public static final int ESTIMATED_BATCH_SIZE_FIELD_NUMBER = 4; private int estimatedBatchSize_ = 0; /** * * *
    -   * Estimated size of a new batch. The server will always set this when
    -   * returning the first `partial_rows` of a batch, and will not set it at any
    -   * other time.
    +   * Estimated size of the buffer required to hold the next batch of results.
    +   *
    +   * This value will be sent with the first `partial_rows` of a batch. That is,
    +   * on the first `partial_rows` received in a stream, on the first message
    +   * after a `batch_checksum` message, and any time `reset` is true.
        *
    -   * The client can use this estimate to allocate an initial buffer for the
    -   * batched results. This helps minimize the number of allocations required,
    -   * though the buffer size may still need to be increased if the estimate is
    -   * too low.
    +   * The client can use this estimate to allocate a buffer for the next batch of
    +   * results. This helps minimize the number of allocations required, though the
    +   * buffer size may still need to be increased if the estimate is too low.
        * 
    * * int32 estimated_batch_size = 4; @@ -245,6 +363,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!resumeToken_.isEmpty()) { output.writeBytes(5, resumeToken_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeUInt32(6, batchChecksum_); + } + if (reset_ != false) { + output.writeBool(7, reset_); + } getUnknownFields().writeTo(output); } @@ -265,6 +389,12 @@ public int getSerializedSize() { if (!resumeToken_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, resumeToken_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(6, batchChecksum_); + } + if (reset_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, reset_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -280,7 +410,12 @@ public boolean equals(final java.lang.Object obj) { } com.google.bigtable.v2.PartialResultSet other = (com.google.bigtable.v2.PartialResultSet) obj; + if (hasBatchChecksum() != other.hasBatchChecksum()) return false; + if (hasBatchChecksum()) { + if (getBatchChecksum() != other.getBatchChecksum()) return false; + } if (!getResumeToken().equals(other.getResumeToken())) return false; + if (getReset() != other.getReset()) return false; if (getEstimatedBatchSize() != other.getEstimatedBatchSize()) return false; if (!getPartialRowsCase().equals(other.getPartialRowsCase())) return false; switch (partialRowsCase_) { @@ -301,8 +436,14 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBatchChecksum()) { + hash = (37 * hash) + BATCH_CHECKSUM_FIELD_NUMBER; + hash = (53 * hash) + getBatchChecksum(); + } hash = (37 * hash) + RESUME_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getResumeToken().hashCode(); + hash = (37 * hash) + RESET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReset()); hash = (37 * hash) + ESTIMATED_BATCH_SIZE_FIELD_NUMBER; hash = (53 * hash) + getEstimatedBatchSize(); switch (partialRowsCase_) { @@ -418,8 +559,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * A partial result set from the streaming query API.
    -   * CBT client will buffer partial_rows from result_sets until it gets a
    -   * resumption_token.
    +   * Cloud Bigtable clients buffer partial results received in this message until
    +   * a `resume_token` is received.
    +   *
    +   * The pseudocode below describes how to buffer and parse a stream of
    +   * `PartialResultSet` messages.
    +   *
    +   * Having:
    +   * - queue of row results waiting to be returned `queue`
    +   * - extensible buffer of bytes `buffer`
    +   * - a place to keep track of the most recent `resume_token`
    +   * for each PartialResultSet `p` received {
    +   *   if p.reset {
    +   *     ensure `queue` is empty
    +   *     ensure `buffer` is empty
    +   *   }
    +   *   if p.estimated_batch_size != 0 {
    +   *     (optional) ensure `buffer` is sized to at least `p.estimated_batch_size`
    +   *   }
    +   *   if `p.proto_rows_batch` is set {
    +   *     append `p.proto_rows_batch.bytes` to `buffer`
    +   *   }
    +   *   if p.batch_checksum is set and `buffer` is not empty {
    +   *     validate the checksum matches the contents of `buffer`
    +   *     (see comments on `batch_checksum`)
    +   *     parse `buffer` as `ProtoRows` message, clearing `buffer`
    +   *     add parsed rows to end of `queue`
    +   *   }
    +   *   if p.resume_token is set {
    +   *     release results in `queue`
    +   *     save `p.resume_token` in `resume_token`
    +   *   }
    +   * }
        * 
    * * Protobuf type {@code google.bigtable.v2.PartialResultSet} @@ -457,7 +628,9 @@ public Builder clear() { if (protoRowsBatchBuilder_ != null) { protoRowsBatchBuilder_.clear(); } + batchChecksum_ = 0; resumeToken_ = com.google.protobuf.ByteString.EMPTY; + reset_ = false; estimatedBatchSize_ = 0; partialRowsCase_ = 0; partialRows_ = null; @@ -498,12 +671,21 @@ public com.google.bigtable.v2.PartialResultSet buildPartial() { private void buildPartial0(com.google.bigtable.v2.PartialResultSet result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.resumeToken_ = resumeToken_; + result.batchChecksum_ = batchChecksum_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.resumeToken_ = resumeToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reset_ = reset_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.estimatedBatchSize_ = estimatedBatchSize_; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.bigtable.v2.PartialResultSet result) { @@ -559,9 +741,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.bigtable.v2.PartialResultSet other) { if (other == com.google.bigtable.v2.PartialResultSet.getDefaultInstance()) return this; + if (other.hasBatchChecksum()) { + setBatchChecksum(other.getBatchChecksum()); + } if (other.getResumeToken() != com.google.protobuf.ByteString.EMPTY) { setResumeToken(other.getResumeToken()); } + if (other.getReset() != false) { + setReset(other.getReset()); + } if (other.getEstimatedBatchSize() != 0) { setEstimatedBatchSize(other.getEstimatedBatchSize()); } @@ -611,15 +799,27 @@ public Builder mergeFrom( case 32: { estimatedBatchSize_ = input.readInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 32 case 42: { resumeToken_ = input.readBytes(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 42 + case 48: + { + batchChecksum_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 48 + case 56: + { + reset_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -862,29 +1062,161 @@ public com.google.bigtable.v2.ProtoRowsBatchOrBuilder getProtoRowsBatchOrBuilder return protoRowsBatchBuilder_; } + private int batchChecksum_; + /** + * + * + *
    +     * CRC32C checksum of concatenated `partial_rows` data for the current batch.
    +     *
    +     * When present, the buffered data from `partial_rows` forms a complete
    +     * parseable message of the appropriate type.
    +     *
    +     * The client should mark the end of a parseable message and prepare to
    +     * receive a new one starting from the next `PartialResultSet` message.
    +     * Clients must verify the checksum of the serialized batch before yielding it
    +     * to the caller.
    +     *
    +     * This does NOT mean the values can be yielded to the callers since a
    +     * `resume_token` is required to safely do so.
    +     *
    +     * If `resume_token` is non-empty and any data has been received since the
    +     * last one, this field is guaranteed to be non-empty. In other words, clients
    +     * may assume that a batch will never cross a `resume_token` boundary.
    +     * 
    + * + * optional uint32 batch_checksum = 6; + * + * @return Whether the batchChecksum field is set. + */ + @java.lang.Override + public boolean hasBatchChecksum() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * CRC32C checksum of concatenated `partial_rows` data for the current batch.
    +     *
    +     * When present, the buffered data from `partial_rows` forms a complete
    +     * parseable message of the appropriate type.
    +     *
    +     * The client should mark the end of a parseable message and prepare to
    +     * receive a new one starting from the next `PartialResultSet` message.
    +     * Clients must verify the checksum of the serialized batch before yielding it
    +     * to the caller.
    +     *
    +     * This does NOT mean the values can be yielded to the callers since a
    +     * `resume_token` is required to safely do so.
    +     *
    +     * If `resume_token` is non-empty and any data has been received since the
    +     * last one, this field is guaranteed to be non-empty. In other words, clients
    +     * may assume that a batch will never cross a `resume_token` boundary.
    +     * 
    + * + * optional uint32 batch_checksum = 6; + * + * @return The batchChecksum. + */ + @java.lang.Override + public int getBatchChecksum() { + return batchChecksum_; + } + /** + * + * + *
    +     * CRC32C checksum of concatenated `partial_rows` data for the current batch.
    +     *
    +     * When present, the buffered data from `partial_rows` forms a complete
    +     * parseable message of the appropriate type.
    +     *
    +     * The client should mark the end of a parseable message and prepare to
    +     * receive a new one starting from the next `PartialResultSet` message.
    +     * Clients must verify the checksum of the serialized batch before yielding it
    +     * to the caller.
    +     *
    +     * This does NOT mean the values can be yielded to the callers since a
    +     * `resume_token` is required to safely do so.
    +     *
    +     * If `resume_token` is non-empty and any data has been received since the
    +     * last one, this field is guaranteed to be non-empty. In other words, clients
    +     * may assume that a batch will never cross a `resume_token` boundary.
    +     * 
    + * + * optional uint32 batch_checksum = 6; + * + * @param value The batchChecksum to set. + * @return This builder for chaining. + */ + public Builder setBatchChecksum(int value) { + + batchChecksum_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * CRC32C checksum of concatenated `partial_rows` data for the current batch.
    +     *
    +     * When present, the buffered data from `partial_rows` forms a complete
    +     * parseable message of the appropriate type.
    +     *
    +     * The client should mark the end of a parseable message and prepare to
    +     * receive a new one starting from the next `PartialResultSet` message.
    +     * Clients must verify the checksum of the serialized batch before yielding it
    +     * to the caller.
    +     *
    +     * This does NOT mean the values can be yielded to the callers since a
    +     * `resume_token` is required to safely do so.
    +     *
    +     * If `resume_token` is non-empty and any data has been received since the
    +     * last one, this field is guaranteed to be non-empty. In other words, clients
    +     * may assume that a batch will never cross a `resume_token` boundary.
    +     * 
    + * + * optional uint32 batch_checksum = 6; + * + * @return This builder for chaining. + */ + public Builder clearBatchChecksum() { + bitField0_ = (bitField0_ & ~0x00000002); + batchChecksum_ = 0; + onChanged(); + return this; + } + private com.google.protobuf.ByteString resumeToken_ = com.google.protobuf.ByteString.EMPTY; /** * * *
          * An opaque token sent by the server to allow query resumption and signal
    -     * the client to accumulate `partial_rows` since the last non-empty
    -     * `resume_token`. On resumption, the resumed query will return the remaining
    -     * rows for this query.
    +     * that the buffered values constructed from received `partial_rows` can be
    +     * yielded to the caller. Clients can provide this token in a subsequent
    +     * request to resume the result stream from the current point.
    +     *
    +     * When `resume_token` is non-empty, the buffered values received from
    +     * `partial_rows` since the last non-empty `resume_token` can be yielded to
    +     * the callers, provided that the client keeps the value of `resume_token` and
    +     * uses it on subsequent retries.
          *
    -     * If there is a batch in progress, a non-empty `resume_token`
    -     * means that that the batch of `partial_rows` will be complete after merging
    -     * the `partial_rows` from this response. The client must only yield
    -     * completed batches to the application, and must ensure that any future
    -     * retries send the latest token to avoid returning duplicate data.
    +     * A `resume_token` may be sent without information in `partial_rows` to
    +     * checkpoint the progress of a sparse query. Any previous `partial_rows` data
    +     * should still be yielded in this case, and the new `resume_token` should be
    +     * saved for future retries as normal.
          *
    -     * The server may set 'resume_token' without a 'partial_rows'. If there is a
    -     * batch in progress the client should yield it.
    +     * A `resume_token` will only be sent on a boundary where there is either no
    +     * ongoing result batch, or `batch_checksum` is also populated.
          *
          * The server will also send a sentinel `resume_token` when last batch of
          * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with
          * the sentinel `resume_token`, the server will emit it again without any
    -     * `partial_rows`, then return OK.
    +     * data in `partial_rows`, then return OK.
          * 
    * * bytes resume_token = 5; @@ -900,23 +1232,27 @@ public com.google.protobuf.ByteString getResumeToken() { * *
          * An opaque token sent by the server to allow query resumption and signal
    -     * the client to accumulate `partial_rows` since the last non-empty
    -     * `resume_token`. On resumption, the resumed query will return the remaining
    -     * rows for this query.
    +     * that the buffered values constructed from received `partial_rows` can be
    +     * yielded to the caller. Clients can provide this token in a subsequent
    +     * request to resume the result stream from the current point.
          *
    -     * If there is a batch in progress, a non-empty `resume_token`
    -     * means that that the batch of `partial_rows` will be complete after merging
    -     * the `partial_rows` from this response. The client must only yield
    -     * completed batches to the application, and must ensure that any future
    -     * retries send the latest token to avoid returning duplicate data.
    +     * When `resume_token` is non-empty, the buffered values received from
    +     * `partial_rows` since the last non-empty `resume_token` can be yielded to
    +     * the callers, provided that the client keeps the value of `resume_token` and
    +     * uses it on subsequent retries.
          *
    -     * The server may set 'resume_token' without a 'partial_rows'. If there is a
    -     * batch in progress the client should yield it.
    +     * A `resume_token` may be sent without information in `partial_rows` to
    +     * checkpoint the progress of a sparse query. Any previous `partial_rows` data
    +     * should still be yielded in this case, and the new `resume_token` should be
    +     * saved for future retries as normal.
    +     *
    +     * A `resume_token` will only be sent on a boundary where there is either no
    +     * ongoing result batch, or `batch_checksum` is also populated.
          *
          * The server will also send a sentinel `resume_token` when last batch of
          * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with
          * the sentinel `resume_token`, the server will emit it again without any
    -     * `partial_rows`, then return OK.
    +     * data in `partial_rows`, then return OK.
          * 
    * * bytes resume_token = 5; @@ -929,7 +1265,7 @@ public Builder setResumeToken(com.google.protobuf.ByteString value) { throw new NullPointerException(); } resumeToken_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -938,23 +1274,27 @@ public Builder setResumeToken(com.google.protobuf.ByteString value) { * *
          * An opaque token sent by the server to allow query resumption and signal
    -     * the client to accumulate `partial_rows` since the last non-empty
    -     * `resume_token`. On resumption, the resumed query will return the remaining
    -     * rows for this query.
    +     * that the buffered values constructed from received `partial_rows` can be
    +     * yielded to the caller. Clients can provide this token in a subsequent
    +     * request to resume the result stream from the current point.
          *
    -     * If there is a batch in progress, a non-empty `resume_token`
    -     * means that that the batch of `partial_rows` will be complete after merging
    -     * the `partial_rows` from this response. The client must only yield
    -     * completed batches to the application, and must ensure that any future
    -     * retries send the latest token to avoid returning duplicate data.
    +     * When `resume_token` is non-empty, the buffered values received from
    +     * `partial_rows` since the last non-empty `resume_token` can be yielded to
    +     * the callers, provided that the client keeps the value of `resume_token` and
    +     * uses it on subsequent retries.
          *
    -     * The server may set 'resume_token' without a 'partial_rows'. If there is a
    -     * batch in progress the client should yield it.
    +     * A `resume_token` may be sent without information in `partial_rows` to
    +     * checkpoint the progress of a sparse query. Any previous `partial_rows` data
    +     * should still be yielded in this case, and the new `resume_token` should be
    +     * saved for future retries as normal.
    +     *
    +     * A `resume_token` will only be sent on a boundary where there is either no
    +     * ongoing result batch, or `batch_checksum` is also populated.
          *
          * The server will also send a sentinel `resume_token` when last batch of
          * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with
          * the sentinel `resume_token`, the server will emit it again without any
    -     * `partial_rows`, then return OK.
    +     * data in `partial_rows`, then return OK.
          * 
    * * bytes resume_token = 5; @@ -962,25 +1302,82 @@ public Builder setResumeToken(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearResumeToken() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); resumeToken_ = getDefaultInstance().getResumeToken(); onChanged(); return this; } + private boolean reset_; + /** + * + * + *
    +     * If `true`, any data buffered since the last non-empty `resume_token` must
    +     * be discarded before the other parts of this message, if any, are handled.
    +     * 
    + * + * bool reset = 7; + * + * @return The reset. + */ + @java.lang.Override + public boolean getReset() { + return reset_; + } + /** + * + * + *
    +     * If `true`, any data buffered since the last non-empty `resume_token` must
    +     * be discarded before the other parts of this message, if any, are handled.
    +     * 
    + * + * bool reset = 7; + * + * @param value The reset to set. + * @return This builder for chaining. + */ + public Builder setReset(boolean value) { + + reset_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * If `true`, any data buffered since the last non-empty `resume_token` must
    +     * be discarded before the other parts of this message, if any, are handled.
    +     * 
    + * + * bool reset = 7; + * + * @return This builder for chaining. + */ + public Builder clearReset() { + bitField0_ = (bitField0_ & ~0x00000008); + reset_ = false; + onChanged(); + return this; + } + private int estimatedBatchSize_; /** * * *
    -     * Estimated size of a new batch. The server will always set this when
    -     * returning the first `partial_rows` of a batch, and will not set it at any
    -     * other time.
    -     *
    -     * The client can use this estimate to allocate an initial buffer for the
    -     * batched results. This helps minimize the number of allocations required,
    -     * though the buffer size may still need to be increased if the estimate is
    -     * too low.
    +     * Estimated size of the buffer required to hold the next batch of results.
    +     *
    +     * This value will be sent with the first `partial_rows` of a batch. That is,
    +     * on the first `partial_rows` received in a stream, on the first message
    +     * after a `batch_checksum` message, and any time `reset` is true.
    +     *
    +     * The client can use this estimate to allocate a buffer for the next batch of
    +     * results. This helps minimize the number of allocations required, though the
    +     * buffer size may still need to be increased if the estimate is too low.
          * 
    * * int32 estimated_batch_size = 4; @@ -995,14 +1392,15 @@ public int getEstimatedBatchSize() { * * *
    -     * Estimated size of a new batch. The server will always set this when
    -     * returning the first `partial_rows` of a batch, and will not set it at any
    -     * other time.
    -     *
    -     * The client can use this estimate to allocate an initial buffer for the
    -     * batched results. This helps minimize the number of allocations required,
    -     * though the buffer size may still need to be increased if the estimate is
    -     * too low.
    +     * Estimated size of the buffer required to hold the next batch of results.
    +     *
    +     * This value will be sent with the first `partial_rows` of a batch. That is,
    +     * on the first `partial_rows` received in a stream, on the first message
    +     * after a `batch_checksum` message, and any time `reset` is true.
    +     *
    +     * The client can use this estimate to allocate a buffer for the next batch of
    +     * results. This helps minimize the number of allocations required, though the
    +     * buffer size may still need to be increased if the estimate is too low.
          * 
    * * int32 estimated_batch_size = 4; @@ -1013,7 +1411,7 @@ public int getEstimatedBatchSize() { public Builder setEstimatedBatchSize(int value) { estimatedBatchSize_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1021,14 +1419,15 @@ public Builder setEstimatedBatchSize(int value) { * * *
    -     * Estimated size of a new batch. The server will always set this when
    -     * returning the first `partial_rows` of a batch, and will not set it at any
    -     * other time.
    -     *
    -     * The client can use this estimate to allocate an initial buffer for the
    -     * batched results. This helps minimize the number of allocations required,
    -     * though the buffer size may still need to be increased if the estimate is
    -     * too low.
    +     * Estimated size of the buffer required to hold the next batch of results.
    +     *
    +     * This value will be sent with the first `partial_rows` of a batch. That is,
    +     * on the first `partial_rows` received in a stream, on the first message
    +     * after a `batch_checksum` message, and any time `reset` is true.
    +     *
    +     * The client can use this estimate to allocate a buffer for the next batch of
    +     * results. This helps minimize the number of allocations required, though the
    +     * buffer size may still need to be increased if the estimate is too low.
          * 
    * * int32 estimated_batch_size = 4; @@ -1036,7 +1435,7 @@ public Builder setEstimatedBatchSize(int value) { * @return This builder for chaining. */ public Builder clearEstimatedBatchSize() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); estimatedBatchSize_ = 0; onChanged(); return this; diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PartialResultSetOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PartialResultSetOrBuilder.java index fcc4a3e64160..525f3366cc60 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PartialResultSetOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PartialResultSetOrBuilder.java @@ -59,28 +59,87 @@ public interface PartialResultSetOrBuilder */ com.google.bigtable.v2.ProtoRowsBatchOrBuilder getProtoRowsBatchOrBuilder(); + /** + * + * + *
    +   * CRC32C checksum of concatenated `partial_rows` data for the current batch.
    +   *
    +   * When present, the buffered data from `partial_rows` forms a complete
    +   * parseable message of the appropriate type.
    +   *
    +   * The client should mark the end of a parseable message and prepare to
    +   * receive a new one starting from the next `PartialResultSet` message.
    +   * Clients must verify the checksum of the serialized batch before yielding it
    +   * to the caller.
    +   *
    +   * This does NOT mean the values can be yielded to the callers since a
    +   * `resume_token` is required to safely do so.
    +   *
    +   * If `resume_token` is non-empty and any data has been received since the
    +   * last one, this field is guaranteed to be non-empty. In other words, clients
    +   * may assume that a batch will never cross a `resume_token` boundary.
    +   * 
    + * + * optional uint32 batch_checksum = 6; + * + * @return Whether the batchChecksum field is set. + */ + boolean hasBatchChecksum(); + /** + * + * + *
    +   * CRC32C checksum of concatenated `partial_rows` data for the current batch.
    +   *
    +   * When present, the buffered data from `partial_rows` forms a complete
    +   * parseable message of the appropriate type.
    +   *
    +   * The client should mark the end of a parseable message and prepare to
    +   * receive a new one starting from the next `PartialResultSet` message.
    +   * Clients must verify the checksum of the serialized batch before yielding it
    +   * to the caller.
    +   *
    +   * This does NOT mean the values can be yielded to the callers since a
    +   * `resume_token` is required to safely do so.
    +   *
    +   * If `resume_token` is non-empty and any data has been received since the
    +   * last one, this field is guaranteed to be non-empty. In other words, clients
    +   * may assume that a batch will never cross a `resume_token` boundary.
    +   * 
    + * + * optional uint32 batch_checksum = 6; + * + * @return The batchChecksum. + */ + int getBatchChecksum(); + /** * * *
        * An opaque token sent by the server to allow query resumption and signal
    -   * the client to accumulate `partial_rows` since the last non-empty
    -   * `resume_token`. On resumption, the resumed query will return the remaining
    -   * rows for this query.
    +   * that the buffered values constructed from received `partial_rows` can be
    +   * yielded to the caller. Clients can provide this token in a subsequent
    +   * request to resume the result stream from the current point.
    +   *
    +   * When `resume_token` is non-empty, the buffered values received from
    +   * `partial_rows` since the last non-empty `resume_token` can be yielded to
    +   * the callers, provided that the client keeps the value of `resume_token` and
    +   * uses it on subsequent retries.
        *
    -   * If there is a batch in progress, a non-empty `resume_token`
    -   * means that that the batch of `partial_rows` will be complete after merging
    -   * the `partial_rows` from this response. The client must only yield
    -   * completed batches to the application, and must ensure that any future
    -   * retries send the latest token to avoid returning duplicate data.
    +   * A `resume_token` may be sent without information in `partial_rows` to
    +   * checkpoint the progress of a sparse query. Any previous `partial_rows` data
    +   * should still be yielded in this case, and the new `resume_token` should be
    +   * saved for future retries as normal.
        *
    -   * The server may set 'resume_token' without a 'partial_rows'. If there is a
    -   * batch in progress the client should yield it.
    +   * A `resume_token` will only be sent on a boundary where there is either no
    +   * ongoing result batch, or `batch_checksum` is also populated.
        *
        * The server will also send a sentinel `resume_token` when last batch of
        * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with
        * the sentinel `resume_token`, the server will emit it again without any
    -   * `partial_rows`, then return OK.
    +   * data in `partial_rows`, then return OK.
        * 
    * * bytes resume_token = 5; @@ -93,14 +152,29 @@ public interface PartialResultSetOrBuilder * * *
    -   * Estimated size of a new batch. The server will always set this when
    -   * returning the first `partial_rows` of a batch, and will not set it at any
    -   * other time.
    -   *
    -   * The client can use this estimate to allocate an initial buffer for the
    -   * batched results. This helps minimize the number of allocations required,
    -   * though the buffer size may still need to be increased if the estimate is
    -   * too low.
    +   * If `true`, any data buffered since the last non-empty `resume_token` must
    +   * be discarded before the other parts of this message, if any, are handled.
    +   * 
    + * + * bool reset = 7; + * + * @return The reset. + */ + boolean getReset(); + + /** + * + * + *
    +   * Estimated size of the buffer required to hold the next batch of results.
    +   *
    +   * This value will be sent with the first `partial_rows` of a batch. That is,
    +   * on the first `partial_rows` received in a stream, on the first message
    +   * after a `batch_checksum` message, and any time `reset` is true.
    +   *
    +   * The client can use this estimate to allocate a buffer for the next batch of
    +   * results. This helps minimize the number of allocations required, though the
    +   * buffer size may still need to be increased if the estimate is too low.
        * 
    * * int32 estimated_batch_size = 4; diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PrepareQueryRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PrepareQueryRequest.java new file mode 100644 index 000000000000..0d094e81abd3 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PrepareQueryRequest.java @@ -0,0 +1,1966 @@ +/* + * Copyright 2025 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/bigtable/v2/bigtable.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.v2; + +/** + * + * + *
    + * Request message for Bigtable.PrepareQuery
    + * 
    + * + * Protobuf type {@code google.bigtable.v2.PrepareQueryRequest} + */ +public final class PrepareQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.PrepareQueryRequest) + PrepareQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrepareQueryRequest.newBuilder() to construct. + private PrepareQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrepareQueryRequest() { + instanceName_ = ""; + appProfileId_ = ""; + query_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrepareQueryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.BigtableProto + .internal_static_google_bigtable_v2_PrepareQueryRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetParamTypes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.BigtableProto + .internal_static_google_bigtable_v2_PrepareQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.PrepareQueryRequest.class, + com.google.bigtable.v2.PrepareQueryRequest.Builder.class); + } + + private int dataFormatCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object dataFormat_; + + public enum DataFormatCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PROTO_FORMAT(4), + DATAFORMAT_NOT_SET(0); + private final int value; + + private DataFormatCase(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 DataFormatCase valueOf(int value) { + return forNumber(value); + } + + public static DataFormatCase forNumber(int value) { + switch (value) { + case 4: + return PROTO_FORMAT; + case 0: + return DATAFORMAT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataFormatCase getDataFormatCase() { + return DataFormatCase.forNumber(dataFormatCase_); + } + + public static final int INSTANCE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceName_ = ""; + /** + * + * + *
    +   * Required. The unique name of the instance against which the query should be
    +   * executed.
    +   * Values are of the form `projects/<project>/instances/<instance>`
    +   * 
    + * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instanceName. + */ + @java.lang.Override + public java.lang.String getInstanceName() { + java.lang.Object ref = instanceName_; + 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(); + instanceName_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The unique name of the instance against which the query should be
    +   * executed.
    +   * Values are of the form `projects/<project>/instances/<instance>`
    +   * 
    + * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instanceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceNameBytes() { + java.lang.Object ref = instanceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_PROFILE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appProfileId_ = ""; + /** + * + * + *
    +   * Optional. This value specifies routing for preparing the query. Note that
    +   * this `app_profile_id` is only used for preparing the query. The actual
    +   * query execution will use the app profile specified in the
    +   * `ExecuteQueryRequest`. If not specified, the `default` application profile
    +   * will be used.
    +   * 
    + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appProfileId. + */ + @java.lang.Override + public java.lang.String getAppProfileId() { + java.lang.Object ref = appProfileId_; + 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(); + appProfileId_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. This value specifies routing for preparing the query. Note that
    +   * this `app_profile_id` is only used for preparing the query. The actual
    +   * query execution will use the app profile specified in the
    +   * `ExecuteQueryRequest`. If not specified, the `default` application profile
    +   * will be used.
    +   * 
    + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appProfileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppProfileIdBytes() { + java.lang.Object ref = appProfileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * + * + *
    +   * Required. The query string.
    +   * 
    + * + * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The query string.
    +   * 
    + * + * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROTO_FORMAT_FIELD_NUMBER = 4; + /** + * + * + *
    +   * Protocol buffer format as described by ProtoSchema and ProtoRows
    +   * messages.
    +   * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + * + * @return Whether the protoFormat field is set. + */ + @java.lang.Override + public boolean hasProtoFormat() { + return dataFormatCase_ == 4; + } + /** + * + * + *
    +   * Protocol buffer format as described by ProtoSchema and ProtoRows
    +   * messages.
    +   * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + * + * @return The protoFormat. + */ + @java.lang.Override + public com.google.bigtable.v2.ProtoFormat getProtoFormat() { + if (dataFormatCase_ == 4) { + return (com.google.bigtable.v2.ProtoFormat) dataFormat_; + } + return com.google.bigtable.v2.ProtoFormat.getDefaultInstance(); + } + /** + * + * + *
    +   * Protocol buffer format as described by ProtoSchema and ProtoRows
    +   * messages.
    +   * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + */ + @java.lang.Override + public com.google.bigtable.v2.ProtoFormatOrBuilder getProtoFormatOrBuilder() { + if (dataFormatCase_ == 4) { + return (com.google.bigtable.v2.ProtoFormat) dataFormat_; + } + return com.google.bigtable.v2.ProtoFormat.getDefaultInstance(); + } + + public static final int PARAM_TYPES_FIELD_NUMBER = 6; + + private static final class ParamTypesDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.bigtable.v2.BigtableProto + .internal_static_google_bigtable_v2_PrepareQueryRequest_ParamTypesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.bigtable.v2.Type.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField paramTypes_; + + private com.google.protobuf.MapField + internalGetParamTypes() { + if (paramTypes_ == null) { + return com.google.protobuf.MapField.emptyMapField(ParamTypesDefaultEntryHolder.defaultEntry); + } + return paramTypes_; + } + + public int getParamTypesCount() { + return internalGetParamTypes().getMap().size(); + } + /** + * + * + *
    +   * Required. `param_types` is a map of parameter identifier strings to their
    +   * `Type`s.
    +   *
    +   * In query string, a parameter placeholder consists of the
    +   * `@` character followed by the parameter name (for example, `@firstName`) in
    +   * the query string.
    +   *
    +   * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +   * query parameter of type Bytes. The specific `Value` to be used for the
    +   * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +   * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsParamTypes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetParamTypes().getMap().containsKey(key); + } + /** Use {@link #getParamTypesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParamTypes() { + return getParamTypesMap(); + } + /** + * + * + *
    +   * Required. `param_types` is a map of parameter identifier strings to their
    +   * `Type`s.
    +   *
    +   * In query string, a parameter placeholder consists of the
    +   * `@` character followed by the parameter name (for example, `@firstName`) in
    +   * the query string.
    +   *
    +   * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +   * query parameter of type Bytes. The specific `Value` to be used for the
    +   * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +   * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map getParamTypesMap() { + return internalGetParamTypes().getMap(); + } + /** + * + * + *
    +   * Required. `param_types` is a map of parameter identifier strings to their
    +   * `Type`s.
    +   *
    +   * In query string, a parameter placeholder consists of the
    +   * `@` character followed by the parameter name (for example, `@firstName`) in
    +   * the query string.
    +   *
    +   * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +   * query parameter of type Bytes. The specific `Value` to be used for the
    +   * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +   * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public /* nullable */ com.google.bigtable.v2.Type getParamTypesOrDefault( + java.lang.String key, + /* nullable */ + com.google.bigtable.v2.Type defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetParamTypes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
    +   * Required. `param_types` is a map of parameter identifier strings to their
    +   * `Type`s.
    +   *
    +   * In query string, a parameter placeholder consists of the
    +   * `@` character followed by the parameter name (for example, `@firstName`) in
    +   * the query string.
    +   *
    +   * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +   * query parameter of type Bytes. The specific `Value` to be used for the
    +   * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +   * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.bigtable.v2.Type getParamTypesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetParamTypes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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(instanceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appProfileId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, appProfileId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, query_); + } + if (dataFormatCase_ == 4) { + output.writeMessage(4, (com.google.bigtable.v2.ProtoFormat) dataFormat_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetParamTypes(), ParamTypesDefaultEntryHolder.defaultEntry, 6); + 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(instanceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appProfileId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, appProfileId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_); + } + if (dataFormatCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.bigtable.v2.ProtoFormat) dataFormat_); + } + for (java.util.Map.Entry entry : + internalGetParamTypes().getMap().entrySet()) { + com.google.protobuf.MapEntry paramTypes__ = + ParamTypesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, paramTypes__); + } + 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.bigtable.v2.PrepareQueryRequest)) { + return super.equals(obj); + } + com.google.bigtable.v2.PrepareQueryRequest other = + (com.google.bigtable.v2.PrepareQueryRequest) obj; + + if (!getInstanceName().equals(other.getInstanceName())) return false; + if (!getAppProfileId().equals(other.getAppProfileId())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (!internalGetParamTypes().equals(other.internalGetParamTypes())) return false; + if (!getDataFormatCase().equals(other.getDataFormatCase())) return false; + switch (dataFormatCase_) { + case 4: + if (!getProtoFormat().equals(other.getProtoFormat())) 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) + INSTANCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getInstanceName().hashCode(); + hash = (37 * hash) + APP_PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppProfileId().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (!internalGetParamTypes().getMap().isEmpty()) { + hash = (37 * hash) + PARAM_TYPES_FIELD_NUMBER; + hash = (53 * hash) + internalGetParamTypes().hashCode(); + } + switch (dataFormatCase_) { + case 4: + hash = (37 * hash) + PROTO_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getProtoFormat().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.PrepareQueryRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.PrepareQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.PrepareQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.PrepareQueryRequest 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.bigtable.v2.PrepareQueryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.PrepareQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.PrepareQueryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.PrepareQueryRequest 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.bigtable.v2.PrepareQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.PrepareQueryRequest 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.bigtable.v2.PrepareQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.PrepareQueryRequest 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.bigtable.v2.PrepareQueryRequest 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; + } + /** + * + * + *
    +   * Request message for Bigtable.PrepareQuery
    +   * 
    + * + * Protobuf type {@code google.bigtable.v2.PrepareQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.PrepareQueryRequest) + com.google.bigtable.v2.PrepareQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.BigtableProto + .internal_static_google_bigtable_v2_PrepareQueryRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetParamTypes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetMutableParamTypes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.BigtableProto + .internal_static_google_bigtable_v2_PrepareQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.PrepareQueryRequest.class, + com.google.bigtable.v2.PrepareQueryRequest.Builder.class); + } + + // Construct using com.google.bigtable.v2.PrepareQueryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceName_ = ""; + appProfileId_ = ""; + query_ = ""; + if (protoFormatBuilder_ != null) { + protoFormatBuilder_.clear(); + } + internalGetMutableParamTypes().clear(); + dataFormatCase_ = 0; + dataFormat_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.BigtableProto + .internal_static_google_bigtable_v2_PrepareQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.PrepareQueryRequest getDefaultInstanceForType() { + return com.google.bigtable.v2.PrepareQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.PrepareQueryRequest build() { + com.google.bigtable.v2.PrepareQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.PrepareQueryRequest buildPartial() { + com.google.bigtable.v2.PrepareQueryRequest result = + new com.google.bigtable.v2.PrepareQueryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.PrepareQueryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceName_ = instanceName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appProfileId_ = appProfileId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.paramTypes_ = + internalGetParamTypes().build(ParamTypesDefaultEntryHolder.defaultEntry); + } + } + + private void buildPartialOneofs(com.google.bigtable.v2.PrepareQueryRequest result) { + result.dataFormatCase_ = dataFormatCase_; + result.dataFormat_ = this.dataFormat_; + if (dataFormatCase_ == 4 && protoFormatBuilder_ != null) { + result.dataFormat_ = protoFormatBuilder_.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.bigtable.v2.PrepareQueryRequest) { + return mergeFrom((com.google.bigtable.v2.PrepareQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.PrepareQueryRequest other) { + if (other == com.google.bigtable.v2.PrepareQueryRequest.getDefaultInstance()) return this; + if (!other.getInstanceName().isEmpty()) { + instanceName_ = other.instanceName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAppProfileId().isEmpty()) { + appProfileId_ = other.appProfileId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableParamTypes().mergeFrom(other.internalGetParamTypes()); + bitField0_ |= 0x00000010; + switch (other.getDataFormatCase()) { + case PROTO_FORMAT: + { + mergeProtoFormat(other.getProtoFormat()); + break; + } + case DATAFORMAT_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: + { + instanceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appProfileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getProtoFormatFieldBuilder().getBuilder(), extensionRegistry); + dataFormatCase_ = 4; + break; + } // case 34 + case 50: + { + com.google.protobuf.MapEntry + paramTypes__ = + input.readMessage( + ParamTypesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableParamTypes() + .ensureBuilderMap() + .put(paramTypes__.getKey(), paramTypes__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 50 + 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 dataFormatCase_ = 0; + private java.lang.Object dataFormat_; + + public DataFormatCase getDataFormatCase() { + return DataFormatCase.forNumber(dataFormatCase_); + } + + public Builder clearDataFormat() { + dataFormatCase_ = 0; + dataFormat_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object instanceName_ = ""; + /** + * + * + *
    +     * Required. The unique name of the instance against which the query should be
    +     * executed.
    +     * Values are of the form `projects/<project>/instances/<instance>`
    +     * 
    + * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instanceName. + */ + public java.lang.String getInstanceName() { + java.lang.Object ref = instanceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The unique name of the instance against which the query should be
    +     * executed.
    +     * Values are of the form `projects/<project>/instances/<instance>`
    +     * 
    + * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instanceName. + */ + public com.google.protobuf.ByteString getInstanceNameBytes() { + java.lang.Object ref = instanceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The unique name of the instance against which the query should be
    +     * executed.
    +     * Values are of the form `projects/<project>/instances/<instance>`
    +     * 
    + * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The instanceName to set. + * @return This builder for chaining. + */ + public Builder setInstanceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The unique name of the instance against which the query should be
    +     * executed.
    +     * Values are of the form `projects/<project>/instances/<instance>`
    +     * 
    + * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceName() { + instanceName_ = getDefaultInstance().getInstanceName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The unique name of the instance against which the query should be
    +     * executed.
    +     * Values are of the form `projects/<project>/instances/<instance>`
    +     * 
    + * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for instanceName to set. + * @return This builder for chaining. + */ + public Builder setInstanceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object appProfileId_ = ""; + /** + * + * + *
    +     * Optional. This value specifies routing for preparing the query. Note that
    +     * this `app_profile_id` is only used for preparing the query. The actual
    +     * query execution will use the app profile specified in the
    +     * `ExecuteQueryRequest`. If not specified, the `default` application profile
    +     * will be used.
    +     * 
    + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appProfileId. + */ + public java.lang.String getAppProfileId() { + java.lang.Object ref = appProfileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appProfileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. This value specifies routing for preparing the query. Note that
    +     * this `app_profile_id` is only used for preparing the query. The actual
    +     * query execution will use the app profile specified in the
    +     * `ExecuteQueryRequest`. If not specified, the `default` application profile
    +     * will be used.
    +     * 
    + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appProfileId. + */ + public com.google.protobuf.ByteString getAppProfileIdBytes() { + java.lang.Object ref = appProfileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. This value specifies routing for preparing the query. Note that
    +     * this `app_profile_id` is only used for preparing the query. The actual
    +     * query execution will use the app profile specified in the
    +     * `ExecuteQueryRequest`. If not specified, the `default` application profile
    +     * will be used.
    +     * 
    + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The appProfileId to set. + * @return This builder for chaining. + */ + public Builder setAppProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. This value specifies routing for preparing the query. Note that
    +     * this `app_profile_id` is only used for preparing the query. The actual
    +     * query execution will use the app profile specified in the
    +     * `ExecuteQueryRequest`. If not specified, the `default` application profile
    +     * will be used.
    +     * 
    + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAppProfileId() { + appProfileId_ = getDefaultInstance().getAppProfileId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. This value specifies routing for preparing the query. Note that
    +     * this `app_profile_id` is only used for preparing the query. The actual
    +     * query execution will use the app profile specified in the
    +     * `ExecuteQueryRequest`. If not specified, the `default` application profile
    +     * will be used.
    +     * 
    + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for appProfileId to set. + * @return This builder for chaining. + */ + public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + /** + * + * + *
    +     * Required. The query string.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The query string.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The query string.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The query string.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The query string.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ProtoFormat, + com.google.bigtable.v2.ProtoFormat.Builder, + com.google.bigtable.v2.ProtoFormatOrBuilder> + protoFormatBuilder_; + /** + * + * + *
    +     * Protocol buffer format as described by ProtoSchema and ProtoRows
    +     * messages.
    +     * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + * + * @return Whether the protoFormat field is set. + */ + @java.lang.Override + public boolean hasProtoFormat() { + return dataFormatCase_ == 4; + } + /** + * + * + *
    +     * Protocol buffer format as described by ProtoSchema and ProtoRows
    +     * messages.
    +     * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + * + * @return The protoFormat. + */ + @java.lang.Override + public com.google.bigtable.v2.ProtoFormat getProtoFormat() { + if (protoFormatBuilder_ == null) { + if (dataFormatCase_ == 4) { + return (com.google.bigtable.v2.ProtoFormat) dataFormat_; + } + return com.google.bigtable.v2.ProtoFormat.getDefaultInstance(); + } else { + if (dataFormatCase_ == 4) { + return protoFormatBuilder_.getMessage(); + } + return com.google.bigtable.v2.ProtoFormat.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Protocol buffer format as described by ProtoSchema and ProtoRows
    +     * messages.
    +     * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + */ + public Builder setProtoFormat(com.google.bigtable.v2.ProtoFormat value) { + if (protoFormatBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataFormat_ = value; + onChanged(); + } else { + protoFormatBuilder_.setMessage(value); + } + dataFormatCase_ = 4; + return this; + } + /** + * + * + *
    +     * Protocol buffer format as described by ProtoSchema and ProtoRows
    +     * messages.
    +     * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + */ + public Builder setProtoFormat(com.google.bigtable.v2.ProtoFormat.Builder builderForValue) { + if (protoFormatBuilder_ == null) { + dataFormat_ = builderForValue.build(); + onChanged(); + } else { + protoFormatBuilder_.setMessage(builderForValue.build()); + } + dataFormatCase_ = 4; + return this; + } + /** + * + * + *
    +     * Protocol buffer format as described by ProtoSchema and ProtoRows
    +     * messages.
    +     * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + */ + public Builder mergeProtoFormat(com.google.bigtable.v2.ProtoFormat value) { + if (protoFormatBuilder_ == null) { + if (dataFormatCase_ == 4 + && dataFormat_ != com.google.bigtable.v2.ProtoFormat.getDefaultInstance()) { + dataFormat_ = + com.google.bigtable.v2.ProtoFormat.newBuilder( + (com.google.bigtable.v2.ProtoFormat) dataFormat_) + .mergeFrom(value) + .buildPartial(); + } else { + dataFormat_ = value; + } + onChanged(); + } else { + if (dataFormatCase_ == 4) { + protoFormatBuilder_.mergeFrom(value); + } else { + protoFormatBuilder_.setMessage(value); + } + } + dataFormatCase_ = 4; + return this; + } + /** + * + * + *
    +     * Protocol buffer format as described by ProtoSchema and ProtoRows
    +     * messages.
    +     * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + */ + public Builder clearProtoFormat() { + if (protoFormatBuilder_ == null) { + if (dataFormatCase_ == 4) { + dataFormatCase_ = 0; + dataFormat_ = null; + onChanged(); + } + } else { + if (dataFormatCase_ == 4) { + dataFormatCase_ = 0; + dataFormat_ = null; + } + protoFormatBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Protocol buffer format as described by ProtoSchema and ProtoRows
    +     * messages.
    +     * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + */ + public com.google.bigtable.v2.ProtoFormat.Builder getProtoFormatBuilder() { + return getProtoFormatFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Protocol buffer format as described by ProtoSchema and ProtoRows
    +     * messages.
    +     * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + */ + @java.lang.Override + public com.google.bigtable.v2.ProtoFormatOrBuilder getProtoFormatOrBuilder() { + if ((dataFormatCase_ == 4) && (protoFormatBuilder_ != null)) { + return protoFormatBuilder_.getMessageOrBuilder(); + } else { + if (dataFormatCase_ == 4) { + return (com.google.bigtable.v2.ProtoFormat) dataFormat_; + } + return com.google.bigtable.v2.ProtoFormat.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Protocol buffer format as described by ProtoSchema and ProtoRows
    +     * messages.
    +     * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ProtoFormat, + com.google.bigtable.v2.ProtoFormat.Builder, + com.google.bigtable.v2.ProtoFormatOrBuilder> + getProtoFormatFieldBuilder() { + if (protoFormatBuilder_ == null) { + if (!(dataFormatCase_ == 4)) { + dataFormat_ = com.google.bigtable.v2.ProtoFormat.getDefaultInstance(); + } + protoFormatBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ProtoFormat, + com.google.bigtable.v2.ProtoFormat.Builder, + com.google.bigtable.v2.ProtoFormatOrBuilder>( + (com.google.bigtable.v2.ProtoFormat) dataFormat_, + getParentForChildren(), + isClean()); + dataFormat_ = null; + } + dataFormatCase_ = 4; + onChanged(); + return protoFormatBuilder_; + } + + private static final class ParamTypesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, com.google.bigtable.v2.TypeOrBuilder, com.google.bigtable.v2.Type> { + @java.lang.Override + public com.google.bigtable.v2.Type build(com.google.bigtable.v2.TypeOrBuilder val) { + if (val instanceof com.google.bigtable.v2.Type) { + return (com.google.bigtable.v2.Type) val; + } + return ((com.google.bigtable.v2.Type.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry + defaultEntry() { + return ParamTypesDefaultEntryHolder.defaultEntry; + } + }; + + private static final ParamTypesConverter paramTypesConverter = new ParamTypesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.bigtable.v2.TypeOrBuilder, + com.google.bigtable.v2.Type, + com.google.bigtable.v2.Type.Builder> + paramTypes_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.bigtable.v2.TypeOrBuilder, + com.google.bigtable.v2.Type, + com.google.bigtable.v2.Type.Builder> + internalGetParamTypes() { + if (paramTypes_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(paramTypesConverter); + } + return paramTypes_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.bigtable.v2.TypeOrBuilder, + com.google.bigtable.v2.Type, + com.google.bigtable.v2.Type.Builder> + internalGetMutableParamTypes() { + if (paramTypes_ == null) { + paramTypes_ = new com.google.protobuf.MapFieldBuilder<>(paramTypesConverter); + } + bitField0_ |= 0x00000010; + onChanged(); + return paramTypes_; + } + + public int getParamTypesCount() { + return internalGetParamTypes().ensureBuilderMap().size(); + } + /** + * + * + *
    +     * Required. `param_types` is a map of parameter identifier strings to their
    +     * `Type`s.
    +     *
    +     * In query string, a parameter placeholder consists of the
    +     * `@` character followed by the parameter name (for example, `@firstName`) in
    +     * the query string.
    +     *
    +     * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +     * query parameter of type Bytes. The specific `Value` to be used for the
    +     * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +     * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsParamTypes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetParamTypes().ensureBuilderMap().containsKey(key); + } + /** Use {@link #getParamTypesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParamTypes() { + return getParamTypesMap(); + } + /** + * + * + *
    +     * Required. `param_types` is a map of parameter identifier strings to their
    +     * `Type`s.
    +     *
    +     * In query string, a parameter placeholder consists of the
    +     * `@` character followed by the parameter name (for example, `@firstName`) in
    +     * the query string.
    +     *
    +     * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +     * query parameter of type Bytes. The specific `Value` to be used for the
    +     * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +     * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map getParamTypesMap() { + return internalGetParamTypes().getImmutableMap(); + } + /** + * + * + *
    +     * Required. `param_types` is a map of parameter identifier strings to their
    +     * `Type`s.
    +     *
    +     * In query string, a parameter placeholder consists of the
    +     * `@` character followed by the parameter name (for example, `@firstName`) in
    +     * the query string.
    +     *
    +     * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +     * query parameter of type Bytes. The specific `Value` to be used for the
    +     * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +     * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public /* nullable */ com.google.bigtable.v2.Type getParamTypesOrDefault( + java.lang.String key, + /* nullable */ + com.google.bigtable.v2.Type defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableParamTypes().ensureBuilderMap(); + return map.containsKey(key) ? paramTypesConverter.build(map.get(key)) : defaultValue; + } + /** + * + * + *
    +     * Required. `param_types` is a map of parameter identifier strings to their
    +     * `Type`s.
    +     *
    +     * In query string, a parameter placeholder consists of the
    +     * `@` character followed by the parameter name (for example, `@firstName`) in
    +     * the query string.
    +     *
    +     * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +     * query parameter of type Bytes. The specific `Value` to be used for the
    +     * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +     * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.bigtable.v2.Type getParamTypesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableParamTypes().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return paramTypesConverter.build(map.get(key)); + } + + public Builder clearParamTypes() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableParamTypes().clear(); + return this; + } + /** + * + * + *
    +     * Required. `param_types` is a map of parameter identifier strings to their
    +     * `Type`s.
    +     *
    +     * In query string, a parameter placeholder consists of the
    +     * `@` character followed by the parameter name (for example, `@firstName`) in
    +     * the query string.
    +     *
    +     * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +     * query parameter of type Bytes. The specific `Value` to be used for the
    +     * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +     * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeParamTypes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableParamTypes().ensureBuilderMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableParamTypes() { + bitField0_ |= 0x00000010; + return internalGetMutableParamTypes().ensureMessageMap(); + } + /** + * + * + *
    +     * Required. `param_types` is a map of parameter identifier strings to their
    +     * `Type`s.
    +     *
    +     * In query string, a parameter placeholder consists of the
    +     * `@` character followed by the parameter name (for example, `@firstName`) in
    +     * the query string.
    +     *
    +     * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +     * query parameter of type Bytes. The specific `Value` to be used for the
    +     * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +     * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putParamTypes(java.lang.String key, com.google.bigtable.v2.Type value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableParamTypes().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + * + * + *
    +     * Required. `param_types` is a map of parameter identifier strings to their
    +     * `Type`s.
    +     *
    +     * In query string, a parameter placeholder consists of the
    +     * `@` character followed by the parameter name (for example, `@firstName`) in
    +     * the query string.
    +     *
    +     * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +     * query parameter of type Bytes. The specific `Value` to be used for the
    +     * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +     * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAllParamTypes( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableParamTypes().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + /** + * + * + *
    +     * Required. `param_types` is a map of parameter identifier strings to their
    +     * `Type`s.
    +     *
    +     * In query string, a parameter placeholder consists of the
    +     * `@` character followed by the parameter name (for example, `@firstName`) in
    +     * the query string.
    +     *
    +     * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +     * query parameter of type Bytes. The specific `Value` to be used for the
    +     * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +     * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.bigtable.v2.Type.Builder putParamTypesBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = + internalGetMutableParamTypes().ensureBuilderMap(); + com.google.bigtable.v2.TypeOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.bigtable.v2.Type.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.bigtable.v2.Type) { + entry = ((com.google.bigtable.v2.Type) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.bigtable.v2.Type.Builder) entry; + } + + @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.bigtable.v2.PrepareQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.PrepareQueryRequest) + private static final com.google.bigtable.v2.PrepareQueryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.PrepareQueryRequest(); + } + + public static com.google.bigtable.v2.PrepareQueryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrepareQueryRequest 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.bigtable.v2.PrepareQueryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PrepareQueryRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PrepareQueryRequestOrBuilder.java new file mode 100644 index 000000000000..1553643c152e --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PrepareQueryRequestOrBuilder.java @@ -0,0 +1,270 @@ +/* + * Copyright 2025 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/bigtable/v2/bigtable.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.v2; + +public interface PrepareQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.PrepareQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The unique name of the instance against which the query should be
    +   * executed.
    +   * Values are of the form `projects/<project>/instances/<instance>`
    +   * 
    + * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instanceName. + */ + java.lang.String getInstanceName(); + /** + * + * + *
    +   * Required. The unique name of the instance against which the query should be
    +   * executed.
    +   * Values are of the form `projects/<project>/instances/<instance>`
    +   * 
    + * + * + * string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instanceName. + */ + com.google.protobuf.ByteString getInstanceNameBytes(); + + /** + * + * + *
    +   * Optional. This value specifies routing for preparing the query. Note that
    +   * this `app_profile_id` is only used for preparing the query. The actual
    +   * query execution will use the app profile specified in the
    +   * `ExecuteQueryRequest`. If not specified, the `default` application profile
    +   * will be used.
    +   * 
    + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appProfileId. + */ + java.lang.String getAppProfileId(); + /** + * + * + *
    +   * Optional. This value specifies routing for preparing the query. Note that
    +   * this `app_profile_id` is only used for preparing the query. The actual
    +   * query execution will use the app profile specified in the
    +   * `ExecuteQueryRequest`. If not specified, the `default` application profile
    +   * will be used.
    +   * 
    + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appProfileId. + */ + com.google.protobuf.ByteString getAppProfileIdBytes(); + + /** + * + * + *
    +   * Required. The query string.
    +   * 
    + * + * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
    +   * Required. The query string.
    +   * 
    + * + * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
    +   * Protocol buffer format as described by ProtoSchema and ProtoRows
    +   * messages.
    +   * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + * + * @return Whether the protoFormat field is set. + */ + boolean hasProtoFormat(); + /** + * + * + *
    +   * Protocol buffer format as described by ProtoSchema and ProtoRows
    +   * messages.
    +   * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + * + * @return The protoFormat. + */ + com.google.bigtable.v2.ProtoFormat getProtoFormat(); + /** + * + * + *
    +   * Protocol buffer format as described by ProtoSchema and ProtoRows
    +   * messages.
    +   * 
    + * + * .google.bigtable.v2.ProtoFormat proto_format = 4; + */ + com.google.bigtable.v2.ProtoFormatOrBuilder getProtoFormatOrBuilder(); + + /** + * + * + *
    +   * Required. `param_types` is a map of parameter identifier strings to their
    +   * `Type`s.
    +   *
    +   * In query string, a parameter placeholder consists of the
    +   * `@` character followed by the parameter name (for example, `@firstName`) in
    +   * the query string.
    +   *
    +   * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +   * query parameter of type Bytes. The specific `Value` to be used for the
    +   * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +   * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getParamTypesCount(); + /** + * + * + *
    +   * Required. `param_types` is a map of parameter identifier strings to their
    +   * `Type`s.
    +   *
    +   * In query string, a parameter placeholder consists of the
    +   * `@` character followed by the parameter name (for example, `@firstName`) in
    +   * the query string.
    +   *
    +   * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +   * query parameter of type Bytes. The specific `Value` to be used for the
    +   * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +   * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + boolean containsParamTypes(java.lang.String key); + /** Use {@link #getParamTypesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getParamTypes(); + /** + * + * + *
    +   * Required. `param_types` is a map of parameter identifier strings to their
    +   * `Type`s.
    +   *
    +   * In query string, a parameter placeholder consists of the
    +   * `@` character followed by the parameter name (for example, `@firstName`) in
    +   * the query string.
    +   *
    +   * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +   * query parameter of type Bytes. The specific `Value` to be used for the
    +   * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +   * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.Map getParamTypesMap(); + /** + * + * + *
    +   * Required. `param_types` is a map of parameter identifier strings to their
    +   * `Type`s.
    +   *
    +   * In query string, a parameter placeholder consists of the
    +   * `@` character followed by the parameter name (for example, `@firstName`) in
    +   * the query string.
    +   *
    +   * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +   * query parameter of type Bytes. The specific `Value` to be used for the
    +   * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +   * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + /* nullable */ + com.google.bigtable.v2.Type getParamTypesOrDefault( + java.lang.String key, + /* nullable */ + com.google.bigtable.v2.Type defaultValue); + /** + * + * + *
    +   * Required. `param_types` is a map of parameter identifier strings to their
    +   * `Type`s.
    +   *
    +   * In query string, a parameter placeholder consists of the
    +   * `@` character followed by the parameter name (for example, `@firstName`) in
    +   * the query string.
    +   *
    +   * For example, if param_types["firstName"] = Bytes then @firstName will be a
    +   * query parameter of type Bytes. The specific `Value` to be used for the
    +   * query execution must be sent in `ExecuteQueryRequest` in the `params` map.
    +   * 
    + * + * + * map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.bigtable.v2.Type getParamTypesOrThrow(java.lang.String key); + + com.google.bigtable.v2.PrepareQueryRequest.DataFormatCase getDataFormatCase(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PrepareQueryResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PrepareQueryResponse.java new file mode 100644 index 000000000000..a74b9d051ae8 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PrepareQueryResponse.java @@ -0,0 +1,1121 @@ +/* + * Copyright 2025 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/bigtable/v2/bigtable.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.v2; + +/** + * + * + *
    + * Response message for Bigtable.PrepareQueryResponse
    + * 
    + * + * Protobuf type {@code google.bigtable.v2.PrepareQueryResponse} + */ +public final class PrepareQueryResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.PrepareQueryResponse) + PrepareQueryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrepareQueryResponse.newBuilder() to construct. + private PrepareQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrepareQueryResponse() { + preparedQuery_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrepareQueryResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.BigtableProto + .internal_static_google_bigtable_v2_PrepareQueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.BigtableProto + .internal_static_google_bigtable_v2_PrepareQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.PrepareQueryResponse.class, + com.google.bigtable.v2.PrepareQueryResponse.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private com.google.bigtable.v2.ResultSetMetadata metadata_; + /** + * + * + *
    +   * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +   * returned `prepared_query`.
    +   * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +   * returned `prepared_query`.
    +   * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.bigtable.v2.ResultSetMetadata getMetadata() { + return metadata_ == null + ? com.google.bigtable.v2.ResultSetMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
    +   * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +   * returned `prepared_query`.
    +   * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + */ + @java.lang.Override + public com.google.bigtable.v2.ResultSetMetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null + ? com.google.bigtable.v2.ResultSetMetadata.getDefaultInstance() + : metadata_; + } + + public static final int PREPARED_QUERY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString preparedQuery_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
    +   * A serialized prepared query. Clients should treat this as an opaque
    +   * blob of bytes to send in `ExecuteQueryRequest`.
    +   * 
    + * + * bytes prepared_query = 2; + * + * @return The preparedQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreparedQuery() { + return preparedQuery_; + } + + public static final int VALID_UNTIL_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp validUntil_; + /** + * + * + *
    +   * The time at which the prepared query token becomes invalid.
    +   * A token may become invalid early due to changes in the data being read, but
    +   * it provides a guideline to refresh query plans asynchronously.
    +   * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + * + * @return Whether the validUntil field is set. + */ + @java.lang.Override + public boolean hasValidUntil() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * The time at which the prepared query token becomes invalid.
    +   * A token may become invalid early due to changes in the data being read, but
    +   * it provides a guideline to refresh query plans asynchronously.
    +   * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + * + * @return The validUntil. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getValidUntil() { + return validUntil_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validUntil_; + } + /** + * + * + *
    +   * The time at which the prepared query token becomes invalid.
    +   * A token may become invalid early due to changes in the data being read, but
    +   * it provides a guideline to refresh query plans asynchronously.
    +   * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getValidUntilOrBuilder() { + return validUntil_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validUntil_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetadata()); + } + if (!preparedQuery_.isEmpty()) { + output.writeBytes(2, preparedQuery_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getValidUntil()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata()); + } + if (!preparedQuery_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, preparedQuery_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getValidUntil()); + } + 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.bigtable.v2.PrepareQueryResponse)) { + return super.equals(obj); + } + com.google.bigtable.v2.PrepareQueryResponse other = + (com.google.bigtable.v2.PrepareQueryResponse) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!getPreparedQuery().equals(other.getPreparedQuery())) return false; + if (hasValidUntil() != other.hasValidUntil()) return false; + if (hasValidUntil()) { + if (!getValidUntil().equals(other.getValidUntil())) 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 (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + PREPARED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getPreparedQuery().hashCode(); + if (hasValidUntil()) { + hash = (37 * hash) + VALID_UNTIL_FIELD_NUMBER; + hash = (53 * hash) + getValidUntil().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.PrepareQueryResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.PrepareQueryResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.PrepareQueryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.PrepareQueryResponse 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.bigtable.v2.PrepareQueryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.PrepareQueryResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.PrepareQueryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.PrepareQueryResponse 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.bigtable.v2.PrepareQueryResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.PrepareQueryResponse 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.bigtable.v2.PrepareQueryResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.PrepareQueryResponse 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.bigtable.v2.PrepareQueryResponse 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; + } + /** + * + * + *
    +   * Response message for Bigtable.PrepareQueryResponse
    +   * 
    + * + * Protobuf type {@code google.bigtable.v2.PrepareQueryResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.PrepareQueryResponse) + com.google.bigtable.v2.PrepareQueryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.BigtableProto + .internal_static_google_bigtable_v2_PrepareQueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.BigtableProto + .internal_static_google_bigtable_v2_PrepareQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.PrepareQueryResponse.class, + com.google.bigtable.v2.PrepareQueryResponse.Builder.class); + } + + // Construct using com.google.bigtable.v2.PrepareQueryResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getValidUntilFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + preparedQuery_ = com.google.protobuf.ByteString.EMPTY; + validUntil_ = null; + if (validUntilBuilder_ != null) { + validUntilBuilder_.dispose(); + validUntilBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.BigtableProto + .internal_static_google_bigtable_v2_PrepareQueryResponse_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.PrepareQueryResponse getDefaultInstanceForType() { + return com.google.bigtable.v2.PrepareQueryResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.PrepareQueryResponse build() { + com.google.bigtable.v2.PrepareQueryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.PrepareQueryResponse buildPartial() { + com.google.bigtable.v2.PrepareQueryResponse result = + new com.google.bigtable.v2.PrepareQueryResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.v2.PrepareQueryResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.preparedQuery_ = preparedQuery_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validUntil_ = validUntilBuilder_ == null ? validUntil_ : validUntilBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.bigtable.v2.PrepareQueryResponse) { + return mergeFrom((com.google.bigtable.v2.PrepareQueryResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.PrepareQueryResponse other) { + if (other == com.google.bigtable.v2.PrepareQueryResponse.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.getPreparedQuery() != com.google.protobuf.ByteString.EMPTY) { + setPreparedQuery(other.getPreparedQuery()); + } + if (other.hasValidUntil()) { + mergeValidUntil(other.getValidUntil()); + } + 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(getMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + preparedQuery_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getValidUntilFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.bigtable.v2.ResultSetMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ResultSetMetadata, + com.google.bigtable.v2.ResultSetMetadata.Builder, + com.google.bigtable.v2.ResultSetMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
    +     * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +     * returned `prepared_query`.
    +     * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +     * returned `prepared_query`.
    +     * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + * + * @return The metadata. + */ + public com.google.bigtable.v2.ResultSetMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.bigtable.v2.ResultSetMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +     * returned `prepared_query`.
    +     * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + */ + public Builder setMetadata(com.google.bigtable.v2.ResultSetMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +     * returned `prepared_query`.
    +     * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + */ + public Builder setMetadata(com.google.bigtable.v2.ResultSetMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +     * returned `prepared_query`.
    +     * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + */ + public Builder mergeMetadata(com.google.bigtable.v2.ResultSetMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metadata_ != null + && metadata_ != com.google.bigtable.v2.ResultSetMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +     * returned `prepared_query`.
    +     * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +     * returned `prepared_query`.
    +     * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + */ + public com.google.bigtable.v2.ResultSetMetadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +     * returned `prepared_query`.
    +     * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + */ + public com.google.bigtable.v2.ResultSetMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.bigtable.v2.ResultSetMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
    +     * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +     * returned `prepared_query`.
    +     * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ResultSetMetadata, + com.google.bigtable.v2.ResultSetMetadata.Builder, + com.google.bigtable.v2.ResultSetMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ResultSetMetadata, + com.google.bigtable.v2.ResultSetMetadata.Builder, + com.google.bigtable.v2.ResultSetMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.ByteString preparedQuery_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
    +     * A serialized prepared query. Clients should treat this as an opaque
    +     * blob of bytes to send in `ExecuteQueryRequest`.
    +     * 
    + * + * bytes prepared_query = 2; + * + * @return The preparedQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreparedQuery() { + return preparedQuery_; + } + /** + * + * + *
    +     * A serialized prepared query. Clients should treat this as an opaque
    +     * blob of bytes to send in `ExecuteQueryRequest`.
    +     * 
    + * + * bytes prepared_query = 2; + * + * @param value The preparedQuery to set. + * @return This builder for chaining. + */ + public Builder setPreparedQuery(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + preparedQuery_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * A serialized prepared query. Clients should treat this as an opaque
    +     * blob of bytes to send in `ExecuteQueryRequest`.
    +     * 
    + * + * bytes prepared_query = 2; + * + * @return This builder for chaining. + */ + public Builder clearPreparedQuery() { + bitField0_ = (bitField0_ & ~0x00000002); + preparedQuery_ = getDefaultInstance().getPreparedQuery(); + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp validUntil_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + validUntilBuilder_; + /** + * + * + *
    +     * The time at which the prepared query token becomes invalid.
    +     * A token may become invalid early due to changes in the data being read, but
    +     * it provides a guideline to refresh query plans asynchronously.
    +     * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + * + * @return Whether the validUntil field is set. + */ + public boolean hasValidUntil() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * The time at which the prepared query token becomes invalid.
    +     * A token may become invalid early due to changes in the data being read, but
    +     * it provides a guideline to refresh query plans asynchronously.
    +     * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + * + * @return The validUntil. + */ + public com.google.protobuf.Timestamp getValidUntil() { + if (validUntilBuilder_ == null) { + return validUntil_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : validUntil_; + } else { + return validUntilBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The time at which the prepared query token becomes invalid.
    +     * A token may become invalid early due to changes in the data being read, but
    +     * it provides a guideline to refresh query plans asynchronously.
    +     * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + */ + public Builder setValidUntil(com.google.protobuf.Timestamp value) { + if (validUntilBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + validUntil_ = value; + } else { + validUntilBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which the prepared query token becomes invalid.
    +     * A token may become invalid early due to changes in the data being read, but
    +     * it provides a guideline to refresh query plans asynchronously.
    +     * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + */ + public Builder setValidUntil(com.google.protobuf.Timestamp.Builder builderForValue) { + if (validUntilBuilder_ == null) { + validUntil_ = builderForValue.build(); + } else { + validUntilBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which the prepared query token becomes invalid.
    +     * A token may become invalid early due to changes in the data being read, but
    +     * it provides a guideline to refresh query plans asynchronously.
    +     * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + */ + public Builder mergeValidUntil(com.google.protobuf.Timestamp value) { + if (validUntilBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && validUntil_ != null + && validUntil_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getValidUntilBuilder().mergeFrom(value); + } else { + validUntil_ = value; + } + } else { + validUntilBuilder_.mergeFrom(value); + } + if (validUntil_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The time at which the prepared query token becomes invalid.
    +     * A token may become invalid early due to changes in the data being read, but
    +     * it provides a guideline to refresh query plans asynchronously.
    +     * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + */ + public Builder clearValidUntil() { + bitField0_ = (bitField0_ & ~0x00000004); + validUntil_ = null; + if (validUntilBuilder_ != null) { + validUntilBuilder_.dispose(); + validUntilBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The time at which the prepared query token becomes invalid.
    +     * A token may become invalid early due to changes in the data being read, but
    +     * it provides a guideline to refresh query plans asynchronously.
    +     * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + */ + public com.google.protobuf.Timestamp.Builder getValidUntilBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getValidUntilFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The time at which the prepared query token becomes invalid.
    +     * A token may become invalid early due to changes in the data being read, but
    +     * it provides a guideline to refresh query plans asynchronously.
    +     * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + */ + public com.google.protobuf.TimestampOrBuilder getValidUntilOrBuilder() { + if (validUntilBuilder_ != null) { + return validUntilBuilder_.getMessageOrBuilder(); + } else { + return validUntil_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : validUntil_; + } + } + /** + * + * + *
    +     * The time at which the prepared query token becomes invalid.
    +     * A token may become invalid early due to changes in the data being read, but
    +     * it provides a guideline to refresh query plans asynchronously.
    +     * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getValidUntilFieldBuilder() { + if (validUntilBuilder_ == null) { + validUntilBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getValidUntil(), getParentForChildren(), isClean()); + validUntil_ = null; + } + return validUntilBuilder_; + } + + @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.bigtable.v2.PrepareQueryResponse) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.PrepareQueryResponse) + private static final com.google.bigtable.v2.PrepareQueryResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.PrepareQueryResponse(); + } + + public static com.google.bigtable.v2.PrepareQueryResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrepareQueryResponse 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.bigtable.v2.PrepareQueryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PrepareQueryResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PrepareQueryResponseOrBuilder.java new file mode 100644 index 000000000000..5ad6ff091a28 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PrepareQueryResponseOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2025 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/bigtable/v2/bigtable.proto + +// Protobuf Java Version: 3.25.5 +package com.google.bigtable.v2; + +public interface PrepareQueryResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.PrepareQueryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +   * returned `prepared_query`.
    +   * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
    +   * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +   * returned `prepared_query`.
    +   * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + * + * @return The metadata. + */ + com.google.bigtable.v2.ResultSetMetadata getMetadata(); + /** + * + * + *
    +   * Structure of rows in the response stream of `ExecuteQueryResponse` for the
    +   * returned `prepared_query`.
    +   * 
    + * + * .google.bigtable.v2.ResultSetMetadata metadata = 1; + */ + com.google.bigtable.v2.ResultSetMetadataOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
    +   * A serialized prepared query. Clients should treat this as an opaque
    +   * blob of bytes to send in `ExecuteQueryRequest`.
    +   * 
    + * + * bytes prepared_query = 2; + * + * @return The preparedQuery. + */ + com.google.protobuf.ByteString getPreparedQuery(); + + /** + * + * + *
    +   * The time at which the prepared query token becomes invalid.
    +   * A token may become invalid early due to changes in the data being read, but
    +   * it provides a guideline to refresh query plans asynchronously.
    +   * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + * + * @return Whether the validUntil field is set. + */ + boolean hasValidUntil(); + /** + * + * + *
    +   * The time at which the prepared query token becomes invalid.
    +   * A token may become invalid early due to changes in the data being read, but
    +   * it provides a guideline to refresh query plans asynchronously.
    +   * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + * + * @return The validUntil. + */ + com.google.protobuf.Timestamp getValidUntil(); + /** + * + * + *
    +   * The time at which the prepared query token becomes invalid.
    +   * A token may become invalid early due to changes in the data being read, but
    +   * it provides a guideline to refresh query plans asynchronously.
    +   * 
    + * + * .google.protobuf.Timestamp valid_until = 3; + */ + com.google.protobuf.TimestampOrBuilder getValidUntilOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ProtoRowsBatch.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ProtoRowsBatch.java index 8e2f94be1c6d..039299fbdef4 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ProtoRowsBatch.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ProtoRowsBatch.java @@ -23,7 +23,7 @@ * * *
    - * Batch of serialized ProtoRows.
    + * A part of a serialized `ProtoRows` message.
      * 
    * * Protobuf type {@code google.bigtable.v2.ProtoRowsBatch} @@ -69,8 +69,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Merge partial results by concatenating these bytes, then parsing the
    -   * overall value as a `ProtoRows` message.
    +   * Part of a serialized `ProtoRows` message.
    +   * A complete, parseable ProtoRows message is constructed by
    +   * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The
    +   * `PartialResultSet` that contains the last part has `complete_batch` set to
    +   * `true`.
        * 
    * * bytes batch_data = 1; @@ -243,7 +246,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Batch of serialized ProtoRows.
    +   * A part of a serialized `ProtoRows` message.
        * 
    * * Protobuf type {@code google.bigtable.v2.ProtoRowsBatch} @@ -424,8 +427,11 @@ public Builder mergeFrom( * * *
    -     * Merge partial results by concatenating these bytes, then parsing the
    -     * overall value as a `ProtoRows` message.
    +     * Part of a serialized `ProtoRows` message.
    +     * A complete, parseable ProtoRows message is constructed by
    +     * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The
    +     * `PartialResultSet` that contains the last part has `complete_batch` set to
    +     * `true`.
          * 
    * * bytes batch_data = 1; @@ -440,8 +446,11 @@ public com.google.protobuf.ByteString getBatchData() { * * *
    -     * Merge partial results by concatenating these bytes, then parsing the
    -     * overall value as a `ProtoRows` message.
    +     * Part of a serialized `ProtoRows` message.
    +     * A complete, parseable ProtoRows message is constructed by
    +     * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The
    +     * `PartialResultSet` that contains the last part has `complete_batch` set to
    +     * `true`.
          * 
    * * bytes batch_data = 1; @@ -462,8 +471,11 @@ public Builder setBatchData(com.google.protobuf.ByteString value) { * * *
    -     * Merge partial results by concatenating these bytes, then parsing the
    -     * overall value as a `ProtoRows` message.
    +     * Part of a serialized `ProtoRows` message.
    +     * A complete, parseable ProtoRows message is constructed by
    +     * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The
    +     * `PartialResultSet` that contains the last part has `complete_batch` set to
    +     * `true`.
          * 
    * * bytes batch_data = 1; diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ProtoRowsBatchOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ProtoRowsBatchOrBuilder.java index 83e1511b3fe2..d73ced6fe5d5 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ProtoRowsBatchOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ProtoRowsBatchOrBuilder.java @@ -28,8 +28,11 @@ public interface ProtoRowsBatchOrBuilder * * *
    -   * Merge partial results by concatenating these bytes, then parsing the
    -   * overall value as a `ProtoRows` message.
    +   * Part of a serialized `ProtoRows` message.
    +   * A complete, parseable ProtoRows message is constructed by
    +   * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The
    +   * `PartialResultSet` that contains the last part has `complete_batch` set to
    +   * `true`.
        * 
    * * bytes batch_data = 1; diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequest.java index 5f0dfe374f6a..a8b0afccf6aa 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequest.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequest.java @@ -41,6 +41,7 @@ private ReadRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builde private ReadRowsRequest() { tableName_ = ""; authorizedViewName_ = ""; + materializedViewName_ = ""; appProfileId_ = ""; requestStatsView_ = 0; } @@ -354,6 +355,67 @@ public com.google.protobuf.ByteString getAuthorizedViewNameBytes() { } } + public static final int MATERIALIZED_VIEW_NAME_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object materializedViewName_ = ""; + /** + * + * + *
    +   * Optional. The unique name of the MaterializedView from which to read.
    +   *
    +   * Values are of the form
    +   * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +   * 
    + * + * + * string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The materializedViewName. + */ + @java.lang.Override + public java.lang.String getMaterializedViewName() { + java.lang.Object ref = materializedViewName_; + 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(); + materializedViewName_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The unique name of the MaterializedView from which to read.
    +   *
    +   * Values are of the form
    +   * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +   * 
    + * + * + * string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for materializedViewName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMaterializedViewNameBytes() { + java.lang.Object ref = materializedViewName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + materializedViewName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int APP_PROFILE_ID_FIELD_NUMBER = 5; @SuppressWarnings("serial") @@ -630,6 +692,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizedViewName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, authorizedViewName_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materializedViewName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, materializedViewName_); + } getUnknownFields().writeTo(output); } @@ -665,6 +730,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizedViewName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, authorizedViewName_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materializedViewName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, materializedViewName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -682,6 +750,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTableName().equals(other.getTableName())) return false; if (!getAuthorizedViewName().equals(other.getAuthorizedViewName())) return false; + if (!getMaterializedViewName().equals(other.getMaterializedViewName())) return false; if (!getAppProfileId().equals(other.getAppProfileId())) return false; if (hasRows() != other.hasRows()) return false; if (hasRows()) { @@ -709,6 +778,8 @@ public int hashCode() { hash = (53 * hash) + getTableName().hashCode(); hash = (37 * hash) + AUTHORIZED_VIEW_NAME_FIELD_NUMBER; hash = (53 * hash) + getAuthorizedViewName().hashCode(); + hash = (37 * hash) + MATERIALIZED_VIEW_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMaterializedViewName().hashCode(); hash = (37 * hash) + APP_PROFILE_ID_FIELD_NUMBER; hash = (53 * hash) + getAppProfileId().hashCode(); if (hasRows()) { @@ -876,6 +947,7 @@ public Builder clear() { bitField0_ = 0; tableName_ = ""; authorizedViewName_ = ""; + materializedViewName_ = ""; appProfileId_ = ""; rows_ = null; if (rowsBuilder_ != null) { @@ -933,24 +1005,27 @@ private void buildPartial0(com.google.bigtable.v2.ReadRowsRequest result) { result.authorizedViewName_ = authorizedViewName_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.materializedViewName_ = materializedViewName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.appProfileId_ = appProfileId_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.rows_ = rowsBuilder_ == null ? rows_ : rowsBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.rowsLimit_ = rowsLimit_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.requestStatsView_ = requestStatsView_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.reversed_ = reversed_; } result.bitField0_ |= to_bitField0_; @@ -1011,9 +1086,14 @@ public Builder mergeFrom(com.google.bigtable.v2.ReadRowsRequest other) { bitField0_ |= 0x00000002; onChanged(); } + if (!other.getMaterializedViewName().isEmpty()) { + materializedViewName_ = other.materializedViewName_; + bitField0_ |= 0x00000004; + onChanged(); + } if (!other.getAppProfileId().isEmpty()) { appProfileId_ = other.appProfileId_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasRows()) { @@ -1066,37 +1146,37 @@ public Builder mergeFrom( case 18: { input.readMessage(getRowsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 26: { input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 32: { rowsLimit_ = input.readInt64(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 32 case 42: { appProfileId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 42 case 48: { requestStatsView_ = input.readEnum(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 48 case 56: { reversed_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 56 case 74: @@ -1105,6 +1185,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 74 + case 90: + { + materializedViewName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1386,6 +1472,137 @@ public Builder setAuthorizedViewNameBytes(com.google.protobuf.ByteString value) return this; } + private java.lang.Object materializedViewName_ = ""; + /** + * + * + *
    +     * Optional. The unique name of the MaterializedView from which to read.
    +     *
    +     * Values are of the form
    +     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +     * 
    + * + * + * string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The materializedViewName. + */ + public java.lang.String getMaterializedViewName() { + java.lang.Object ref = materializedViewName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + materializedViewName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The unique name of the MaterializedView from which to read.
    +     *
    +     * Values are of the form
    +     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +     * 
    + * + * + * string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for materializedViewName. + */ + public com.google.protobuf.ByteString getMaterializedViewNameBytes() { + java.lang.Object ref = materializedViewName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + materializedViewName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The unique name of the MaterializedView from which to read.
    +     *
    +     * Values are of the form
    +     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +     * 
    + * + * + * string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The materializedViewName to set. + * @return This builder for chaining. + */ + public Builder setMaterializedViewName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + materializedViewName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The unique name of the MaterializedView from which to read.
    +     *
    +     * Values are of the form
    +     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +     * 
    + * + * + * string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearMaterializedViewName() { + materializedViewName_ = getDefaultInstance().getMaterializedViewName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The unique name of the MaterializedView from which to read.
    +     *
    +     * Values are of the form
    +     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +     * 
    + * + * + * string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for materializedViewName to set. + * @return This builder for chaining. + */ + public Builder setMaterializedViewNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + materializedViewName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private java.lang.Object appProfileId_ = ""; /** * @@ -1451,7 +1668,7 @@ public Builder setAppProfileId(java.lang.String value) { throw new NullPointerException(); } appProfileId_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1469,7 +1686,7 @@ public Builder setAppProfileId(java.lang.String value) { */ public Builder clearAppProfileId() { appProfileId_ = getDefaultInstance().getAppProfileId(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1492,7 +1709,7 @@ public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); appProfileId_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1516,7 +1733,7 @@ public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { * @return Whether the rows field is set. */ public boolean hasRows() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1556,7 +1773,7 @@ public Builder setRows(com.google.bigtable.v2.RowSet value) { } else { rowsBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1576,7 +1793,7 @@ public Builder setRows(com.google.bigtable.v2.RowSet.Builder builderForValue) { } else { rowsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1592,7 +1809,7 @@ public Builder setRows(com.google.bigtable.v2.RowSet.Builder builderForValue) { */ public Builder mergeRows(com.google.bigtable.v2.RowSet value) { if (rowsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && rows_ != null && rows_ != com.google.bigtable.v2.RowSet.getDefaultInstance()) { getRowsBuilder().mergeFrom(value); @@ -1603,7 +1820,7 @@ public Builder mergeRows(com.google.bigtable.v2.RowSet value) { rowsBuilder_.mergeFrom(value); } if (rows_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -1619,7 +1836,7 @@ public Builder mergeRows(com.google.bigtable.v2.RowSet value) { * .google.bigtable.v2.RowSet rows = 2; */ public Builder clearRows() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); rows_ = null; if (rowsBuilder_ != null) { rowsBuilder_.dispose(); @@ -1639,7 +1856,7 @@ public Builder clearRows() { * .google.bigtable.v2.RowSet rows = 2; */ public com.google.bigtable.v2.RowSet.Builder getRowsBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getRowsFieldBuilder().getBuilder(); } @@ -1706,7 +1923,7 @@ public com.google.bigtable.v2.RowSetOrBuilder getRowsOrBuilder() { * @return Whether the filter field is set. */ public boolean hasFilter() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1746,7 +1963,7 @@ public Builder setFilter(com.google.bigtable.v2.RowFilter value) { } else { filterBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1766,7 +1983,7 @@ public Builder setFilter(com.google.bigtable.v2.RowFilter.Builder builderForValu } else { filterBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1782,7 +1999,7 @@ public Builder setFilter(com.google.bigtable.v2.RowFilter.Builder builderForValu */ public Builder mergeFilter(com.google.bigtable.v2.RowFilter value) { if (filterBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && filter_ != null && filter_ != com.google.bigtable.v2.RowFilter.getDefaultInstance()) { getFilterBuilder().mergeFrom(value); @@ -1793,7 +2010,7 @@ public Builder mergeFilter(com.google.bigtable.v2.RowFilter value) { filterBuilder_.mergeFrom(value); } if (filter_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1809,7 +2026,7 @@ public Builder mergeFilter(com.google.bigtable.v2.RowFilter value) { * .google.bigtable.v2.RowFilter filter = 3; */ public Builder clearFilter() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); filter_ = null; if (filterBuilder_ != null) { filterBuilder_.dispose(); @@ -1829,7 +2046,7 @@ public Builder clearFilter() { * .google.bigtable.v2.RowFilter filter = 3; */ public com.google.bigtable.v2.RowFilter.Builder getFilterBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getFilterFieldBuilder().getBuilder(); } @@ -1910,7 +2127,7 @@ public long getRowsLimit() { public Builder setRowsLimit(long value) { rowsLimit_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1927,7 +2144,7 @@ public Builder setRowsLimit(long value) { * @return This builder for chaining. */ public Builder clearRowsLimit() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); rowsLimit_ = 0L; onChanged(); return this; @@ -1963,7 +2180,7 @@ public int getRequestStatsViewValue() { */ public Builder setRequestStatsViewValue(int value) { requestStatsView_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2003,7 +2220,7 @@ public Builder setRequestStatsView( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; requestStatsView_ = value.getNumber(); onChanged(); return this; @@ -2020,7 +2237,7 @@ public Builder setRequestStatsView( * @return This builder for chaining. */ public Builder clearRequestStatsView() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); requestStatsView_ = 0; onChanged(); return this; @@ -2079,7 +2296,7 @@ public boolean getReversed() { public Builder setReversed(boolean value) { reversed_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2106,7 +2323,7 @@ public Builder setReversed(boolean value) { * @return This builder for chaining. */ public Builder clearReversed() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); reversed_ = false; onChanged(); return this; diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequestOrBuilder.java index 89acb62e0d8f..54fd0bea3cd4 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequestOrBuilder.java @@ -94,6 +94,41 @@ public interface ReadRowsRequestOrBuilder */ com.google.protobuf.ByteString getAuthorizedViewNameBytes(); + /** + * + * + *
    +   * Optional. The unique name of the MaterializedView from which to read.
    +   *
    +   * Values are of the form
    +   * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +   * 
    + * + * + * string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The materializedViewName. + */ + java.lang.String getMaterializedViewName(); + /** + * + * + *
    +   * Optional. The unique name of the MaterializedView from which to read.
    +   *
    +   * Values are of the form
    +   * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +   * 
    + * + * + * string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for materializedViewName. + */ + com.google.protobuf.ByteString getMaterializedViewNameBytes(); + /** * * diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SampleRowKeysRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SampleRowKeysRequest.java index 67d11708437b..41262fbd5228 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SampleRowKeysRequest.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SampleRowKeysRequest.java @@ -41,6 +41,7 @@ private SampleRowKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder b private SampleRowKeysRequest() { tableName_ = ""; authorizedViewName_ = ""; + materializedViewName_ = ""; appProfileId_ = ""; } @@ -189,6 +190,67 @@ public com.google.protobuf.ByteString getAuthorizedViewNameBytes() { } } + public static final int MATERIALIZED_VIEW_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object materializedViewName_ = ""; + /** + * + * + *
    +   * Optional. The unique name of the MaterializedView from which to read.
    +   *
    +   * Values are of the form
    +   * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +   * 
    + * + * + * string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The materializedViewName. + */ + @java.lang.Override + public java.lang.String getMaterializedViewName() { + java.lang.Object ref = materializedViewName_; + 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(); + materializedViewName_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The unique name of the MaterializedView from which to read.
    +   *
    +   * Values are of the form
    +   * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +   * 
    + * + * + * string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for materializedViewName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMaterializedViewNameBytes() { + java.lang.Object ref = materializedViewName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + materializedViewName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int APP_PROFILE_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -265,6 +327,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizedViewName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authorizedViewName_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materializedViewName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, materializedViewName_); + } getUnknownFields().writeTo(output); } @@ -283,6 +348,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizedViewName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authorizedViewName_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materializedViewName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, materializedViewName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -301,6 +369,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTableName().equals(other.getTableName())) return false; if (!getAuthorizedViewName().equals(other.getAuthorizedViewName())) return false; + if (!getMaterializedViewName().equals(other.getMaterializedViewName())) return false; if (!getAppProfileId().equals(other.getAppProfileId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -317,6 +386,8 @@ public int hashCode() { hash = (53 * hash) + getTableName().hashCode(); hash = (37 * hash) + AUTHORIZED_VIEW_NAME_FIELD_NUMBER; hash = (53 * hash) + getAuthorizedViewName().hashCode(); + hash = (37 * hash) + MATERIALIZED_VIEW_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMaterializedViewName().hashCode(); hash = (37 * hash) + APP_PROFILE_ID_FIELD_NUMBER; hash = (53 * hash) + getAppProfileId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -460,6 +531,7 @@ public Builder clear() { bitField0_ = 0; tableName_ = ""; authorizedViewName_ = ""; + materializedViewName_ = ""; appProfileId_ = ""; return this; } @@ -504,6 +576,9 @@ private void buildPartial0(com.google.bigtable.v2.SampleRowKeysRequest result) { result.authorizedViewName_ = authorizedViewName_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.materializedViewName_ = materializedViewName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.appProfileId_ = appProfileId_; } } @@ -563,9 +638,14 @@ public Builder mergeFrom(com.google.bigtable.v2.SampleRowKeysRequest other) { bitField0_ |= 0x00000002; onChanged(); } + if (!other.getMaterializedViewName().isEmpty()) { + materializedViewName_ = other.materializedViewName_; + bitField0_ |= 0x00000004; + onChanged(); + } if (!other.getAppProfileId().isEmpty()) { appProfileId_ = other.appProfileId_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -603,7 +683,7 @@ public Builder mergeFrom( case 18: { appProfileId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 18 case 34: @@ -612,6 +692,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 34 + case 42: + { + materializedViewName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -898,6 +984,137 @@ public Builder setAuthorizedViewNameBytes(com.google.protobuf.ByteString value) return this; } + private java.lang.Object materializedViewName_ = ""; + /** + * + * + *
    +     * Optional. The unique name of the MaterializedView from which to read.
    +     *
    +     * Values are of the form
    +     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +     * 
    + * + * + * string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The materializedViewName. + */ + public java.lang.String getMaterializedViewName() { + java.lang.Object ref = materializedViewName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + materializedViewName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The unique name of the MaterializedView from which to read.
    +     *
    +     * Values are of the form
    +     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +     * 
    + * + * + * string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for materializedViewName. + */ + public com.google.protobuf.ByteString getMaterializedViewNameBytes() { + java.lang.Object ref = materializedViewName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + materializedViewName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The unique name of the MaterializedView from which to read.
    +     *
    +     * Values are of the form
    +     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +     * 
    + * + * + * string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The materializedViewName to set. + * @return This builder for chaining. + */ + public Builder setMaterializedViewName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + materializedViewName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The unique name of the MaterializedView from which to read.
    +     *
    +     * Values are of the form
    +     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +     * 
    + * + * + * string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearMaterializedViewName() { + materializedViewName_ = getDefaultInstance().getMaterializedViewName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The unique name of the MaterializedView from which to read.
    +     *
    +     * Values are of the form
    +     * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +     * 
    + * + * + * string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for materializedViewName to set. + * @return This builder for chaining. + */ + public Builder setMaterializedViewNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + materializedViewName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private java.lang.Object appProfileId_ = ""; /** * @@ -963,7 +1180,7 @@ public Builder setAppProfileId(java.lang.String value) { throw new NullPointerException(); } appProfileId_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -981,7 +1198,7 @@ public Builder setAppProfileId(java.lang.String value) { */ public Builder clearAppProfileId() { appProfileId_ = getDefaultInstance().getAppProfileId(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1004,7 +1221,7 @@ public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); appProfileId_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SampleRowKeysRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SampleRowKeysRequestOrBuilder.java index ad580ce1ac14..ab5cae63e3ad 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SampleRowKeysRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/SampleRowKeysRequestOrBuilder.java @@ -96,6 +96,41 @@ public interface SampleRowKeysRequestOrBuilder */ com.google.protobuf.ByteString getAuthorizedViewNameBytes(); + /** + * + * + *
    +   * Optional. The unique name of the MaterializedView from which to read.
    +   *
    +   * Values are of the form
    +   * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +   * 
    + * + * + * string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The materializedViewName. + */ + java.lang.String getMaterializedViewName(); + /** + * + * + *
    +   * Optional. The unique name of the MaterializedView from which to read.
    +   *
    +   * Values are of the form
    +   * `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
    +   * 
    + * + * + * string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for materializedViewName. + */ + com.google.protobuf.ByteString getMaterializedViewNameBytes(); + /** * * diff --git a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/bigtable.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/bigtable.proto index 7c85b3f7567c..d2bb06a5a5cd 100644 --- a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/bigtable.proto +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/bigtable.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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 @@ import "google/api/resource.proto"; import "google/api/routing.proto"; import "google/bigtable/v2/data.proto"; import "google/bigtable/v2/request_stats.proto"; +import "google/bigtable/v2/types.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; @@ -47,6 +48,10 @@ option (google.api.resource_definition) = { type: "bigtableadmin.googleapis.com/AuthorizedView" pattern: "projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}" }; +option (google.api.resource_definition) = { + type: "bigtableadmin.googleapis.com/MaterializedView" + pattern: "projects/{project}/instances/{instance}/materializedViews/{materialized_view}" +}; // Service for reading from and writing to existing Bigtable tables. service Bigtable { @@ -275,7 +280,24 @@ service Bigtable { option (google.api.method_signature) = "table_name,app_profile_id"; } - // Executes a BTQL query against a particular Cloud Bigtable instance. + // Prepares a GoogleSQL query for execution on a particular Bigtable instance. + rpc PrepareQuery(PrepareQueryRequest) returns (PrepareQueryResponse) { + option (google.api.http) = { + post: "/v2/{instance_name=projects/*/instances/*}:prepareQuery" + body: "*" + }; + option (google.api.routing) = { + routing_parameters { + field: "instance_name" + path_template: "{name=projects/*/instances/*}" + } + routing_parameters { field: "app_profile_id" } + }; + option (google.api.method_signature) = "instance_name,query"; + option (google.api.method_signature) = "instance_name,query,app_profile_id"; + } + + // Executes a SQL query against a particular Bigtable instance. rpc ExecuteQuery(ExecuteQueryRequest) returns (stream ExecuteQueryResponse) { option (google.api.http) = { post: "/v2/{instance_name=projects/*/instances/*}:executeQuery" @@ -333,6 +355,17 @@ message ReadRowsRequest { } ]; + // Optional. The unique name of the MaterializedView from which to read. + // + // Values are of the form + // `projects//instances//materializedViews/`. + string materialized_view_name = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/MaterializedView" + } + ]; + // This value specifies routing for replication. If not specified, the // "default" application profile will be used. string app_profile_id = 5; @@ -493,6 +526,17 @@ message SampleRowKeysRequest { } ]; + // Optional. The unique name of the MaterializedView from which to read. + // + // Values are of the form + // `projects//instances//materializedViews/`. + string materialized_view_name = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/MaterializedView" + } + ]; + // This value specifies routing for replication. If not specified, the // "default" application profile will be used. string app_profile_id = 2; @@ -1041,13 +1085,31 @@ message ExecuteQueryRequest { string app_profile_id = 2 [(google.api.field_behavior) = OPTIONAL]; // Required. The query string. - string query = 3 [(google.api.field_behavior) = REQUIRED]; + // + // Exactly one of `query` and `prepared_query` is required. Setting both + // or neither is an `INVALID_ARGUMENT`. + string query = 3 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + + // A prepared query that was returned from `PrepareQueryResponse`. + // + // Exactly one of `query` and `prepared_query` is required. Setting both + // or neither is an `INVALID_ARGUMENT`. + // + // Setting this field also places restrictions on several other fields: + // - `data_format` must be empty. + // - `validate_only` must be false. + // - `params` must match the `param_types` set in the `PrepareQueryRequest`. + bytes prepared_query = 9; - // Required. Requested data format for the response. + // Requested data format for the response. + // + // If `prepared_query` is set, then the `data_format` is fixed by the + // `PrepareQueryRequest`, and a non-empty `data_format` in the + // `ExecuteQueryRequest` will be rejected with `INVALID_ARGUMENT`. oneof data_format { // Protocol buffer format as described by ProtoSchema and ProtoRows // messages. - ProtoFormat proto_format = 4; + ProtoFormat proto_format = 4 [deprecated = true]; } // Optional. If this request is resuming a previously interrupted query @@ -1067,17 +1129,21 @@ message ExecuteQueryRequest { // // For example, if // `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - // then `@firstName` will be replaced with googlesql bytes value "foo" in the - // query string during query evaluation. + // then `@firstName` will be replaced with googlesql bytes value "foo" in the + // query string during query evaluation. + // + // If `Value.kind` is not set, the value is treated as a NULL value of the + // given type. For example, if + // `params["firstName"] = type {string_type {}}` + // then `@firstName` will be replaced with googlesql null string. // - // In case of Value.kind is not set, it will be set to corresponding null - // value in googlesql. - // `params["firstName"] = type {string_type {}}` - // then `@firstName` will be replaced with googlesql null string. + // If `query` is set, any empty `Value.type` in the map will be rejected with + // `INVALID_ARGUMENT`. // - // Value.type should always be set and no inference of type will be made from - // Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT - // error. + // If `prepared_query` is set, any empty `Value.type` in the map will be + // inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + // `Value.type` must match the corresponding `param_types` entry, or be + // rejected with `INVALID_ARGUMENT`. map params = 7 [(google.api.field_behavior) = REQUIRED]; } @@ -1100,3 +1166,63 @@ message ExecuteQueryResponse { PartialResultSet results = 2; } } + +// Request message for Bigtable.PrepareQuery +message PrepareQueryRequest { + // Required. The unique name of the instance against which the query should be + // executed. + // Values are of the form `projects//instances/` + string instance_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/Instance" + } + ]; + + // Optional. This value specifies routing for preparing the query. Note that + // this `app_profile_id` is only used for preparing the query. The actual + // query execution will use the app profile specified in the + // `ExecuteQueryRequest`. If not specified, the `default` application profile + // will be used. + string app_profile_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The query string. + string query = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Requested data format for the response. Note that the selected + // data format is binding for all `ExecuteQuery` rpcs that use the prepared + // query. + oneof data_format { + // Protocol buffer format as described by ProtoSchema and ProtoRows + // messages. + ProtoFormat proto_format = 4; + } + + // Required. `param_types` is a map of parameter identifier strings to their + // `Type`s. + // + // In query string, a parameter placeholder consists of the + // `@` character followed by the parameter name (for example, `@firstName`) in + // the query string. + // + // For example, if param_types["firstName"] = Bytes then @firstName will be a + // query parameter of type Bytes. The specific `Value` to be used for the + // query execution must be sent in `ExecuteQueryRequest` in the `params` map. + map param_types = 6 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for Bigtable.PrepareQueryResponse +message PrepareQueryResponse { + // Structure of rows in the response stream of `ExecuteQueryResponse` for the + // returned `prepared_query`. + ResultSetMetadata metadata = 1; + + // A serialized prepared query. Clients should treat this as an opaque + // blob of bytes to send in `ExecuteQueryRequest`. + bytes prepared_query = 2; + + // The time at which the prepared query token becomes invalid. + // A token may become invalid early due to changes in the data being read, but + // it provides a guideline to refresh query plans asynchronously. + google.protobuf.Timestamp valid_until = 3; +} diff --git a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/data.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/data.proto index 8265611f3b03..924b3f262c6e 100644 --- a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/data.proto +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/data.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -724,54 +724,115 @@ message ProtoRows { repeated Value values = 2; } -// Batch of serialized ProtoRows. +// A part of a serialized `ProtoRows` message. message ProtoRowsBatch { - // Merge partial results by concatenating these bytes, then parsing the - // overall value as a `ProtoRows` message. + // Part of a serialized `ProtoRows` message. + // A complete, parseable ProtoRows message is constructed by + // concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The + // `PartialResultSet` that contains the last part has `complete_batch` set to + // `true`. bytes batch_data = 1; } // A partial result set from the streaming query API. -// CBT client will buffer partial_rows from result_sets until it gets a -// resumption_token. +// Cloud Bigtable clients buffer partial results received in this message until +// a `resume_token` is received. +// +// The pseudocode below describes how to buffer and parse a stream of +// `PartialResultSet` messages. +// +// Having: +// - queue of row results waiting to be returned `queue` +// - extensible buffer of bytes `buffer` +// - a place to keep track of the most recent `resume_token` +// for each PartialResultSet `p` received { +// if p.reset { +// ensure `queue` is empty +// ensure `buffer` is empty +// } +// if p.estimated_batch_size != 0 { +// (optional) ensure `buffer` is sized to at least `p.estimated_batch_size` +// } +// if `p.proto_rows_batch` is set { +// append `p.proto_rows_batch.bytes` to `buffer` +// } +// if p.batch_checksum is set and `buffer` is not empty { +// validate the checksum matches the contents of `buffer` +// (see comments on `batch_checksum`) +// parse `buffer` as `ProtoRows` message, clearing `buffer` +// add parsed rows to end of `queue` +// } +// if p.resume_token is set { +// release results in `queue` +// save `p.resume_token` in `resume_token` +// } +// } message PartialResultSet { - // Partial Rows in one of the supported formats. It may require many - // PartialResultSets to stream a batch of rows that can decoded on the client. - // The client should buffer partial_rows until it gets a `resume_token`, - // at which point the batch is complete and can be decoded and yielded to the - // user. Each sub-message documents the appropriate way to combine results. + // Some rows of the result set in one of the supported formats. + // + // Multiple `PartialResultSet` messages may be sent to represent a complete + // response. The client should buffer data constructed from the fields in + // `partial_rows` until a non-empty `resume_token` is received. Each + // sub-message documents the appropriate way to combine results. oneof partial_rows { // Partial rows in serialized ProtoRows format. ProtoRowsBatch proto_rows_batch = 3; } + // CRC32C checksum of concatenated `partial_rows` data for the current batch. + // + // When present, the buffered data from `partial_rows` forms a complete + // parseable message of the appropriate type. + // + // The client should mark the end of a parseable message and prepare to + // receive a new one starting from the next `PartialResultSet` message. + // Clients must verify the checksum of the serialized batch before yielding it + // to the caller. + // + // This does NOT mean the values can be yielded to the callers since a + // `resume_token` is required to safely do so. + // + // If `resume_token` is non-empty and any data has been received since the + // last one, this field is guaranteed to be non-empty. In other words, clients + // may assume that a batch will never cross a `resume_token` boundary. + optional uint32 batch_checksum = 6; + // An opaque token sent by the server to allow query resumption and signal - // the client to accumulate `partial_rows` since the last non-empty - // `resume_token`. On resumption, the resumed query will return the remaining - // rows for this query. + // that the buffered values constructed from received `partial_rows` can be + // yielded to the caller. Clients can provide this token in a subsequent + // request to resume the result stream from the current point. + // + // When `resume_token` is non-empty, the buffered values received from + // `partial_rows` since the last non-empty `resume_token` can be yielded to + // the callers, provided that the client keeps the value of `resume_token` and + // uses it on subsequent retries. // - // If there is a batch in progress, a non-empty `resume_token` - // means that that the batch of `partial_rows` will be complete after merging - // the `partial_rows` from this response. The client must only yield - // completed batches to the application, and must ensure that any future - // retries send the latest token to avoid returning duplicate data. + // A `resume_token` may be sent without information in `partial_rows` to + // checkpoint the progress of a sparse query. Any previous `partial_rows` data + // should still be yielded in this case, and the new `resume_token` should be + // saved for future retries as normal. // - // The server may set 'resume_token' without a 'partial_rows'. If there is a - // batch in progress the client should yield it. + // A `resume_token` will only be sent on a boundary where there is either no + // ongoing result batch, or `batch_checksum` is also populated. // // The server will also send a sentinel `resume_token` when last batch of // `partial_rows` is sent. If the client retries the ExecuteQueryRequest with // the sentinel `resume_token`, the server will emit it again without any - // `partial_rows`, then return OK. + // data in `partial_rows`, then return OK. bytes resume_token = 5; - // Estimated size of a new batch. The server will always set this when - // returning the first `partial_rows` of a batch, and will not set it at any - // other time. + // If `true`, any data buffered since the last non-empty `resume_token` must + // be discarded before the other parts of this message, if any, are handled. + bool reset = 7; + + // Estimated size of the buffer required to hold the next batch of results. + // + // This value will be sent with the first `partial_rows` of a batch. That is, + // on the first `partial_rows` received in a stream, on the first message + // after a `batch_checksum` message, and any time `reset` is true. // - // The client can use this estimate to allocate an initial buffer for the - // batched results. This helps minimize the number of allocations required, - // though the buffer size may still need to be increased if the estimate is - // too low. + // The client can use this estimate to allocate a buffer for the next batch of + // results. This helps minimize the number of allocations required, though the + // buffer size may still need to be increased if the estimate is too low. int32 estimated_batch_size = 4; } diff --git a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/feature_flags.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/feature_flags.proto index d4c3bdbd7106..3dfd36055820 100644 --- a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/feature_flags.proto +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/feature_flags.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-bigtable-v2/src/main/proto/google/bigtable/v2/request_stats.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/request_stats.proto index c82876876cc6..1e4fc57064b4 100644 --- a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/request_stats.proto +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/request_stats.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-bigtable-v2/src/main/proto/google/bigtable/v2/response_params.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/response_params.proto index feb0f7d2a16d..e3da4f228491 100644 --- a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/response_params.proto +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/response_params.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-bigtable-v2/src/main/proto/google/bigtable/v2/types.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/types.proto index 71817d44cd3f..e70ee766ae99 100644 --- a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/types.proto +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/types.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 80ca66342435..813f0200745f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-bigtable - 2.54.0 + 2.55.0 diff --git a/test-proxy/pom.xml b/test-proxy/pom.xml index 31b395341887..a6c342423e7a 100644 --- a/test-proxy/pom.xml +++ b/test-proxy/pom.xml @@ -12,11 +12,11 @@ google-cloud-bigtable-parent com.google.cloud - 2.54.0 + 2.55.0 - 2.54.0 + 2.55.0 diff --git a/versions.txt b/versions.txt index 5048a6eb0659..dc223119e488 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-bigtable:2.54.0:2.54.0 -grpc-google-cloud-bigtable-admin-v2:2.54.0:2.54.0 -grpc-google-cloud-bigtable-v2:2.54.0:2.54.0 -proto-google-cloud-bigtable-admin-v2:2.54.0:2.54.0 -proto-google-cloud-bigtable-v2:2.54.0:2.54.0 -google-cloud-bigtable-emulator:0.191.0:0.191.0 -google-cloud-bigtable-emulator-core:0.191.0:0.191.0 +google-cloud-bigtable:2.55.0:2.55.0 +grpc-google-cloud-bigtable-admin-v2:2.55.0:2.55.0 +grpc-google-cloud-bigtable-v2:2.55.0:2.55.0 +proto-google-cloud-bigtable-admin-v2:2.55.0:2.55.0 +proto-google-cloud-bigtable-v2:2.55.0:2.55.0 +google-cloud-bigtable-emulator:0.192.0:0.192.0 +google-cloud-bigtable-emulator-core:0.192.0:0.192.0