From e4f3d69a4e11c61bf975226654779587d69c1888 Mon Sep 17 00:00:00 2001 From: Blake Li Date: Wed, 10 Sep 2025 17:06:38 -0400 Subject: [PATCH 1/3] Update generation_config.yaml --- generation_config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/generation_config.yaml b/generation_config.yaml index 592fadffd773..471ba4781513 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -366,6 +366,7 @@ libraries: used for querying Apache Iceberg tables in BigQuery. GAPICs: - proto_path: google/cloud/bigquery/biglake/v1 + - proto_path: google/cloud/biglake/v1 - proto_path: google/cloud/bigquery/biglake/v1alpha1 - api_shortname: analyticshub From 4de5c39ac2514f1f3564c88fedb5722464a3d5b1 Mon Sep 17 00:00:00 2001 From: Blake Li Date: Thu, 11 Sep 2025 16:46:08 -0400 Subject: [PATCH 2/3] Update .OwlBot-hermetic.yaml --- java-biglake/.OwlBot-hermetic.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/java-biglake/.OwlBot-hermetic.yaml b/java-biglake/.OwlBot-hermetic.yaml index 08e729e40778..4925807f8728 100644 --- a/java-biglake/.OwlBot-hermetic.yaml +++ b/java-biglake/.OwlBot-hermetic.yaml @@ -31,6 +31,14 @@ deep-copy-regex: dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src" - source: "/google/cloud/bigquery/biglake/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-biglake/$1/samples/snippets/generated" +- source: "/google/cloud/biglake/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-biglake/$1/proto-google-cloud-biglake-$1/src" +- source: "/google/cloud/biglake/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/java-biglake/$1/grpc-google-cloud-biglake-$1/src" +- source: "/google/cloud/biglake/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src" +- source: "/google/cloud/biglake/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/java-biglake/$1/samples/snippets/generated" -api-name: biglake \ No newline at end of file +api-name: biglake From 80e16c6ad47e1da60cf7b033725438718b4ba41c Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 11 Sep 2025 20:50:22 +0000 Subject: [PATCH 3/3] chore: generate libraries at Thu Sep 11 20:48:32 UTC 2025 --- .../v1/IcebergCatalogServiceClient.java | 1058 ++++++ .../v1/IcebergCatalogServiceSettings.java | 273 ++ .../cloud/biglake/v1/gapic_metadata.json | 33 + .../google/cloud/biglake/v1/package-info.java | 60 + ...cIcebergCatalogServiceCallableFactory.java | 113 + .../stub/GrpcIcebergCatalogServiceStub.java | 335 ++ ...nIcebergCatalogServiceCallableFactory.java | 101 + .../HttpJsonIcebergCatalogServiceStub.java | 489 +++ .../v1/stub/IcebergCatalogServiceStub.java | 71 + .../IcebergCatalogServiceStubSettings.java | 529 +++ .../reflect-config.json | 1883 +++++++++ ...ebergCatalogServiceClientHttpJsonTest.java | 500 +++ .../v1/IcebergCatalogServiceClientTest.java | 450 +++ .../biglake/v1/MockIcebergCatalogService.java | 59 + .../v1/MockIcebergCatalogServiceImpl.java | 170 + .../biglake/v1/IcebergCatalogServiceGrpc.java | 3375 +++++++++++++++++ .../google/cloud/biglake/v1/CatalogName.java | 192 + .../v1/CreateIcebergCatalogRequest.java | 1224 ++++++ .../CreateIcebergCatalogRequestOrBuilder.java | 143 + .../v1/CreateIcebergNamespaceRequest.java | 975 +++++ ...reateIcebergNamespaceRequestOrBuilder.java | 101 + .../biglake/v1/CreateIcebergTableRequest.java | 962 +++++ .../CreateIcebergTableRequestOrBuilder.java | 101 + .../v1/DeleteIcebergCatalogRequest.java | 649 ++++ .../DeleteIcebergCatalogRequestOrBuilder.java | 56 + .../v1/DeleteIcebergNamespaceRequest.java | 656 ++++ ...eleteIcebergNamespaceRequestOrBuilder.java | 58 + .../biglake/v1/DeleteIcebergTableRequest.java | 757 ++++ .../DeleteIcebergTableRequestOrBuilder.java | 72 + .../v1/FailoverIcebergCatalogRequest.java | 1348 +++++++ ...ailoverIcebergCatalogRequestOrBuilder.java | 160 + .../v1/FailoverIcebergCatalogResponse.java | 834 ++++ ...iloverIcebergCatalogResponseOrBuilder.java | 87 + .../v1/GetIcebergCatalogConfigRequest.java | 636 ++++ ...tIcebergCatalogConfigRequestOrBuilder.java | 52 + .../biglake/v1/GetIcebergCatalogRequest.java | 648 ++++ .../v1/GetIcebergCatalogRequestOrBuilder.java | 56 + .../v1/GetIcebergNamespaceRequest.java | 656 ++++ .../GetIcebergNamespaceRequestOrBuilder.java | 58 + .../biglake/v1/GetIcebergTableRequest.java | 837 ++++ .../v1/GetIcebergTableRequestOrBuilder.java | 82 + .../cloud/biglake/v1/IcebergCatalog.java | 2694 +++++++++++++ .../biglake/v1/IcebergCatalogConfig.java | 1463 +++++++ .../v1/IcebergCatalogConfigOrBuilder.java | 231 ++ .../biglake/v1/IcebergCatalogOrBuilder.java | 336 ++ .../cloud/biglake/v1/IcebergNamespace.java | 1097 ++++++ .../biglake/v1/IcebergNamespaceOrBuilder.java | 148 + .../biglake/v1/IcebergNamespaceUpdate.java | 1084 ++++++ .../v1/IcebergNamespaceUpdateOrBuilder.java | 143 + .../biglake/v1/IcebergRestCatalogProto.java | 787 ++++ .../v1/ListIcebergCatalogsRequest.java | 1312 +++++++ .../ListIcebergCatalogsRequestOrBuilder.java | 135 + .../v1/ListIcebergCatalogsResponse.java | 1507 ++++++++ .../ListIcebergCatalogsResponseOrBuilder.java | 176 + .../v1/ListIcebergNamespacesRequest.java | 1150 ++++++ ...ListIcebergNamespacesRequestOrBuilder.java | 128 + .../v1/ListIcebergNamespacesResponse.java | 1146 ++++++ ...istIcebergNamespacesResponseOrBuilder.java | 107 + .../ListIcebergTableIdentifiersRequest.java | 942 +++++ ...ebergTableIdentifiersRequestOrBuilder.java | 95 + .../ListIcebergTableIdentifiersResponse.java | 1221 ++++++ ...bergTableIdentifiersResponseOrBuilder.java | 122 + .../LoadIcebergTableCredentialsResponse.java | 1030 +++++ ...bergTableCredentialsResponseOrBuilder.java | 92 + .../google/cloud/biglake/v1/ProjectName.java | 168 + .../v1/RegisterIcebergTableRequest.java | 1251 ++++++ .../RegisterIcebergTableRequestOrBuilder.java | 144 + .../cloud/biglake/v1/StorageCredential.java | 1015 +++++ .../v1/StorageCredentialOrBuilder.java | 130 + .../cloud/biglake/v1/TableIdentifier.java | 936 +++++ .../biglake/v1/TableIdentifierOrBuilder.java | 110 + .../v1/UpdateIcebergCatalogRequest.java | 1050 +++++ .../UpdateIcebergCatalogRequestOrBuilder.java | 109 + .../v1/UpdateIcebergNamespaceRequest.java | 997 +++++ ...pdateIcebergNamespaceRequestOrBuilder.java | 105 + .../v1/UpdateIcebergNamespaceResponse.java | 1356 +++++++ ...dateIcebergNamespaceResponseOrBuilder.java | 200 + .../biglake/v1/UpdateIcebergTableRequest.java | 986 +++++ .../UpdateIcebergTableRequestOrBuilder.java | 107 + .../biglake/v1/iceberg_rest_catalog.proto | 802 ++++ .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncCreateIcebergCatalog.java | 53 + .../SyncCreateIcebergCatalog.java | 49 + ...atalogProjectnameIcebergcatalogString.java | 47 + ...bergCatalogStringIcebergcatalogString.java | 47 + .../AsyncFailoverIcebergCatalog.java | 54 + .../SyncFailoverIcebergCatalog.java | 51 + ...yncFailoverIcebergCatalogStringString.java | 44 + .../AsyncGetIcebergCatalog.java | 51 + .../SyncGetIcebergCatalog.java | 47 + .../SyncGetIcebergCatalogCatalogname.java | 43 + .../SyncGetIcebergCatalogString.java | 43 + .../AsyncListIcebergCatalogs.java | 55 + .../AsyncListIcebergCatalogsPaged.java | 63 + .../SyncListIcebergCatalogs.java | 52 + .../SyncListIcebergCatalogsProjectname.java | 46 + .../SyncListIcebergCatalogsString.java | 46 + .../AsyncUpdateIcebergCatalog.java | 52 + .../SyncUpdateIcebergCatalog.java | 48 + ...IcebergCatalogIcebergcatalogFieldmask.java | 45 + .../SyncGetIcebergCatalog.java | 57 + .../SyncGetIcebergCatalog.java | 57 + 104 files changed, 48689 insertions(+) create mode 100644 java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClient.java create mode 100644 java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceSettings.java create mode 100644 java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/gapic_metadata.json create mode 100644 java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/package-info.java create mode 100644 java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/GrpcIcebergCatalogServiceCallableFactory.java create mode 100644 java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/GrpcIcebergCatalogServiceStub.java create mode 100644 java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/HttpJsonIcebergCatalogServiceCallableFactory.java create mode 100644 java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/HttpJsonIcebergCatalogServiceStub.java create mode 100644 java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/IcebergCatalogServiceStub.java create mode 100644 java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/IcebergCatalogServiceStubSettings.java create mode 100644 java-biglake/google-cloud-biglake/src/main/resources/META-INF/native-image/com.google.cloud.biglake.v1/reflect-config.json create mode 100644 java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClientHttpJsonTest.java create mode 100644 java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClientTest.java create mode 100644 java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/MockIcebergCatalogService.java create mode 100644 java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/MockIcebergCatalogServiceImpl.java create mode 100644 java-biglake/grpc-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceGrpc.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CatalogName.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergCatalogRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergCatalogRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergNamespaceRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergNamespaceRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergTableRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergTableRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergCatalogRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergCatalogRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergNamespaceRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergNamespaceRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergTableRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergTableRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogResponse.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogResponseOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogConfigRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogConfigRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergNamespaceRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergNamespaceRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergTableRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergTableRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalog.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogConfig.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogConfigOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespace.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespaceOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespaceUpdate.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespaceUpdateOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergRestCatalogProto.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsResponse.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsResponseOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesResponse.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesResponseOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersResponse.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersResponseOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/LoadIcebergTableCredentialsResponse.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/LoadIcebergTableCredentialsResponseOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ProjectName.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/RegisterIcebergTableRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/RegisterIcebergTableRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/StorageCredential.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/StorageCredentialOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/TableIdentifier.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/TableIdentifierOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergCatalogRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergCatalogRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceResponse.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceResponseOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergTableRequest.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergTableRequestOrBuilder.java create mode 100644 java-biglake/proto-google-cloud-biglake-v1/src/main/proto/google/cloud/biglake/v1/iceberg_rest_catalog.proto create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/create/SyncCreateSetEndpoint.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/AsyncCreateIcebergCatalog.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/SyncCreateIcebergCatalog.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/SyncCreateIcebergCatalogProjectnameIcebergcatalogString.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/SyncCreateIcebergCatalogStringIcebergcatalogString.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/failovericebergcatalog/AsyncFailoverIcebergCatalog.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/failovericebergcatalog/SyncFailoverIcebergCatalog.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/failovericebergcatalog/SyncFailoverIcebergCatalogStringString.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/AsyncGetIcebergCatalog.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/SyncGetIcebergCatalog.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/SyncGetIcebergCatalogCatalogname.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/SyncGetIcebergCatalogString.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/AsyncListIcebergCatalogs.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/AsyncListIcebergCatalogsPaged.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/SyncListIcebergCatalogs.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/SyncListIcebergCatalogsProjectname.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/SyncListIcebergCatalogsString.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/updateicebergcatalog/AsyncUpdateIcebergCatalog.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/updateicebergcatalog/SyncUpdateIcebergCatalog.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/updateicebergcatalog/SyncUpdateIcebergCatalogIcebergcatalogFieldmask.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservicesettings/geticebergcatalog/SyncGetIcebergCatalog.java create mode 100644 java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/stub/icebergcatalogservicestubsettings/geticebergcatalog/SyncGetIcebergCatalog.java diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClient.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClient.java new file mode 100644 index 000000000000..0cf8582fc3ca --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClient.java @@ -0,0 +1,1058 @@ +/* + * 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.cloud.biglake.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.biglake.v1.stub.IcebergCatalogServiceStub; +import com.google.cloud.biglake.v1.stub.IcebergCatalogServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Iceberg Catalog Service API: this implements the open-source Iceberg REST + * Catalog API. See the API definition here: + * https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml + * + *

The API is defined as OpenAPI 3.1.1 spec. + * + *

Currently we only support the following methods: - GetConfig/GetIcebergCatalogConfig - + * ListIcebergNamespaces - CheckIcebergNamespaceExists - GetIcebergNamespace - + * CreateIcebergNamespace (only supports single level) - DeleteIcebergNamespace - + * UpdateIcebergNamespace properties - ListTableIdentifiers - CreateIcebergTable - + * DeleteIcebergTable - GetIcebergTable - UpdateIcebergTable (CommitTable) - + * LoadIcebergTableCredentials - RegisterTable + * + *

Users are required to provided the `X-Goog-User-Project` header with the project id or number + * which can be different from the bucket project id. That project will be charged for the API calls + * and the calling user must have access to that project. The caller must have + * `serviceusage.services.use` permission on the project. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+ *     IcebergCatalogServiceClient.create()) {
+ *   CatalogName name = CatalogName.of("[PROJECT]", "[CATALOG]");
+ *   IcebergCatalog response = icebergCatalogServiceClient.getIcebergCatalog(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the IcebergCatalogServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetIcebergCatalog

Returns the Iceberg REST Catalog configuration options.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getIcebergCatalog(GetIcebergCatalogRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getIcebergCatalog(CatalogName name) + *

  • getIcebergCatalog(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getIcebergCatalogCallable() + *

+ *

ListIcebergCatalogs

Lists the Iceberg REST Catalogs.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listIcebergCatalogs(ListIcebergCatalogsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listIcebergCatalogs(ProjectName parent) + *

  • listIcebergCatalogs(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listIcebergCatalogsPagedCallable() + *

  • listIcebergCatalogsCallable() + *

+ *

UpdateIcebergCatalog

Update the Iceberg REST Catalog configuration options.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateIcebergCatalog(UpdateIcebergCatalogRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateIcebergCatalog(IcebergCatalog icebergCatalog, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateIcebergCatalogCallable() + *

+ *

CreateIcebergCatalog

Creates the Iceberg REST Catalog. Currently only supports Google Cloud Storage Bucket catalogs. Google Cloud Storage Bucket catalog id is the bucket for which the catalog is created (e.g. `my-catalog` for `gs://my-catalog`). + *

If the bucket does not exist, of the caller does not have bucket metadata permissions, the catalog will not be created.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createIcebergCatalog(CreateIcebergCatalogRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createIcebergCatalog(ProjectName parent, IcebergCatalog icebergCatalog, String icebergCatalogId) + *

  • createIcebergCatalog(String parent, IcebergCatalog icebergCatalog, String icebergCatalogId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createIcebergCatalogCallable() + *

+ *

FailoverIcebergCatalog

Failover the catalog to a new primary replica region.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • failoverIcebergCatalog(FailoverIcebergCatalogRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • failoverIcebergCatalog(String name, String primaryReplica) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • failoverIcebergCatalogCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of IcebergCatalogServiceSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@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
+ * IcebergCatalogServiceSettings icebergCatalogServiceSettings =
+ *     IcebergCatalogServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * IcebergCatalogServiceClient icebergCatalogServiceClient =
+ *     IcebergCatalogServiceClient.create(icebergCatalogServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@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
+ * IcebergCatalogServiceSettings icebergCatalogServiceSettings =
+ *     IcebergCatalogServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * IcebergCatalogServiceClient icebergCatalogServiceClient =
+ *     IcebergCatalogServiceClient.create(icebergCatalogServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@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
+ * IcebergCatalogServiceSettings icebergCatalogServiceSettings =
+ *     IcebergCatalogServiceSettings.newHttpJsonBuilder().build();
+ * IcebergCatalogServiceClient icebergCatalogServiceClient =
+ *     IcebergCatalogServiceClient.create(icebergCatalogServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class IcebergCatalogServiceClient implements BackgroundResource { + private final IcebergCatalogServiceSettings settings; + private final IcebergCatalogServiceStub stub; + + /** Constructs an instance of IcebergCatalogServiceClient with default settings. */ + public static final IcebergCatalogServiceClient create() throws IOException { + return create(IcebergCatalogServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of IcebergCatalogServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final IcebergCatalogServiceClient create(IcebergCatalogServiceSettings settings) + throws IOException { + return new IcebergCatalogServiceClient(settings); + } + + /** + * Constructs an instance of IcebergCatalogServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(IcebergCatalogServiceSettings). + */ + public static final IcebergCatalogServiceClient create(IcebergCatalogServiceStub stub) { + return new IcebergCatalogServiceClient(stub); + } + + /** + * Constructs an instance of IcebergCatalogServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected IcebergCatalogServiceClient(IcebergCatalogServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((IcebergCatalogServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected IcebergCatalogServiceClient(IcebergCatalogServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final IcebergCatalogServiceSettings getSettings() { + return settings; + } + + public IcebergCatalogServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the Iceberg REST Catalog configuration options. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   CatalogName name = CatalogName.of("[PROJECT]", "[CATALOG]");
+   *   IcebergCatalog response = icebergCatalogServiceClient.getIcebergCatalog(name);
+   * }
+   * }
+ * + * @param name Required. The catalog to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IcebergCatalog getIcebergCatalog(CatalogName name) { + GetIcebergCatalogRequest request = + GetIcebergCatalogRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getIcebergCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the Iceberg REST Catalog configuration options. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   String name = CatalogName.of("[PROJECT]", "[CATALOG]").toString();
+   *   IcebergCatalog response = icebergCatalogServiceClient.getIcebergCatalog(name);
+   * }
+   * }
+ * + * @param name Required. The catalog to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IcebergCatalog getIcebergCatalog(String name) { + GetIcebergCatalogRequest request = GetIcebergCatalogRequest.newBuilder().setName(name).build(); + return getIcebergCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the Iceberg REST Catalog configuration options. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   GetIcebergCatalogRequest request =
+   *       GetIcebergCatalogRequest.newBuilder()
+   *           .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString())
+   *           .build();
+   *   IcebergCatalog response = icebergCatalogServiceClient.getIcebergCatalog(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 IcebergCatalog getIcebergCatalog(GetIcebergCatalogRequest request) { + return getIcebergCatalogCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the Iceberg REST Catalog configuration options. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   GetIcebergCatalogRequest request =
+   *       GetIcebergCatalogRequest.newBuilder()
+   *           .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       icebergCatalogServiceClient.getIcebergCatalogCallable().futureCall(request);
+   *   // Do something.
+   *   IcebergCatalog response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIcebergCatalogCallable() { + return stub.getIcebergCatalogCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Iceberg REST Catalogs. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (IcebergCatalog element :
+   *       icebergCatalogServiceClient.listIcebergCatalogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this catalog will be created. Format: + * projects/{project_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListIcebergCatalogsPagedResponse listIcebergCatalogs(ProjectName parent) { + ListIcebergCatalogsRequest request = + ListIcebergCatalogsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listIcebergCatalogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Iceberg REST Catalogs. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   for (IcebergCatalog element :
+   *       icebergCatalogServiceClient.listIcebergCatalogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this catalog will be created. Format: + * projects/{project_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListIcebergCatalogsPagedResponse listIcebergCatalogs(String parent) { + ListIcebergCatalogsRequest request = + ListIcebergCatalogsRequest.newBuilder().setParent(parent).build(); + return listIcebergCatalogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Iceberg REST Catalogs. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   ListIcebergCatalogsRequest request =
+   *       ListIcebergCatalogsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (IcebergCatalog element :
+   *       icebergCatalogServiceClient.listIcebergCatalogs(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 ListIcebergCatalogsPagedResponse listIcebergCatalogs( + ListIcebergCatalogsRequest request) { + return listIcebergCatalogsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Iceberg REST Catalogs. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   ListIcebergCatalogsRequest request =
+   *       ListIcebergCatalogsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       icebergCatalogServiceClient.listIcebergCatalogsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (IcebergCatalog element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listIcebergCatalogsPagedCallable() { + return stub.listIcebergCatalogsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Iceberg REST Catalogs. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   ListIcebergCatalogsRequest request =
+   *       ListIcebergCatalogsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListIcebergCatalogsResponse response =
+   *         icebergCatalogServiceClient.listIcebergCatalogsCallable().call(request);
+   *     for (IcebergCatalog element : response.getIcebergCatalogsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listIcebergCatalogsCallable() { + return stub.listIcebergCatalogsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the Iceberg REST Catalog configuration options. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   IcebergCatalog response =
+   *       icebergCatalogServiceClient.updateIcebergCatalog(icebergCatalog, updateMask);
+   * }
+   * }
+ * + * @param icebergCatalog Required. The catalog to update. + * @param updateMask Optional. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IcebergCatalog updateIcebergCatalog( + IcebergCatalog icebergCatalog, FieldMask updateMask) { + UpdateIcebergCatalogRequest request = + UpdateIcebergCatalogRequest.newBuilder() + .setIcebergCatalog(icebergCatalog) + .setUpdateMask(updateMask) + .build(); + return updateIcebergCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the Iceberg REST Catalog configuration options. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   UpdateIcebergCatalogRequest request =
+   *       UpdateIcebergCatalogRequest.newBuilder()
+   *           .setIcebergCatalog(IcebergCatalog.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   IcebergCatalog response = icebergCatalogServiceClient.updateIcebergCatalog(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 IcebergCatalog updateIcebergCatalog(UpdateIcebergCatalogRequest request) { + return updateIcebergCatalogCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the Iceberg REST Catalog configuration options. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   UpdateIcebergCatalogRequest request =
+   *       UpdateIcebergCatalogRequest.newBuilder()
+   *           .setIcebergCatalog(IcebergCatalog.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       icebergCatalogServiceClient.updateIcebergCatalogCallable().futureCall(request);
+   *   // Do something.
+   *   IcebergCatalog response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateIcebergCatalogCallable() { + return stub.updateIcebergCatalogCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates the Iceberg REST Catalog. Currently only supports Google Cloud Storage Bucket catalogs. + * Google Cloud Storage Bucket catalog id is the bucket for which the catalog is created (e.g. + * `my-catalog` for `gs://my-catalog`). + * + *

If the bucket does not exist, of the caller does not have bucket metadata permissions, the + * catalog will not be created. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build();
+   *   String icebergCatalogId = "icebergCatalogId504062865";
+   *   IcebergCatalog response =
+   *       icebergCatalogServiceClient.createIcebergCatalog(
+   *           parent, icebergCatalog, icebergCatalogId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this catalog will be created. Format: + * projects/{project_id} + * @param icebergCatalog Required. The catalog to create. The required fields for creation are: - + * catalog_type. Optionally: credential_mode can be provided, if Credential Vending is + * desired. + * @param icebergCatalogId Required. The name of the catalog. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IcebergCatalog createIcebergCatalog( + ProjectName parent, IcebergCatalog icebergCatalog, String icebergCatalogId) { + CreateIcebergCatalogRequest request = + CreateIcebergCatalogRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setIcebergCatalog(icebergCatalog) + .setIcebergCatalogId(icebergCatalogId) + .build(); + return createIcebergCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates the Iceberg REST Catalog. Currently only supports Google Cloud Storage Bucket catalogs. + * Google Cloud Storage Bucket catalog id is the bucket for which the catalog is created (e.g. + * `my-catalog` for `gs://my-catalog`). + * + *

If the bucket does not exist, of the caller does not have bucket metadata permissions, the + * catalog will not be created. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build();
+   *   String icebergCatalogId = "icebergCatalogId504062865";
+   *   IcebergCatalog response =
+   *       icebergCatalogServiceClient.createIcebergCatalog(
+   *           parent, icebergCatalog, icebergCatalogId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this catalog will be created. Format: + * projects/{project_id} + * @param icebergCatalog Required. The catalog to create. The required fields for creation are: - + * catalog_type. Optionally: credential_mode can be provided, if Credential Vending is + * desired. + * @param icebergCatalogId Required. The name of the catalog. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IcebergCatalog createIcebergCatalog( + String parent, IcebergCatalog icebergCatalog, String icebergCatalogId) { + CreateIcebergCatalogRequest request = + CreateIcebergCatalogRequest.newBuilder() + .setParent(parent) + .setIcebergCatalog(icebergCatalog) + .setIcebergCatalogId(icebergCatalogId) + .build(); + return createIcebergCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates the Iceberg REST Catalog. Currently only supports Google Cloud Storage Bucket catalogs. + * Google Cloud Storage Bucket catalog id is the bucket for which the catalog is created (e.g. + * `my-catalog` for `gs://my-catalog`). + * + *

If the bucket does not exist, of the caller does not have bucket metadata permissions, the + * catalog will not be created. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   CreateIcebergCatalogRequest request =
+   *       CreateIcebergCatalogRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setIcebergCatalogId("icebergCatalogId504062865")
+   *           .setIcebergCatalog(IcebergCatalog.newBuilder().build())
+   *           .build();
+   *   IcebergCatalog response = icebergCatalogServiceClient.createIcebergCatalog(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 IcebergCatalog createIcebergCatalog(CreateIcebergCatalogRequest request) { + return createIcebergCatalogCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates the Iceberg REST Catalog. Currently only supports Google Cloud Storage Bucket catalogs. + * Google Cloud Storage Bucket catalog id is the bucket for which the catalog is created (e.g. + * `my-catalog` for `gs://my-catalog`). + * + *

If the bucket does not exist, of the caller does not have bucket metadata permissions, the + * catalog will not be created. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   CreateIcebergCatalogRequest request =
+   *       CreateIcebergCatalogRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setIcebergCatalogId("icebergCatalogId504062865")
+   *           .setIcebergCatalog(IcebergCatalog.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       icebergCatalogServiceClient.createIcebergCatalogCallable().futureCall(request);
+   *   // Do something.
+   *   IcebergCatalog response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createIcebergCatalogCallable() { + return stub.createIcebergCatalogCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Failover the catalog to a new primary replica region. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   String name = "name3373707";
+   *   String primaryReplica = "primaryReplica-389090218";
+   *   FailoverIcebergCatalogResponse response =
+   *       icebergCatalogServiceClient.failoverIcebergCatalog(name, primaryReplica);
+   * }
+   * }
+ * + * @param name Required. The name of the catalog in the form + * "projects/{project_id}/catalogs/{catalog_id}" + * @param primaryReplica Required. The region being assigned as the new primary replica region. + * For example "us-east1". This must be one of the replica regions in the catalog's list of + * replicas marked as a "secondary". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FailoverIcebergCatalogResponse failoverIcebergCatalog( + String name, String primaryReplica) { + FailoverIcebergCatalogRequest request = + FailoverIcebergCatalogRequest.newBuilder() + .setName(name) + .setPrimaryReplica(primaryReplica) + .build(); + return failoverIcebergCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Failover the catalog to a new primary replica region. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   FailoverIcebergCatalogRequest request =
+   *       FailoverIcebergCatalogRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setPrimaryReplica("primaryReplica-389090218")
+   *           .setValidateOnly(true)
+   *           .setConditionalFailoverReplicationTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   FailoverIcebergCatalogResponse response =
+   *       icebergCatalogServiceClient.failoverIcebergCatalog(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 FailoverIcebergCatalogResponse failoverIcebergCatalog( + FailoverIcebergCatalogRequest request) { + return failoverIcebergCatalogCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Failover the catalog to a new primary replica region. + * + *

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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+   *     IcebergCatalogServiceClient.create()) {
+   *   FailoverIcebergCatalogRequest request =
+   *       FailoverIcebergCatalogRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setPrimaryReplica("primaryReplica-389090218")
+   *           .setValidateOnly(true)
+   *           .setConditionalFailoverReplicationTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       icebergCatalogServiceClient.failoverIcebergCatalogCallable().futureCall(request);
+   *   // Do something.
+   *   FailoverIcebergCatalogResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + failoverIcebergCatalogCallable() { + return stub.failoverIcebergCatalogCallable(); + } + + @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 ListIcebergCatalogsPagedResponse + extends AbstractPagedListResponse< + ListIcebergCatalogsRequest, + ListIcebergCatalogsResponse, + IcebergCatalog, + ListIcebergCatalogsPage, + ListIcebergCatalogsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListIcebergCatalogsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListIcebergCatalogsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListIcebergCatalogsPagedResponse(ListIcebergCatalogsPage page) { + super(page, ListIcebergCatalogsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListIcebergCatalogsPage + extends AbstractPage< + ListIcebergCatalogsRequest, + ListIcebergCatalogsResponse, + IcebergCatalog, + ListIcebergCatalogsPage> { + + private ListIcebergCatalogsPage( + PageContext + context, + ListIcebergCatalogsResponse response) { + super(context, response); + } + + private static ListIcebergCatalogsPage createEmptyPage() { + return new ListIcebergCatalogsPage(null, null); + } + + @Override + protected ListIcebergCatalogsPage createPage( + PageContext + context, + ListIcebergCatalogsResponse response) { + return new ListIcebergCatalogsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListIcebergCatalogsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListIcebergCatalogsRequest, + ListIcebergCatalogsResponse, + IcebergCatalog, + ListIcebergCatalogsPage, + ListIcebergCatalogsFixedSizeCollection> { + + private ListIcebergCatalogsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListIcebergCatalogsFixedSizeCollection createEmptyCollection() { + return new ListIcebergCatalogsFixedSizeCollection(null, 0); + } + + @Override + protected ListIcebergCatalogsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListIcebergCatalogsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceSettings.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceSettings.java new file mode 100644 index 000000000000..d6134999b46e --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceSettings.java @@ -0,0 +1,273 @@ +/* + * 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.cloud.biglake.v1; + +import static com.google.cloud.biglake.v1.IcebergCatalogServiceClient.ListIcebergCatalogsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.biglake.v1.stub.IcebergCatalogServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link IcebergCatalogServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (biglake.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getIcebergCatalog: + * + *

{@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
+ * IcebergCatalogServiceSettings.Builder icebergCatalogServiceSettingsBuilder =
+ *     IcebergCatalogServiceSettings.newBuilder();
+ * icebergCatalogServiceSettingsBuilder
+ *     .getIcebergCatalogSettings()
+ *     .setRetrySettings(
+ *         icebergCatalogServiceSettingsBuilder
+ *             .getIcebergCatalogSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * IcebergCatalogServiceSettings icebergCatalogServiceSettings =
+ *     icebergCatalogServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class IcebergCatalogServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getIcebergCatalog. */ + public UnaryCallSettings getIcebergCatalogSettings() { + return ((IcebergCatalogServiceStubSettings) getStubSettings()).getIcebergCatalogSettings(); + } + + /** Returns the object with the settings used for calls to listIcebergCatalogs. */ + public PagedCallSettings< + ListIcebergCatalogsRequest, ListIcebergCatalogsResponse, ListIcebergCatalogsPagedResponse> + listIcebergCatalogsSettings() { + return ((IcebergCatalogServiceStubSettings) getStubSettings()).listIcebergCatalogsSettings(); + } + + /** Returns the object with the settings used for calls to updateIcebergCatalog. */ + public UnaryCallSettings + updateIcebergCatalogSettings() { + return ((IcebergCatalogServiceStubSettings) getStubSettings()).updateIcebergCatalogSettings(); + } + + /** Returns the object with the settings used for calls to createIcebergCatalog. */ + public UnaryCallSettings + createIcebergCatalogSettings() { + return ((IcebergCatalogServiceStubSettings) getStubSettings()).createIcebergCatalogSettings(); + } + + /** Returns the object with the settings used for calls to failoverIcebergCatalog. */ + public UnaryCallSettings + failoverIcebergCatalogSettings() { + return ((IcebergCatalogServiceStubSettings) getStubSettings()).failoverIcebergCatalogSettings(); + } + + public static final IcebergCatalogServiceSettings create(IcebergCatalogServiceStubSettings stub) + throws IOException { + return new IcebergCatalogServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return IcebergCatalogServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return IcebergCatalogServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return IcebergCatalogServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return IcebergCatalogServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return IcebergCatalogServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return IcebergCatalogServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return IcebergCatalogServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return IcebergCatalogServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected IcebergCatalogServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for IcebergCatalogServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(IcebergCatalogServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(IcebergCatalogServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(IcebergCatalogServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(IcebergCatalogServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(IcebergCatalogServiceStubSettings.newHttpJsonBuilder()); + } + + public IcebergCatalogServiceStubSettings.Builder getStubSettingsBuilder() { + return ((IcebergCatalogServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getIcebergCatalog. */ + public UnaryCallSettings.Builder + getIcebergCatalogSettings() { + return getStubSettingsBuilder().getIcebergCatalogSettings(); + } + + /** Returns the builder for the settings used for calls to listIcebergCatalogs. */ + public PagedCallSettings.Builder< + ListIcebergCatalogsRequest, + ListIcebergCatalogsResponse, + ListIcebergCatalogsPagedResponse> + listIcebergCatalogsSettings() { + return getStubSettingsBuilder().listIcebergCatalogsSettings(); + } + + /** Returns the builder for the settings used for calls to updateIcebergCatalog. */ + public UnaryCallSettings.Builder + updateIcebergCatalogSettings() { + return getStubSettingsBuilder().updateIcebergCatalogSettings(); + } + + /** Returns the builder for the settings used for calls to createIcebergCatalog. */ + public UnaryCallSettings.Builder + createIcebergCatalogSettings() { + return getStubSettingsBuilder().createIcebergCatalogSettings(); + } + + /** Returns the builder for the settings used for calls to failoverIcebergCatalog. */ + public UnaryCallSettings.Builder + failoverIcebergCatalogSettings() { + return getStubSettingsBuilder().failoverIcebergCatalogSettings(); + } + + @Override + public IcebergCatalogServiceSettings build() throws IOException { + return new IcebergCatalogServiceSettings(this); + } + } +} diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/gapic_metadata.json b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/gapic_metadata.json new file mode 100644 index 000000000000..807d6c7718a4 --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/gapic_metadata.json @@ -0,0 +1,33 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.biglake.v1", + "libraryPackage": "com.google.cloud.biglake.v1", + "services": { + "IcebergCatalogService": { + "clients": { + "grpc": { + "libraryClient": "IcebergCatalogServiceClient", + "rpcs": { + "CreateIcebergCatalog": { + "methods": ["createIcebergCatalog", "createIcebergCatalog", "createIcebergCatalog", "createIcebergCatalogCallable"] + }, + "FailoverIcebergCatalog": { + "methods": ["failoverIcebergCatalog", "failoverIcebergCatalog", "failoverIcebergCatalogCallable"] + }, + "GetIcebergCatalog": { + "methods": ["getIcebergCatalog", "getIcebergCatalog", "getIcebergCatalog", "getIcebergCatalogCallable"] + }, + "ListIcebergCatalogs": { + "methods": ["listIcebergCatalogs", "listIcebergCatalogs", "listIcebergCatalogs", "listIcebergCatalogsPagedCallable", "listIcebergCatalogsCallable"] + }, + "UpdateIcebergCatalog": { + "methods": ["updateIcebergCatalog", "updateIcebergCatalog", "updateIcebergCatalogCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/package-info.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/package-info.java new file mode 100644 index 000000000000..7e1eff9c68f4 --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/package-info.java @@ -0,0 +1,60 @@ +/* + * 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. + */ + +/** + * A client to BigLake API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= IcebergCatalogServiceClient ======================= + * + *

Service Description: Iceberg Catalog Service API: this implements the open-source Iceberg REST + * Catalog API. See the API definition here: + * https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml + * + *

The API is defined as OpenAPI 3.1.1 spec. + * + *

Currently we only support the following methods: - GetConfig/GetIcebergCatalogConfig - + * ListIcebergNamespaces - CheckIcebergNamespaceExists - GetIcebergNamespace - + * CreateIcebergNamespace (only supports single level) - DeleteIcebergNamespace - + * UpdateIcebergNamespace properties - ListTableIdentifiers - CreateIcebergTable - + * DeleteIcebergTable - GetIcebergTable - UpdateIcebergTable (CommitTable) - + * LoadIcebergTableCredentials - RegisterTable + * + *

Users are required to provided the `X-Goog-User-Project` header with the project id or number + * which can be different from the bucket project id. That project will be charged for the API calls + * and the calling user must have access to that project. The caller must have + * `serviceusage.services.use` permission on the project. + * + *

Sample for IcebergCatalogServiceClient: + * + *

{@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 (IcebergCatalogServiceClient icebergCatalogServiceClient =
+ *     IcebergCatalogServiceClient.create()) {
+ *   CatalogName name = CatalogName.of("[PROJECT]", "[CATALOG]");
+ *   IcebergCatalog response = icebergCatalogServiceClient.getIcebergCatalog(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.biglake.v1; + +import javax.annotation.Generated; diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/GrpcIcebergCatalogServiceCallableFactory.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/GrpcIcebergCatalogServiceCallableFactory.java new file mode 100644 index 000000000000..bdf30fc11364 --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/GrpcIcebergCatalogServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * 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.cloud.biglake.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the IcebergCatalogService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcIcebergCatalogServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/GrpcIcebergCatalogServiceStub.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/GrpcIcebergCatalogServiceStub.java new file mode 100644 index 000000000000..220d8270748f --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/GrpcIcebergCatalogServiceStub.java @@ -0,0 +1,335 @@ +/* + * 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.cloud.biglake.v1.stub; + +import static com.google.cloud.biglake.v1.IcebergCatalogServiceClient.ListIcebergCatalogsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.biglake.v1.CreateIcebergCatalogRequest; +import com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest; +import com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse; +import com.google.cloud.biglake.v1.GetIcebergCatalogRequest; +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.ListIcebergCatalogsRequest; +import com.google.cloud.biglake.v1.ListIcebergCatalogsResponse; +import com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the IcebergCatalogService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcIcebergCatalogServiceStub extends IcebergCatalogServiceStub { + private static final MethodDescriptor + getIcebergCatalogMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.biglake.v1.IcebergCatalogService/GetIcebergCatalog") + .setRequestMarshaller( + ProtoUtils.marshaller(GetIcebergCatalogRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(IcebergCatalog.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listIcebergCatalogsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.biglake.v1.IcebergCatalogService/ListIcebergCatalogs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListIcebergCatalogsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListIcebergCatalogsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateIcebergCatalogMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.biglake.v1.IcebergCatalogService/UpdateIcebergCatalog") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateIcebergCatalogRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(IcebergCatalog.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createIcebergCatalogMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.biglake.v1.IcebergCatalogService/CreateIcebergCatalog") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateIcebergCatalogRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(IcebergCatalog.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + FailoverIcebergCatalogRequest, FailoverIcebergCatalogResponse> + failoverIcebergCatalogMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.biglake.v1.IcebergCatalogService/FailoverIcebergCatalog") + .setRequestMarshaller( + ProtoUtils.marshaller(FailoverIcebergCatalogRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FailoverIcebergCatalogResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable getIcebergCatalogCallable; + private final UnaryCallable + listIcebergCatalogsCallable; + private final UnaryCallable + listIcebergCatalogsPagedCallable; + private final UnaryCallable + updateIcebergCatalogCallable; + private final UnaryCallable + createIcebergCatalogCallable; + private final UnaryCallable + failoverIcebergCatalogCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcIcebergCatalogServiceStub create( + IcebergCatalogServiceStubSettings settings) throws IOException { + return new GrpcIcebergCatalogServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcIcebergCatalogServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcIcebergCatalogServiceStub( + IcebergCatalogServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcIcebergCatalogServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcIcebergCatalogServiceStub( + IcebergCatalogServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcIcebergCatalogServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcIcebergCatalogServiceStub( + IcebergCatalogServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcIcebergCatalogServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcIcebergCatalogServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcIcebergCatalogServiceStub( + IcebergCatalogServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getIcebergCatalogTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIcebergCatalogMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listIcebergCatalogsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listIcebergCatalogsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateIcebergCatalogTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateIcebergCatalogMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "iceberg_catalog.name", + String.valueOf(request.getIcebergCatalog().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createIcebergCatalogTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createIcebergCatalogMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + failoverIcebergCatalogTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(failoverIcebergCatalogMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.getIcebergCatalogCallable = + callableFactory.createUnaryCallable( + getIcebergCatalogTransportSettings, + settings.getIcebergCatalogSettings(), + clientContext); + this.listIcebergCatalogsCallable = + callableFactory.createUnaryCallable( + listIcebergCatalogsTransportSettings, + settings.listIcebergCatalogsSettings(), + clientContext); + this.listIcebergCatalogsPagedCallable = + callableFactory.createPagedCallable( + listIcebergCatalogsTransportSettings, + settings.listIcebergCatalogsSettings(), + clientContext); + this.updateIcebergCatalogCallable = + callableFactory.createUnaryCallable( + updateIcebergCatalogTransportSettings, + settings.updateIcebergCatalogSettings(), + clientContext); + this.createIcebergCatalogCallable = + callableFactory.createUnaryCallable( + createIcebergCatalogTransportSettings, + settings.createIcebergCatalogSettings(), + clientContext); + this.failoverIcebergCatalogCallable = + callableFactory.createUnaryCallable( + failoverIcebergCatalogTransportSettings, + settings.failoverIcebergCatalogSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getIcebergCatalogCallable() { + return getIcebergCatalogCallable; + } + + @Override + public UnaryCallable + listIcebergCatalogsCallable() { + return listIcebergCatalogsCallable; + } + + @Override + public UnaryCallable + listIcebergCatalogsPagedCallable() { + return listIcebergCatalogsPagedCallable; + } + + @Override + public UnaryCallable updateIcebergCatalogCallable() { + return updateIcebergCatalogCallable; + } + + @Override + public UnaryCallable createIcebergCatalogCallable() { + return createIcebergCatalogCallable; + } + + @Override + public UnaryCallable + failoverIcebergCatalogCallable() { + return failoverIcebergCatalogCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/HttpJsonIcebergCatalogServiceCallableFactory.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/HttpJsonIcebergCatalogServiceCallableFactory.java new file mode 100644 index 000000000000..0ac1c081b5fc --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/HttpJsonIcebergCatalogServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * 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.cloud.biglake.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the IcebergCatalogService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonIcebergCatalogServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/HttpJsonIcebergCatalogServiceStub.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/HttpJsonIcebergCatalogServiceStub.java new file mode 100644 index 000000000000..885f8b94f940 --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/HttpJsonIcebergCatalogServiceStub.java @@ -0,0 +1,489 @@ +/* + * 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.cloud.biglake.v1.stub; + +import static com.google.cloud.biglake.v1.IcebergCatalogServiceClient.ListIcebergCatalogsPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.biglake.v1.CreateIcebergCatalogRequest; +import com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest; +import com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse; +import com.google.cloud.biglake.v1.GetIcebergCatalogRequest; +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.ListIcebergCatalogsRequest; +import com.google.cloud.biglake.v1.ListIcebergCatalogsResponse; +import com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the IcebergCatalogService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonIcebergCatalogServiceStub extends IcebergCatalogServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getIcebergCatalogMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.biglake.v1.IcebergCatalogService/GetIcebergCatalog") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/iceberg/v1/restcatalog/extensions/{name=projects/*/catalogs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(IcebergCatalog.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listIcebergCatalogsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.biglake.v1.IcebergCatalogService/ListIcebergCatalogs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/iceberg/v1/restcatalog/extensions/{parent=projects/*}/catalogs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListIcebergCatalogsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateIcebergCatalogMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.biglake.v1.IcebergCatalogService/UpdateIcebergCatalog") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/iceberg/v1/restcatalog/extensions/{icebergCatalog.name=projects/*/catalogs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "icebergCatalog.name", + request.getIcebergCatalog().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("icebergCatalog", request.getIcebergCatalog(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(IcebergCatalog.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createIcebergCatalogMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.biglake.v1.IcebergCatalogService/CreateIcebergCatalog") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/iceberg/v1/restcatalog/extensions/{parent=projects/*}/catalogs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "icebergCatalogId", request.getIcebergCatalogId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("icebergCatalog", request.getIcebergCatalog(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(IcebergCatalog.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + FailoverIcebergCatalogRequest, FailoverIcebergCatalogResponse> + failoverIcebergCatalogMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.biglake.v1.IcebergCatalogService/FailoverIcebergCatalog") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/iceberg/v1/restcatalog/extensions/{name=projects/*/catalogs/*}:failover", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FailoverIcebergCatalogResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getIcebergCatalogCallable; + private final UnaryCallable + listIcebergCatalogsCallable; + private final UnaryCallable + listIcebergCatalogsPagedCallable; + private final UnaryCallable + updateIcebergCatalogCallable; + private final UnaryCallable + createIcebergCatalogCallable; + private final UnaryCallable + failoverIcebergCatalogCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonIcebergCatalogServiceStub create( + IcebergCatalogServiceStubSettings settings) throws IOException { + return new HttpJsonIcebergCatalogServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonIcebergCatalogServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonIcebergCatalogServiceStub( + IcebergCatalogServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonIcebergCatalogServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonIcebergCatalogServiceStub( + IcebergCatalogServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonIcebergCatalogServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonIcebergCatalogServiceStub( + IcebergCatalogServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonIcebergCatalogServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonIcebergCatalogServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonIcebergCatalogServiceStub( + IcebergCatalogServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getIcebergCatalogTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIcebergCatalogMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listIcebergCatalogsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listIcebergCatalogsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateIcebergCatalogTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateIcebergCatalogMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "iceberg_catalog.name", + String.valueOf(request.getIcebergCatalog().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createIcebergCatalogTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createIcebergCatalogMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + failoverIcebergCatalogTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(failoverIcebergCatalogMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.getIcebergCatalogCallable = + callableFactory.createUnaryCallable( + getIcebergCatalogTransportSettings, + settings.getIcebergCatalogSettings(), + clientContext); + this.listIcebergCatalogsCallable = + callableFactory.createUnaryCallable( + listIcebergCatalogsTransportSettings, + settings.listIcebergCatalogsSettings(), + clientContext); + this.listIcebergCatalogsPagedCallable = + callableFactory.createPagedCallable( + listIcebergCatalogsTransportSettings, + settings.listIcebergCatalogsSettings(), + clientContext); + this.updateIcebergCatalogCallable = + callableFactory.createUnaryCallable( + updateIcebergCatalogTransportSettings, + settings.updateIcebergCatalogSettings(), + clientContext); + this.createIcebergCatalogCallable = + callableFactory.createUnaryCallable( + createIcebergCatalogTransportSettings, + settings.createIcebergCatalogSettings(), + clientContext); + this.failoverIcebergCatalogCallable = + callableFactory.createUnaryCallable( + failoverIcebergCatalogTransportSettings, + settings.failoverIcebergCatalogSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getIcebergCatalogMethodDescriptor); + methodDescriptors.add(listIcebergCatalogsMethodDescriptor); + methodDescriptors.add(updateIcebergCatalogMethodDescriptor); + methodDescriptors.add(createIcebergCatalogMethodDescriptor); + methodDescriptors.add(failoverIcebergCatalogMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getIcebergCatalogCallable() { + return getIcebergCatalogCallable; + } + + @Override + public UnaryCallable + listIcebergCatalogsCallable() { + return listIcebergCatalogsCallable; + } + + @Override + public UnaryCallable + listIcebergCatalogsPagedCallable() { + return listIcebergCatalogsPagedCallable; + } + + @Override + public UnaryCallable updateIcebergCatalogCallable() { + return updateIcebergCatalogCallable; + } + + @Override + public UnaryCallable createIcebergCatalogCallable() { + return createIcebergCatalogCallable; + } + + @Override + public UnaryCallable + failoverIcebergCatalogCallable() { + return failoverIcebergCatalogCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/IcebergCatalogServiceStub.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/IcebergCatalogServiceStub.java new file mode 100644 index 000000000000..e3e6d946cdd1 --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/IcebergCatalogServiceStub.java @@ -0,0 +1,71 @@ +/* + * 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.cloud.biglake.v1.stub; + +import static com.google.cloud.biglake.v1.IcebergCatalogServiceClient.ListIcebergCatalogsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.biglake.v1.CreateIcebergCatalogRequest; +import com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest; +import com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse; +import com.google.cloud.biglake.v1.GetIcebergCatalogRequest; +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.ListIcebergCatalogsRequest; +import com.google.cloud.biglake.v1.ListIcebergCatalogsResponse; +import com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the IcebergCatalogService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class IcebergCatalogServiceStub implements BackgroundResource { + + public UnaryCallable getIcebergCatalogCallable() { + throw new UnsupportedOperationException("Not implemented: getIcebergCatalogCallable()"); + } + + public UnaryCallable + listIcebergCatalogsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listIcebergCatalogsPagedCallable()"); + } + + public UnaryCallable + listIcebergCatalogsCallable() { + throw new UnsupportedOperationException("Not implemented: listIcebergCatalogsCallable()"); + } + + public UnaryCallable updateIcebergCatalogCallable() { + throw new UnsupportedOperationException("Not implemented: updateIcebergCatalogCallable()"); + } + + public UnaryCallable createIcebergCatalogCallable() { + throw new UnsupportedOperationException("Not implemented: createIcebergCatalogCallable()"); + } + + public UnaryCallable + failoverIcebergCatalogCallable() { + throw new UnsupportedOperationException("Not implemented: failoverIcebergCatalogCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/IcebergCatalogServiceStubSettings.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/IcebergCatalogServiceStubSettings.java new file mode 100644 index 000000000000..fc90beb0869b --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/IcebergCatalogServiceStubSettings.java @@ -0,0 +1,529 @@ +/* + * 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.cloud.biglake.v1.stub; + +import static com.google.cloud.biglake.v1.IcebergCatalogServiceClient.ListIcebergCatalogsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.biglake.v1.CreateIcebergCatalogRequest; +import com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest; +import com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse; +import com.google.cloud.biglake.v1.GetIcebergCatalogRequest; +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.ListIcebergCatalogsRequest; +import com.google.cloud.biglake.v1.ListIcebergCatalogsResponse; +import com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link IcebergCatalogServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (biglake.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getIcebergCatalog: + * + *

{@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
+ * IcebergCatalogServiceStubSettings.Builder icebergCatalogServiceSettingsBuilder =
+ *     IcebergCatalogServiceStubSettings.newBuilder();
+ * icebergCatalogServiceSettingsBuilder
+ *     .getIcebergCatalogSettings()
+ *     .setRetrySettings(
+ *         icebergCatalogServiceSettingsBuilder
+ *             .getIcebergCatalogSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * IcebergCatalogServiceStubSettings icebergCatalogServiceSettings =
+ *     icebergCatalogServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class IcebergCatalogServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/bigquery") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings + getIcebergCatalogSettings; + private final PagedCallSettings< + ListIcebergCatalogsRequest, ListIcebergCatalogsResponse, ListIcebergCatalogsPagedResponse> + listIcebergCatalogsSettings; + private final UnaryCallSettings + updateIcebergCatalogSettings; + private final UnaryCallSettings + createIcebergCatalogSettings; + private final UnaryCallSettings + failoverIcebergCatalogSettings; + + private static final PagedListDescriptor< + ListIcebergCatalogsRequest, ListIcebergCatalogsResponse, IcebergCatalog> + LIST_ICEBERG_CATALOGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListIcebergCatalogsRequest, ListIcebergCatalogsResponse, IcebergCatalog>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListIcebergCatalogsRequest injectToken( + ListIcebergCatalogsRequest payload, String token) { + return ListIcebergCatalogsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListIcebergCatalogsRequest injectPageSize( + ListIcebergCatalogsRequest payload, int pageSize) { + return ListIcebergCatalogsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListIcebergCatalogsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListIcebergCatalogsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListIcebergCatalogsResponse payload) { + return payload.getIcebergCatalogsList(); + } + }; + + private static final PagedListResponseFactory< + ListIcebergCatalogsRequest, ListIcebergCatalogsResponse, ListIcebergCatalogsPagedResponse> + LIST_ICEBERG_CATALOGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListIcebergCatalogsRequest, + ListIcebergCatalogsResponse, + ListIcebergCatalogsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListIcebergCatalogsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_ICEBERG_CATALOGS_PAGE_STR_DESC, request, context); + return ListIcebergCatalogsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getIcebergCatalog. */ + public UnaryCallSettings getIcebergCatalogSettings() { + return getIcebergCatalogSettings; + } + + /** Returns the object with the settings used for calls to listIcebergCatalogs. */ + public PagedCallSettings< + ListIcebergCatalogsRequest, ListIcebergCatalogsResponse, ListIcebergCatalogsPagedResponse> + listIcebergCatalogsSettings() { + return listIcebergCatalogsSettings; + } + + /** Returns the object with the settings used for calls to updateIcebergCatalog. */ + public UnaryCallSettings + updateIcebergCatalogSettings() { + return updateIcebergCatalogSettings; + } + + /** Returns the object with the settings used for calls to createIcebergCatalog. */ + public UnaryCallSettings + createIcebergCatalogSettings() { + return createIcebergCatalogSettings; + } + + /** Returns the object with the settings used for calls to failoverIcebergCatalog. */ + public UnaryCallSettings + failoverIcebergCatalogSettings() { + return failoverIcebergCatalogSettings; + } + + public IcebergCatalogServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcIcebergCatalogServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonIcebergCatalogServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "biglake"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "biglake.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "biglake.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(IcebergCatalogServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(IcebergCatalogServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return IcebergCatalogServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected IcebergCatalogServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getIcebergCatalogSettings = settingsBuilder.getIcebergCatalogSettings().build(); + listIcebergCatalogsSettings = settingsBuilder.listIcebergCatalogsSettings().build(); + updateIcebergCatalogSettings = settingsBuilder.updateIcebergCatalogSettings().build(); + createIcebergCatalogSettings = settingsBuilder.createIcebergCatalogSettings().build(); + failoverIcebergCatalogSettings = settingsBuilder.failoverIcebergCatalogSettings().build(); + } + + /** Builder for IcebergCatalogServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getIcebergCatalogSettings; + private final PagedCallSettings.Builder< + ListIcebergCatalogsRequest, + ListIcebergCatalogsResponse, + ListIcebergCatalogsPagedResponse> + listIcebergCatalogsSettings; + private final UnaryCallSettings.Builder + updateIcebergCatalogSettings; + private final UnaryCallSettings.Builder + createIcebergCatalogSettings; + private final UnaryCallSettings.Builder< + FailoverIcebergCatalogRequest, FailoverIcebergCatalogResponse> + failoverIcebergCatalogSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getIcebergCatalogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listIcebergCatalogsSettings = + PagedCallSettings.newBuilder(LIST_ICEBERG_CATALOGS_PAGE_STR_FACT); + updateIcebergCatalogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createIcebergCatalogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + failoverIcebergCatalogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getIcebergCatalogSettings, + listIcebergCatalogsSettings, + updateIcebergCatalogSettings, + createIcebergCatalogSettings, + failoverIcebergCatalogSettings); + initDefaults(this); + } + + protected Builder(IcebergCatalogServiceStubSettings settings) { + super(settings); + + getIcebergCatalogSettings = settings.getIcebergCatalogSettings.toBuilder(); + listIcebergCatalogsSettings = settings.listIcebergCatalogsSettings.toBuilder(); + updateIcebergCatalogSettings = settings.updateIcebergCatalogSettings.toBuilder(); + createIcebergCatalogSettings = settings.createIcebergCatalogSettings.toBuilder(); + failoverIcebergCatalogSettings = settings.failoverIcebergCatalogSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getIcebergCatalogSettings, + listIcebergCatalogsSettings, + updateIcebergCatalogSettings, + createIcebergCatalogSettings, + failoverIcebergCatalogSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getIcebergCatalogSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listIcebergCatalogsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateIcebergCatalogSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createIcebergCatalogSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .failoverIcebergCatalogSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getIcebergCatalog. */ + public UnaryCallSettings.Builder + getIcebergCatalogSettings() { + return getIcebergCatalogSettings; + } + + /** Returns the builder for the settings used for calls to listIcebergCatalogs. */ + public PagedCallSettings.Builder< + ListIcebergCatalogsRequest, + ListIcebergCatalogsResponse, + ListIcebergCatalogsPagedResponse> + listIcebergCatalogsSettings() { + return listIcebergCatalogsSettings; + } + + /** Returns the builder for the settings used for calls to updateIcebergCatalog. */ + public UnaryCallSettings.Builder + updateIcebergCatalogSettings() { + return updateIcebergCatalogSettings; + } + + /** Returns the builder for the settings used for calls to createIcebergCatalog. */ + public UnaryCallSettings.Builder + createIcebergCatalogSettings() { + return createIcebergCatalogSettings; + } + + /** Returns the builder for the settings used for calls to failoverIcebergCatalog. */ + public UnaryCallSettings.Builder + failoverIcebergCatalogSettings() { + return failoverIcebergCatalogSettings; + } + + @Override + public IcebergCatalogServiceStubSettings build() throws IOException { + return new IcebergCatalogServiceStubSettings(this); + } + } +} diff --git a/java-biglake/google-cloud-biglake/src/main/resources/META-INF/native-image/com.google.cloud.biglake.v1/reflect-config.json b/java-biglake/google-cloud-biglake/src/main/resources/META-INF/native-image/com.google.cloud.biglake.v1/reflect-config.json new file mode 100644 index 000000000000..fb7c0acf77dd --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/main/resources/META-INF/native-image/com.google.cloud.biglake.v1/reflect-config.json @@ -0,0 +1,1883 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpBody", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpBody$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.CreateIcebergCatalogRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.CreateIcebergCatalogRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.CreateIcebergTableRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.CreateIcebergTableRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.DeleteIcebergTableRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.DeleteIcebergTableRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.GetIcebergCatalogRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.GetIcebergCatalogRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.GetIcebergNamespaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.GetIcebergNamespaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.GetIcebergTableRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.GetIcebergTableRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.IcebergCatalog", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.IcebergCatalog$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.IcebergCatalog$CatalogType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.IcebergCatalog$CredentialMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.IcebergCatalogConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.IcebergCatalogConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.IcebergNamespace", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.IcebergNamespace$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.IcebergNamespaceUpdate", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.IcebergNamespaceUpdate$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergCatalogsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergCatalogsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergCatalogsRequest$CatalogView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergCatalogsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergCatalogsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergNamespacesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergNamespacesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergNamespacesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergNamespacesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.RegisterIcebergTableRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.RegisterIcebergTableRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.StorageCredential", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.StorageCredential$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.TableIdentifier", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.TableIdentifier$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.UpdateIcebergTableRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.biglake.v1.UpdateIcebergTableRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.NullValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClientHttpJsonTest.java b/java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..fd3f03402932 --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClientHttpJsonTest.java @@ -0,0 +1,500 @@ +/* + * 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.cloud.biglake.v1; + +import static com.google.cloud.biglake.v1.IcebergCatalogServiceClient.ListIcebergCatalogsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.biglake.v1.stub.HttpJsonIcebergCatalogServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class IcebergCatalogServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static IcebergCatalogServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonIcebergCatalogServiceStub.getMethodDescriptors(), + IcebergCatalogServiceSettings.getDefaultEndpoint()); + IcebergCatalogServiceSettings settings = + IcebergCatalogServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + IcebergCatalogServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = IcebergCatalogServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getIcebergCatalogTest() throws Exception { + IcebergCatalog expectedResponse = + IcebergCatalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .setBiglakeServiceAccount("biglakeServiceAccount-779711961") + .setDefaultLocation("defaultLocation-395835114") + .addAllCatalogRegions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + CatalogName name = CatalogName.of("[PROJECT]", "[CATALOG]"); + + IcebergCatalog actualResponse = client.getIcebergCatalog(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIcebergCatalogExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogName name = CatalogName.of("[PROJECT]", "[CATALOG]"); + client.getIcebergCatalog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIcebergCatalogTest2() throws Exception { + IcebergCatalog expectedResponse = + IcebergCatalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .setBiglakeServiceAccount("biglakeServiceAccount-779711961") + .setDefaultLocation("defaultLocation-395835114") + .addAllCatalogRegions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9652/catalogs/catalog-9652"; + + IcebergCatalog actualResponse = client.getIcebergCatalog(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIcebergCatalogExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9652/catalogs/catalog-9652"; + client.getIcebergCatalog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIcebergCatalogsTest() throws Exception { + IcebergCatalog responsesElement = IcebergCatalog.newBuilder().build(); + ListIcebergCatalogsResponse expectedResponse = + ListIcebergCatalogsResponse.newBuilder() + .setNextPageToken("") + .addAllIcebergCatalogs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListIcebergCatalogsPagedResponse pagedListResponse = client.listIcebergCatalogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIcebergCatalogsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listIcebergCatalogsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listIcebergCatalogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIcebergCatalogsTest2() throws Exception { + IcebergCatalog responsesElement = IcebergCatalog.newBuilder().build(); + ListIcebergCatalogsResponse expectedResponse = + ListIcebergCatalogsResponse.newBuilder() + .setNextPageToken("") + .addAllIcebergCatalogs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListIcebergCatalogsPagedResponse pagedListResponse = client.listIcebergCatalogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIcebergCatalogsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listIcebergCatalogsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listIcebergCatalogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateIcebergCatalogTest() throws Exception { + IcebergCatalog expectedResponse = + IcebergCatalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .setBiglakeServiceAccount("biglakeServiceAccount-779711961") + .setDefaultLocation("defaultLocation-395835114") + .addAllCatalogRegions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + IcebergCatalog icebergCatalog = + IcebergCatalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .setBiglakeServiceAccount("biglakeServiceAccount-779711961") + .setDefaultLocation("defaultLocation-395835114") + .addAllCatalogRegions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + IcebergCatalog actualResponse = client.updateIcebergCatalog(icebergCatalog, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateIcebergCatalogExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + IcebergCatalog icebergCatalog = + IcebergCatalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .setBiglakeServiceAccount("biglakeServiceAccount-779711961") + .setDefaultLocation("defaultLocation-395835114") + .addAllCatalogRegions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateIcebergCatalog(icebergCatalog, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createIcebergCatalogTest() throws Exception { + IcebergCatalog expectedResponse = + IcebergCatalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .setBiglakeServiceAccount("biglakeServiceAccount-779711961") + .setDefaultLocation("defaultLocation-395835114") + .addAllCatalogRegions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + String icebergCatalogId = "icebergCatalogId504062865"; + + IcebergCatalog actualResponse = + client.createIcebergCatalog(parent, icebergCatalog, icebergCatalogId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createIcebergCatalogExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + String icebergCatalogId = "icebergCatalogId504062865"; + client.createIcebergCatalog(parent, icebergCatalog, icebergCatalogId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createIcebergCatalogTest2() throws Exception { + IcebergCatalog expectedResponse = + IcebergCatalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .setBiglakeServiceAccount("biglakeServiceAccount-779711961") + .setDefaultLocation("defaultLocation-395835114") + .addAllCatalogRegions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + String icebergCatalogId = "icebergCatalogId504062865"; + + IcebergCatalog actualResponse = + client.createIcebergCatalog(parent, icebergCatalog, icebergCatalogId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createIcebergCatalogExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + String icebergCatalogId = "icebergCatalogId504062865"; + client.createIcebergCatalog(parent, icebergCatalog, icebergCatalogId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void failoverIcebergCatalogTest() throws Exception { + FailoverIcebergCatalogResponse expectedResponse = + FailoverIcebergCatalogResponse.newBuilder() + .setReplicationTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9652/catalogs/catalog-9652"; + String primaryReplica = "primaryReplica-389090218"; + + FailoverIcebergCatalogResponse actualResponse = + client.failoverIcebergCatalog(name, primaryReplica); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void failoverIcebergCatalogExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9652/catalogs/catalog-9652"; + String primaryReplica = "primaryReplica-389090218"; + client.failoverIcebergCatalog(name, primaryReplica); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClientTest.java b/java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClientTest.java new file mode 100644 index 000000000000..b1708f4791cd --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClientTest.java @@ -0,0 +1,450 @@ +/* + * 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.cloud.biglake.v1; + +import static com.google.cloud.biglake.v1.IcebergCatalogServiceClient.ListIcebergCatalogsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class IcebergCatalogServiceClientTest { + private static MockIcebergCatalogService mockIcebergCatalogService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private IcebergCatalogServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockIcebergCatalogService = new MockIcebergCatalogService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockIcebergCatalogService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + IcebergCatalogServiceSettings settings = + IcebergCatalogServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = IcebergCatalogServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getIcebergCatalogTest() throws Exception { + IcebergCatalog expectedResponse = + IcebergCatalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .setBiglakeServiceAccount("biglakeServiceAccount-779711961") + .setDefaultLocation("defaultLocation-395835114") + .addAllCatalogRegions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockIcebergCatalogService.addResponse(expectedResponse); + + CatalogName name = CatalogName.of("[PROJECT]", "[CATALOG]"); + + IcebergCatalog actualResponse = client.getIcebergCatalog(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIcebergCatalogService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIcebergCatalogRequest actualRequest = ((GetIcebergCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIcebergCatalogExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIcebergCatalogService.addException(exception); + + try { + CatalogName name = CatalogName.of("[PROJECT]", "[CATALOG]"); + client.getIcebergCatalog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIcebergCatalogTest2() throws Exception { + IcebergCatalog expectedResponse = + IcebergCatalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .setBiglakeServiceAccount("biglakeServiceAccount-779711961") + .setDefaultLocation("defaultLocation-395835114") + .addAllCatalogRegions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockIcebergCatalogService.addResponse(expectedResponse); + + String name = "name3373707"; + + IcebergCatalog actualResponse = client.getIcebergCatalog(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIcebergCatalogService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIcebergCatalogRequest actualRequest = ((GetIcebergCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIcebergCatalogExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIcebergCatalogService.addException(exception); + + try { + String name = "name3373707"; + client.getIcebergCatalog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIcebergCatalogsTest() throws Exception { + IcebergCatalog responsesElement = IcebergCatalog.newBuilder().build(); + ListIcebergCatalogsResponse expectedResponse = + ListIcebergCatalogsResponse.newBuilder() + .setNextPageToken("") + .addAllIcebergCatalogs(Arrays.asList(responsesElement)) + .build(); + mockIcebergCatalogService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListIcebergCatalogsPagedResponse pagedListResponse = client.listIcebergCatalogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIcebergCatalogsList().get(0), resources.get(0)); + + List actualRequests = mockIcebergCatalogService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListIcebergCatalogsRequest actualRequest = ((ListIcebergCatalogsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listIcebergCatalogsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIcebergCatalogService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listIcebergCatalogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIcebergCatalogsTest2() throws Exception { + IcebergCatalog responsesElement = IcebergCatalog.newBuilder().build(); + ListIcebergCatalogsResponse expectedResponse = + ListIcebergCatalogsResponse.newBuilder() + .setNextPageToken("") + .addAllIcebergCatalogs(Arrays.asList(responsesElement)) + .build(); + mockIcebergCatalogService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListIcebergCatalogsPagedResponse pagedListResponse = client.listIcebergCatalogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIcebergCatalogsList().get(0), resources.get(0)); + + List actualRequests = mockIcebergCatalogService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListIcebergCatalogsRequest actualRequest = ((ListIcebergCatalogsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listIcebergCatalogsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIcebergCatalogService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listIcebergCatalogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateIcebergCatalogTest() throws Exception { + IcebergCatalog expectedResponse = + IcebergCatalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .setBiglakeServiceAccount("biglakeServiceAccount-779711961") + .setDefaultLocation("defaultLocation-395835114") + .addAllCatalogRegions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockIcebergCatalogService.addResponse(expectedResponse); + + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + IcebergCatalog actualResponse = client.updateIcebergCatalog(icebergCatalog, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIcebergCatalogService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateIcebergCatalogRequest actualRequest = + ((UpdateIcebergCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(icebergCatalog, actualRequest.getIcebergCatalog()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateIcebergCatalogExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIcebergCatalogService.addException(exception); + + try { + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateIcebergCatalog(icebergCatalog, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createIcebergCatalogTest() throws Exception { + IcebergCatalog expectedResponse = + IcebergCatalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .setBiglakeServiceAccount("biglakeServiceAccount-779711961") + .setDefaultLocation("defaultLocation-395835114") + .addAllCatalogRegions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockIcebergCatalogService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + String icebergCatalogId = "icebergCatalogId504062865"; + + IcebergCatalog actualResponse = + client.createIcebergCatalog(parent, icebergCatalog, icebergCatalogId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIcebergCatalogService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateIcebergCatalogRequest actualRequest = + ((CreateIcebergCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(icebergCatalog, actualRequest.getIcebergCatalog()); + Assert.assertEquals(icebergCatalogId, actualRequest.getIcebergCatalogId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createIcebergCatalogExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIcebergCatalogService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + String icebergCatalogId = "icebergCatalogId504062865"; + client.createIcebergCatalog(parent, icebergCatalog, icebergCatalogId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createIcebergCatalogTest2() throws Exception { + IcebergCatalog expectedResponse = + IcebergCatalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .setBiglakeServiceAccount("biglakeServiceAccount-779711961") + .setDefaultLocation("defaultLocation-395835114") + .addAllCatalogRegions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockIcebergCatalogService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + String icebergCatalogId = "icebergCatalogId504062865"; + + IcebergCatalog actualResponse = + client.createIcebergCatalog(parent, icebergCatalog, icebergCatalogId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIcebergCatalogService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateIcebergCatalogRequest actualRequest = + ((CreateIcebergCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(icebergCatalog, actualRequest.getIcebergCatalog()); + Assert.assertEquals(icebergCatalogId, actualRequest.getIcebergCatalogId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createIcebergCatalogExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIcebergCatalogService.addException(exception); + + try { + String parent = "parent-995424086"; + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + String icebergCatalogId = "icebergCatalogId504062865"; + client.createIcebergCatalog(parent, icebergCatalog, icebergCatalogId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void failoverIcebergCatalogTest() throws Exception { + FailoverIcebergCatalogResponse expectedResponse = + FailoverIcebergCatalogResponse.newBuilder() + .setReplicationTime(Timestamp.newBuilder().build()) + .build(); + mockIcebergCatalogService.addResponse(expectedResponse); + + String name = "name3373707"; + String primaryReplica = "primaryReplica-389090218"; + + FailoverIcebergCatalogResponse actualResponse = + client.failoverIcebergCatalog(name, primaryReplica); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIcebergCatalogService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FailoverIcebergCatalogRequest actualRequest = + ((FailoverIcebergCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(primaryReplica, actualRequest.getPrimaryReplica()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void failoverIcebergCatalogExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIcebergCatalogService.addException(exception); + + try { + String name = "name3373707"; + String primaryReplica = "primaryReplica-389090218"; + client.failoverIcebergCatalog(name, primaryReplica); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/MockIcebergCatalogService.java b/java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/MockIcebergCatalogService.java new file mode 100644 index 000000000000..ef935bfce99f --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/MockIcebergCatalogService.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. + */ + +package com.google.cloud.biglake.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIcebergCatalogService implements MockGrpcService { + private final MockIcebergCatalogServiceImpl serviceImpl; + + public MockIcebergCatalogService() { + serviceImpl = new MockIcebergCatalogServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/MockIcebergCatalogServiceImpl.java b/java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/MockIcebergCatalogServiceImpl.java new file mode 100644 index 000000000000..cf905c37d741 --- /dev/null +++ b/java-biglake/google-cloud-biglake/src/test/java/com/google/cloud/biglake/v1/MockIcebergCatalogServiceImpl.java @@ -0,0 +1,170 @@ +/* + * 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.cloud.biglake.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.biglake.v1.IcebergCatalogServiceGrpc.IcebergCatalogServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIcebergCatalogServiceImpl extends IcebergCatalogServiceImplBase { + private List requests; + private Queue responses; + + public MockIcebergCatalogServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getIcebergCatalog( + GetIcebergCatalogRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof IcebergCatalog) { + requests.add(request); + responseObserver.onNext(((IcebergCatalog) 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 GetIcebergCatalog, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + IcebergCatalog.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listIcebergCatalogs( + ListIcebergCatalogsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListIcebergCatalogsResponse) { + requests.add(request); + responseObserver.onNext(((ListIcebergCatalogsResponse) 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 ListIcebergCatalogs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListIcebergCatalogsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateIcebergCatalog( + UpdateIcebergCatalogRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof IcebergCatalog) { + requests.add(request); + responseObserver.onNext(((IcebergCatalog) 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 UpdateIcebergCatalog, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + IcebergCatalog.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createIcebergCatalog( + CreateIcebergCatalogRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof IcebergCatalog) { + requests.add(request); + responseObserver.onNext(((IcebergCatalog) 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 CreateIcebergCatalog, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + IcebergCatalog.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void failoverIcebergCatalog( + FailoverIcebergCatalogRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FailoverIcebergCatalogResponse) { + requests.add(request); + responseObserver.onNext(((FailoverIcebergCatalogResponse) 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 FailoverIcebergCatalog, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + FailoverIcebergCatalogResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-biglake/grpc-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceGrpc.java b/java-biglake/grpc-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceGrpc.java new file mode 100644 index 000000000000..8b774e96066f --- /dev/null +++ b/java-biglake/grpc-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceGrpc.java @@ -0,0 +1,3375 @@ +/* + * 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.cloud.biglake.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Iceberg Catalog Service API: this implements the open-source Iceberg REST
+ * Catalog API.
+ * See the API definition here:
+ * https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml
+ * The API is defined as OpenAPI 3.1.1 spec.
+ * Currently we only support the following methods:
+ * - GetConfig/GetIcebergCatalogConfig
+ * - ListIcebergNamespaces
+ * - CheckIcebergNamespaceExists
+ * - GetIcebergNamespace
+ * - CreateIcebergNamespace (only supports single level)
+ * - DeleteIcebergNamespace
+ * - UpdateIcebergNamespace properties
+ * - ListTableIdentifiers
+ * - CreateIcebergTable
+ * - DeleteIcebergTable
+ * - GetIcebergTable
+ * - UpdateIcebergTable (CommitTable)
+ * - LoadIcebergTableCredentials
+ * - RegisterTable
+ * Users are required to provided the `X-Goog-User-Project` header with the
+ * project id or number which can be different from the bucket project id.
+ * That project will be charged for the API calls and the calling user must have
+ * access to that project. The caller must have `serviceusage.services.use`
+ * permission on the project.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/biglake/v1/iceberg_rest_catalog.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class IcebergCatalogServiceGrpc { + + private IcebergCatalogServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.biglake.v1.IcebergCatalogService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest, + com.google.cloud.biglake.v1.IcebergCatalogConfig> + getGetIcebergCatalogConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIcebergCatalogConfig", + requestType = com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest.class, + responseType = com.google.cloud.biglake.v1.IcebergCatalogConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest, + com.google.cloud.biglake.v1.IcebergCatalogConfig> + getGetIcebergCatalogConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest, + com.google.cloud.biglake.v1.IcebergCatalogConfig> + getGetIcebergCatalogConfigMethod; + if ((getGetIcebergCatalogConfigMethod = + IcebergCatalogServiceGrpc.getGetIcebergCatalogConfigMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getGetIcebergCatalogConfigMethod = + IcebergCatalogServiceGrpc.getGetIcebergCatalogConfigMethod) + == null) { + IcebergCatalogServiceGrpc.getGetIcebergCatalogConfigMethod = + getGetIcebergCatalogConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetIcebergCatalogConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.IcebergCatalogConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier( + "GetIcebergCatalogConfig")) + .build(); + } + } + } + return getGetIcebergCatalogConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest, + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse> + getListIcebergNamespacesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListIcebergNamespaces", + requestType = com.google.cloud.biglake.v1.ListIcebergNamespacesRequest.class, + responseType = com.google.cloud.biglake.v1.ListIcebergNamespacesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest, + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse> + getListIcebergNamespacesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest, + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse> + getListIcebergNamespacesMethod; + if ((getListIcebergNamespacesMethod = IcebergCatalogServiceGrpc.getListIcebergNamespacesMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getListIcebergNamespacesMethod = + IcebergCatalogServiceGrpc.getListIcebergNamespacesMethod) + == null) { + IcebergCatalogServiceGrpc.getListIcebergNamespacesMethod = + getListIcebergNamespacesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListIcebergNamespaces")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier( + "ListIcebergNamespaces")) + .build(); + } + } + } + return getListIcebergNamespacesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest, com.google.protobuf.Empty> + getCheckIcebergNamespaceExistsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CheckIcebergNamespaceExists", + requestType = com.google.cloud.biglake.v1.GetIcebergNamespaceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest, com.google.protobuf.Empty> + getCheckIcebergNamespaceExistsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest, com.google.protobuf.Empty> + getCheckIcebergNamespaceExistsMethod; + if ((getCheckIcebergNamespaceExistsMethod = + IcebergCatalogServiceGrpc.getCheckIcebergNamespaceExistsMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getCheckIcebergNamespaceExistsMethod = + IcebergCatalogServiceGrpc.getCheckIcebergNamespaceExistsMethod) + == null) { + IcebergCatalogServiceGrpc.getCheckIcebergNamespaceExistsMethod = + getCheckIcebergNamespaceExistsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CheckIcebergNamespaceExists")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier( + "CheckIcebergNamespaceExists")) + .build(); + } + } + } + return getCheckIcebergNamespaceExistsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest, + com.google.cloud.biglake.v1.IcebergNamespace> + getGetIcebergNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIcebergNamespace", + requestType = com.google.cloud.biglake.v1.GetIcebergNamespaceRequest.class, + responseType = com.google.cloud.biglake.v1.IcebergNamespace.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest, + com.google.cloud.biglake.v1.IcebergNamespace> + getGetIcebergNamespaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest, + com.google.cloud.biglake.v1.IcebergNamespace> + getGetIcebergNamespaceMethod; + if ((getGetIcebergNamespaceMethod = IcebergCatalogServiceGrpc.getGetIcebergNamespaceMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getGetIcebergNamespaceMethod = IcebergCatalogServiceGrpc.getGetIcebergNamespaceMethod) + == null) { + IcebergCatalogServiceGrpc.getGetIcebergNamespaceMethod = + getGetIcebergNamespaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetIcebergNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.IcebergNamespace.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier("GetIcebergNamespace")) + .build(); + } + } + } + return getGetIcebergNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest, + com.google.cloud.biglake.v1.IcebergNamespace> + getCreateIcebergNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateIcebergNamespace", + requestType = com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest.class, + responseType = com.google.cloud.biglake.v1.IcebergNamespace.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest, + com.google.cloud.biglake.v1.IcebergNamespace> + getCreateIcebergNamespaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest, + com.google.cloud.biglake.v1.IcebergNamespace> + getCreateIcebergNamespaceMethod; + if ((getCreateIcebergNamespaceMethod = + IcebergCatalogServiceGrpc.getCreateIcebergNamespaceMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getCreateIcebergNamespaceMethod = + IcebergCatalogServiceGrpc.getCreateIcebergNamespaceMethod) + == null) { + IcebergCatalogServiceGrpc.getCreateIcebergNamespaceMethod = + getCreateIcebergNamespaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateIcebergNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.IcebergNamespace.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier( + "CreateIcebergNamespace")) + .build(); + } + } + } + return getCreateIcebergNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest, com.google.protobuf.Empty> + getDeleteIcebergNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteIcebergNamespace", + requestType = com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest, com.google.protobuf.Empty> + getDeleteIcebergNamespaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest, com.google.protobuf.Empty> + getDeleteIcebergNamespaceMethod; + if ((getDeleteIcebergNamespaceMethod = + IcebergCatalogServiceGrpc.getDeleteIcebergNamespaceMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getDeleteIcebergNamespaceMethod = + IcebergCatalogServiceGrpc.getDeleteIcebergNamespaceMethod) + == null) { + IcebergCatalogServiceGrpc.getDeleteIcebergNamespaceMethod = + getDeleteIcebergNamespaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteIcebergNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier( + "DeleteIcebergNamespace")) + .build(); + } + } + } + return getDeleteIcebergNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest, + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse> + getUpdateIcebergNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateIcebergNamespace", + requestType = com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest.class, + responseType = com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest, + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse> + getUpdateIcebergNamespaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest, + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse> + getUpdateIcebergNamespaceMethod; + if ((getUpdateIcebergNamespaceMethod = + IcebergCatalogServiceGrpc.getUpdateIcebergNamespaceMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getUpdateIcebergNamespaceMethod = + IcebergCatalogServiceGrpc.getUpdateIcebergNamespaceMethod) + == null) { + IcebergCatalogServiceGrpc.getUpdateIcebergNamespaceMethod = + getUpdateIcebergNamespaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateIcebergNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier( + "UpdateIcebergNamespace")) + .build(); + } + } + } + return getUpdateIcebergNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest, + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse> + getListIcebergTableIdentifiersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListIcebergTableIdentifiers", + requestType = com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest.class, + responseType = com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest, + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse> + getListIcebergTableIdentifiersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest, + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse> + getListIcebergTableIdentifiersMethod; + if ((getListIcebergTableIdentifiersMethod = + IcebergCatalogServiceGrpc.getListIcebergTableIdentifiersMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getListIcebergTableIdentifiersMethod = + IcebergCatalogServiceGrpc.getListIcebergTableIdentifiersMethod) + == null) { + IcebergCatalogServiceGrpc.getListIcebergTableIdentifiersMethod = + getListIcebergTableIdentifiersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListIcebergTableIdentifiers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier( + "ListIcebergTableIdentifiers")) + .build(); + } + } + } + return getListIcebergTableIdentifiersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.CreateIcebergTableRequest, com.google.api.HttpBody> + getCreateIcebergTableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateIcebergTable", + requestType = com.google.cloud.biglake.v1.CreateIcebergTableRequest.class, + responseType = com.google.api.HttpBody.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.CreateIcebergTableRequest, com.google.api.HttpBody> + getCreateIcebergTableMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.CreateIcebergTableRequest, com.google.api.HttpBody> + getCreateIcebergTableMethod; + if ((getCreateIcebergTableMethod = IcebergCatalogServiceGrpc.getCreateIcebergTableMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getCreateIcebergTableMethod = IcebergCatalogServiceGrpc.getCreateIcebergTableMethod) + == null) { + IcebergCatalogServiceGrpc.getCreateIcebergTableMethod = + getCreateIcebergTableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateIcebergTable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.CreateIcebergTableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.HttpBody.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier("CreateIcebergTable")) + .build(); + } + } + } + return getCreateIcebergTableMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergTableRequest, com.google.protobuf.Empty> + getCheckIcebergTableExistsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CheckIcebergTableExists", + requestType = com.google.cloud.biglake.v1.GetIcebergTableRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergTableRequest, com.google.protobuf.Empty> + getCheckIcebergTableExistsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergTableRequest, com.google.protobuf.Empty> + getCheckIcebergTableExistsMethod; + if ((getCheckIcebergTableExistsMethod = + IcebergCatalogServiceGrpc.getCheckIcebergTableExistsMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getCheckIcebergTableExistsMethod = + IcebergCatalogServiceGrpc.getCheckIcebergTableExistsMethod) + == null) { + IcebergCatalogServiceGrpc.getCheckIcebergTableExistsMethod = + getCheckIcebergTableExistsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CheckIcebergTableExists")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.GetIcebergTableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier( + "CheckIcebergTableExists")) + .build(); + } + } + } + return getCheckIcebergTableExistsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.DeleteIcebergTableRequest, com.google.protobuf.Empty> + getDeleteIcebergTableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteIcebergTable", + requestType = com.google.cloud.biglake.v1.DeleteIcebergTableRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.DeleteIcebergTableRequest, com.google.protobuf.Empty> + getDeleteIcebergTableMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.DeleteIcebergTableRequest, com.google.protobuf.Empty> + getDeleteIcebergTableMethod; + if ((getDeleteIcebergTableMethod = IcebergCatalogServiceGrpc.getDeleteIcebergTableMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getDeleteIcebergTableMethod = IcebergCatalogServiceGrpc.getDeleteIcebergTableMethod) + == null) { + IcebergCatalogServiceGrpc.getDeleteIcebergTableMethod = + getDeleteIcebergTableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteIcebergTable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.DeleteIcebergTableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier("DeleteIcebergTable")) + .build(); + } + } + } + return getDeleteIcebergTableMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergTableRequest, com.google.api.HttpBody> + getGetIcebergTableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIcebergTable", + requestType = com.google.cloud.biglake.v1.GetIcebergTableRequest.class, + responseType = com.google.api.HttpBody.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergTableRequest, com.google.api.HttpBody> + getGetIcebergTableMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergTableRequest, com.google.api.HttpBody> + getGetIcebergTableMethod; + if ((getGetIcebergTableMethod = IcebergCatalogServiceGrpc.getGetIcebergTableMethod) == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getGetIcebergTableMethod = IcebergCatalogServiceGrpc.getGetIcebergTableMethod) + == null) { + IcebergCatalogServiceGrpc.getGetIcebergTableMethod = + getGetIcebergTableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIcebergTable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.GetIcebergTableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.HttpBody.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier("GetIcebergTable")) + .build(); + } + } + } + return getGetIcebergTableMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergTableRequest, + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse> + getLoadIcebergTableCredentialsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LoadIcebergTableCredentials", + requestType = com.google.cloud.biglake.v1.GetIcebergTableRequest.class, + responseType = com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergTableRequest, + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse> + getLoadIcebergTableCredentialsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergTableRequest, + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse> + getLoadIcebergTableCredentialsMethod; + if ((getLoadIcebergTableCredentialsMethod = + IcebergCatalogServiceGrpc.getLoadIcebergTableCredentialsMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getLoadIcebergTableCredentialsMethod = + IcebergCatalogServiceGrpc.getLoadIcebergTableCredentialsMethod) + == null) { + IcebergCatalogServiceGrpc.getLoadIcebergTableCredentialsMethod = + getLoadIcebergTableCredentialsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "LoadIcebergTableCredentials")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.GetIcebergTableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier( + "LoadIcebergTableCredentials")) + .build(); + } + } + } + return getLoadIcebergTableCredentialsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.UpdateIcebergTableRequest, com.google.api.HttpBody> + getUpdateIcebergTableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateIcebergTable", + requestType = com.google.cloud.biglake.v1.UpdateIcebergTableRequest.class, + responseType = com.google.api.HttpBody.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.UpdateIcebergTableRequest, com.google.api.HttpBody> + getUpdateIcebergTableMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.UpdateIcebergTableRequest, com.google.api.HttpBody> + getUpdateIcebergTableMethod; + if ((getUpdateIcebergTableMethod = IcebergCatalogServiceGrpc.getUpdateIcebergTableMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getUpdateIcebergTableMethod = IcebergCatalogServiceGrpc.getUpdateIcebergTableMethod) + == null) { + IcebergCatalogServiceGrpc.getUpdateIcebergTableMethod = + getUpdateIcebergTableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateIcebergTable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.UpdateIcebergTableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.HttpBody.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier("UpdateIcebergTable")) + .build(); + } + } + } + return getUpdateIcebergTableMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.RegisterIcebergTableRequest, com.google.api.HttpBody> + getRegisterIcebergTableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RegisterIcebergTable", + requestType = com.google.cloud.biglake.v1.RegisterIcebergTableRequest.class, + responseType = com.google.api.HttpBody.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.RegisterIcebergTableRequest, com.google.api.HttpBody> + getRegisterIcebergTableMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.RegisterIcebergTableRequest, com.google.api.HttpBody> + getRegisterIcebergTableMethod; + if ((getRegisterIcebergTableMethod = IcebergCatalogServiceGrpc.getRegisterIcebergTableMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getRegisterIcebergTableMethod = + IcebergCatalogServiceGrpc.getRegisterIcebergTableMethod) + == null) { + IcebergCatalogServiceGrpc.getRegisterIcebergTableMethod = + getRegisterIcebergTableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RegisterIcebergTable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.RegisterIcebergTableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.HttpBody.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier("RegisterIcebergTable")) + .build(); + } + } + } + return getRegisterIcebergTableMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergCatalogRequest, + com.google.cloud.biglake.v1.IcebergCatalog> + getGetIcebergCatalogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIcebergCatalog", + requestType = com.google.cloud.biglake.v1.GetIcebergCatalogRequest.class, + responseType = com.google.cloud.biglake.v1.IcebergCatalog.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergCatalogRequest, + com.google.cloud.biglake.v1.IcebergCatalog> + getGetIcebergCatalogMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.GetIcebergCatalogRequest, + com.google.cloud.biglake.v1.IcebergCatalog> + getGetIcebergCatalogMethod; + if ((getGetIcebergCatalogMethod = IcebergCatalogServiceGrpc.getGetIcebergCatalogMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getGetIcebergCatalogMethod = IcebergCatalogServiceGrpc.getGetIcebergCatalogMethod) + == null) { + IcebergCatalogServiceGrpc.getGetIcebergCatalogMethod = + getGetIcebergCatalogMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIcebergCatalog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.GetIcebergCatalogRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier("GetIcebergCatalog")) + .build(); + } + } + } + return getGetIcebergCatalogMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest, + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse> + getListIcebergCatalogsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListIcebergCatalogs", + requestType = com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.class, + responseType = com.google.cloud.biglake.v1.ListIcebergCatalogsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest, + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse> + getListIcebergCatalogsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest, + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse> + getListIcebergCatalogsMethod; + if ((getListIcebergCatalogsMethod = IcebergCatalogServiceGrpc.getListIcebergCatalogsMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getListIcebergCatalogsMethod = IcebergCatalogServiceGrpc.getListIcebergCatalogsMethod) + == null) { + IcebergCatalogServiceGrpc.getListIcebergCatalogsMethod = + getListIcebergCatalogsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListIcebergCatalogs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier("ListIcebergCatalogs")) + .build(); + } + } + } + return getListIcebergCatalogsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest, com.google.protobuf.Empty> + getDeleteIcebergCatalogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteIcebergCatalog", + requestType = com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest, com.google.protobuf.Empty> + getDeleteIcebergCatalogMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest, com.google.protobuf.Empty> + getDeleteIcebergCatalogMethod; + if ((getDeleteIcebergCatalogMethod = IcebergCatalogServiceGrpc.getDeleteIcebergCatalogMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getDeleteIcebergCatalogMethod = + IcebergCatalogServiceGrpc.getDeleteIcebergCatalogMethod) + == null) { + IcebergCatalogServiceGrpc.getDeleteIcebergCatalogMethod = + getDeleteIcebergCatalogMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteIcebergCatalog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier("DeleteIcebergCatalog")) + .build(); + } + } + } + return getDeleteIcebergCatalogMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest, + com.google.cloud.biglake.v1.IcebergCatalog> + getUpdateIcebergCatalogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateIcebergCatalog", + requestType = com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest.class, + responseType = com.google.cloud.biglake.v1.IcebergCatalog.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest, + com.google.cloud.biglake.v1.IcebergCatalog> + getUpdateIcebergCatalogMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest, + com.google.cloud.biglake.v1.IcebergCatalog> + getUpdateIcebergCatalogMethod; + if ((getUpdateIcebergCatalogMethod = IcebergCatalogServiceGrpc.getUpdateIcebergCatalogMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getUpdateIcebergCatalogMethod = + IcebergCatalogServiceGrpc.getUpdateIcebergCatalogMethod) + == null) { + IcebergCatalogServiceGrpc.getUpdateIcebergCatalogMethod = + getUpdateIcebergCatalogMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateIcebergCatalog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier("UpdateIcebergCatalog")) + .build(); + } + } + } + return getUpdateIcebergCatalogMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest, + com.google.cloud.biglake.v1.IcebergCatalog> + getCreateIcebergCatalogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateIcebergCatalog", + requestType = com.google.cloud.biglake.v1.CreateIcebergCatalogRequest.class, + responseType = com.google.cloud.biglake.v1.IcebergCatalog.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest, + com.google.cloud.biglake.v1.IcebergCatalog> + getCreateIcebergCatalogMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest, + com.google.cloud.biglake.v1.IcebergCatalog> + getCreateIcebergCatalogMethod; + if ((getCreateIcebergCatalogMethod = IcebergCatalogServiceGrpc.getCreateIcebergCatalogMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getCreateIcebergCatalogMethod = + IcebergCatalogServiceGrpc.getCreateIcebergCatalogMethod) + == null) { + IcebergCatalogServiceGrpc.getCreateIcebergCatalogMethod = + getCreateIcebergCatalogMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateIcebergCatalog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier("CreateIcebergCatalog")) + .build(); + } + } + } + return getCreateIcebergCatalogMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest, + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse> + getFailoverIcebergCatalogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FailoverIcebergCatalog", + requestType = com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest.class, + responseType = com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest, + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse> + getFailoverIcebergCatalogMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest, + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse> + getFailoverIcebergCatalogMethod; + if ((getFailoverIcebergCatalogMethod = + IcebergCatalogServiceGrpc.getFailoverIcebergCatalogMethod) + == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + if ((getFailoverIcebergCatalogMethod = + IcebergCatalogServiceGrpc.getFailoverIcebergCatalogMethod) + == null) { + IcebergCatalogServiceGrpc.getFailoverIcebergCatalogMethod = + getFailoverIcebergCatalogMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FailoverIcebergCatalog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new IcebergCatalogServiceMethodDescriptorSupplier( + "FailoverIcebergCatalog")) + .build(); + } + } + } + return getFailoverIcebergCatalogMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static IcebergCatalogServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IcebergCatalogServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IcebergCatalogServiceStub(channel, callOptions); + } + }; + return IcebergCatalogServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static IcebergCatalogServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IcebergCatalogServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IcebergCatalogServiceBlockingV2Stub(channel, callOptions); + } + }; + return IcebergCatalogServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static IcebergCatalogServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IcebergCatalogServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IcebergCatalogServiceBlockingStub(channel, callOptions); + } + }; + return IcebergCatalogServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static IcebergCatalogServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IcebergCatalogServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IcebergCatalogServiceFutureStub(channel, callOptions); + } + }; + return IcebergCatalogServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Iceberg Catalog Service API: this implements the open-source Iceberg REST
+   * Catalog API.
+   * See the API definition here:
+   * https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml
+   * The API is defined as OpenAPI 3.1.1 spec.
+   * Currently we only support the following methods:
+   * - GetConfig/GetIcebergCatalogConfig
+   * - ListIcebergNamespaces
+   * - CheckIcebergNamespaceExists
+   * - GetIcebergNamespace
+   * - CreateIcebergNamespace (only supports single level)
+   * - DeleteIcebergNamespace
+   * - UpdateIcebergNamespace properties
+   * - ListTableIdentifiers
+   * - CreateIcebergTable
+   * - DeleteIcebergTable
+   * - GetIcebergTable
+   * - UpdateIcebergTable (CommitTable)
+   * - LoadIcebergTableCredentials
+   * - RegisterTable
+   * Users are required to provided the `X-Goog-User-Project` header with the
+   * project id or number which can be different from the bucket project id.
+   * That project will be charged for the API calls and the calling user must have
+   * access to that project. The caller must have `serviceusage.services.use`
+   * permission on the project.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * GetIcebergCatalogConfig lists all catalog configuration settings. Most
+     * importantly it contains the optional `endpoints` field which lists what
+     * methods this catalog supports, since we are not supporting all the methods
+     * right now.
+     * It returns all the methods defined in this service (subject to project
+     * config allowlisting).
+     * This is not a GCP resource.
+     * 
+ */ + default void getIcebergCatalogConfig( + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIcebergCatalogConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Iceberg namespaces in the catalog. We only support one level of
+     * nesting for namespaces.
+     * 
+ */ + default void listIcebergNamespaces( + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListIcebergNamespacesMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns 204 if the namespace exists, 404 otherwise.
+     * 
+ */ + default void checkIcebergNamespaceExists( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCheckIcebergNamespaceExistsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an Iceberg namespace in the catalog (or checks if it exists, if the
+     * method is HEAD).
+     * 
+ */ + default void getIcebergNamespace( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIcebergNamespaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a namespace in the catalog.
+     * 
+ */ + default void createIcebergNamespace( + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateIcebergNamespaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns 204, not 200 on success.
+     * 
+ */ + default void deleteIcebergNamespace( + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteIcebergNamespaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates namespace properties.
+     * 
+ */ + default void updateIcebergNamespace( + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateIcebergNamespaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists table identifiers (not *tables*) in the namespace.
+     * 
+ */ + default void listIcebergTableIdentifiers( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListIcebergTableIdentifiersMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a table in the namespace.
+     * 
+ */ + default void createIcebergTable( + com.google.cloud.biglake.v1.CreateIcebergTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateIcebergTableMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns 204 if the table exists, 404 otherwise. This is a `HEAD` HTTP
+     * method.
+     * 
+ */ + default void checkIcebergTableExists( + com.google.cloud.biglake.v1.GetIcebergTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCheckIcebergTableExistsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a table in the namespace.
+     * 
+ */ + default void deleteIcebergTable( + com.google.cloud.biglake.v1.DeleteIcebergTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteIcebergTableMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a table in the namespace.
+     * 
+ */ + default void getIcebergTable( + com.google.cloud.biglake.v1.GetIcebergTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIcebergTableMethod(), responseObserver); + } + + /** + * + * + *
+     * Loads credentials for a table in the namespace.
+     * 
+ */ + default void loadIcebergTableCredentials( + com.google.cloud.biglake.v1.GetIcebergTableRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLoadIcebergTableCredentialsMethod(), responseObserver); + } + + /** + * + * + *
+     * This is CommitTable Iceberg API, which maps to `UpdateIcebergTable` in the
+     * Google API nomenclature.
+     * 
+ */ + default void updateIcebergTable( + com.google.cloud.biglake.v1.UpdateIcebergTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateIcebergTableMethod(), responseObserver); + } + + /** + * + * + *
+     * Register a table using given metadata file location.
+     * 
+ */ + default void registerIcebergTable( + com.google.cloud.biglake.v1.RegisterIcebergTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRegisterIcebergTableMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the Iceberg REST Catalog configuration options.
+     * 
+ */ + default void getIcebergCatalog( + com.google.cloud.biglake.v1.GetIcebergCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIcebergCatalogMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the Iceberg REST Catalogs.
+     * 
+ */ + default void listIcebergCatalogs( + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListIcebergCatalogsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the Iceberg REST Catalog.
+     * Delete does not delete a catalog that has contents -- at least one
+     * namespace.
+     * Delete is not supported for all catalog types.
+     * 
+ */ + default void deleteIcebergCatalog( + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteIcebergCatalogMethod(), responseObserver); + } + + /** + * + * + *
+     * Update the Iceberg REST Catalog configuration options.
+     * 
+ */ + default void updateIcebergCatalog( + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateIcebergCatalogMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates the Iceberg REST Catalog.
+     * Currently only supports Google Cloud Storage Bucket catalogs.
+     * Google Cloud Storage Bucket catalog id is the bucket for which the
+     * catalog is created (e.g. `my-catalog` for `gs://my-catalog`).
+     * If the bucket does not exist, of the caller does not have bucket metadata
+     * permissions, the catalog will not be created.
+     * 
+ */ + default void createIcebergCatalog( + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateIcebergCatalogMethod(), responseObserver); + } + + /** + * + * + *
+     * Failover the catalog to a new primary replica region.
+     * 
+ */ + default void failoverIcebergCatalog( + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFailoverIcebergCatalogMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service IcebergCatalogService. + * + *
+   * Iceberg Catalog Service API: this implements the open-source Iceberg REST
+   * Catalog API.
+   * See the API definition here:
+   * https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml
+   * The API is defined as OpenAPI 3.1.1 spec.
+   * Currently we only support the following methods:
+   * - GetConfig/GetIcebergCatalogConfig
+   * - ListIcebergNamespaces
+   * - CheckIcebergNamespaceExists
+   * - GetIcebergNamespace
+   * - CreateIcebergNamespace (only supports single level)
+   * - DeleteIcebergNamespace
+   * - UpdateIcebergNamespace properties
+   * - ListTableIdentifiers
+   * - CreateIcebergTable
+   * - DeleteIcebergTable
+   * - GetIcebergTable
+   * - UpdateIcebergTable (CommitTable)
+   * - LoadIcebergTableCredentials
+   * - RegisterTable
+   * Users are required to provided the `X-Goog-User-Project` header with the
+   * project id or number which can be different from the bucket project id.
+   * That project will be charged for the API calls and the calling user must have
+   * access to that project. The caller must have `serviceusage.services.use`
+   * permission on the project.
+   * 
+ */ + public abstract static class IcebergCatalogServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return IcebergCatalogServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service IcebergCatalogService. + * + *
+   * Iceberg Catalog Service API: this implements the open-source Iceberg REST
+   * Catalog API.
+   * See the API definition here:
+   * https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml
+   * The API is defined as OpenAPI 3.1.1 spec.
+   * Currently we only support the following methods:
+   * - GetConfig/GetIcebergCatalogConfig
+   * - ListIcebergNamespaces
+   * - CheckIcebergNamespaceExists
+   * - GetIcebergNamespace
+   * - CreateIcebergNamespace (only supports single level)
+   * - DeleteIcebergNamespace
+   * - UpdateIcebergNamespace properties
+   * - ListTableIdentifiers
+   * - CreateIcebergTable
+   * - DeleteIcebergTable
+   * - GetIcebergTable
+   * - UpdateIcebergTable (CommitTable)
+   * - LoadIcebergTableCredentials
+   * - RegisterTable
+   * Users are required to provided the `X-Goog-User-Project` header with the
+   * project id or number which can be different from the bucket project id.
+   * That project will be charged for the API calls and the calling user must have
+   * access to that project. The caller must have `serviceusage.services.use`
+   * permission on the project.
+   * 
+ */ + public static final class IcebergCatalogServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private IcebergCatalogServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IcebergCatalogServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IcebergCatalogServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * GetIcebergCatalogConfig lists all catalog configuration settings. Most
+     * importantly it contains the optional `endpoints` field which lists what
+     * methods this catalog supports, since we are not supporting all the methods
+     * right now.
+     * It returns all the methods defined in this service (subject to project
+     * config allowlisting).
+     * This is not a GCP resource.
+     * 
+ */ + public void getIcebergCatalogConfig( + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIcebergCatalogConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Iceberg namespaces in the catalog. We only support one level of
+     * nesting for namespaces.
+     * 
+ */ + public void listIcebergNamespaces( + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListIcebergNamespacesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns 204 if the namespace exists, 404 otherwise.
+     * 
+ */ + public void checkIcebergNamespaceExists( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCheckIcebergNamespaceExistsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an Iceberg namespace in the catalog (or checks if it exists, if the
+     * method is HEAD).
+     * 
+ */ + public void getIcebergNamespace( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIcebergNamespaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a namespace in the catalog.
+     * 
+ */ + public void createIcebergNamespace( + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateIcebergNamespaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns 204, not 200 on success.
+     * 
+ */ + public void deleteIcebergNamespace( + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteIcebergNamespaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates namespace properties.
+     * 
+ */ + public void updateIcebergNamespace( + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateIcebergNamespaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists table identifiers (not *tables*) in the namespace.
+     * 
+ */ + public void listIcebergTableIdentifiers( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListIcebergTableIdentifiersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a table in the namespace.
+     * 
+ */ + public void createIcebergTable( + com.google.cloud.biglake.v1.CreateIcebergTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateIcebergTableMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns 204 if the table exists, 404 otherwise. This is a `HEAD` HTTP
+     * method.
+     * 
+ */ + public void checkIcebergTableExists( + com.google.cloud.biglake.v1.GetIcebergTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCheckIcebergTableExistsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a table in the namespace.
+     * 
+ */ + public void deleteIcebergTable( + com.google.cloud.biglake.v1.DeleteIcebergTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteIcebergTableMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a table in the namespace.
+     * 
+ */ + public void getIcebergTable( + com.google.cloud.biglake.v1.GetIcebergTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIcebergTableMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Loads credentials for a table in the namespace.
+     * 
+ */ + public void loadIcebergTableCredentials( + com.google.cloud.biglake.v1.GetIcebergTableRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLoadIcebergTableCredentialsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * This is CommitTable Iceberg API, which maps to `UpdateIcebergTable` in the
+     * Google API nomenclature.
+     * 
+ */ + public void updateIcebergTable( + com.google.cloud.biglake.v1.UpdateIcebergTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateIcebergTableMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Register a table using given metadata file location.
+     * 
+ */ + public void registerIcebergTable( + com.google.cloud.biglake.v1.RegisterIcebergTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRegisterIcebergTableMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the Iceberg REST Catalog configuration options.
+     * 
+ */ + public void getIcebergCatalog( + com.google.cloud.biglake.v1.GetIcebergCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIcebergCatalogMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the Iceberg REST Catalogs.
+     * 
+ */ + public void listIcebergCatalogs( + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListIcebergCatalogsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the Iceberg REST Catalog.
+     * Delete does not delete a catalog that has contents -- at least one
+     * namespace.
+     * Delete is not supported for all catalog types.
+     * 
+ */ + public void deleteIcebergCatalog( + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteIcebergCatalogMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update the Iceberg REST Catalog configuration options.
+     * 
+ */ + public void updateIcebergCatalog( + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateIcebergCatalogMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates the Iceberg REST Catalog.
+     * Currently only supports Google Cloud Storage Bucket catalogs.
+     * Google Cloud Storage Bucket catalog id is the bucket for which the
+     * catalog is created (e.g. `my-catalog` for `gs://my-catalog`).
+     * If the bucket does not exist, of the caller does not have bucket metadata
+     * permissions, the catalog will not be created.
+     * 
+ */ + public void createIcebergCatalog( + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateIcebergCatalogMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Failover the catalog to a new primary replica region.
+     * 
+ */ + public void failoverIcebergCatalog( + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFailoverIcebergCatalogMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service IcebergCatalogService. + * + *
+   * Iceberg Catalog Service API: this implements the open-source Iceberg REST
+   * Catalog API.
+   * See the API definition here:
+   * https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml
+   * The API is defined as OpenAPI 3.1.1 spec.
+   * Currently we only support the following methods:
+   * - GetConfig/GetIcebergCatalogConfig
+   * - ListIcebergNamespaces
+   * - CheckIcebergNamespaceExists
+   * - GetIcebergNamespace
+   * - CreateIcebergNamespace (only supports single level)
+   * - DeleteIcebergNamespace
+   * - UpdateIcebergNamespace properties
+   * - ListTableIdentifiers
+   * - CreateIcebergTable
+   * - DeleteIcebergTable
+   * - GetIcebergTable
+   * - UpdateIcebergTable (CommitTable)
+   * - LoadIcebergTableCredentials
+   * - RegisterTable
+   * Users are required to provided the `X-Goog-User-Project` header with the
+   * project id or number which can be different from the bucket project id.
+   * That project will be charged for the API calls and the calling user must have
+   * access to that project. The caller must have `serviceusage.services.use`
+   * permission on the project.
+   * 
+ */ + public static final class IcebergCatalogServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private IcebergCatalogServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IcebergCatalogServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IcebergCatalogServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * GetIcebergCatalogConfig lists all catalog configuration settings. Most
+     * importantly it contains the optional `endpoints` field which lists what
+     * methods this catalog supports, since we are not supporting all the methods
+     * right now.
+     * It returns all the methods defined in this service (subject to project
+     * config allowlisting).
+     * This is not a GCP resource.
+     * 
+ */ + public com.google.cloud.biglake.v1.IcebergCatalogConfig getIcebergCatalogConfig( + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIcebergCatalogConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Iceberg namespaces in the catalog. We only support one level of
+     * nesting for namespaces.
+     * 
+ */ + public com.google.cloud.biglake.v1.ListIcebergNamespacesResponse listIcebergNamespaces( + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIcebergNamespacesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns 204 if the namespace exists, 404 otherwise.
+     * 
+ */ + public com.google.protobuf.Empty checkIcebergNamespaceExists( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCheckIcebergNamespaceExistsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an Iceberg namespace in the catalog (or checks if it exists, if the
+     * method is HEAD).
+     * 
+ */ + public com.google.cloud.biglake.v1.IcebergNamespace getIcebergNamespace( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIcebergNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a namespace in the catalog.
+     * 
+ */ + public com.google.cloud.biglake.v1.IcebergNamespace createIcebergNamespace( + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateIcebergNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns 204, not 200 on success.
+     * 
+ */ + public com.google.protobuf.Empty deleteIcebergNamespace( + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIcebergNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates namespace properties.
+     * 
+ */ + public com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse updateIcebergNamespace( + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIcebergNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists table identifiers (not *tables*) in the namespace.
+     * 
+ */ + public com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse + listIcebergTableIdentifiers( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIcebergTableIdentifiersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a table in the namespace.
+     * 
+ */ + public com.google.api.HttpBody createIcebergTable( + com.google.cloud.biglake.v1.CreateIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateIcebergTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns 204 if the table exists, 404 otherwise. This is a `HEAD` HTTP
+     * method.
+     * 
+ */ + public com.google.protobuf.Empty checkIcebergTableExists( + com.google.cloud.biglake.v1.GetIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCheckIcebergTableExistsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a table in the namespace.
+     * 
+ */ + public com.google.protobuf.Empty deleteIcebergTable( + com.google.cloud.biglake.v1.DeleteIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIcebergTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a table in the namespace.
+     * 
+ */ + public com.google.api.HttpBody getIcebergTable( + com.google.cloud.biglake.v1.GetIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIcebergTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Loads credentials for a table in the namespace.
+     * 
+ */ + public com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse + loadIcebergTableCredentials(com.google.cloud.biglake.v1.GetIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLoadIcebergTableCredentialsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * This is CommitTable Iceberg API, which maps to `UpdateIcebergTable` in the
+     * Google API nomenclature.
+     * 
+ */ + public com.google.api.HttpBody updateIcebergTable( + com.google.cloud.biglake.v1.UpdateIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIcebergTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Register a table using given metadata file location.
+     * 
+ */ + public com.google.api.HttpBody registerIcebergTable( + com.google.cloud.biglake.v1.RegisterIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRegisterIcebergTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the Iceberg REST Catalog configuration options.
+     * 
+ */ + public com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalog( + com.google.cloud.biglake.v1.GetIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIcebergCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the Iceberg REST Catalogs.
+     * 
+ */ + public com.google.cloud.biglake.v1.ListIcebergCatalogsResponse listIcebergCatalogs( + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIcebergCatalogsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the Iceberg REST Catalog.
+     * Delete does not delete a catalog that has contents -- at least one
+     * namespace.
+     * Delete is not supported for all catalog types.
+     * 
+ */ + public com.google.protobuf.Empty deleteIcebergCatalog( + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIcebergCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update the Iceberg REST Catalog configuration options.
+     * 
+ */ + public com.google.cloud.biglake.v1.IcebergCatalog updateIcebergCatalog( + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIcebergCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates the Iceberg REST Catalog.
+     * Currently only supports Google Cloud Storage Bucket catalogs.
+     * Google Cloud Storage Bucket catalog id is the bucket for which the
+     * catalog is created (e.g. `my-catalog` for `gs://my-catalog`).
+     * If the bucket does not exist, of the caller does not have bucket metadata
+     * permissions, the catalog will not be created.
+     * 
+ */ + public com.google.cloud.biglake.v1.IcebergCatalog createIcebergCatalog( + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateIcebergCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Failover the catalog to a new primary replica region.
+     * 
+ */ + public com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse failoverIcebergCatalog( + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFailoverIcebergCatalogMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service IcebergCatalogService. + * + *
+   * Iceberg Catalog Service API: this implements the open-source Iceberg REST
+   * Catalog API.
+   * See the API definition here:
+   * https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml
+   * The API is defined as OpenAPI 3.1.1 spec.
+   * Currently we only support the following methods:
+   * - GetConfig/GetIcebergCatalogConfig
+   * - ListIcebergNamespaces
+   * - CheckIcebergNamespaceExists
+   * - GetIcebergNamespace
+   * - CreateIcebergNamespace (only supports single level)
+   * - DeleteIcebergNamespace
+   * - UpdateIcebergNamespace properties
+   * - ListTableIdentifiers
+   * - CreateIcebergTable
+   * - DeleteIcebergTable
+   * - GetIcebergTable
+   * - UpdateIcebergTable (CommitTable)
+   * - LoadIcebergTableCredentials
+   * - RegisterTable
+   * Users are required to provided the `X-Goog-User-Project` header with the
+   * project id or number which can be different from the bucket project id.
+   * That project will be charged for the API calls and the calling user must have
+   * access to that project. The caller must have `serviceusage.services.use`
+   * permission on the project.
+   * 
+ */ + public static final class IcebergCatalogServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private IcebergCatalogServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IcebergCatalogServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IcebergCatalogServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * GetIcebergCatalogConfig lists all catalog configuration settings. Most
+     * importantly it contains the optional `endpoints` field which lists what
+     * methods this catalog supports, since we are not supporting all the methods
+     * right now.
+     * It returns all the methods defined in this service (subject to project
+     * config allowlisting).
+     * This is not a GCP resource.
+     * 
+ */ + public com.google.cloud.biglake.v1.IcebergCatalogConfig getIcebergCatalogConfig( + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIcebergCatalogConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Iceberg namespaces in the catalog. We only support one level of
+     * nesting for namespaces.
+     * 
+ */ + public com.google.cloud.biglake.v1.ListIcebergNamespacesResponse listIcebergNamespaces( + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIcebergNamespacesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns 204 if the namespace exists, 404 otherwise.
+     * 
+ */ + public com.google.protobuf.Empty checkIcebergNamespaceExists( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCheckIcebergNamespaceExistsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an Iceberg namespace in the catalog (or checks if it exists, if the
+     * method is HEAD).
+     * 
+ */ + public com.google.cloud.biglake.v1.IcebergNamespace getIcebergNamespace( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIcebergNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a namespace in the catalog.
+     * 
+ */ + public com.google.cloud.biglake.v1.IcebergNamespace createIcebergNamespace( + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateIcebergNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns 204, not 200 on success.
+     * 
+ */ + public com.google.protobuf.Empty deleteIcebergNamespace( + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIcebergNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates namespace properties.
+     * 
+ */ + public com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse updateIcebergNamespace( + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIcebergNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists table identifiers (not *tables*) in the namespace.
+     * 
+ */ + public com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse + listIcebergTableIdentifiers( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIcebergTableIdentifiersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a table in the namespace.
+     * 
+ */ + public com.google.api.HttpBody createIcebergTable( + com.google.cloud.biglake.v1.CreateIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateIcebergTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns 204 if the table exists, 404 otherwise. This is a `HEAD` HTTP
+     * method.
+     * 
+ */ + public com.google.protobuf.Empty checkIcebergTableExists( + com.google.cloud.biglake.v1.GetIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCheckIcebergTableExistsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a table in the namespace.
+     * 
+ */ + public com.google.protobuf.Empty deleteIcebergTable( + com.google.cloud.biglake.v1.DeleteIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIcebergTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a table in the namespace.
+     * 
+ */ + public com.google.api.HttpBody getIcebergTable( + com.google.cloud.biglake.v1.GetIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIcebergTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Loads credentials for a table in the namespace.
+     * 
+ */ + public com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse + loadIcebergTableCredentials(com.google.cloud.biglake.v1.GetIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLoadIcebergTableCredentialsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * This is CommitTable Iceberg API, which maps to `UpdateIcebergTable` in the
+     * Google API nomenclature.
+     * 
+ */ + public com.google.api.HttpBody updateIcebergTable( + com.google.cloud.biglake.v1.UpdateIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIcebergTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Register a table using given metadata file location.
+     * 
+ */ + public com.google.api.HttpBody registerIcebergTable( + com.google.cloud.biglake.v1.RegisterIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRegisterIcebergTableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the Iceberg REST Catalog configuration options.
+     * 
+ */ + public com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalog( + com.google.cloud.biglake.v1.GetIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIcebergCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the Iceberg REST Catalogs.
+     * 
+ */ + public com.google.cloud.biglake.v1.ListIcebergCatalogsResponse listIcebergCatalogs( + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIcebergCatalogsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the Iceberg REST Catalog.
+     * Delete does not delete a catalog that has contents -- at least one
+     * namespace.
+     * Delete is not supported for all catalog types.
+     * 
+ */ + public com.google.protobuf.Empty deleteIcebergCatalog( + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIcebergCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update the Iceberg REST Catalog configuration options.
+     * 
+ */ + public com.google.cloud.biglake.v1.IcebergCatalog updateIcebergCatalog( + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIcebergCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates the Iceberg REST Catalog.
+     * Currently only supports Google Cloud Storage Bucket catalogs.
+     * Google Cloud Storage Bucket catalog id is the bucket for which the
+     * catalog is created (e.g. `my-catalog` for `gs://my-catalog`).
+     * If the bucket does not exist, of the caller does not have bucket metadata
+     * permissions, the catalog will not be created.
+     * 
+ */ + public com.google.cloud.biglake.v1.IcebergCatalog createIcebergCatalog( + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateIcebergCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Failover the catalog to a new primary replica region.
+     * 
+ */ + public com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse failoverIcebergCatalog( + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFailoverIcebergCatalogMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * IcebergCatalogService. + * + *
+   * Iceberg Catalog Service API: this implements the open-source Iceberg REST
+   * Catalog API.
+   * See the API definition here:
+   * https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml
+   * The API is defined as OpenAPI 3.1.1 spec.
+   * Currently we only support the following methods:
+   * - GetConfig/GetIcebergCatalogConfig
+   * - ListIcebergNamespaces
+   * - CheckIcebergNamespaceExists
+   * - GetIcebergNamespace
+   * - CreateIcebergNamespace (only supports single level)
+   * - DeleteIcebergNamespace
+   * - UpdateIcebergNamespace properties
+   * - ListTableIdentifiers
+   * - CreateIcebergTable
+   * - DeleteIcebergTable
+   * - GetIcebergTable
+   * - UpdateIcebergTable (CommitTable)
+   * - LoadIcebergTableCredentials
+   * - RegisterTable
+   * Users are required to provided the `X-Goog-User-Project` header with the
+   * project id or number which can be different from the bucket project id.
+   * That project will be charged for the API calls and the calling user must have
+   * access to that project. The caller must have `serviceusage.services.use`
+   * permission on the project.
+   * 
+ */ + public static final class IcebergCatalogServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private IcebergCatalogServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IcebergCatalogServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IcebergCatalogServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * GetIcebergCatalogConfig lists all catalog configuration settings. Most
+     * importantly it contains the optional `endpoints` field which lists what
+     * methods this catalog supports, since we are not supporting all the methods
+     * right now.
+     * It returns all the methods defined in this service (subject to project
+     * config allowlisting).
+     * This is not a GCP resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.biglake.v1.IcebergCatalogConfig> + getIcebergCatalogConfig( + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIcebergCatalogConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Iceberg namespaces in the catalog. We only support one level of
+     * nesting for namespaces.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse> + listIcebergNamespaces(com.google.cloud.biglake.v1.ListIcebergNamespacesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListIcebergNamespacesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns 204 if the namespace exists, 404 otherwise.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + checkIcebergNamespaceExists( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCheckIcebergNamespaceExistsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an Iceberg namespace in the catalog (or checks if it exists, if the
+     * method is HEAD).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.biglake.v1.IcebergNamespace> + getIcebergNamespace(com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIcebergNamespaceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a namespace in the catalog.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.biglake.v1.IcebergNamespace> + createIcebergNamespace(com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateIcebergNamespaceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns 204, not 200 on success.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteIcebergNamespace(com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteIcebergNamespaceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates namespace properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse> + updateIcebergNamespace(com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateIcebergNamespaceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists table identifiers (not *tables*) in the namespace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse> + listIcebergTableIdentifiers( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListIcebergTableIdentifiersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a table in the namespace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createIcebergTable(com.google.cloud.biglake.v1.CreateIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateIcebergTableMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns 204 if the table exists, 404 otherwise. This is a `HEAD` HTTP
+     * method.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + checkIcebergTableExists(com.google.cloud.biglake.v1.GetIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCheckIcebergTableExistsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a table in the namespace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteIcebergTable(com.google.cloud.biglake.v1.DeleteIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteIcebergTableMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a table in the namespace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIcebergTable(com.google.cloud.biglake.v1.GetIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIcebergTableMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Loads credentials for a table in the namespace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse> + loadIcebergTableCredentials(com.google.cloud.biglake.v1.GetIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLoadIcebergTableCredentialsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * This is CommitTable Iceberg API, which maps to `UpdateIcebergTable` in the
+     * Google API nomenclature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateIcebergTable(com.google.cloud.biglake.v1.UpdateIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateIcebergTableMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Register a table using given metadata file location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + registerIcebergTable(com.google.cloud.biglake.v1.RegisterIcebergTableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRegisterIcebergTableMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the Iceberg REST Catalog configuration options.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.biglake.v1.IcebergCatalog> + getIcebergCatalog(com.google.cloud.biglake.v1.GetIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIcebergCatalogMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the Iceberg REST Catalogs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse> + listIcebergCatalogs(com.google.cloud.biglake.v1.ListIcebergCatalogsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListIcebergCatalogsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the Iceberg REST Catalog.
+     * Delete does not delete a catalog that has contents -- at least one
+     * namespace.
+     * Delete is not supported for all catalog types.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteIcebergCatalog(com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteIcebergCatalogMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update the Iceberg REST Catalog configuration options.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.biglake.v1.IcebergCatalog> + updateIcebergCatalog(com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateIcebergCatalogMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates the Iceberg REST Catalog.
+     * Currently only supports Google Cloud Storage Bucket catalogs.
+     * Google Cloud Storage Bucket catalog id is the bucket for which the
+     * catalog is created (e.g. `my-catalog` for `gs://my-catalog`).
+     * If the bucket does not exist, of the caller does not have bucket metadata
+     * permissions, the catalog will not be created.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.biglake.v1.IcebergCatalog> + createIcebergCatalog(com.google.cloud.biglake.v1.CreateIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateIcebergCatalogMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Failover the catalog to a new primary replica region.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse> + failoverIcebergCatalog(com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFailoverIcebergCatalogMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_ICEBERG_CATALOG_CONFIG = 0; + private static final int METHODID_LIST_ICEBERG_NAMESPACES = 1; + private static final int METHODID_CHECK_ICEBERG_NAMESPACE_EXISTS = 2; + private static final int METHODID_GET_ICEBERG_NAMESPACE = 3; + private static final int METHODID_CREATE_ICEBERG_NAMESPACE = 4; + private static final int METHODID_DELETE_ICEBERG_NAMESPACE = 5; + private static final int METHODID_UPDATE_ICEBERG_NAMESPACE = 6; + private static final int METHODID_LIST_ICEBERG_TABLE_IDENTIFIERS = 7; + private static final int METHODID_CREATE_ICEBERG_TABLE = 8; + private static final int METHODID_CHECK_ICEBERG_TABLE_EXISTS = 9; + private static final int METHODID_DELETE_ICEBERG_TABLE = 10; + private static final int METHODID_GET_ICEBERG_TABLE = 11; + private static final int METHODID_LOAD_ICEBERG_TABLE_CREDENTIALS = 12; + private static final int METHODID_UPDATE_ICEBERG_TABLE = 13; + private static final int METHODID_REGISTER_ICEBERG_TABLE = 14; + private static final int METHODID_GET_ICEBERG_CATALOG = 15; + private static final int METHODID_LIST_ICEBERG_CATALOGS = 16; + private static final int METHODID_DELETE_ICEBERG_CATALOG = 17; + private static final int METHODID_UPDATE_ICEBERG_CATALOG = 18; + private static final int METHODID_CREATE_ICEBERG_CATALOG = 19; + private static final int METHODID_FAILOVER_ICEBERG_CATALOG = 20; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_ICEBERG_CATALOG_CONFIG: + serviceImpl.getIcebergCatalogConfig( + (com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ICEBERG_NAMESPACES: + serviceImpl.listIcebergNamespaces( + (com.google.cloud.biglake.v1.ListIcebergNamespacesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse>) + responseObserver); + break; + case METHODID_CHECK_ICEBERG_NAMESPACE_EXISTS: + serviceImpl.checkIcebergNamespaceExists( + (com.google.cloud.biglake.v1.GetIcebergNamespaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ICEBERG_NAMESPACE: + serviceImpl.getIcebergNamespace( + (com.google.cloud.biglake.v1.GetIcebergNamespaceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ICEBERG_NAMESPACE: + serviceImpl.createIcebergNamespace( + (com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ICEBERG_NAMESPACE: + serviceImpl.deleteIcebergNamespace( + (com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ICEBERG_NAMESPACE: + serviceImpl.updateIcebergNamespace( + (com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse>) + responseObserver); + break; + case METHODID_LIST_ICEBERG_TABLE_IDENTIFIERS: + serviceImpl.listIcebergTableIdentifiers( + (com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse>) + responseObserver); + break; + case METHODID_CREATE_ICEBERG_TABLE: + serviceImpl.createIcebergTable( + (com.google.cloud.biglake.v1.CreateIcebergTableRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CHECK_ICEBERG_TABLE_EXISTS: + serviceImpl.checkIcebergTableExists( + (com.google.cloud.biglake.v1.GetIcebergTableRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ICEBERG_TABLE: + serviceImpl.deleteIcebergTable( + (com.google.cloud.biglake.v1.DeleteIcebergTableRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ICEBERG_TABLE: + serviceImpl.getIcebergTable( + (com.google.cloud.biglake.v1.GetIcebergTableRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LOAD_ICEBERG_TABLE_CREDENTIALS: + serviceImpl.loadIcebergTableCredentials( + (com.google.cloud.biglake.v1.GetIcebergTableRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse>) + responseObserver); + break; + case METHODID_UPDATE_ICEBERG_TABLE: + serviceImpl.updateIcebergTable( + (com.google.cloud.biglake.v1.UpdateIcebergTableRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REGISTER_ICEBERG_TABLE: + serviceImpl.registerIcebergTable( + (com.google.cloud.biglake.v1.RegisterIcebergTableRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ICEBERG_CATALOG: + serviceImpl.getIcebergCatalog( + (com.google.cloud.biglake.v1.GetIcebergCatalogRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ICEBERG_CATALOGS: + serviceImpl.listIcebergCatalogs( + (com.google.cloud.biglake.v1.ListIcebergCatalogsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ICEBERG_CATALOG: + serviceImpl.deleteIcebergCatalog( + (com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ICEBERG_CATALOG: + serviceImpl.updateIcebergCatalog( + (com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ICEBERG_CATALOG: + serviceImpl.createIcebergCatalog( + (com.google.cloud.biglake.v1.CreateIcebergCatalogRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_FAILOVER_ICEBERG_CATALOG: + serviceImpl.failoverIcebergCatalog( + (com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetIcebergCatalogConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest, + com.google.cloud.biglake.v1.IcebergCatalogConfig>( + service, METHODID_GET_ICEBERG_CATALOG_CONFIG))) + .addMethod( + getListIcebergNamespacesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest, + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse>( + service, METHODID_LIST_ICEBERG_NAMESPACES))) + .addMethod( + getCheckIcebergNamespaceExistsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest, + com.google.protobuf.Empty>(service, METHODID_CHECK_ICEBERG_NAMESPACE_EXISTS))) + .addMethod( + getGetIcebergNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest, + com.google.cloud.biglake.v1.IcebergNamespace>( + service, METHODID_GET_ICEBERG_NAMESPACE))) + .addMethod( + getCreateIcebergNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest, + com.google.cloud.biglake.v1.IcebergNamespace>( + service, METHODID_CREATE_ICEBERG_NAMESPACE))) + .addMethod( + getDeleteIcebergNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_ICEBERG_NAMESPACE))) + .addMethod( + getUpdateIcebergNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest, + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse>( + service, METHODID_UPDATE_ICEBERG_NAMESPACE))) + .addMethod( + getListIcebergTableIdentifiersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest, + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse>( + service, METHODID_LIST_ICEBERG_TABLE_IDENTIFIERS))) + .addMethod( + getCreateIcebergTableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.CreateIcebergTableRequest, com.google.api.HttpBody>( + service, METHODID_CREATE_ICEBERG_TABLE))) + .addMethod( + getCheckIcebergTableExistsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.GetIcebergTableRequest, com.google.protobuf.Empty>( + service, METHODID_CHECK_ICEBERG_TABLE_EXISTS))) + .addMethod( + getDeleteIcebergTableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.DeleteIcebergTableRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_ICEBERG_TABLE))) + .addMethod( + getGetIcebergTableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.GetIcebergTableRequest, com.google.api.HttpBody>( + service, METHODID_GET_ICEBERG_TABLE))) + .addMethod( + getLoadIcebergTableCredentialsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.GetIcebergTableRequest, + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse>( + service, METHODID_LOAD_ICEBERG_TABLE_CREDENTIALS))) + .addMethod( + getUpdateIcebergTableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.UpdateIcebergTableRequest, com.google.api.HttpBody>( + service, METHODID_UPDATE_ICEBERG_TABLE))) + .addMethod( + getRegisterIcebergTableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.RegisterIcebergTableRequest, + com.google.api.HttpBody>(service, METHODID_REGISTER_ICEBERG_TABLE))) + .addMethod( + getGetIcebergCatalogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.GetIcebergCatalogRequest, + com.google.cloud.biglake.v1.IcebergCatalog>( + service, METHODID_GET_ICEBERG_CATALOG))) + .addMethod( + getListIcebergCatalogsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest, + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse>( + service, METHODID_LIST_ICEBERG_CATALOGS))) + .addMethod( + getDeleteIcebergCatalogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_ICEBERG_CATALOG))) + .addMethod( + getUpdateIcebergCatalogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest, + com.google.cloud.biglake.v1.IcebergCatalog>( + service, METHODID_UPDATE_ICEBERG_CATALOG))) + .addMethod( + getCreateIcebergCatalogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest, + com.google.cloud.biglake.v1.IcebergCatalog>( + service, METHODID_CREATE_ICEBERG_CATALOG))) + .addMethod( + getFailoverIcebergCatalogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest, + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse>( + service, METHODID_FAILOVER_ICEBERG_CATALOG))) + .build(); + } + + private abstract static class IcebergCatalogServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + IcebergCatalogServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("IcebergCatalogService"); + } + } + + private static final class IcebergCatalogServiceFileDescriptorSupplier + extends IcebergCatalogServiceBaseDescriptorSupplier { + IcebergCatalogServiceFileDescriptorSupplier() {} + } + + private static final class IcebergCatalogServiceMethodDescriptorSupplier + extends IcebergCatalogServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + IcebergCatalogServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (IcebergCatalogServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new IcebergCatalogServiceFileDescriptorSupplier()) + .addMethod(getGetIcebergCatalogConfigMethod()) + .addMethod(getListIcebergNamespacesMethod()) + .addMethod(getCheckIcebergNamespaceExistsMethod()) + .addMethod(getGetIcebergNamespaceMethod()) + .addMethod(getCreateIcebergNamespaceMethod()) + .addMethod(getDeleteIcebergNamespaceMethod()) + .addMethod(getUpdateIcebergNamespaceMethod()) + .addMethod(getListIcebergTableIdentifiersMethod()) + .addMethod(getCreateIcebergTableMethod()) + .addMethod(getCheckIcebergTableExistsMethod()) + .addMethod(getDeleteIcebergTableMethod()) + .addMethod(getGetIcebergTableMethod()) + .addMethod(getLoadIcebergTableCredentialsMethod()) + .addMethod(getUpdateIcebergTableMethod()) + .addMethod(getRegisterIcebergTableMethod()) + .addMethod(getGetIcebergCatalogMethod()) + .addMethod(getListIcebergCatalogsMethod()) + .addMethod(getDeleteIcebergCatalogMethod()) + .addMethod(getUpdateIcebergCatalogMethod()) + .addMethod(getCreateIcebergCatalogMethod()) + .addMethod(getFailoverIcebergCatalogMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CatalogName.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CatalogName.java new file mode 100644 index 000000000000..e2bab5c745ce --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CatalogName.java @@ -0,0 +1,192 @@ +/* + * 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.cloud.biglake.v1; + +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 CatalogName implements ResourceName { + private static final PathTemplate PROJECT_CATALOG = + PathTemplate.createWithoutUrlEncoding("projects/{project}/catalogs/{catalog}"); + private volatile Map fieldValuesMap; + private final String project; + private final String catalog; + + @Deprecated + protected CatalogName() { + project = null; + catalog = null; + } + + private CatalogName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + catalog = Preconditions.checkNotNull(builder.getCatalog()); + } + + public String getProject() { + return project; + } + + public String getCatalog() { + return catalog; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CatalogName of(String project, String catalog) { + return newBuilder().setProject(project).setCatalog(catalog).build(); + } + + public static String format(String project, String catalog) { + return newBuilder().setProject(project).setCatalog(catalog).build().toString(); + } + + public static CatalogName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_CATALOG.validatedMatch( + formattedString, "CatalogName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("catalog")); + } + + 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 (CatalogName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_CATALOG.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 (catalog != null) { + fieldMapBuilder.put("catalog", catalog); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_CATALOG.instantiate("project", project, "catalog", catalog); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CatalogName that = ((CatalogName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.catalog, that.catalog); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(catalog); + return h; + } + + /** Builder for projects/{project}/catalogs/{catalog}. */ + public static class Builder { + private String project; + private String catalog; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getCatalog() { + return catalog; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setCatalog(String catalog) { + this.catalog = catalog; + return this; + } + + private Builder(CatalogName catalogName) { + this.project = catalogName.project; + this.catalog = catalogName.catalog; + } + + public CatalogName build() { + return new CatalogName(this); + } + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergCatalogRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergCatalogRequest.java new file mode 100644 index 000000000000..4d7962e76434 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergCatalogRequest.java @@ -0,0 +1,1224 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `CreateIcebergCatalog` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.CreateIcebergCatalogRequest} + */ +public final class CreateIcebergCatalogRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.CreateIcebergCatalogRequest) + CreateIcebergCatalogRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateIcebergCatalogRequest.newBuilder() to construct. + private CreateIcebergCatalogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateIcebergCatalogRequest() { + parent_ = ""; + icebergCatalogId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateIcebergCatalogRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest.class, + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where this catalog will be created.
+   * Format: projects/{project_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource where this catalog will be created.
+   * Format: projects/{project_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ICEBERG_CATALOG_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object icebergCatalogId_ = ""; + + /** + * + * + *
+   * Required. The name of the catalog.
+   * 
+ * + * + * string iceberg_catalog_id = 3 [json_name = "iceberg-catalog-id", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergCatalogId. + */ + @java.lang.Override + public java.lang.String getIcebergCatalogId() { + java.lang.Object ref = icebergCatalogId_; + 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(); + icebergCatalogId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the catalog.
+   * 
+ * + * + * string iceberg_catalog_id = 3 [json_name = "iceberg-catalog-id", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for icebergCatalogId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIcebergCatalogIdBytes() { + java.lang.Object ref = icebergCatalogId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + icebergCatalogId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ICEBERG_CATALOG_FIELD_NUMBER = 2; + private com.google.cloud.biglake.v1.IcebergCatalog icebergCatalog_; + + /** + * + * + *
+   * Required. The catalog to create.
+   * The required fields for creation are:
+   * - catalog_type.
+   * Optionally: credential_mode can be provided, if Credential Vending is
+   * desired.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the icebergCatalog field is set. + */ + @java.lang.Override + public boolean hasIcebergCatalog() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The catalog to create.
+   * The required fields for creation are:
+   * - catalog_type.
+   * Optionally: credential_mode can be provided, if Credential Vending is
+   * desired.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergCatalog. + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalog() { + return icebergCatalog_ == null + ? com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance() + : icebergCatalog_; + } + + /** + * + * + *
+   * Required. The catalog to create.
+   * The required fields for creation are:
+   * - catalog_type.
+   * Optionally: credential_mode can be provided, if Credential Vending is
+   * desired.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalogOrBuilder getIcebergCatalogOrBuilder() { + return icebergCatalog_ == null + ? com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance() + : icebergCatalog_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getIcebergCatalog()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(icebergCatalogId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, icebergCatalogId_); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIcebergCatalog()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(icebergCatalogId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, icebergCatalogId_); + } + 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.cloud.biglake.v1.CreateIcebergCatalogRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest other = + (com.google.cloud.biglake.v1.CreateIcebergCatalogRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getIcebergCatalogId().equals(other.getIcebergCatalogId())) return false; + if (hasIcebergCatalog() != other.hasIcebergCatalog()) return false; + if (hasIcebergCatalog()) { + if (!getIcebergCatalog().equals(other.getIcebergCatalog())) 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) + ICEBERG_CATALOG_ID_FIELD_NUMBER; + hash = (53 * hash) + getIcebergCatalogId().hashCode(); + if (hasIcebergCatalog()) { + hash = (37 * hash) + ICEBERG_CATALOG_FIELD_NUMBER; + hash = (53 * hash) + getIcebergCatalog().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.CreateIcebergCatalogRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.CreateIcebergCatalogRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.CreateIcebergCatalogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.CreateIcebergCatalogRequest 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.cloud.biglake.v1.CreateIcebergCatalogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.CreateIcebergCatalogRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.CreateIcebergCatalogRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.CreateIcebergCatalogRequest 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.cloud.biglake.v1.CreateIcebergCatalogRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.CreateIcebergCatalogRequest 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.cloud.biglake.v1.CreateIcebergCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.CreateIcebergCatalogRequest 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.cloud.biglake.v1.CreateIcebergCatalogRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `CreateIcebergCatalog` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.CreateIcebergCatalogRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.CreateIcebergCatalogRequest) + com.google.cloud.biglake.v1.CreateIcebergCatalogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest.class, + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.CreateIcebergCatalogRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIcebergCatalogFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + icebergCatalogId_ = ""; + icebergCatalog_ = null; + if (icebergCatalogBuilder_ != null) { + icebergCatalogBuilder_.dispose(); + icebergCatalogBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.CreateIcebergCatalogRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.CreateIcebergCatalogRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.CreateIcebergCatalogRequest build() { + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.CreateIcebergCatalogRequest buildPartial() { + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest result = + new com.google.cloud.biglake.v1.CreateIcebergCatalogRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.CreateIcebergCatalogRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.icebergCatalogId_ = icebergCatalogId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.icebergCatalog_ = + icebergCatalogBuilder_ == null ? icebergCatalog_ : icebergCatalogBuilder_.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.cloud.biglake.v1.CreateIcebergCatalogRequest) { + return mergeFrom((com.google.cloud.biglake.v1.CreateIcebergCatalogRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.CreateIcebergCatalogRequest other) { + if (other == com.google.cloud.biglake.v1.CreateIcebergCatalogRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getIcebergCatalogId().isEmpty()) { + icebergCatalogId_ = other.icebergCatalogId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasIcebergCatalog()) { + mergeIcebergCatalog(other.getIcebergCatalog()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getIcebergCatalogFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + icebergCatalogId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 resource where this catalog will be created.
+     * Format: projects/{project_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this catalog will be created.
+     * Format: projects/{project_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this catalog will be created.
+     * Format: projects/{project_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this catalog will be created.
+     * Format: projects/{project_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this catalog will be created.
+     * Format: projects/{project_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object icebergCatalogId_ = ""; + + /** + * + * + *
+     * Required. The name of the catalog.
+     * 
+ * + * + * string iceberg_catalog_id = 3 [json_name = "iceberg-catalog-id", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergCatalogId. + */ + public java.lang.String getIcebergCatalogId() { + java.lang.Object ref = icebergCatalogId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + icebergCatalogId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the catalog.
+     * 
+ * + * + * string iceberg_catalog_id = 3 [json_name = "iceberg-catalog-id", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for icebergCatalogId. + */ + public com.google.protobuf.ByteString getIcebergCatalogIdBytes() { + java.lang.Object ref = icebergCatalogId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + icebergCatalogId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the catalog.
+     * 
+ * + * + * string iceberg_catalog_id = 3 [json_name = "iceberg-catalog-id", (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The icebergCatalogId to set. + * @return This builder for chaining. + */ + public Builder setIcebergCatalogId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + icebergCatalogId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the catalog.
+     * 
+ * + * + * string iceberg_catalog_id = 3 [json_name = "iceberg-catalog-id", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearIcebergCatalogId() { + icebergCatalogId_ = getDefaultInstance().getIcebergCatalogId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the catalog.
+     * 
+ * + * + * string iceberg_catalog_id = 3 [json_name = "iceberg-catalog-id", (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for icebergCatalogId to set. + * @return This builder for chaining. + */ + public Builder setIcebergCatalogIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + icebergCatalogId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.biglake.v1.IcebergCatalog icebergCatalog_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergCatalog, + com.google.cloud.biglake.v1.IcebergCatalog.Builder, + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder> + icebergCatalogBuilder_; + + /** + * + * + *
+     * Required. The catalog to create.
+     * The required fields for creation are:
+     * - catalog_type.
+     * Optionally: credential_mode can be provided, if Credential Vending is
+     * desired.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the icebergCatalog field is set. + */ + public boolean hasIcebergCatalog() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * The required fields for creation are:
+     * - catalog_type.
+     * Optionally: credential_mode can be provided, if Credential Vending is
+     * desired.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergCatalog. + */ + public com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalog() { + if (icebergCatalogBuilder_ == null) { + return icebergCatalog_ == null + ? com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance() + : icebergCatalog_; + } else { + return icebergCatalogBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * The required fields for creation are:
+     * - catalog_type.
+     * Optionally: credential_mode can be provided, if Credential Vending is
+     * desired.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIcebergCatalog(com.google.cloud.biglake.v1.IcebergCatalog value) { + if (icebergCatalogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + icebergCatalog_ = value; + } else { + icebergCatalogBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * The required fields for creation are:
+     * - catalog_type.
+     * Optionally: credential_mode can be provided, if Credential Vending is
+     * desired.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIcebergCatalog( + com.google.cloud.biglake.v1.IcebergCatalog.Builder builderForValue) { + if (icebergCatalogBuilder_ == null) { + icebergCatalog_ = builderForValue.build(); + } else { + icebergCatalogBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * The required fields for creation are:
+     * - catalog_type.
+     * Optionally: credential_mode can be provided, if Credential Vending is
+     * desired.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIcebergCatalog(com.google.cloud.biglake.v1.IcebergCatalog value) { + if (icebergCatalogBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && icebergCatalog_ != null + && icebergCatalog_ != com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance()) { + getIcebergCatalogBuilder().mergeFrom(value); + } else { + icebergCatalog_ = value; + } + } else { + icebergCatalogBuilder_.mergeFrom(value); + } + if (icebergCatalog_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * The required fields for creation are:
+     * - catalog_type.
+     * Optionally: credential_mode can be provided, if Credential Vending is
+     * desired.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIcebergCatalog() { + bitField0_ = (bitField0_ & ~0x00000004); + icebergCatalog_ = null; + if (icebergCatalogBuilder_ != null) { + icebergCatalogBuilder_.dispose(); + icebergCatalogBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * The required fields for creation are:
+     * - catalog_type.
+     * Optionally: credential_mode can be provided, if Credential Vending is
+     * desired.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.biglake.v1.IcebergCatalog.Builder getIcebergCatalogBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getIcebergCatalogFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * The required fields for creation are:
+     * - catalog_type.
+     * Optionally: credential_mode can be provided, if Credential Vending is
+     * desired.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.biglake.v1.IcebergCatalogOrBuilder getIcebergCatalogOrBuilder() { + if (icebergCatalogBuilder_ != null) { + return icebergCatalogBuilder_.getMessageOrBuilder(); + } else { + return icebergCatalog_ == null + ? com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance() + : icebergCatalog_; + } + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * The required fields for creation are:
+     * - catalog_type.
+     * Optionally: credential_mode can be provided, if Credential Vending is
+     * desired.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergCatalog, + com.google.cloud.biglake.v1.IcebergCatalog.Builder, + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder> + getIcebergCatalogFieldBuilder() { + if (icebergCatalogBuilder_ == null) { + icebergCatalogBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergCatalog, + com.google.cloud.biglake.v1.IcebergCatalog.Builder, + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder>( + getIcebergCatalog(), getParentForChildren(), isClean()); + icebergCatalog_ = null; + } + return icebergCatalogBuilder_; + } + + @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.cloud.biglake.v1.CreateIcebergCatalogRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.CreateIcebergCatalogRequest) + private static final com.google.cloud.biglake.v1.CreateIcebergCatalogRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.CreateIcebergCatalogRequest(); + } + + public static com.google.cloud.biglake.v1.CreateIcebergCatalogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateIcebergCatalogRequest 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.cloud.biglake.v1.CreateIcebergCatalogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergCatalogRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergCatalogRequestOrBuilder.java new file mode 100644 index 000000000000..5236d79854e2 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergCatalogRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface CreateIcebergCatalogRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.CreateIcebergCatalogRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this catalog will be created.
+   * Format: projects/{project_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where this catalog will be created.
+   * Format: projects/{project_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The name of the catalog.
+   * 
+ * + * + * string iceberg_catalog_id = 3 [json_name = "iceberg-catalog-id", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergCatalogId. + */ + java.lang.String getIcebergCatalogId(); + + /** + * + * + *
+   * Required. The name of the catalog.
+   * 
+ * + * + * string iceberg_catalog_id = 3 [json_name = "iceberg-catalog-id", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for icebergCatalogId. + */ + com.google.protobuf.ByteString getIcebergCatalogIdBytes(); + + /** + * + * + *
+   * Required. The catalog to create.
+   * The required fields for creation are:
+   * - catalog_type.
+   * Optionally: credential_mode can be provided, if Credential Vending is
+   * desired.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the icebergCatalog field is set. + */ + boolean hasIcebergCatalog(); + + /** + * + * + *
+   * Required. The catalog to create.
+   * The required fields for creation are:
+   * - catalog_type.
+   * Optionally: credential_mode can be provided, if Credential Vending is
+   * desired.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergCatalog. + */ + com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalog(); + + /** + * + * + *
+   * Required. The catalog to create.
+   * The required fields for creation are:
+   * - catalog_type.
+   * Optionally: credential_mode can be provided, if Credential Vending is
+   * desired.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder getIcebergCatalogOrBuilder(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergNamespaceRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergNamespaceRequest.java new file mode 100644 index 000000000000..c18bd6b5815b --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergNamespaceRequest.java @@ -0,0 +1,975 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `CreateIcebergNamespace` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.CreateIcebergNamespaceRequest} + */ +public final class CreateIcebergNamespaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.CreateIcebergNamespaceRequest) + CreateIcebergNamespaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateIcebergNamespaceRequest.newBuilder() to construct. + private CreateIcebergNamespaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateIcebergNamespaceRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateIcebergNamespaceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest.class, + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where this namespace will be created.
+   * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource where this namespace will be created.
+   * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ICEBERG_NAMESPACE_FIELD_NUMBER = 2; + private com.google.cloud.biglake.v1.IcebergNamespace icebergNamespace_; + + /** + * + * + *
+   * Required. The namespace to create.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the icebergNamespace field is set. + */ + @java.lang.Override + public boolean hasIcebergNamespace() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The namespace to create.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergNamespace. + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergNamespace getIcebergNamespace() { + return icebergNamespace_ == null + ? com.google.cloud.biglake.v1.IcebergNamespace.getDefaultInstance() + : icebergNamespace_; + } + + /** + * + * + *
+   * Required. The namespace to create.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergNamespaceOrBuilder getIcebergNamespaceOrBuilder() { + return icebergNamespace_ == null + ? com.google.cloud.biglake.v1.IcebergNamespace.getDefaultInstance() + : icebergNamespace_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getIcebergNamespace()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIcebergNamespace()); + } + 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.cloud.biglake.v1.CreateIcebergNamespaceRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest other = + (com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasIcebergNamespace() != other.hasIcebergNamespace()) return false; + if (hasIcebergNamespace()) { + if (!getIcebergNamespace().equals(other.getIcebergNamespace())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasIcebergNamespace()) { + hash = (37 * hash) + ICEBERG_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getIcebergNamespace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest 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.cloud.biglake.v1.CreateIcebergNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest 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.cloud.biglake.v1.CreateIcebergNamespaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest 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.cloud.biglake.v1.CreateIcebergNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest 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.cloud.biglake.v1.CreateIcebergNamespaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `CreateIcebergNamespace` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.CreateIcebergNamespaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.CreateIcebergNamespaceRequest) + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest.class, + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIcebergNamespaceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + icebergNamespace_ = null; + if (icebergNamespaceBuilder_ != null) { + icebergNamespaceBuilder_.dispose(); + icebergNamespaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergNamespaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest build() { + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest buildPartial() { + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest result = + new com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.icebergNamespace_ = + icebergNamespaceBuilder_ == null ? icebergNamespace_ : icebergNamespaceBuilder_.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.cloud.biglake.v1.CreateIcebergNamespaceRequest) { + return mergeFrom((com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest other) { + if (other == com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIcebergNamespace()) { + mergeIcebergNamespace(other.getIcebergNamespace()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getIcebergNamespaceFieldBuilder().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 parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where this namespace will be created.
+     * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this namespace will be created.
+     * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this namespace will be created.
+     * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this namespace will be created.
+     * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this namespace will be created.
+     * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.biglake.v1.IcebergNamespace icebergNamespace_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergNamespace, + com.google.cloud.biglake.v1.IcebergNamespace.Builder, + com.google.cloud.biglake.v1.IcebergNamespaceOrBuilder> + icebergNamespaceBuilder_; + + /** + * + * + *
+     * Required. The namespace to create.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the icebergNamespace field is set. + */ + public boolean hasIcebergNamespace() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The namespace to create.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergNamespace. + */ + public com.google.cloud.biglake.v1.IcebergNamespace getIcebergNamespace() { + if (icebergNamespaceBuilder_ == null) { + return icebergNamespace_ == null + ? com.google.cloud.biglake.v1.IcebergNamespace.getDefaultInstance() + : icebergNamespace_; + } else { + return icebergNamespaceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The namespace to create.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIcebergNamespace(com.google.cloud.biglake.v1.IcebergNamespace value) { + if (icebergNamespaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + icebergNamespace_ = value; + } else { + icebergNamespaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The namespace to create.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIcebergNamespace( + com.google.cloud.biglake.v1.IcebergNamespace.Builder builderForValue) { + if (icebergNamespaceBuilder_ == null) { + icebergNamespace_ = builderForValue.build(); + } else { + icebergNamespaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The namespace to create.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIcebergNamespace(com.google.cloud.biglake.v1.IcebergNamespace value) { + if (icebergNamespaceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && icebergNamespace_ != null + && icebergNamespace_ + != com.google.cloud.biglake.v1.IcebergNamespace.getDefaultInstance()) { + getIcebergNamespaceBuilder().mergeFrom(value); + } else { + icebergNamespace_ = value; + } + } else { + icebergNamespaceBuilder_.mergeFrom(value); + } + if (icebergNamespace_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The namespace to create.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIcebergNamespace() { + bitField0_ = (bitField0_ & ~0x00000002); + icebergNamespace_ = null; + if (icebergNamespaceBuilder_ != null) { + icebergNamespaceBuilder_.dispose(); + icebergNamespaceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The namespace to create.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.biglake.v1.IcebergNamespace.Builder getIcebergNamespaceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getIcebergNamespaceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The namespace to create.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.biglake.v1.IcebergNamespaceOrBuilder getIcebergNamespaceOrBuilder() { + if (icebergNamespaceBuilder_ != null) { + return icebergNamespaceBuilder_.getMessageOrBuilder(); + } else { + return icebergNamespace_ == null + ? com.google.cloud.biglake.v1.IcebergNamespace.getDefaultInstance() + : icebergNamespace_; + } + } + + /** + * + * + *
+     * Required. The namespace to create.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergNamespace, + com.google.cloud.biglake.v1.IcebergNamespace.Builder, + com.google.cloud.biglake.v1.IcebergNamespaceOrBuilder> + getIcebergNamespaceFieldBuilder() { + if (icebergNamespaceBuilder_ == null) { + icebergNamespaceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergNamespace, + com.google.cloud.biglake.v1.IcebergNamespace.Builder, + com.google.cloud.biglake.v1.IcebergNamespaceOrBuilder>( + getIcebergNamespace(), getParentForChildren(), isClean()); + icebergNamespace_ = null; + } + return icebergNamespaceBuilder_; + } + + @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.cloud.biglake.v1.CreateIcebergNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.CreateIcebergNamespaceRequest) + private static final com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest(); + } + + public static com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateIcebergNamespaceRequest 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.cloud.biglake.v1.CreateIcebergNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergNamespaceRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergNamespaceRequestOrBuilder.java new file mode 100644 index 000000000000..7f1d8c07c3a2 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergNamespaceRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface CreateIcebergNamespaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.CreateIcebergNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this namespace will be created.
+   * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where this namespace will be created.
+   * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The namespace to create.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the icebergNamespace field is set. + */ + boolean hasIcebergNamespace(); + + /** + * + * + *
+   * Required. The namespace to create.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergNamespace. + */ + com.google.cloud.biglake.v1.IcebergNamespace getIcebergNamespace(); + + /** + * + * + *
+   * Required. The namespace to create.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespace iceberg_namespace = 2 [json_name = "namespace", (.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.biglake.v1.IcebergNamespaceOrBuilder getIcebergNamespaceOrBuilder(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergTableRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergTableRequest.java new file mode 100644 index 000000000000..cc9ba7bdfefb --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergTableRequest.java @@ -0,0 +1,962 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `CreateIcebergTable` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.CreateIcebergTableRequest} + */ +public final class CreateIcebergTableRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.CreateIcebergTableRequest) + CreateIcebergTableRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateIcebergTableRequest.newBuilder() to construct. + private CreateIcebergTableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateIcebergTableRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateIcebergTableRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.CreateIcebergTableRequest.class, + com.google.cloud.biglake.v1.CreateIcebergTableRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where this table will be created.
+   * Format: projects/{project_id}/namespaces/{namespace}
+   * 
+ * + * + * 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 resource where this table will be created.
+   * Format: projects/{project_id}/namespaces/{namespace}
+   * 
+ * + * + * 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 HTTP_BODY_FIELD_NUMBER = 3; + private com.google.api.HttpBody httpBody_; + + /** + * + * + *
+   * Required. The request body that should be in the format of Apache Iceberg's
+   * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+   * `application/json`.
+   * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the httpBody field is set. + */ + @java.lang.Override + public boolean hasHttpBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The request body that should be in the format of Apache Iceberg's
+   * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+   * `application/json`.
+   * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The httpBody. + */ + @java.lang.Override + public com.google.api.HttpBody getHttpBody() { + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; + } + + /** + * + * + *
+   * Required. The request body that should be in the format of Apache Iceberg's
+   * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+   * `application/json`.
+   * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder() { + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getHttpBody()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHttpBody()); + } + 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.cloud.biglake.v1.CreateIcebergTableRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.CreateIcebergTableRequest other = + (com.google.cloud.biglake.v1.CreateIcebergTableRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasHttpBody() != other.hasHttpBody()) return false; + if (hasHttpBody()) { + if (!getHttpBody().equals(other.getHttpBody())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasHttpBody()) { + hash = (37 * hash) + HTTP_BODY_FIELD_NUMBER; + hash = (53 * hash) + getHttpBody().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.CreateIcebergTableRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.CreateIcebergTableRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.CreateIcebergTableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.CreateIcebergTableRequest 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.cloud.biglake.v1.CreateIcebergTableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.CreateIcebergTableRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.CreateIcebergTableRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.CreateIcebergTableRequest 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.cloud.biglake.v1.CreateIcebergTableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.CreateIcebergTableRequest 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.cloud.biglake.v1.CreateIcebergTableRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.CreateIcebergTableRequest 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.cloud.biglake.v1.CreateIcebergTableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `CreateIcebergTable` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.CreateIcebergTableRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.CreateIcebergTableRequest) + com.google.cloud.biglake.v1.CreateIcebergTableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.CreateIcebergTableRequest.class, + com.google.cloud.biglake.v1.CreateIcebergTableRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.CreateIcebergTableRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHttpBodyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + httpBody_ = null; + if (httpBodyBuilder_ != null) { + httpBodyBuilder_.dispose(); + httpBodyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_CreateIcebergTableRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.CreateIcebergTableRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.CreateIcebergTableRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.CreateIcebergTableRequest build() { + com.google.cloud.biglake.v1.CreateIcebergTableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.CreateIcebergTableRequest buildPartial() { + com.google.cloud.biglake.v1.CreateIcebergTableRequest result = + new com.google.cloud.biglake.v1.CreateIcebergTableRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.CreateIcebergTableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.httpBody_ = httpBodyBuilder_ == null ? httpBody_ : httpBodyBuilder_.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.cloud.biglake.v1.CreateIcebergTableRequest) { + return mergeFrom((com.google.cloud.biglake.v1.CreateIcebergTableRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.CreateIcebergTableRequest other) { + if (other == com.google.cloud.biglake.v1.CreateIcebergTableRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasHttpBody()) { + mergeHttpBody(other.getHttpBody()); + } + 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 26: + { + input.readMessage(getHttpBodyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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 resource where this table will be created.
+     * Format: projects/{project_id}/namespaces/{namespace}
+     * 
+ * + * + * 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 resource where this table will be created.
+     * Format: projects/{project_id}/namespaces/{namespace}
+     * 
+ * + * + * 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 resource where this table will be created.
+     * Format: projects/{project_id}/namespaces/{namespace}
+     * 
+ * + * + * 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 resource where this table will be created.
+     * Format: projects/{project_id}/namespaces/{namespace}
+     * 
+ * + * + * 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 resource where this table will be created.
+     * Format: projects/{project_id}/namespaces/{namespace}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.api.HttpBody httpBody_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.api.HttpBody, + com.google.api.HttpBody.Builder, + com.google.api.HttpBodyOrBuilder> + httpBodyBuilder_; + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+     * `application/json`.
+     * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the httpBody field is set. + */ + public boolean hasHttpBody() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+     * `application/json`.
+     * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The httpBody. + */ + public com.google.api.HttpBody getHttpBody() { + if (httpBodyBuilder_ == null) { + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; + } else { + return httpBodyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+     * `application/json`.
+     * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setHttpBody(com.google.api.HttpBody value) { + if (httpBodyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + httpBody_ = value; + } else { + httpBodyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+     * `application/json`.
+     * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setHttpBody(com.google.api.HttpBody.Builder builderForValue) { + if (httpBodyBuilder_ == null) { + httpBody_ = builderForValue.build(); + } else { + httpBodyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+     * `application/json`.
+     * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeHttpBody(com.google.api.HttpBody value) { + if (httpBodyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && httpBody_ != null + && httpBody_ != com.google.api.HttpBody.getDefaultInstance()) { + getHttpBodyBuilder().mergeFrom(value); + } else { + httpBody_ = value; + } + } else { + httpBodyBuilder_.mergeFrom(value); + } + if (httpBody_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+     * `application/json`.
+     * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearHttpBody() { + bitField0_ = (bitField0_ & ~0x00000002); + httpBody_ = null; + if (httpBodyBuilder_ != null) { + httpBodyBuilder_.dispose(); + httpBodyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+     * `application/json`.
+     * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.api.HttpBody.Builder getHttpBodyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getHttpBodyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+     * `application/json`.
+     * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder() { + if (httpBodyBuilder_ != null) { + return httpBodyBuilder_.getMessageOrBuilder(); + } else { + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; + } + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+     * `application/json`.
+     * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.api.HttpBody, + com.google.api.HttpBody.Builder, + com.google.api.HttpBodyOrBuilder> + getHttpBodyFieldBuilder() { + if (httpBodyBuilder_ == null) { + httpBodyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.HttpBody, + com.google.api.HttpBody.Builder, + com.google.api.HttpBodyOrBuilder>(getHttpBody(), getParentForChildren(), isClean()); + httpBody_ = null; + } + return httpBodyBuilder_; + } + + @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.cloud.biglake.v1.CreateIcebergTableRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.CreateIcebergTableRequest) + private static final com.google.cloud.biglake.v1.CreateIcebergTableRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.CreateIcebergTableRequest(); + } + + public static com.google.cloud.biglake.v1.CreateIcebergTableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateIcebergTableRequest 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.cloud.biglake.v1.CreateIcebergTableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergTableRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergTableRequestOrBuilder.java new file mode 100644 index 000000000000..172b9aa1443a --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CreateIcebergTableRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface CreateIcebergTableRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.CreateIcebergTableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this table will be created.
+   * Format: projects/{project_id}/namespaces/{namespace}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where this table will be created.
+   * Format: projects/{project_id}/namespaces/{namespace}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The request body that should be in the format of Apache Iceberg's
+   * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+   * `application/json`.
+   * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the httpBody field is set. + */ + boolean hasHttpBody(); + + /** + * + * + *
+   * Required. The request body that should be in the format of Apache Iceberg's
+   * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+   * `application/json`.
+   * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The httpBody. + */ + com.google.api.HttpBody getHttpBody(); + + /** + * + * + *
+   * Required. The request body that should be in the format of Apache Iceberg's
+   * `#/components/schemas/CreateTableRequest`. Content type is expected to be
+   * `application/json`.
+   * 
+ * + * .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergCatalogRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergCatalogRequest.java new file mode 100644 index 000000000000..fa0a6a5156d0 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergCatalogRequest.java @@ -0,0 +1,649 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `DeleteIcebergCatalog` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.DeleteIcebergCatalogRequest} + */ +public final class DeleteIcebergCatalogRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.DeleteIcebergCatalogRequest) + DeleteIcebergCatalogRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteIcebergCatalogRequest.newBuilder() to construct. + private DeleteIcebergCatalogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteIcebergCatalogRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteIcebergCatalogRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest.class, + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The catalog to delete.
+   * 
+ * + * + * 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 catalog to delete.
+   * 
+ * + * + * 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.cloud.biglake.v1.DeleteIcebergCatalogRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest other = + (com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest) 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.cloud.biglake.v1.DeleteIcebergCatalogRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest 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.cloud.biglake.v1.DeleteIcebergCatalogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest 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.cloud.biglake.v1.DeleteIcebergCatalogRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest 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.cloud.biglake.v1.DeleteIcebergCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest 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.cloud.biglake.v1.DeleteIcebergCatalogRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `DeleteIcebergCatalog` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.DeleteIcebergCatalogRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.DeleteIcebergCatalogRequest) + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest.class, + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest.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.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest build() { + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest buildPartial() { + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest result = + new com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest 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.cloud.biglake.v1.DeleteIcebergCatalogRequest) { + return mergeFrom((com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest other) { + if (other == com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest.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 catalog to delete.
+     * 
+ * + * + * 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 catalog to delete.
+     * 
+ * + * + * 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 catalog to delete.
+     * 
+ * + * + * 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 catalog to delete.
+     * 
+ * + * + * 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 catalog to delete.
+     * 
+ * + * + * 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.cloud.biglake.v1.DeleteIcebergCatalogRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.DeleteIcebergCatalogRequest) + private static final com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest(); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteIcebergCatalogRequest 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.cloud.biglake.v1.DeleteIcebergCatalogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergCatalogRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergCatalogRequestOrBuilder.java new file mode 100644 index 000000000000..a6dc9e3432a8 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergCatalogRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface DeleteIcebergCatalogRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.DeleteIcebergCatalogRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The catalog to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The catalog to delete.
+   * 
+ * + * + * 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/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergNamespaceRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergNamespaceRequest.java new file mode 100644 index 000000000000..9ce3b096c66c --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergNamespaceRequest.java @@ -0,0 +1,656 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `DeleteIcebergNamespace` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.DeleteIcebergNamespaceRequest} + */ +public final class DeleteIcebergNamespaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.DeleteIcebergNamespaceRequest) + DeleteIcebergNamespaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteIcebergNamespaceRequest.newBuilder() to construct. + private DeleteIcebergNamespaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteIcebergNamespaceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteIcebergNamespaceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest.class, + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Iceberg namespace to delete in the format:
+   * `projects/{project_id}/namespaces/{namespace}`.
+   * 
+ * + * + * 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. Iceberg namespace to delete in the format:
+   * `projects/{project_id}/namespaces/{namespace}`.
+   * 
+ * + * + * 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.cloud.biglake.v1.DeleteIcebergNamespaceRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest other = + (com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest) 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.cloud.biglake.v1.DeleteIcebergNamespaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest 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.cloud.biglake.v1.DeleteIcebergNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest 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.cloud.biglake.v1.DeleteIcebergNamespaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest 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.cloud.biglake.v1.DeleteIcebergNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest 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.cloud.biglake.v1.DeleteIcebergNamespaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `DeleteIcebergNamespace` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.DeleteIcebergNamespaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.DeleteIcebergNamespaceRequest) + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest.class, + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest.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.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergNamespaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest build() { + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest buildPartial() { + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest result = + new com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest 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.cloud.biglake.v1.DeleteIcebergNamespaceRequest) { + return mergeFrom((com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest other) { + if (other == com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest.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. Iceberg namespace to delete in the format:
+     * `projects/{project_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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. Iceberg namespace to delete in the format:
+     * `projects/{project_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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. Iceberg namespace to delete in the format:
+     * `projects/{project_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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. Iceberg namespace to delete in the format:
+     * `projects/{project_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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. Iceberg namespace to delete in the format:
+     * `projects/{project_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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.cloud.biglake.v1.DeleteIcebergNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.DeleteIcebergNamespaceRequest) + private static final com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest(); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteIcebergNamespaceRequest 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.cloud.biglake.v1.DeleteIcebergNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergNamespaceRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergNamespaceRequestOrBuilder.java new file mode 100644 index 000000000000..3fbf4c023b36 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergNamespaceRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface DeleteIcebergNamespaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.DeleteIcebergNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Iceberg namespace to delete in the format:
+   * `projects/{project_id}/namespaces/{namespace}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Iceberg namespace to delete in the format:
+   * `projects/{project_id}/namespaces/{namespace}`.
+   * 
+ * + * + * 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/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergTableRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergTableRequest.java new file mode 100644 index 000000000000..904b540a9ad7 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergTableRequest.java @@ -0,0 +1,757 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `DeleteIcebergTable` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.DeleteIcebergTableRequest} + */ +public final class DeleteIcebergTableRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.DeleteIcebergTableRequest) + DeleteIcebergTableRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteIcebergTableRequest.newBuilder() to construct. + private DeleteIcebergTableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteIcebergTableRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteIcebergTableRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.DeleteIcebergTableRequest.class, + com.google.cloud.biglake.v1.DeleteIcebergTableRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Table to delete in the format:
+   * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+   * 
+ * + * + * 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. Table to delete in the format:
+   * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+   * 
+ * + * + * 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 PURGE_REQUESTED_FIELD_NUMBER = 2; + private boolean purgeRequested_ = false; + + /** + * + * + *
+   * Optional. If true we'll delete both the table and the data. Currently
+   * purgin data is not supported.
+   * 
+ * + * bool purge_requested = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The purgeRequested. + */ + @java.lang.Override + public boolean getPurgeRequested() { + return purgeRequested_; + } + + 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 (purgeRequested_ != false) { + output.writeBool(2, purgeRequested_); + } + 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 (purgeRequested_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, purgeRequested_); + } + 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.cloud.biglake.v1.DeleteIcebergTableRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.DeleteIcebergTableRequest other = + (com.google.cloud.biglake.v1.DeleteIcebergTableRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPurgeRequested() != other.getPurgeRequested()) 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) + PURGE_REQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPurgeRequested()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.DeleteIcebergTableRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergTableRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergTableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergTableRequest 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.cloud.biglake.v1.DeleteIcebergTableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergTableRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergTableRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergTableRequest 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.cloud.biglake.v1.DeleteIcebergTableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergTableRequest 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.cloud.biglake.v1.DeleteIcebergTableRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergTableRequest 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.cloud.biglake.v1.DeleteIcebergTableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `DeleteIcebergTable` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.DeleteIcebergTableRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.DeleteIcebergTableRequest) + com.google.cloud.biglake.v1.DeleteIcebergTableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.DeleteIcebergTableRequest.class, + com.google.cloud.biglake.v1.DeleteIcebergTableRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.DeleteIcebergTableRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + purgeRequested_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_DeleteIcebergTableRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.DeleteIcebergTableRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.DeleteIcebergTableRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.DeleteIcebergTableRequest build() { + com.google.cloud.biglake.v1.DeleteIcebergTableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.DeleteIcebergTableRequest buildPartial() { + com.google.cloud.biglake.v1.DeleteIcebergTableRequest result = + new com.google.cloud.biglake.v1.DeleteIcebergTableRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.DeleteIcebergTableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.purgeRequested_ = purgeRequested_; + } + } + + @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.cloud.biglake.v1.DeleteIcebergTableRequest) { + return mergeFrom((com.google.cloud.biglake.v1.DeleteIcebergTableRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.DeleteIcebergTableRequest other) { + if (other == com.google.cloud.biglake.v1.DeleteIcebergTableRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPurgeRequested() != false) { + setPurgeRequested(other.getPurgeRequested()); + } + 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 16: + { + purgeRequested_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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. Table to delete in the format:
+     * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+     * 
+ * + * + * 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. Table to delete in the format:
+     * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+     * 
+ * + * + * 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. Table to delete in the format:
+     * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+     * 
+ * + * + * 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. Table to delete in the format:
+     * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+     * 
+ * + * + * 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. Table to delete in the format:
+     * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+     * 
+ * + * + * 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 boolean purgeRequested_; + + /** + * + * + *
+     * Optional. If true we'll delete both the table and the data. Currently
+     * purgin data is not supported.
+     * 
+ * + * bool purge_requested = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The purgeRequested. + */ + @java.lang.Override + public boolean getPurgeRequested() { + return purgeRequested_; + } + + /** + * + * + *
+     * Optional. If true we'll delete both the table and the data. Currently
+     * purgin data is not supported.
+     * 
+ * + * bool purge_requested = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The purgeRequested to set. + * @return This builder for chaining. + */ + public Builder setPurgeRequested(boolean value) { + + purgeRequested_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If true we'll delete both the table and the data. Currently
+     * purgin data is not supported.
+     * 
+ * + * bool purge_requested = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPurgeRequested() { + bitField0_ = (bitField0_ & ~0x00000002); + purgeRequested_ = 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.cloud.biglake.v1.DeleteIcebergTableRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.DeleteIcebergTableRequest) + private static final com.google.cloud.biglake.v1.DeleteIcebergTableRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.DeleteIcebergTableRequest(); + } + + public static com.google.cloud.biglake.v1.DeleteIcebergTableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteIcebergTableRequest 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.cloud.biglake.v1.DeleteIcebergTableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergTableRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergTableRequestOrBuilder.java new file mode 100644 index 000000000000..e21523711bd8 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/DeleteIcebergTableRequestOrBuilder.java @@ -0,0 +1,72 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface DeleteIcebergTableRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.DeleteIcebergTableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Table to delete in the format:
+   * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Table to delete in the format:
+   * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If true we'll delete both the table and the data. Currently
+   * purgin data is not supported.
+   * 
+ * + * bool purge_requested = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The purgeRequested. + */ + boolean getPurgeRequested(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogRequest.java new file mode 100644 index 000000000000..78f19f5eef3f --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogRequest.java @@ -0,0 +1,1348 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * Request message for FailoverIcebergCatalog.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.FailoverIcebergCatalogRequest} + */ +public final class FailoverIcebergCatalogRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.FailoverIcebergCatalogRequest) + FailoverIcebergCatalogRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FailoverIcebergCatalogRequest.newBuilder() to construct. + private FailoverIcebergCatalogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FailoverIcebergCatalogRequest() { + name_ = ""; + primaryReplica_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FailoverIcebergCatalogRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest.class, + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the catalog in the form
+   * "projects/{project_id}/catalogs/{catalog_id}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 name of the catalog in the form
+   * "projects/{project_id}/catalogs/{catalog_id}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 PRIMARY_REPLICA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object primaryReplica_ = ""; + + /** + * + * + *
+   * Required. The region being assigned as the new primary replica region. For
+   * example "us-east1". This must be one of the replica regions in the
+   * catalog's list of replicas marked as a "secondary".
+   * 
+ * + * string primary_replica = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The primaryReplica. + */ + @java.lang.Override + public java.lang.String getPrimaryReplica() { + java.lang.Object ref = primaryReplica_; + 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(); + primaryReplica_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The region being assigned as the new primary replica region. For
+   * example "us-east1". This must be one of the replica regions in the
+   * catalog's list of replicas marked as a "secondary".
+   * 
+ * + * string primary_replica = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for primaryReplica. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrimaryReplicaBytes() { + java.lang.Object ref = primaryReplica_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryReplica_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * Optional. If set, only validate the request, but do not perform the update.
+   * This can be used to inspect the replication_time at any time, including
+   * before performing a fail-over.
+   * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int CONDITIONAL_FAILOVER_REPLICATION_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp conditionalFailoverReplicationTime_; + + /** + * + * + *
+   * Optional. If unset, wait for all data from the source region to replicate
+   * to the new primary region before completing the failover, with no data loss
+   * (also called "soft failover"). If set, failover immediately, accepting the
+   * loss of any data committed in the source region after this timestamp, that
+   * has not yet replicated. If any data committed before this time has not
+   * replicated, the failover will not be performed and an error will be
+   * returned (also called "hard failover").
+   * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conditionalFailoverReplicationTime field is set. + */ + @java.lang.Override + public boolean hasConditionalFailoverReplicationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. If unset, wait for all data from the source region to replicate
+   * to the new primary region before completing the failover, with no data loss
+   * (also called "soft failover"). If set, failover immediately, accepting the
+   * loss of any data committed in the source region after this timestamp, that
+   * has not yet replicated. If any data committed before this time has not
+   * replicated, the failover will not be performed and an error will be
+   * returned (also called "hard failover").
+   * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conditionalFailoverReplicationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getConditionalFailoverReplicationTime() { + return conditionalFailoverReplicationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : conditionalFailoverReplicationTime_; + } + + /** + * + * + *
+   * Optional. If unset, wait for all data from the source region to replicate
+   * to the new primary region before completing the failover, with no data loss
+   * (also called "soft failover"). If set, failover immediately, accepting the
+   * loss of any data committed in the source region after this timestamp, that
+   * has not yet replicated. If any data committed before this time has not
+   * replicated, the failover will not be performed and an error will be
+   * returned (also called "hard failover").
+   * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getConditionalFailoverReplicationTimeOrBuilder() { + return conditionalFailoverReplicationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : conditionalFailoverReplicationTime_; + } + + 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(primaryReplica_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, primaryReplica_); + } + if (validateOnly_ != false) { + output.writeBool(3, validateOnly_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getConditionalFailoverReplicationTime()); + } + 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(primaryReplica_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, primaryReplica_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getConditionalFailoverReplicationTime()); + } + 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.cloud.biglake.v1.FailoverIcebergCatalogRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest other = + (com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPrimaryReplica().equals(other.getPrimaryReplica())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (hasConditionalFailoverReplicationTime() != other.hasConditionalFailoverReplicationTime()) + return false; + if (hasConditionalFailoverReplicationTime()) { + if (!getConditionalFailoverReplicationTime() + .equals(other.getConditionalFailoverReplicationTime())) 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) + PRIMARY_REPLICA_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryReplica().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + if (hasConditionalFailoverReplicationTime()) { + hash = (37 * hash) + CONDITIONAL_FAILOVER_REPLICATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getConditionalFailoverReplicationTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest 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.cloud.biglake.v1.FailoverIcebergCatalogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest 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.cloud.biglake.v1.FailoverIcebergCatalogRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest 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.cloud.biglake.v1.FailoverIcebergCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest 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.cloud.biglake.v1.FailoverIcebergCatalogRequest 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 FailoverIcebergCatalog.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.FailoverIcebergCatalogRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.FailoverIcebergCatalogRequest) + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest.class, + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConditionalFailoverReplicationTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + primaryReplica_ = ""; + validateOnly_ = false; + conditionalFailoverReplicationTime_ = null; + if (conditionalFailoverReplicationTimeBuilder_ != null) { + conditionalFailoverReplicationTimeBuilder_.dispose(); + conditionalFailoverReplicationTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest build() { + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest buildPartial() { + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest result = + new com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.primaryReplica_ = primaryReplica_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.conditionalFailoverReplicationTime_ = + conditionalFailoverReplicationTimeBuilder_ == null + ? conditionalFailoverReplicationTime_ + : conditionalFailoverReplicationTimeBuilder_.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.cloud.biglake.v1.FailoverIcebergCatalogRequest) { + return mergeFrom((com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest other) { + if (other == com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPrimaryReplica().isEmpty()) { + primaryReplica_ = other.primaryReplica_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.hasConditionalFailoverReplicationTime()) { + mergeConditionalFailoverReplicationTime(other.getConditionalFailoverReplicationTime()); + } + 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: + { + primaryReplica_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getConditionalFailoverReplicationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 name of the catalog in the form
+     * "projects/{project_id}/catalogs/{catalog_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 name of the catalog in the form
+     * "projects/{project_id}/catalogs/{catalog_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 name of the catalog in the form
+     * "projects/{project_id}/catalogs/{catalog_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 name of the catalog in the form
+     * "projects/{project_id}/catalogs/{catalog_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the catalog in the form
+     * "projects/{project_id}/catalogs/{catalog_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 primaryReplica_ = ""; + + /** + * + * + *
+     * Required. The region being assigned as the new primary replica region. For
+     * example "us-east1". This must be one of the replica regions in the
+     * catalog's list of replicas marked as a "secondary".
+     * 
+ * + * string primary_replica = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The primaryReplica. + */ + public java.lang.String getPrimaryReplica() { + java.lang.Object ref = primaryReplica_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryReplica_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The region being assigned as the new primary replica region. For
+     * example "us-east1". This must be one of the replica regions in the
+     * catalog's list of replicas marked as a "secondary".
+     * 
+ * + * string primary_replica = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for primaryReplica. + */ + public com.google.protobuf.ByteString getPrimaryReplicaBytes() { + java.lang.Object ref = primaryReplica_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryReplica_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The region being assigned as the new primary replica region. For
+     * example "us-east1". This must be one of the replica regions in the
+     * catalog's list of replicas marked as a "secondary".
+     * 
+ * + * string primary_replica = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The primaryReplica to set. + * @return This builder for chaining. + */ + public Builder setPrimaryReplica(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + primaryReplica_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The region being assigned as the new primary replica region. For
+     * example "us-east1". This must be one of the replica regions in the
+     * catalog's list of replicas marked as a "secondary".
+     * 
+ * + * string primary_replica = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryReplica() { + primaryReplica_ = getDefaultInstance().getPrimaryReplica(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The region being assigned as the new primary replica region. For
+     * example "us-east1". This must be one of the replica regions in the
+     * catalog's list of replicas marked as a "secondary".
+     * 
+ * + * string primary_replica = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for primaryReplica to set. + * @return This builder for chaining. + */ + public Builder setPrimaryReplicaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryReplica_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * Optional. If set, only validate the request, but do not perform the update.
+     * This can be used to inspect the replication_time at any time, including
+     * before performing a fail-over.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * Optional. If set, only validate the request, but do not perform the update.
+     * This can be used to inspect the replication_time at any time, including
+     * before performing a fail-over.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set, only validate the request, but do not perform the update.
+     * This can be used to inspect the replication_time at any time, including
+     * before performing a fail-over.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp conditionalFailoverReplicationTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + conditionalFailoverReplicationTimeBuilder_; + + /** + * + * + *
+     * Optional. If unset, wait for all data from the source region to replicate
+     * to the new primary region before completing the failover, with no data loss
+     * (also called "soft failover"). If set, failover immediately, accepting the
+     * loss of any data committed in the source region after this timestamp, that
+     * has not yet replicated. If any data committed before this time has not
+     * replicated, the failover will not be performed and an error will be
+     * returned (also called "hard failover").
+     * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conditionalFailoverReplicationTime field is set. + */ + public boolean hasConditionalFailoverReplicationTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. If unset, wait for all data from the source region to replicate
+     * to the new primary region before completing the failover, with no data loss
+     * (also called "soft failover"). If set, failover immediately, accepting the
+     * loss of any data committed in the source region after this timestamp, that
+     * has not yet replicated. If any data committed before this time has not
+     * replicated, the failover will not be performed and an error will be
+     * returned (also called "hard failover").
+     * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conditionalFailoverReplicationTime. + */ + public com.google.protobuf.Timestamp getConditionalFailoverReplicationTime() { + if (conditionalFailoverReplicationTimeBuilder_ == null) { + return conditionalFailoverReplicationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : conditionalFailoverReplicationTime_; + } else { + return conditionalFailoverReplicationTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. If unset, wait for all data from the source region to replicate
+     * to the new primary region before completing the failover, with no data loss
+     * (also called "soft failover"). If set, failover immediately, accepting the
+     * loss of any data committed in the source region after this timestamp, that
+     * has not yet replicated. If any data committed before this time has not
+     * replicated, the failover will not be performed and an error will be
+     * returned (also called "hard failover").
+     * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConditionalFailoverReplicationTime(com.google.protobuf.Timestamp value) { + if (conditionalFailoverReplicationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conditionalFailoverReplicationTime_ = value; + } else { + conditionalFailoverReplicationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If unset, wait for all data from the source region to replicate
+     * to the new primary region before completing the failover, with no data loss
+     * (also called "soft failover"). If set, failover immediately, accepting the
+     * loss of any data committed in the source region after this timestamp, that
+     * has not yet replicated. If any data committed before this time has not
+     * replicated, the failover will not be performed and an error will be
+     * returned (also called "hard failover").
+     * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConditionalFailoverReplicationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (conditionalFailoverReplicationTimeBuilder_ == null) { + conditionalFailoverReplicationTime_ = builderForValue.build(); + } else { + conditionalFailoverReplicationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If unset, wait for all data from the source region to replicate
+     * to the new primary region before completing the failover, with no data loss
+     * (also called "soft failover"). If set, failover immediately, accepting the
+     * loss of any data committed in the source region after this timestamp, that
+     * has not yet replicated. If any data committed before this time has not
+     * replicated, the failover will not be performed and an error will be
+     * returned (also called "hard failover").
+     * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConditionalFailoverReplicationTime(com.google.protobuf.Timestamp value) { + if (conditionalFailoverReplicationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && conditionalFailoverReplicationTime_ != null + && conditionalFailoverReplicationTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getConditionalFailoverReplicationTimeBuilder().mergeFrom(value); + } else { + conditionalFailoverReplicationTime_ = value; + } + } else { + conditionalFailoverReplicationTimeBuilder_.mergeFrom(value); + } + if (conditionalFailoverReplicationTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. If unset, wait for all data from the source region to replicate
+     * to the new primary region before completing the failover, with no data loss
+     * (also called "soft failover"). If set, failover immediately, accepting the
+     * loss of any data committed in the source region after this timestamp, that
+     * has not yet replicated. If any data committed before this time has not
+     * replicated, the failover will not be performed and an error will be
+     * returned (also called "hard failover").
+     * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConditionalFailoverReplicationTime() { + bitField0_ = (bitField0_ & ~0x00000008); + conditionalFailoverReplicationTime_ = null; + if (conditionalFailoverReplicationTimeBuilder_ != null) { + conditionalFailoverReplicationTimeBuilder_.dispose(); + conditionalFailoverReplicationTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If unset, wait for all data from the source region to replicate
+     * to the new primary region before completing the failover, with no data loss
+     * (also called "soft failover"). If set, failover immediately, accepting the
+     * loss of any data committed in the source region after this timestamp, that
+     * has not yet replicated. If any data committed before this time has not
+     * replicated, the failover will not be performed and an error will be
+     * returned (also called "hard failover").
+     * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getConditionalFailoverReplicationTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getConditionalFailoverReplicationTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. If unset, wait for all data from the source region to replicate
+     * to the new primary region before completing the failover, with no data loss
+     * (also called "soft failover"). If set, failover immediately, accepting the
+     * loss of any data committed in the source region after this timestamp, that
+     * has not yet replicated. If any data committed before this time has not
+     * replicated, the failover will not be performed and an error will be
+     * returned (also called "hard failover").
+     * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getConditionalFailoverReplicationTimeOrBuilder() { + if (conditionalFailoverReplicationTimeBuilder_ != null) { + return conditionalFailoverReplicationTimeBuilder_.getMessageOrBuilder(); + } else { + return conditionalFailoverReplicationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : conditionalFailoverReplicationTime_; + } + } + + /** + * + * + *
+     * Optional. If unset, wait for all data from the source region to replicate
+     * to the new primary region before completing the failover, with no data loss
+     * (also called "soft failover"). If set, failover immediately, accepting the
+     * loss of any data committed in the source region after this timestamp, that
+     * has not yet replicated. If any data committed before this time has not
+     * replicated, the failover will not be performed and an error will be
+     * returned (also called "hard failover").
+     * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getConditionalFailoverReplicationTimeFieldBuilder() { + if (conditionalFailoverReplicationTimeBuilder_ == null) { + conditionalFailoverReplicationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getConditionalFailoverReplicationTime(), getParentForChildren(), isClean()); + conditionalFailoverReplicationTime_ = null; + } + return conditionalFailoverReplicationTimeBuilder_; + } + + @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.cloud.biglake.v1.FailoverIcebergCatalogRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.FailoverIcebergCatalogRequest) + private static final com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest(); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailoverIcebergCatalogRequest 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.cloud.biglake.v1.FailoverIcebergCatalogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogRequestOrBuilder.java new file mode 100644 index 000000000000..fe17a040af3d --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface FailoverIcebergCatalogRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.FailoverIcebergCatalogRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the catalog in the form
+   * "projects/{project_id}/catalogs/{catalog_id}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the catalog in the form
+   * "projects/{project_id}/catalogs/{catalog_id}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The region being assigned as the new primary replica region. For
+   * example "us-east1". This must be one of the replica regions in the
+   * catalog's list of replicas marked as a "secondary".
+   * 
+ * + * string primary_replica = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The primaryReplica. + */ + java.lang.String getPrimaryReplica(); + + /** + * + * + *
+   * Required. The region being assigned as the new primary replica region. For
+   * example "us-east1". This must be one of the replica regions in the
+   * catalog's list of replicas marked as a "secondary".
+   * 
+ * + * string primary_replica = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for primaryReplica. + */ + com.google.protobuf.ByteString getPrimaryReplicaBytes(); + + /** + * + * + *
+   * Optional. If set, only validate the request, but do not perform the update.
+   * This can be used to inspect the replication_time at any time, including
+   * before performing a fail-over.
+   * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * Optional. If unset, wait for all data from the source region to replicate
+   * to the new primary region before completing the failover, with no data loss
+   * (also called "soft failover"). If set, failover immediately, accepting the
+   * loss of any data committed in the source region after this timestamp, that
+   * has not yet replicated. If any data committed before this time has not
+   * replicated, the failover will not be performed and an error will be
+   * returned (also called "hard failover").
+   * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conditionalFailoverReplicationTime field is set. + */ + boolean hasConditionalFailoverReplicationTime(); + + /** + * + * + *
+   * Optional. If unset, wait for all data from the source region to replicate
+   * to the new primary region before completing the failover, with no data loss
+   * (also called "soft failover"). If set, failover immediately, accepting the
+   * loss of any data committed in the source region after this timestamp, that
+   * has not yet replicated. If any data committed before this time has not
+   * replicated, the failover will not be performed and an error will be
+   * returned (also called "hard failover").
+   * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conditionalFailoverReplicationTime. + */ + com.google.protobuf.Timestamp getConditionalFailoverReplicationTime(); + + /** + * + * + *
+   * Optional. If unset, wait for all data from the source region to replicate
+   * to the new primary region before completing the failover, with no data loss
+   * (also called "soft failover"). If set, failover immediately, accepting the
+   * loss of any data committed in the source region after this timestamp, that
+   * has not yet replicated. If any data committed before this time has not
+   * replicated, the failover will not be performed and an error will be
+   * returned (also called "hard failover").
+   * 
+ * + * + * .google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getConditionalFailoverReplicationTimeOrBuilder(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogResponse.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogResponse.java new file mode 100644 index 000000000000..46be5b02dd8d --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogResponse.java @@ -0,0 +1,834 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * Response message for FailoverIcebergCatalog.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.FailoverIcebergCatalogResponse} + */ +public final class FailoverIcebergCatalogResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.FailoverIcebergCatalogResponse) + FailoverIcebergCatalogResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FailoverIcebergCatalogResponse.newBuilder() to construct. + private FailoverIcebergCatalogResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FailoverIcebergCatalogResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FailoverIcebergCatalogResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse.class, + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse.Builder.class); + } + + private int bitField0_; + public static final int REPLICATION_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp replicationTime_; + + /** + * + * + *
+   * Output only. The min timestamp for which all namespaces and table metadata
+   * have been replicated in the region specified as the new primary_replica.
+   * Some resources may have been replicated more recently than this timestamp.
+   * If empty, the replica has just been created and has not yet been fully
+   * initialized. NOTE: When the Cloud Storage replication watermark is
+   * available, this will represent both catalog metadata and Cloud Storage
+   * data.
+   * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the replicationTime field is set. + */ + @java.lang.Override + public boolean hasReplicationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The min timestamp for which all namespaces and table metadata
+   * have been replicated in the region specified as the new primary_replica.
+   * Some resources may have been replicated more recently than this timestamp.
+   * If empty, the replica has just been created and has not yet been fully
+   * initialized. NOTE: When the Cloud Storage replication watermark is
+   * available, this will represent both catalog metadata and Cloud Storage
+   * data.
+   * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The replicationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getReplicationTime() { + return replicationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : replicationTime_; + } + + /** + * + * + *
+   * Output only. The min timestamp for which all namespaces and table metadata
+   * have been replicated in the region specified as the new primary_replica.
+   * Some resources may have been replicated more recently than this timestamp.
+   * If empty, the replica has just been created and has not yet been fully
+   * initialized. NOTE: When the Cloud Storage replication watermark is
+   * available, this will represent both catalog metadata and Cloud Storage
+   * data.
+   * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getReplicationTimeOrBuilder() { + return replicationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : replicationTime_; + } + + 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, getReplicationTime()); + } + 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, getReplicationTime()); + } + 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.cloud.biglake.v1.FailoverIcebergCatalogResponse)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse other = + (com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse) obj; + + if (hasReplicationTime() != other.hasReplicationTime()) return false; + if (hasReplicationTime()) { + if (!getReplicationTime().equals(other.getReplicationTime())) 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 (hasReplicationTime()) { + hash = (37 * hash) + REPLICATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getReplicationTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse 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.cloud.biglake.v1.FailoverIcebergCatalogResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse 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.cloud.biglake.v1.FailoverIcebergCatalogResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse 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.cloud.biglake.v1.FailoverIcebergCatalogResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse 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.cloud.biglake.v1.FailoverIcebergCatalogResponse 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 FailoverIcebergCatalog.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.FailoverIcebergCatalogResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.FailoverIcebergCatalogResponse) + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse.class, + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReplicationTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + replicationTime_ = null; + if (replicationTimeBuilder_ != null) { + replicationTimeBuilder_.dispose(); + replicationTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse build() { + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse buildPartial() { + com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse result = + new com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.replicationTime_ = + replicationTimeBuilder_ == null ? replicationTime_ : replicationTimeBuilder_.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.cloud.biglake.v1.FailoverIcebergCatalogResponse) { + return mergeFrom((com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse other) { + if (other == com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse.getDefaultInstance()) + return this; + if (other.hasReplicationTime()) { + mergeReplicationTime(other.getReplicationTime()); + } + 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(getReplicationTimeFieldBuilder().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.protobuf.Timestamp replicationTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + replicationTimeBuilder_; + + /** + * + * + *
+     * Output only. The min timestamp for which all namespaces and table metadata
+     * have been replicated in the region specified as the new primary_replica.
+     * Some resources may have been replicated more recently than this timestamp.
+     * If empty, the replica has just been created and has not yet been fully
+     * initialized. NOTE: When the Cloud Storage replication watermark is
+     * available, this will represent both catalog metadata and Cloud Storage
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the replicationTime field is set. + */ + public boolean hasReplicationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. The min timestamp for which all namespaces and table metadata
+     * have been replicated in the region specified as the new primary_replica.
+     * Some resources may have been replicated more recently than this timestamp.
+     * If empty, the replica has just been created and has not yet been fully
+     * initialized. NOTE: When the Cloud Storage replication watermark is
+     * available, this will represent both catalog metadata and Cloud Storage
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The replicationTime. + */ + public com.google.protobuf.Timestamp getReplicationTime() { + if (replicationTimeBuilder_ == null) { + return replicationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : replicationTime_; + } else { + return replicationTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The min timestamp for which all namespaces and table metadata
+     * have been replicated in the region specified as the new primary_replica.
+     * Some resources may have been replicated more recently than this timestamp.
+     * If empty, the replica has just been created and has not yet been fully
+     * initialized. NOTE: When the Cloud Storage replication watermark is
+     * available, this will represent both catalog metadata and Cloud Storage
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setReplicationTime(com.google.protobuf.Timestamp value) { + if (replicationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + replicationTime_ = value; + } else { + replicationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The min timestamp for which all namespaces and table metadata
+     * have been replicated in the region specified as the new primary_replica.
+     * Some resources may have been replicated more recently than this timestamp.
+     * If empty, the replica has just been created and has not yet been fully
+     * initialized. NOTE: When the Cloud Storage replication watermark is
+     * available, this will represent both catalog metadata and Cloud Storage
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setReplicationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (replicationTimeBuilder_ == null) { + replicationTime_ = builderForValue.build(); + } else { + replicationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The min timestamp for which all namespaces and table metadata
+     * have been replicated in the region specified as the new primary_replica.
+     * Some resources may have been replicated more recently than this timestamp.
+     * If empty, the replica has just been created and has not yet been fully
+     * initialized. NOTE: When the Cloud Storage replication watermark is
+     * available, this will represent both catalog metadata and Cloud Storage
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeReplicationTime(com.google.protobuf.Timestamp value) { + if (replicationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && replicationTime_ != null + && replicationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getReplicationTimeBuilder().mergeFrom(value); + } else { + replicationTime_ = value; + } + } else { + replicationTimeBuilder_.mergeFrom(value); + } + if (replicationTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The min timestamp for which all namespaces and table metadata
+     * have been replicated in the region specified as the new primary_replica.
+     * Some resources may have been replicated more recently than this timestamp.
+     * If empty, the replica has just been created and has not yet been fully
+     * initialized. NOTE: When the Cloud Storage replication watermark is
+     * available, this will represent both catalog metadata and Cloud Storage
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearReplicationTime() { + bitField0_ = (bitField0_ & ~0x00000001); + replicationTime_ = null; + if (replicationTimeBuilder_ != null) { + replicationTimeBuilder_.dispose(); + replicationTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The min timestamp for which all namespaces and table metadata
+     * have been replicated in the region specified as the new primary_replica.
+     * Some resources may have been replicated more recently than this timestamp.
+     * If empty, the replica has just been created and has not yet been fully
+     * initialized. NOTE: When the Cloud Storage replication watermark is
+     * available, this will represent both catalog metadata and Cloud Storage
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getReplicationTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getReplicationTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The min timestamp for which all namespaces and table metadata
+     * have been replicated in the region specified as the new primary_replica.
+     * Some resources may have been replicated more recently than this timestamp.
+     * If empty, the replica has just been created and has not yet been fully
+     * initialized. NOTE: When the Cloud Storage replication watermark is
+     * available, this will represent both catalog metadata and Cloud Storage
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getReplicationTimeOrBuilder() { + if (replicationTimeBuilder_ != null) { + return replicationTimeBuilder_.getMessageOrBuilder(); + } else { + return replicationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : replicationTime_; + } + } + + /** + * + * + *
+     * Output only. The min timestamp for which all namespaces and table metadata
+     * have been replicated in the region specified as the new primary_replica.
+     * Some resources may have been replicated more recently than this timestamp.
+     * If empty, the replica has just been created and has not yet been fully
+     * initialized. NOTE: When the Cloud Storage replication watermark is
+     * available, this will represent both catalog metadata and Cloud Storage
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getReplicationTimeFieldBuilder() { + if (replicationTimeBuilder_ == null) { + replicationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReplicationTime(), getParentForChildren(), isClean()); + replicationTime_ = null; + } + return replicationTimeBuilder_; + } + + @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.cloud.biglake.v1.FailoverIcebergCatalogResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.FailoverIcebergCatalogResponse) + private static final com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse(); + } + + public static com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailoverIcebergCatalogResponse 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.cloud.biglake.v1.FailoverIcebergCatalogResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogResponseOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogResponseOrBuilder.java new file mode 100644 index 000000000000..96c345c4c79a --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/FailoverIcebergCatalogResponseOrBuilder.java @@ -0,0 +1,87 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface FailoverIcebergCatalogResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.FailoverIcebergCatalogResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The min timestamp for which all namespaces and table metadata
+   * have been replicated in the region specified as the new primary_replica.
+   * Some resources may have been replicated more recently than this timestamp.
+   * If empty, the replica has just been created and has not yet been fully
+   * initialized. NOTE: When the Cloud Storage replication watermark is
+   * available, this will represent both catalog metadata and Cloud Storage
+   * data.
+   * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the replicationTime field is set. + */ + boolean hasReplicationTime(); + + /** + * + * + *
+   * Output only. The min timestamp for which all namespaces and table metadata
+   * have been replicated in the region specified as the new primary_replica.
+   * Some resources may have been replicated more recently than this timestamp.
+   * If empty, the replica has just been created and has not yet been fully
+   * initialized. NOTE: When the Cloud Storage replication watermark is
+   * available, this will represent both catalog metadata and Cloud Storage
+   * data.
+   * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The replicationTime. + */ + com.google.protobuf.Timestamp getReplicationTime(); + + /** + * + * + *
+   * Output only. The min timestamp for which all namespaces and table metadata
+   * have been replicated in the region specified as the new primary_replica.
+   * Some resources may have been replicated more recently than this timestamp.
+   * If empty, the replica has just been created and has not yet been fully
+   * initialized. NOTE: When the Cloud Storage replication watermark is
+   * available, this will represent both catalog metadata and Cloud Storage
+   * data.
+   * 
+ * + * + * .google.protobuf.Timestamp replication_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getReplicationTimeOrBuilder(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogConfigRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogConfigRequest.java new file mode 100644 index 000000000000..df0f4af74acf --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogConfigRequest.java @@ -0,0 +1,636 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `GetIcebergCatalogConfig` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.GetIcebergCatalogConfigRequest} + */ +public final class GetIcebergCatalogConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.GetIcebergCatalogConfigRequest) + GetIcebergCatalogConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetIcebergCatalogConfigRequest.newBuilder() to construct. + private GetIcebergCatalogConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetIcebergCatalogConfigRequest() { + warehouse_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetIcebergCatalogConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergCatalogConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergCatalogConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest.class, + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest.Builder.class); + } + + public static final int WAREHOUSE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object warehouse_ = ""; + + /** + * + * + *
+   * Required. Warehouse location or identifier to request from the service.
+   * 
+ * + * string warehouse = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The warehouse. + */ + @java.lang.Override + public java.lang.String getWarehouse() { + java.lang.Object ref = warehouse_; + 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(); + warehouse_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Warehouse location or identifier to request from the service.
+   * 
+ * + * string warehouse = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for warehouse. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWarehouseBytes() { + java.lang.Object ref = warehouse_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + warehouse_ = 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(warehouse_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, warehouse_); + } + 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(warehouse_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, warehouse_); + } + 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.cloud.biglake.v1.GetIcebergCatalogConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest other = + (com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest) obj; + + if (!getWarehouse().equals(other.getWarehouse())) 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) + WAREHOUSE_FIELD_NUMBER; + hash = (53 * hash) + getWarehouse().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest 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.cloud.biglake.v1.GetIcebergCatalogConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest 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.cloud.biglake.v1.GetIcebergCatalogConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest 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.cloud.biglake.v1.GetIcebergCatalogConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest 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.cloud.biglake.v1.GetIcebergCatalogConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `GetIcebergCatalogConfig` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.GetIcebergCatalogConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.GetIcebergCatalogConfigRequest) + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergCatalogConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergCatalogConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest.class, + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + warehouse_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergCatalogConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest build() { + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest buildPartial() { + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest result = + new com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.warehouse_ = warehouse_; + } + } + + @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.cloud.biglake.v1.GetIcebergCatalogConfigRequest) { + return mergeFrom((com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest other) { + if (other == com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest.getDefaultInstance()) + return this; + if (!other.getWarehouse().isEmpty()) { + warehouse_ = other.warehouse_; + 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: + { + warehouse_ = 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 warehouse_ = ""; + + /** + * + * + *
+     * Required. Warehouse location or identifier to request from the service.
+     * 
+ * + * string warehouse = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The warehouse. + */ + public java.lang.String getWarehouse() { + java.lang.Object ref = warehouse_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + warehouse_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Warehouse location or identifier to request from the service.
+     * 
+ * + * string warehouse = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for warehouse. + */ + public com.google.protobuf.ByteString getWarehouseBytes() { + java.lang.Object ref = warehouse_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + warehouse_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Warehouse location or identifier to request from the service.
+     * 
+ * + * string warehouse = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The warehouse to set. + * @return This builder for chaining. + */ + public Builder setWarehouse(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + warehouse_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Warehouse location or identifier to request from the service.
+     * 
+ * + * string warehouse = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearWarehouse() { + warehouse_ = getDefaultInstance().getWarehouse(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Warehouse location or identifier to request from the service.
+     * 
+ * + * string warehouse = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for warehouse to set. + * @return This builder for chaining. + */ + public Builder setWarehouseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + warehouse_ = 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.cloud.biglake.v1.GetIcebergCatalogConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.GetIcebergCatalogConfigRequest) + private static final com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest(); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIcebergCatalogConfigRequest 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.cloud.biglake.v1.GetIcebergCatalogConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogConfigRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogConfigRequestOrBuilder.java new file mode 100644 index 000000000000..00bc81db1d39 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogConfigRequestOrBuilder.java @@ -0,0 +1,52 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface GetIcebergCatalogConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.GetIcebergCatalogConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Warehouse location or identifier to request from the service.
+   * 
+ * + * string warehouse = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The warehouse. + */ + java.lang.String getWarehouse(); + + /** + * + * + *
+   * Required. Warehouse location or identifier to request from the service.
+   * 
+ * + * string warehouse = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for warehouse. + */ + com.google.protobuf.ByteString getWarehouseBytes(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogRequest.java new file mode 100644 index 000000000000..0994ae0c492e --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogRequest.java @@ -0,0 +1,648 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `GetIcebergCatalog` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.GetIcebergCatalogRequest} + */ +public final class GetIcebergCatalogRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.GetIcebergCatalogRequest) + GetIcebergCatalogRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetIcebergCatalogRequest.newBuilder() to construct. + private GetIcebergCatalogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetIcebergCatalogRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetIcebergCatalogRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.GetIcebergCatalogRequest.class, + com.google.cloud.biglake.v1.GetIcebergCatalogRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The catalog to get.
+   * 
+ * + * + * 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 catalog to get.
+   * 
+ * + * + * 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.cloud.biglake.v1.GetIcebergCatalogRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.GetIcebergCatalogRequest other = + (com.google.cloud.biglake.v1.GetIcebergCatalogRequest) 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.cloud.biglake.v1.GetIcebergCatalogRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogRequest 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.cloud.biglake.v1.GetIcebergCatalogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogRequest 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.cloud.biglake.v1.GetIcebergCatalogRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogRequest 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.cloud.biglake.v1.GetIcebergCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogRequest 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.cloud.biglake.v1.GetIcebergCatalogRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `GetIcebergCatalog` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.GetIcebergCatalogRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.GetIcebergCatalogRequest) + com.google.cloud.biglake.v1.GetIcebergCatalogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.GetIcebergCatalogRequest.class, + com.google.cloud.biglake.v1.GetIcebergCatalogRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.GetIcebergCatalogRequest.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.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.GetIcebergCatalogRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.GetIcebergCatalogRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.GetIcebergCatalogRequest build() { + com.google.cloud.biglake.v1.GetIcebergCatalogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.GetIcebergCatalogRequest buildPartial() { + com.google.cloud.biglake.v1.GetIcebergCatalogRequest result = + new com.google.cloud.biglake.v1.GetIcebergCatalogRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.GetIcebergCatalogRequest 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.cloud.biglake.v1.GetIcebergCatalogRequest) { + return mergeFrom((com.google.cloud.biglake.v1.GetIcebergCatalogRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.GetIcebergCatalogRequest other) { + if (other == com.google.cloud.biglake.v1.GetIcebergCatalogRequest.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 catalog to get.
+     * 
+ * + * + * 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 catalog to get.
+     * 
+ * + * + * 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 catalog to get.
+     * 
+ * + * + * 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 catalog to get.
+     * 
+ * + * + * 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 catalog to get.
+     * 
+ * + * + * 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.cloud.biglake.v1.GetIcebergCatalogRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.GetIcebergCatalogRequest) + private static final com.google.cloud.biglake.v1.GetIcebergCatalogRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.GetIcebergCatalogRequest(); + } + + public static com.google.cloud.biglake.v1.GetIcebergCatalogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIcebergCatalogRequest 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.cloud.biglake.v1.GetIcebergCatalogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogRequestOrBuilder.java new file mode 100644 index 000000000000..4a45ae703472 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergCatalogRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface GetIcebergCatalogRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.GetIcebergCatalogRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The catalog to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The catalog to get.
+   * 
+ * + * + * 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/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergNamespaceRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergNamespaceRequest.java new file mode 100644 index 000000000000..921edc28fe6d --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergNamespaceRequest.java @@ -0,0 +1,656 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `GetIcebergNamespace` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.GetIcebergNamespaceRequest} + */ +public final class GetIcebergNamespaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.GetIcebergNamespaceRequest) + GetIcebergNamespaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetIcebergNamespaceRequest.newBuilder() to construct. + private GetIcebergNamespaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetIcebergNamespaceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetIcebergNamespaceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest.class, + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Iceberg namespace to fetch in the format:
+   * `projects/{project_id}/namespaces/{namespace}`.
+   * 
+ * + * + * 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. Iceberg namespace to fetch in the format:
+   * `projects/{project_id}/namespaces/{namespace}`.
+   * 
+ * + * + * 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.cloud.biglake.v1.GetIcebergNamespaceRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest other = + (com.google.cloud.biglake.v1.GetIcebergNamespaceRequest) 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.cloud.biglake.v1.GetIcebergNamespaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.GetIcebergNamespaceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.GetIcebergNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.GetIcebergNamespaceRequest 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.cloud.biglake.v1.GetIcebergNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.GetIcebergNamespaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.GetIcebergNamespaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.GetIcebergNamespaceRequest 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.cloud.biglake.v1.GetIcebergNamespaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.GetIcebergNamespaceRequest 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.cloud.biglake.v1.GetIcebergNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.GetIcebergNamespaceRequest 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.cloud.biglake.v1.GetIcebergNamespaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `GetIcebergNamespace` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.GetIcebergNamespaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.GetIcebergNamespaceRequest) + com.google.cloud.biglake.v1.GetIcebergNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest.class, + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.GetIcebergNamespaceRequest.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.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergNamespaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.GetIcebergNamespaceRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.GetIcebergNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.GetIcebergNamespaceRequest build() { + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.GetIcebergNamespaceRequest buildPartial() { + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest result = + new com.google.cloud.biglake.v1.GetIcebergNamespaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.GetIcebergNamespaceRequest 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.cloud.biglake.v1.GetIcebergNamespaceRequest) { + return mergeFrom((com.google.cloud.biglake.v1.GetIcebergNamespaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.GetIcebergNamespaceRequest other) { + if (other == com.google.cloud.biglake.v1.GetIcebergNamespaceRequest.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. Iceberg namespace to fetch in the format:
+     * `projects/{project_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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. Iceberg namespace to fetch in the format:
+     * `projects/{project_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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. Iceberg namespace to fetch in the format:
+     * `projects/{project_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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. Iceberg namespace to fetch in the format:
+     * `projects/{project_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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. Iceberg namespace to fetch in the format:
+     * `projects/{project_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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.cloud.biglake.v1.GetIcebergNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.GetIcebergNamespaceRequest) + private static final com.google.cloud.biglake.v1.GetIcebergNamespaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.GetIcebergNamespaceRequest(); + } + + public static com.google.cloud.biglake.v1.GetIcebergNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIcebergNamespaceRequest 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.cloud.biglake.v1.GetIcebergNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergNamespaceRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergNamespaceRequestOrBuilder.java new file mode 100644 index 000000000000..66697be3c5fb --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergNamespaceRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface GetIcebergNamespaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.GetIcebergNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Iceberg namespace to fetch in the format:
+   * `projects/{project_id}/namespaces/{namespace}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Iceberg namespace to fetch in the format:
+   * `projects/{project_id}/namespaces/{namespace}`.
+   * 
+ * + * + * 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/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergTableRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergTableRequest.java new file mode 100644 index 000000000000..7e11c4a515aa --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergTableRequest.java @@ -0,0 +1,837 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `GetIcebergTable` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.GetIcebergTableRequest} + */ +public final class GetIcebergTableRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.GetIcebergTableRequest) + GetIcebergTableRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetIcebergTableRequest.newBuilder() to construct. + private GetIcebergTableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetIcebergTableRequest() { + name_ = ""; + snapshots_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetIcebergTableRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.GetIcebergTableRequest.class, + com.google.cloud.biglake.v1.GetIcebergTableRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Table to get in the format:
+   * 
+ * + * + * 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. Table to get in the format:
+   * 
+ * + * + * 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 SNAPSHOTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object snapshots_ = ""; + + /** + * + * + *
+   * Optional. What snapshot to get. Valid only for GetIcebergTable.
+   * 
+ * + * string snapshots = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The snapshots. + */ + @java.lang.Override + public java.lang.String getSnapshots() { + java.lang.Object ref = snapshots_; + 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(); + snapshots_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. What snapshot to get. Valid only for GetIcebergTable.
+   * 
+ * + * string snapshots = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for snapshots. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnapshotsBytes() { + java.lang.Object ref = snapshots_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshots_ = 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(snapshots_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, snapshots_); + } + 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(snapshots_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, snapshots_); + } + 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.cloud.biglake.v1.GetIcebergTableRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.GetIcebergTableRequest other = + (com.google.cloud.biglake.v1.GetIcebergTableRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSnapshots().equals(other.getSnapshots())) 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) + SNAPSHOTS_FIELD_NUMBER; + hash = (53 * hash) + getSnapshots().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.GetIcebergTableRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.GetIcebergTableRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.GetIcebergTableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.GetIcebergTableRequest 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.cloud.biglake.v1.GetIcebergTableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.GetIcebergTableRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.GetIcebergTableRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.GetIcebergTableRequest 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.cloud.biglake.v1.GetIcebergTableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.GetIcebergTableRequest 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.cloud.biglake.v1.GetIcebergTableRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.GetIcebergTableRequest 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.cloud.biglake.v1.GetIcebergTableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `GetIcebergTable` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.GetIcebergTableRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.GetIcebergTableRequest) + com.google.cloud.biglake.v1.GetIcebergTableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.GetIcebergTableRequest.class, + com.google.cloud.biglake.v1.GetIcebergTableRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.GetIcebergTableRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + snapshots_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_GetIcebergTableRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.GetIcebergTableRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.GetIcebergTableRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.GetIcebergTableRequest build() { + com.google.cloud.biglake.v1.GetIcebergTableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.GetIcebergTableRequest buildPartial() { + com.google.cloud.biglake.v1.GetIcebergTableRequest result = + new com.google.cloud.biglake.v1.GetIcebergTableRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.GetIcebergTableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.snapshots_ = snapshots_; + } + } + + @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.cloud.biglake.v1.GetIcebergTableRequest) { + return mergeFrom((com.google.cloud.biglake.v1.GetIcebergTableRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.GetIcebergTableRequest other) { + if (other == com.google.cloud.biglake.v1.GetIcebergTableRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSnapshots().isEmpty()) { + snapshots_ = other.snapshots_; + 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: + { + snapshots_ = 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. Table to get in the format:
+     * 
+ * + * + * 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. Table to get in the format:
+     * 
+ * + * + * 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. Table to get in the format:
+     * 
+ * + * + * 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. Table to get in the format:
+     * 
+ * + * + * 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. Table to get in the format:
+     * 
+ * + * + * 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 snapshots_ = ""; + + /** + * + * + *
+     * Optional. What snapshot to get. Valid only for GetIcebergTable.
+     * 
+ * + * string snapshots = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The snapshots. + */ + public java.lang.String getSnapshots() { + java.lang.Object ref = snapshots_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshots_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. What snapshot to get. Valid only for GetIcebergTable.
+     * 
+ * + * string snapshots = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for snapshots. + */ + public com.google.protobuf.ByteString getSnapshotsBytes() { + java.lang.Object ref = snapshots_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshots_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. What snapshot to get. Valid only for GetIcebergTable.
+     * 
+ * + * string snapshots = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The snapshots to set. + * @return This builder for chaining. + */ + public Builder setSnapshots(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + snapshots_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. What snapshot to get. Valid only for GetIcebergTable.
+     * 
+ * + * string snapshots = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSnapshots() { + snapshots_ = getDefaultInstance().getSnapshots(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. What snapshot to get. Valid only for GetIcebergTable.
+     * 
+ * + * string snapshots = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for snapshots to set. + * @return This builder for chaining. + */ + public Builder setSnapshotsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshots_ = 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.cloud.biglake.v1.GetIcebergTableRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.GetIcebergTableRequest) + private static final com.google.cloud.biglake.v1.GetIcebergTableRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.GetIcebergTableRequest(); + } + + public static com.google.cloud.biglake.v1.GetIcebergTableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIcebergTableRequest 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.cloud.biglake.v1.GetIcebergTableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergTableRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergTableRequestOrBuilder.java new file mode 100644 index 000000000000..917cdc204ca0 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/GetIcebergTableRequestOrBuilder.java @@ -0,0 +1,82 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface GetIcebergTableRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.GetIcebergTableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Table to get in the format:
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Table to get in the format:
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. What snapshot to get. Valid only for GetIcebergTable.
+   * 
+ * + * string snapshots = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The snapshots. + */ + java.lang.String getSnapshots(); + + /** + * + * + *
+   * Optional. What snapshot to get. Valid only for GetIcebergTable.
+   * 
+ * + * string snapshots = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for snapshots. + */ + com.google.protobuf.ByteString getSnapshotsBytes(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalog.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalog.java new file mode 100644 index 000000000000..ccf111f8dc14 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalog.java @@ -0,0 +1,2694 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The Iceberg REST Catalog information.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.IcebergCatalog} + */ +public final class IcebergCatalog extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.IcebergCatalog) + IcebergCatalogOrBuilder { + private static final long serialVersionUID = 0L; + + // Use IcebergCatalog.newBuilder() to construct. + private IcebergCatalog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IcebergCatalog() { + name_ = ""; + credentialMode_ = 0; + biglakeServiceAccount_ = ""; + catalogType_ = 0; + defaultLocation_ = ""; + catalogRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IcebergCatalog(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergCatalog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergCatalog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.IcebergCatalog.class, + com.google.cloud.biglake.v1.IcebergCatalog.Builder.class); + } + + /** + * + * + *
+   * Determines the catalog type.
+   * 
+ * + * Protobuf enum {@code google.cloud.biglake.v1.IcebergCatalog.CatalogType} + */ + public enum CatalogType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * CATALOG_TYPE_UNSPECIFIED = 0; + */ + CATALOG_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Catalog type for Google Cloud Storage Buckets.
+     * 
+ * + * CATALOG_TYPE_GCS_BUCKET = 1; + */ + CATALOG_TYPE_GCS_BUCKET(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * CATALOG_TYPE_UNSPECIFIED = 0; + */ + public static final int CATALOG_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Catalog type for Google Cloud Storage Buckets.
+     * 
+ * + * CATALOG_TYPE_GCS_BUCKET = 1; + */ + public static final int CATALOG_TYPE_GCS_BUCKET_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CatalogType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CatalogType forNumber(int value) { + switch (value) { + case 0: + return CATALOG_TYPE_UNSPECIFIED; + case 1: + return CATALOG_TYPE_GCS_BUCKET; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CatalogType findValueByNumber(int number) { + return CatalogType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergCatalog.getDescriptor().getEnumTypes().get(0); + } + + private static final CatalogType[] VALUES = values(); + + public static CatalogType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CatalogType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.biglake.v1.IcebergCatalog.CatalogType) + } + + /** + * + * + *
+   * The credential mode used for the catalog.
+   * 
+ * + * Protobuf enum {@code google.cloud.biglake.v1.IcebergCatalog.CredentialMode} + */ + public enum CredentialMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * CREDENTIAL_MODE_UNSPECIFIED = 0; + */ + CREDENTIAL_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * End user credentials, default. The authenticating user must have access
+     * to the catalog resources and the corresponding Google Cloud Storage
+     * files.
+     * 
+ * + * CREDENTIAL_MODE_END_USER = 1; + */ + CREDENTIAL_MODE_END_USER(1), + /** + * + * + *
+     * Use credential vending. The authenticating user must have access to the
+     * catalog resources and the system will provide the caller with downscoped
+     * credentials to access the Google Cloud Storage files. All table
+     * operations in this mode would require `X-Iceberg-Access-Delegation`
+     * header with `vended-credentials` value included. System will generate a
+     * service account and the catalog administrator must grant the service
+     * account appropriate permissions.
+     *
+     * See:
+     * https://github.com/apache/iceberg/blob/931865ecaf40a827f9081dddb675bf1c95c05461/open-api/rest-catalog-open-api.yaml#L1854
+     * for more details.
+     * 
+ * + * CREDENTIAL_MODE_VENDED_CREDENTIALS = 2; + */ + CREDENTIAL_MODE_VENDED_CREDENTIALS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * CREDENTIAL_MODE_UNSPECIFIED = 0; + */ + public static final int CREDENTIAL_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * End user credentials, default. The authenticating user must have access
+     * to the catalog resources and the corresponding Google Cloud Storage
+     * files.
+     * 
+ * + * CREDENTIAL_MODE_END_USER = 1; + */ + public static final int CREDENTIAL_MODE_END_USER_VALUE = 1; + + /** + * + * + *
+     * Use credential vending. The authenticating user must have access to the
+     * catalog resources and the system will provide the caller with downscoped
+     * credentials to access the Google Cloud Storage files. All table
+     * operations in this mode would require `X-Iceberg-Access-Delegation`
+     * header with `vended-credentials` value included. System will generate a
+     * service account and the catalog administrator must grant the service
+     * account appropriate permissions.
+     *
+     * See:
+     * https://github.com/apache/iceberg/blob/931865ecaf40a827f9081dddb675bf1c95c05461/open-api/rest-catalog-open-api.yaml#L1854
+     * for more details.
+     * 
+ * + * CREDENTIAL_MODE_VENDED_CREDENTIALS = 2; + */ + public static final int CREDENTIAL_MODE_VENDED_CREDENTIALS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CredentialMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CredentialMode forNumber(int value) { + switch (value) { + case 0: + return CREDENTIAL_MODE_UNSPECIFIED; + case 1: + return CREDENTIAL_MODE_END_USER; + case 2: + return CREDENTIAL_MODE_VENDED_CREDENTIALS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CredentialMode findValueByNumber(int number) { + return CredentialMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergCatalog.getDescriptor().getEnumTypes().get(1); + } + + private static final CredentialMode[] VALUES = values(); + + public static CredentialMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CredentialMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.biglake.v1.IcebergCatalog.CredentialMode) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
+   * This field is immutable.
+   * This field is ignored for CreateIcebergCatalog.
+   * 
+ * + * 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 catalog name, `projects/my-project/catalogs/my-catalog`.
+   * This field is immutable.
+   * This field is ignored for CreateIcebergCatalog.
+   * 
+ * + * 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 CREDENTIAL_MODE_FIELD_NUMBER = 2; + private int credentialMode_ = 0; + + /** + * + * + *
+   * Optional. The credential mode for the catalog.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for credentialMode. + */ + @java.lang.Override + public int getCredentialModeValue() { + return credentialMode_; + } + + /** + * + * + *
+   * Optional. The credential mode for the catalog.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The credentialMode. + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode getCredentialMode() { + com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode result = + com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode.forNumber(credentialMode_); + return result == null + ? com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode.UNRECOGNIZED + : result; + } + + public static final int BIGLAKE_SERVICE_ACCOUNT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object biglakeServiceAccount_ = ""; + + /** + * + * + *
+   * Output only. The service account used for credential vending, output only.
+   * Might be empty if Credential vending was never enabled for the catalog.
+   * 
+ * + * + * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The biglakeServiceAccount. + */ + @java.lang.Override + public java.lang.String getBiglakeServiceAccount() { + java.lang.Object ref = biglakeServiceAccount_; + 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(); + biglakeServiceAccount_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The service account used for credential vending, output only.
+   * Might be empty if Credential vending was never enabled for the catalog.
+   * 
+ * + * + * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for biglakeServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBiglakeServiceAccountBytes() { + java.lang.Object ref = biglakeServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + biglakeServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATALOG_TYPE_FIELD_NUMBER = 4; + private int catalogType_ = 0; + + /** + * + * + *
+   * Required. The catalog type. Required for CreateIcebergCatalog.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for catalogType. + */ + @java.lang.Override + public int getCatalogTypeValue() { + return catalogType_; + } + + /** + * + * + *
+   * Required. The catalog type. Required for CreateIcebergCatalog.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogType. + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalog.CatalogType getCatalogType() { + com.google.cloud.biglake.v1.IcebergCatalog.CatalogType result = + com.google.cloud.biglake.v1.IcebergCatalog.CatalogType.forNumber(catalogType_); + return result == null + ? com.google.cloud.biglake.v1.IcebergCatalog.CatalogType.UNRECOGNIZED + : result; + } + + public static final int DEFAULT_LOCATION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultLocation_ = ""; + + /** + * + * + *
+   * Optional. The default location for the catalog. For the Google Cloud
+   * Storage Bucket catalog this is output only.
+   * 
+ * + * + * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultLocation. + */ + @java.lang.Override + public java.lang.String getDefaultLocation() { + java.lang.Object ref = defaultLocation_; + 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(); + defaultLocation_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The default location for the catalog. For the Google Cloud
+   * Storage Bucket catalog this is output only.
+   * 
+ * + * + * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for defaultLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultLocationBytes() { + java.lang.Object ref = defaultLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATALOG_REGIONS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList catalogRegions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The GCP region(s) where the catalog metadata is stored.
+   * This will contain one value for all locations, except for the catalogs that
+   * are configured to use custom dual region buckets.
+   * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the catalogRegions. + */ + public com.google.protobuf.ProtocolStringList getCatalogRegionsList() { + return catalogRegions_; + } + + /** + * + * + *
+   * Output only. The GCP region(s) where the catalog metadata is stored.
+   * This will contain one value for all locations, except for the catalogs that
+   * are configured to use custom dual region buckets.
+   * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of catalogRegions. + */ + public int getCatalogRegionsCount() { + return catalogRegions_.size(); + } + + /** + * + * + *
+   * Output only. The GCP region(s) where the catalog metadata is stored.
+   * This will contain one value for all locations, except for the catalogs that
+   * are configured to use custom dual region buckets.
+   * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The catalogRegions at the given index. + */ + public java.lang.String getCatalogRegions(int index) { + return catalogRegions_.get(index); + } + + /** + * + * + *
+   * Output only. The GCP region(s) where the catalog metadata is stored.
+   * This will contain one value for all locations, except for the catalogs that
+   * are configured to use custom dual region buckets.
+   * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the catalogRegions at the given index. + */ + public com.google.protobuf.ByteString getCatalogRegionsBytes(int index) { + return catalogRegions_.getByteString(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. When the catalog was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. When the catalog was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. When the catalog was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. When the catalog was last updated.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. When the catalog was last updated.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. When the catalog was last updated.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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 (credentialMode_ + != com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode.CREDENTIAL_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, credentialMode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(biglakeServiceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, biglakeServiceAccount_); + } + if (catalogType_ + != com.google.cloud.biglake.v1.IcebergCatalog.CatalogType.CATALOG_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, catalogType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, defaultLocation_); + } + for (int i = 0; i < catalogRegions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, catalogRegions_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + 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 (credentialMode_ + != com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode.CREDENTIAL_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, credentialMode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(biglakeServiceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, biglakeServiceAccount_); + } + if (catalogType_ + != com.google.cloud.biglake.v1.IcebergCatalog.CatalogType.CATALOG_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, catalogType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, defaultLocation_); + } + { + int dataSize = 0; + for (int i = 0; i < catalogRegions_.size(); i++) { + dataSize += computeStringSizeNoTag(catalogRegions_.getRaw(i)); + } + size += dataSize; + size += 1 * getCatalogRegionsList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + 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.cloud.biglake.v1.IcebergCatalog)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.IcebergCatalog other = + (com.google.cloud.biglake.v1.IcebergCatalog) obj; + + if (!getName().equals(other.getName())) return false; + if (credentialMode_ != other.credentialMode_) return false; + if (!getBiglakeServiceAccount().equals(other.getBiglakeServiceAccount())) return false; + if (catalogType_ != other.catalogType_) return false; + if (!getDefaultLocation().equals(other.getDefaultLocation())) return false; + if (!getCatalogRegionsList().equals(other.getCatalogRegionsList())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) 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) + CREDENTIAL_MODE_FIELD_NUMBER; + hash = (53 * hash) + credentialMode_; + hash = (37 * hash) + BIGLAKE_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getBiglakeServiceAccount().hashCode(); + hash = (37 * hash) + CATALOG_TYPE_FIELD_NUMBER; + hash = (53 * hash) + catalogType_; + hash = (37 * hash) + DEFAULT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getDefaultLocation().hashCode(); + if (getCatalogRegionsCount() > 0) { + hash = (37 * hash) + CATALOG_REGIONS_FIELD_NUMBER; + hash = (53 * hash) + getCatalogRegionsList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.IcebergCatalog parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.IcebergCatalog parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.IcebergCatalog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.IcebergCatalog 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.cloud.biglake.v1.IcebergCatalog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.IcebergCatalog parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.IcebergCatalog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.IcebergCatalog 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.cloud.biglake.v1.IcebergCatalog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.IcebergCatalog 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.cloud.biglake.v1.IcebergCatalog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.IcebergCatalog 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.cloud.biglake.v1.IcebergCatalog 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 Iceberg REST Catalog information.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.IcebergCatalog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.IcebergCatalog) + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergCatalog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergCatalog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.IcebergCatalog.class, + com.google.cloud.biglake.v1.IcebergCatalog.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.IcebergCatalog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + credentialMode_ = 0; + biglakeServiceAccount_ = ""; + catalogType_ = 0; + defaultLocation_ = ""; + catalogRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergCatalog_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalog getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalog build() { + com.google.cloud.biglake.v1.IcebergCatalog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalog buildPartial() { + com.google.cloud.biglake.v1.IcebergCatalog result = + new com.google.cloud.biglake.v1.IcebergCatalog(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.IcebergCatalog result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.credentialMode_ = credentialMode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.biglakeServiceAccount_ = biglakeServiceAccount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.catalogType_ = catalogType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.defaultLocation_ = defaultLocation_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + catalogRegions_.makeImmutable(); + result.catalogRegions_ = catalogRegions_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.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.cloud.biglake.v1.IcebergCatalog) { + return mergeFrom((com.google.cloud.biglake.v1.IcebergCatalog) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.IcebergCatalog other) { + if (other == com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.credentialMode_ != 0) { + setCredentialModeValue(other.getCredentialModeValue()); + } + if (!other.getBiglakeServiceAccount().isEmpty()) { + biglakeServiceAccount_ = other.biglakeServiceAccount_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.catalogType_ != 0) { + setCatalogTypeValue(other.getCatalogTypeValue()); + } + if (!other.getDefaultLocation().isEmpty()) { + defaultLocation_ = other.defaultLocation_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.catalogRegions_.isEmpty()) { + if (catalogRegions_.isEmpty()) { + catalogRegions_ = other.catalogRegions_; + bitField0_ |= 0x00000020; + } else { + ensureCatalogRegionsIsMutable(); + catalogRegions_.addAll(other.catalogRegions_); + } + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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 16: + { + credentialMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + biglakeServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + catalogType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + defaultLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCatalogRegionsIsMutable(); + catalogRegions_.add(s); + break; + } // case 50 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + 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 catalog name, `projects/my-project/catalogs/my-catalog`.
+     * This field is immutable.
+     * This field is ignored for CreateIcebergCatalog.
+     * 
+ * + * 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 catalog name, `projects/my-project/catalogs/my-catalog`.
+     * This field is immutable.
+     * This field is ignored for CreateIcebergCatalog.
+     * 
+ * + * 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 catalog name, `projects/my-project/catalogs/my-catalog`.
+     * This field is immutable.
+     * This field is ignored for CreateIcebergCatalog.
+     * 
+ * + * 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 catalog name, `projects/my-project/catalogs/my-catalog`.
+     * This field is immutable.
+     * This field is ignored for CreateIcebergCatalog.
+     * 
+ * + * 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 catalog name, `projects/my-project/catalogs/my-catalog`.
+     * This field is immutable.
+     * This field is ignored for CreateIcebergCatalog.
+     * 
+ * + * 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 int credentialMode_ = 0; + + /** + * + * + *
+     * Optional. The credential mode for the catalog.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for credentialMode. + */ + @java.lang.Override + public int getCredentialModeValue() { + return credentialMode_; + } + + /** + * + * + *
+     * Optional. The credential mode for the catalog.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for credentialMode to set. + * @return This builder for chaining. + */ + public Builder setCredentialModeValue(int value) { + credentialMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The credential mode for the catalog.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The credentialMode. + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode getCredentialMode() { + com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode result = + com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode.forNumber(credentialMode_); + return result == null + ? com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The credential mode for the catalog.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The credentialMode to set. + * @return This builder for chaining. + */ + public Builder setCredentialMode( + com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + credentialMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The credential mode for the catalog.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCredentialMode() { + bitField0_ = (bitField0_ & ~0x00000002); + credentialMode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object biglakeServiceAccount_ = ""; + + /** + * + * + *
+     * Output only. The service account used for credential vending, output only.
+     * Might be empty if Credential vending was never enabled for the catalog.
+     * 
+ * + * + * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The biglakeServiceAccount. + */ + public java.lang.String getBiglakeServiceAccount() { + java.lang.Object ref = biglakeServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + biglakeServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The service account used for credential vending, output only.
+     * Might be empty if Credential vending was never enabled for the catalog.
+     * 
+ * + * + * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for biglakeServiceAccount. + */ + public com.google.protobuf.ByteString getBiglakeServiceAccountBytes() { + java.lang.Object ref = biglakeServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + biglakeServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The service account used for credential vending, output only.
+     * Might be empty if Credential vending was never enabled for the catalog.
+     * 
+ * + * + * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The biglakeServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setBiglakeServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + biglakeServiceAccount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The service account used for credential vending, output only.
+     * Might be empty if Credential vending was never enabled for the catalog.
+     * 
+ * + * + * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBiglakeServiceAccount() { + biglakeServiceAccount_ = getDefaultInstance().getBiglakeServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The service account used for credential vending, output only.
+     * Might be empty if Credential vending was never enabled for the catalog.
+     * 
+ * + * + * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for biglakeServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setBiglakeServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + biglakeServiceAccount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int catalogType_ = 0; + + /** + * + * + *
+     * Required. The catalog type. Required for CreateIcebergCatalog.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for catalogType. + */ + @java.lang.Override + public int getCatalogTypeValue() { + return catalogType_; + } + + /** + * + * + *
+     * Required. The catalog type. Required for CreateIcebergCatalog.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for catalogType to set. + * @return This builder for chaining. + */ + public Builder setCatalogTypeValue(int value) { + catalogType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog type. Required for CreateIcebergCatalog.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogType. + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalog.CatalogType getCatalogType() { + com.google.cloud.biglake.v1.IcebergCatalog.CatalogType result = + com.google.cloud.biglake.v1.IcebergCatalog.CatalogType.forNumber(catalogType_); + return result == null + ? com.google.cloud.biglake.v1.IcebergCatalog.CatalogType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The catalog type. Required for CreateIcebergCatalog.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The catalogType to set. + * @return This builder for chaining. + */ + public Builder setCatalogType(com.google.cloud.biglake.v1.IcebergCatalog.CatalogType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + catalogType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog type. Required for CreateIcebergCatalog.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearCatalogType() { + bitField0_ = (bitField0_ & ~0x00000008); + catalogType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object defaultLocation_ = ""; + + /** + * + * + *
+     * Optional. The default location for the catalog. For the Google Cloud
+     * Storage Bucket catalog this is output only.
+     * 
+ * + * + * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultLocation. + */ + public java.lang.String getDefaultLocation() { + java.lang.Object ref = defaultLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The default location for the catalog. For the Google Cloud
+     * Storage Bucket catalog this is output only.
+     * 
+ * + * + * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for defaultLocation. + */ + public com.google.protobuf.ByteString getDefaultLocationBytes() { + java.lang.Object ref = defaultLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The default location for the catalog. For the Google Cloud
+     * Storage Bucket catalog this is output only.
+     * 
+ * + * + * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The defaultLocation to set. + * @return This builder for chaining. + */ + public Builder setDefaultLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultLocation_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default location for the catalog. For the Google Cloud
+     * Storage Bucket catalog this is output only.
+     * 
+ * + * + * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultLocation() { + defaultLocation_ = getDefaultInstance().getDefaultLocation(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default location for the catalog. For the Google Cloud
+     * Storage Bucket catalog this is output only.
+     * 
+ * + * + * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for defaultLocation to set. + * @return This builder for chaining. + */ + public Builder setDefaultLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultLocation_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList catalogRegions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCatalogRegionsIsMutable() { + if (!catalogRegions_.isModifiable()) { + catalogRegions_ = new com.google.protobuf.LazyStringArrayList(catalogRegions_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Output only. The GCP region(s) where the catalog metadata is stored.
+     * This will contain one value for all locations, except for the catalogs that
+     * are configured to use custom dual region buckets.
+     * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the catalogRegions. + */ + public com.google.protobuf.ProtocolStringList getCatalogRegionsList() { + catalogRegions_.makeImmutable(); + return catalogRegions_; + } + + /** + * + * + *
+     * Output only. The GCP region(s) where the catalog metadata is stored.
+     * This will contain one value for all locations, except for the catalogs that
+     * are configured to use custom dual region buckets.
+     * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of catalogRegions. + */ + public int getCatalogRegionsCount() { + return catalogRegions_.size(); + } + + /** + * + * + *
+     * Output only. The GCP region(s) where the catalog metadata is stored.
+     * This will contain one value for all locations, except for the catalogs that
+     * are configured to use custom dual region buckets.
+     * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The catalogRegions at the given index. + */ + public java.lang.String getCatalogRegions(int index) { + return catalogRegions_.get(index); + } + + /** + * + * + *
+     * Output only. The GCP region(s) where the catalog metadata is stored.
+     * This will contain one value for all locations, except for the catalogs that
+     * are configured to use custom dual region buckets.
+     * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the catalogRegions at the given index. + */ + public com.google.protobuf.ByteString getCatalogRegionsBytes(int index) { + return catalogRegions_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The GCP region(s) where the catalog metadata is stored.
+     * This will contain one value for all locations, except for the catalogs that
+     * are configured to use custom dual region buckets.
+     * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The catalogRegions to set. + * @return This builder for chaining. + */ + public Builder setCatalogRegions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogRegionsIsMutable(); + catalogRegions_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The GCP region(s) where the catalog metadata is stored.
+     * This will contain one value for all locations, except for the catalogs that
+     * are configured to use custom dual region buckets.
+     * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The catalogRegions to add. + * @return This builder for chaining. + */ + public Builder addCatalogRegions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogRegionsIsMutable(); + catalogRegions_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The GCP region(s) where the catalog metadata is stored.
+     * This will contain one value for all locations, except for the catalogs that
+     * are configured to use custom dual region buckets.
+     * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The catalogRegions to add. + * @return This builder for chaining. + */ + public Builder addAllCatalogRegions(java.lang.Iterable values) { + ensureCatalogRegionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, catalogRegions_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The GCP region(s) where the catalog metadata is stored.
+     * This will contain one value for all locations, except for the catalogs that
+     * are configured to use custom dual region buckets.
+     * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCatalogRegions() { + catalogRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The GCP region(s) where the catalog metadata is stored.
+     * This will contain one value for all locations, except for the catalogs that
+     * are configured to use custom dual region buckets.
+     * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the catalogRegions to add. + * @return This builder for chaining. + */ + public Builder addCatalogRegionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCatalogRegionsIsMutable(); + catalogRegions_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. When the catalog was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. When the catalog was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the catalog was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the catalog was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the catalog was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the catalog was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the catalog was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the catalog was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. When the catalog was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. When the catalog was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. When the catalog was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the catalog was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the catalog was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the catalog was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the catalog was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the catalog was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the catalog was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. When the catalog was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @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.cloud.biglake.v1.IcebergCatalog) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergCatalog) + private static final com.google.cloud.biglake.v1.IcebergCatalog DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.IcebergCatalog(); + } + + public static com.google.cloud.biglake.v1.IcebergCatalog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IcebergCatalog 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.cloud.biglake.v1.IcebergCatalog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogConfig.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogConfig.java new file mode 100644 index 000000000000..a17fe69e062d --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogConfig.java @@ -0,0 +1,1463 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The iceberg catalog configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.IcebergCatalogConfig} + */ +public final class IcebergCatalogConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.IcebergCatalogConfig) + IcebergCatalogConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use IcebergCatalogConfig.newBuilder() to construct. + private IcebergCatalogConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IcebergCatalogConfig() { + endpoints_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IcebergCatalogConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetOverrides(); + case 2: + return internalGetDefaults(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.IcebergCatalogConfig.class, + com.google.cloud.biglake.v1.IcebergCatalogConfig.Builder.class); + } + + public static final int OVERRIDES_FIELD_NUMBER = 1; + + private static final class OverridesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_OverridesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField overrides_; + + private com.google.protobuf.MapField internalGetOverrides() { + if (overrides_ == null) { + return com.google.protobuf.MapField.emptyMapField(OverridesDefaultEntryHolder.defaultEntry); + } + return overrides_; + } + + public int getOverridesCount() { + return internalGetOverrides().getMap().size(); + } + + /** + * + * + *
+   * Output only. Properties that should be used to override client
+   * configuration; applied after defaults and client configuration. Required,
+   * even if empty.
+   * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsOverrides(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetOverrides().getMap().containsKey(key); + } + + /** Use {@link #getOverridesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOverrides() { + return getOverridesMap(); + } + + /** + * + * + *
+   * Output only. Properties that should be used to override client
+   * configuration; applied after defaults and client configuration. Required,
+   * even if empty.
+   * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getOverridesMap() { + return internalGetOverrides().getMap(); + } + + /** + * + * + *
+   * Output only. Properties that should be used to override client
+   * configuration; applied after defaults and client configuration. Required,
+   * even if empty.
+   * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getOverridesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetOverrides().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. Properties that should be used to override client
+   * configuration; applied after defaults and client configuration. Required,
+   * even if empty.
+   * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getOverridesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetOverrides().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DEFAULTS_FIELD_NUMBER = 2; + + private static final class DefaultsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_DefaultsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField defaults_; + + private com.google.protobuf.MapField internalGetDefaults() { + if (defaults_ == null) { + return com.google.protobuf.MapField.emptyMapField(DefaultsDefaultEntryHolder.defaultEntry); + } + return defaults_; + } + + public int getDefaultsCount() { + return internalGetDefaults().getMap().size(); + } + + /** + * + * + *
+   * Output only. Properties that should be used as default configuration;
+   * applied before client configuration. Required, even if empty.
+   * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsDefaults(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDefaults().getMap().containsKey(key); + } + + /** Use {@link #getDefaultsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDefaults() { + return getDefaultsMap(); + } + + /** + * + * + *
+   * Output only. Properties that should be used as default configuration;
+   * applied before client configuration. Required, even if empty.
+   * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getDefaultsMap() { + return internalGetDefaults().getMap(); + } + + /** + * + * + *
+   * Output only. Properties that should be used as default configuration;
+   * applied before client configuration. Required, even if empty.
+   * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getDefaultsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDefaults().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. Properties that should be used as default configuration;
+   * applied before client configuration. Required, even if empty.
+   * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getDefaultsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDefaults().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ENDPOINTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList endpoints_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. Endpoints, required, must not be empty.
+   * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the endpoints. + */ + public com.google.protobuf.ProtocolStringList getEndpointsList() { + return endpoints_; + } + + /** + * + * + *
+   * Output only. Endpoints, required, must not be empty.
+   * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of endpoints. + */ + public int getEndpointsCount() { + return endpoints_.size(); + } + + /** + * + * + *
+   * Output only. Endpoints, required, must not be empty.
+   * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The endpoints at the given index. + */ + public java.lang.String getEndpoints(int index) { + return endpoints_.get(index); + } + + /** + * + * + *
+   * Output only. Endpoints, required, must not be empty.
+   * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the endpoints at the given index. + */ + public com.google.protobuf.ByteString getEndpointsBytes(int index) { + return endpoints_.getByteString(index); + } + + 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 { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetOverrides(), OverridesDefaultEntryHolder.defaultEntry, 1); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetDefaults(), DefaultsDefaultEntryHolder.defaultEntry, 2); + for (int i = 0; i < endpoints_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, endpoints_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetOverrides().getMap().entrySet()) { + com.google.protobuf.MapEntry overrides__ = + OverridesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, overrides__); + } + for (java.util.Map.Entry entry : + internalGetDefaults().getMap().entrySet()) { + com.google.protobuf.MapEntry defaults__ = + DefaultsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, defaults__); + } + { + int dataSize = 0; + for (int i = 0; i < endpoints_.size(); i++) { + dataSize += computeStringSizeNoTag(endpoints_.getRaw(i)); + } + size += dataSize; + size += 1 * getEndpointsList().size(); + } + 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.cloud.biglake.v1.IcebergCatalogConfig)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.IcebergCatalogConfig other = + (com.google.cloud.biglake.v1.IcebergCatalogConfig) obj; + + if (!internalGetOverrides().equals(other.internalGetOverrides())) return false; + if (!internalGetDefaults().equals(other.internalGetDefaults())) return false; + if (!getEndpointsList().equals(other.getEndpointsList())) 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 (!internalGetOverrides().getMap().isEmpty()) { + hash = (37 * hash) + OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + internalGetOverrides().hashCode(); + } + if (!internalGetDefaults().getMap().isEmpty()) { + hash = (37 * hash) + DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDefaults().hashCode(); + } + if (getEndpointsCount() > 0) { + hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getEndpointsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.IcebergCatalogConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.IcebergCatalogConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.IcebergCatalogConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.IcebergCatalogConfig 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.cloud.biglake.v1.IcebergCatalogConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.IcebergCatalogConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.IcebergCatalogConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.IcebergCatalogConfig 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.cloud.biglake.v1.IcebergCatalogConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.IcebergCatalogConfig 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.cloud.biglake.v1.IcebergCatalogConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.IcebergCatalogConfig 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.cloud.biglake.v1.IcebergCatalogConfig 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 iceberg catalog configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.IcebergCatalogConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.IcebergCatalogConfig) + com.google.cloud.biglake.v1.IcebergCatalogConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetOverrides(); + case 2: + return internalGetDefaults(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableOverrides(); + case 2: + return internalGetMutableDefaults(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.IcebergCatalogConfig.class, + com.google.cloud.biglake.v1.IcebergCatalogConfig.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.IcebergCatalogConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableOverrides().clear(); + internalGetMutableDefaults().clear(); + endpoints_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalogConfig getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.IcebergCatalogConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalogConfig build() { + com.google.cloud.biglake.v1.IcebergCatalogConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalogConfig buildPartial() { + com.google.cloud.biglake.v1.IcebergCatalogConfig result = + new com.google.cloud.biglake.v1.IcebergCatalogConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.IcebergCatalogConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.overrides_ = internalGetOverrides(); + result.overrides_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaults_ = internalGetDefaults(); + result.defaults_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + endpoints_.makeImmutable(); + result.endpoints_ = endpoints_; + } + } + + @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.cloud.biglake.v1.IcebergCatalogConfig) { + return mergeFrom((com.google.cloud.biglake.v1.IcebergCatalogConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.IcebergCatalogConfig other) { + if (other == com.google.cloud.biglake.v1.IcebergCatalogConfig.getDefaultInstance()) + return this; + internalGetMutableOverrides().mergeFrom(other.internalGetOverrides()); + bitField0_ |= 0x00000001; + internalGetMutableDefaults().mergeFrom(other.internalGetDefaults()); + bitField0_ |= 0x00000002; + if (!other.endpoints_.isEmpty()) { + if (endpoints_.isEmpty()) { + endpoints_ = other.endpoints_; + bitField0_ |= 0x00000004; + } else { + ensureEndpointsIsMutable(); + endpoints_.addAll(other.endpoints_); + } + 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.protobuf.MapEntry overrides__ = + input.readMessage( + OverridesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableOverrides() + .getMutableMap() + .put(overrides__.getKey(), overrides__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry defaults__ = + input.readMessage( + DefaultsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDefaults() + .getMutableMap() + .put(defaults__.getKey(), defaults__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureEndpointsIsMutable(); + endpoints_.add(s); + 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.protobuf.MapField overrides_; + + private com.google.protobuf.MapField + internalGetOverrides() { + if (overrides_ == null) { + return com.google.protobuf.MapField.emptyMapField(OverridesDefaultEntryHolder.defaultEntry); + } + return overrides_; + } + + private com.google.protobuf.MapField + internalGetMutableOverrides() { + if (overrides_ == null) { + overrides_ = + com.google.protobuf.MapField.newMapField(OverridesDefaultEntryHolder.defaultEntry); + } + if (!overrides_.isMutable()) { + overrides_ = overrides_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return overrides_; + } + + public int getOverridesCount() { + return internalGetOverrides().getMap().size(); + } + + /** + * + * + *
+     * Output only. Properties that should be used to override client
+     * configuration; applied after defaults and client configuration. Required,
+     * even if empty.
+     * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsOverrides(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetOverrides().getMap().containsKey(key); + } + + /** Use {@link #getOverridesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOverrides() { + return getOverridesMap(); + } + + /** + * + * + *
+     * Output only. Properties that should be used to override client
+     * configuration; applied after defaults and client configuration. Required,
+     * even if empty.
+     * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getOverridesMap() { + return internalGetOverrides().getMap(); + } + + /** + * + * + *
+     * Output only. Properties that should be used to override client
+     * configuration; applied after defaults and client configuration. Required,
+     * even if empty.
+     * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getOverridesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetOverrides().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Output only. Properties that should be used to override client
+     * configuration; applied after defaults and client configuration. Required,
+     * even if empty.
+     * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getOverridesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetOverrides().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearOverrides() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableOverrides().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Output only. Properties that should be used to override client
+     * configuration; applied after defaults and client configuration. Required,
+     * even if empty.
+     * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeOverrides(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableOverrides().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableOverrides() { + bitField0_ |= 0x00000001; + return internalGetMutableOverrides().getMutableMap(); + } + + /** + * + * + *
+     * Output only. Properties that should be used to override client
+     * configuration; applied after defaults and client configuration. Required,
+     * even if empty.
+     * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putOverrides(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableOverrides().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * Output only. Properties that should be used to override client
+     * configuration; applied after defaults and client configuration. Required,
+     * even if empty.
+     * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllOverrides(java.util.Map values) { + internalGetMutableOverrides().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + private com.google.protobuf.MapField defaults_; + + private com.google.protobuf.MapField internalGetDefaults() { + if (defaults_ == null) { + return com.google.protobuf.MapField.emptyMapField(DefaultsDefaultEntryHolder.defaultEntry); + } + return defaults_; + } + + private com.google.protobuf.MapField + internalGetMutableDefaults() { + if (defaults_ == null) { + defaults_ = + com.google.protobuf.MapField.newMapField(DefaultsDefaultEntryHolder.defaultEntry); + } + if (!defaults_.isMutable()) { + defaults_ = defaults_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return defaults_; + } + + public int getDefaultsCount() { + return internalGetDefaults().getMap().size(); + } + + /** + * + * + *
+     * Output only. Properties that should be used as default configuration;
+     * applied before client configuration. Required, even if empty.
+     * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsDefaults(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDefaults().getMap().containsKey(key); + } + + /** Use {@link #getDefaultsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDefaults() { + return getDefaultsMap(); + } + + /** + * + * + *
+     * Output only. Properties that should be used as default configuration;
+     * applied before client configuration. Required, even if empty.
+     * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getDefaultsMap() { + return internalGetDefaults().getMap(); + } + + /** + * + * + *
+     * Output only. Properties that should be used as default configuration;
+     * applied before client configuration. Required, even if empty.
+     * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getDefaultsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDefaults().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Output only. Properties that should be used as default configuration;
+     * applied before client configuration. Required, even if empty.
+     * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getDefaultsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDefaults().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDefaults() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableDefaults().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Output only. Properties that should be used as default configuration;
+     * applied before client configuration. Required, even if empty.
+     * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDefaults(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableDefaults().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableDefaults() { + bitField0_ |= 0x00000002; + return internalGetMutableDefaults().getMutableMap(); + } + + /** + * + * + *
+     * Output only. Properties that should be used as default configuration;
+     * applied before client configuration. Required, even if empty.
+     * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putDefaults(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableDefaults().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Output only. Properties that should be used as default configuration;
+     * applied before client configuration. Required, even if empty.
+     * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllDefaults(java.util.Map values) { + internalGetMutableDefaults().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + private com.google.protobuf.LazyStringArrayList endpoints_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureEndpointsIsMutable() { + if (!endpoints_.isModifiable()) { + endpoints_ = new com.google.protobuf.LazyStringArrayList(endpoints_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Output only. Endpoints, required, must not be empty.
+     * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the endpoints. + */ + public com.google.protobuf.ProtocolStringList getEndpointsList() { + endpoints_.makeImmutable(); + return endpoints_; + } + + /** + * + * + *
+     * Output only. Endpoints, required, must not be empty.
+     * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of endpoints. + */ + public int getEndpointsCount() { + return endpoints_.size(); + } + + /** + * + * + *
+     * Output only. Endpoints, required, must not be empty.
+     * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The endpoints at the given index. + */ + public java.lang.String getEndpoints(int index) { + return endpoints_.get(index); + } + + /** + * + * + *
+     * Output only. Endpoints, required, must not be empty.
+     * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the endpoints at the given index. + */ + public com.google.protobuf.ByteString getEndpointsBytes(int index) { + return endpoints_.getByteString(index); + } + + /** + * + * + *
+     * Output only. Endpoints, required, must not be empty.
+     * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The endpoints to set. + * @return This builder for chaining. + */ + public Builder setEndpoints(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Endpoints, required, must not be empty.
+     * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The endpoints to add. + * @return This builder for chaining. + */ + public Builder addEndpoints(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Endpoints, required, must not be empty.
+     * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The endpoints to add. + * @return This builder for chaining. + */ + public Builder addAllEndpoints(java.lang.Iterable values) { + ensureEndpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endpoints_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Endpoints, required, must not be empty.
+     * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEndpoints() { + endpoints_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Endpoints, required, must not be empty.
+     * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the endpoints to add. + * @return This builder for chaining. + */ + public Builder addEndpointsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEndpointsIsMutable(); + endpoints_.add(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.cloud.biglake.v1.IcebergCatalogConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergCatalogConfig) + private static final com.google.cloud.biglake.v1.IcebergCatalogConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.IcebergCatalogConfig(); + } + + public static com.google.cloud.biglake.v1.IcebergCatalogConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IcebergCatalogConfig 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.cloud.biglake.v1.IcebergCatalogConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogConfigOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogConfigOrBuilder.java new file mode 100644 index 000000000000..1291fa65a1e9 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogConfigOrBuilder.java @@ -0,0 +1,231 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface IcebergCatalogConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.IcebergCatalogConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Properties that should be used to override client
+   * configuration; applied after defaults and client configuration. Required,
+   * even if empty.
+   * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getOverridesCount(); + + /** + * + * + *
+   * Output only. Properties that should be used to override client
+   * configuration; applied after defaults and client configuration. Required,
+   * even if empty.
+   * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsOverrides(java.lang.String key); + + /** Use {@link #getOverridesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getOverrides(); + + /** + * + * + *
+   * Output only. Properties that should be used to override client
+   * configuration; applied after defaults and client configuration. Required,
+   * even if empty.
+   * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getOverridesMap(); + + /** + * + * + *
+   * Output only. Properties that should be used to override client
+   * configuration; applied after defaults and client configuration. Required,
+   * even if empty.
+   * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + java.lang.String getOverridesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Output only. Properties that should be used to override client
+   * configuration; applied after defaults and client configuration. Required,
+   * even if empty.
+   * 
+ * + * map<string, string> overrides = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getOverridesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Properties that should be used as default configuration;
+   * applied before client configuration. Required, even if empty.
+   * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDefaultsCount(); + + /** + * + * + *
+   * Output only. Properties that should be used as default configuration;
+   * applied before client configuration. Required, even if empty.
+   * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsDefaults(java.lang.String key); + + /** Use {@link #getDefaultsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getDefaults(); + + /** + * + * + *
+   * Output only. Properties that should be used as default configuration;
+   * applied before client configuration. Required, even if empty.
+   * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getDefaultsMap(); + + /** + * + * + *
+   * Output only. Properties that should be used as default configuration;
+   * applied before client configuration. Required, even if empty.
+   * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + java.lang.String getDefaultsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Output only. Properties that should be used as default configuration;
+   * applied before client configuration. Required, even if empty.
+   * 
+ * + * map<string, string> defaults = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getDefaultsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Endpoints, required, must not be empty.
+   * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the endpoints. + */ + java.util.List getEndpointsList(); + + /** + * + * + *
+   * Output only. Endpoints, required, must not be empty.
+   * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of endpoints. + */ + int getEndpointsCount(); + + /** + * + * + *
+   * Output only. Endpoints, required, must not be empty.
+   * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The endpoints at the given index. + */ + java.lang.String getEndpoints(int index); + + /** + * + * + *
+   * Output only. Endpoints, required, must not be empty.
+   * 
+ * + * repeated string endpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the endpoints at the given index. + */ + com.google.protobuf.ByteString getEndpointsBytes(int index); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogOrBuilder.java new file mode 100644 index 000000000000..f38ecebb3e86 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogOrBuilder.java @@ -0,0 +1,336 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface IcebergCatalogOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.IcebergCatalog) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
+   * This field is immutable.
+   * This field is ignored for CreateIcebergCatalog.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
+   * This field is immutable.
+   * This field is ignored for CreateIcebergCatalog.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The credential mode for the catalog.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for credentialMode. + */ + int getCredentialModeValue(); + + /** + * + * + *
+   * Optional. The credential mode for the catalog.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The credentialMode. + */ + com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode getCredentialMode(); + + /** + * + * + *
+   * Output only. The service account used for credential vending, output only.
+   * Might be empty if Credential vending was never enabled for the catalog.
+   * 
+ * + * + * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The biglakeServiceAccount. + */ + java.lang.String getBiglakeServiceAccount(); + + /** + * + * + *
+   * Output only. The service account used for credential vending, output only.
+   * Might be empty if Credential vending was never enabled for the catalog.
+   * 
+ * + * + * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for biglakeServiceAccount. + */ + com.google.protobuf.ByteString getBiglakeServiceAccountBytes(); + + /** + * + * + *
+   * Required. The catalog type. Required for CreateIcebergCatalog.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for catalogType. + */ + int getCatalogTypeValue(); + + /** + * + * + *
+   * Required. The catalog type. Required for CreateIcebergCatalog.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogType. + */ + com.google.cloud.biglake.v1.IcebergCatalog.CatalogType getCatalogType(); + + /** + * + * + *
+   * Optional. The default location for the catalog. For the Google Cloud
+   * Storage Bucket catalog this is output only.
+   * 
+ * + * + * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultLocation. + */ + java.lang.String getDefaultLocation(); + + /** + * + * + *
+   * Optional. The default location for the catalog. For the Google Cloud
+   * Storage Bucket catalog this is output only.
+   * 
+ * + * + * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for defaultLocation. + */ + com.google.protobuf.ByteString getDefaultLocationBytes(); + + /** + * + * + *
+   * Output only. The GCP region(s) where the catalog metadata is stored.
+   * This will contain one value for all locations, except for the catalogs that
+   * are configured to use custom dual region buckets.
+   * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the catalogRegions. + */ + java.util.List getCatalogRegionsList(); + + /** + * + * + *
+   * Output only. The GCP region(s) where the catalog metadata is stored.
+   * This will contain one value for all locations, except for the catalogs that
+   * are configured to use custom dual region buckets.
+   * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of catalogRegions. + */ + int getCatalogRegionsCount(); + + /** + * + * + *
+   * Output only. The GCP region(s) where the catalog metadata is stored.
+   * This will contain one value for all locations, except for the catalogs that
+   * are configured to use custom dual region buckets.
+   * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The catalogRegions at the given index. + */ + java.lang.String getCatalogRegions(int index); + + /** + * + * + *
+   * Output only. The GCP region(s) where the catalog metadata is stored.
+   * This will contain one value for all locations, except for the catalogs that
+   * are configured to use custom dual region buckets.
+   * 
+ * + * + * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the catalogRegions at the given index. + */ + com.google.protobuf.ByteString getCatalogRegionsBytes(int index); + + /** + * + * + *
+   * Output only. When the catalog was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. When the catalog was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. When the catalog was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the catalog was last updated.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. When the catalog was last updated.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. When the catalog was last updated.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespace.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespace.java new file mode 100644 index 000000000000..fef8afd10cac --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespace.java @@ -0,0 +1,1097 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The namespace object to create.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.IcebergNamespace} + */ +public final class IcebergNamespace extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.IcebergNamespace) + IcebergNamespaceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use IcebergNamespace.newBuilder() to construct. + private IcebergNamespace(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IcebergNamespace() { + namespace_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IcebergNamespace(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergNamespace_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergNamespace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.IcebergNamespace.class, + com.google.cloud.biglake.v1.IcebergNamespace.Builder.class); + } + + public static final int NAMESPACE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList namespace_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. The name of the namespace.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the namespace. + */ + public com.google.protobuf.ProtocolStringList getNamespaceList() { + return namespace_; + } + + /** + * + * + *
+   * Required. The name of the namespace.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of namespace. + */ + public int getNamespaceCount() { + return namespace_.size(); + } + + /** + * + * + *
+   * Required. The name of the namespace.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The namespace at the given index. + */ + public java.lang.String getNamespace(int index) { + return namespace_.get(index); + } + + /** + * + * + *
+   * Required. The name of the namespace.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the namespace at the given index. + */ + public com.google.protobuf.ByteString getNamespaceBytes(int index) { + return namespace_.getByteString(index); + } + + public static final int PROPERTIES_FIELD_NUMBER = 2; + + private static final class PropertiesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergNamespace_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + + /** + * + * + *
+   * Optional. The optional properties of the namespace.
+   * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProperties().getMap().containsKey(key); + } + + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + + /** + * + * + *
+   * Optional. The optional properties of the namespace.
+   * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getPropertiesMap() { + return internalGetProperties().getMap(); + } + + /** + * + * + *
+   * Optional. The optional properties of the namespace.
+   * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getPropertiesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. The optional properties of the namespace.
+   * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().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 { + for (int i = 0; i < namespace_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 2); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < namespace_.size(); i++) { + dataSize += computeStringSizeNoTag(namespace_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamespaceList().size(); + } + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties__); + } + 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.cloud.biglake.v1.IcebergNamespace)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.IcebergNamespace other = + (com.google.cloud.biglake.v1.IcebergNamespace) obj; + + if (!getNamespaceList().equals(other.getNamespaceList())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) 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 (getNamespaceCount() > 0) { + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespaceList().hashCode(); + } + if (!internalGetProperties().getMap().isEmpty()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetProperties().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.IcebergNamespace parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.IcebergNamespace parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.IcebergNamespace parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.IcebergNamespace 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.cloud.biglake.v1.IcebergNamespace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.IcebergNamespace parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.IcebergNamespace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.IcebergNamespace 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.cloud.biglake.v1.IcebergNamespace parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.IcebergNamespace 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.cloud.biglake.v1.IcebergNamespace parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.IcebergNamespace 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.cloud.biglake.v1.IcebergNamespace 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 namespace object to create.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.IcebergNamespace} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.IcebergNamespace) + com.google.cloud.biglake.v1.IcebergNamespaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergNamespace_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergNamespace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.IcebergNamespace.class, + com.google.cloud.biglake.v1.IcebergNamespace.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.IcebergNamespace.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + namespace_ = com.google.protobuf.LazyStringArrayList.emptyList(); + internalGetMutableProperties().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergNamespace_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergNamespace getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.IcebergNamespace.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergNamespace build() { + com.google.cloud.biglake.v1.IcebergNamespace result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergNamespace buildPartial() { + com.google.cloud.biglake.v1.IcebergNamespace result = + new com.google.cloud.biglake.v1.IcebergNamespace(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.IcebergNamespace result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + namespace_.makeImmutable(); + result.namespace_ = namespace_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.properties_ = internalGetProperties(); + result.properties_.makeImmutable(); + } + } + + @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.cloud.biglake.v1.IcebergNamespace) { + return mergeFrom((com.google.cloud.biglake.v1.IcebergNamespace) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.IcebergNamespace other) { + if (other == com.google.cloud.biglake.v1.IcebergNamespace.getDefaultInstance()) return this; + if (!other.namespace_.isEmpty()) { + if (namespace_.isEmpty()) { + namespace_ = other.namespace_; + bitField0_ |= 0x00000001; + } else { + ensureNamespaceIsMutable(); + namespace_.addAll(other.namespace_); + } + onChanged(); + } + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + bitField0_ |= 0x00000002; + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamespaceIsMutable(); + namespace_.add(s); + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + 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.protobuf.LazyStringArrayList namespace_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamespaceIsMutable() { + if (!namespace_.isModifiable()) { + namespace_ = new com.google.protobuf.LazyStringArrayList(namespace_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Required. The name of the namespace.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the namespace. + */ + public com.google.protobuf.ProtocolStringList getNamespaceList() { + namespace_.makeImmutable(); + return namespace_; + } + + /** + * + * + *
+     * Required. The name of the namespace.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of namespace. + */ + public int getNamespaceCount() { + return namespace_.size(); + } + + /** + * + * + *
+     * Required. The name of the namespace.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The namespace at the given index. + */ + public java.lang.String getNamespace(int index) { + return namespace_.get(index); + } + + /** + * + * + *
+     * Required. The name of the namespace.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the namespace at the given index. + */ + public com.google.protobuf.ByteString getNamespaceBytes(int index) { + return namespace_.getByteString(index); + } + + /** + * + * + *
+     * Required. The name of the namespace.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespace(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespaceIsMutable(); + namespace_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the namespace.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The namespace to add. + * @return This builder for chaining. + */ + public Builder addNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespaceIsMutable(); + namespace_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the namespace.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The namespace to add. + * @return This builder for chaining. + */ + public Builder addAllNamespace(java.lang.Iterable values) { + ensureNamespaceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespace_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the namespace.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNamespace() { + namespace_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the namespace.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the namespace to add. + * @return This builder for chaining. + */ + public Builder addNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamespaceIsMutable(); + namespace_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField + internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + private com.google.protobuf.MapField + internalGetMutableProperties() { + if (properties_ == null) { + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + } + if (!properties_.isMutable()) { + properties_ = properties_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + + /** + * + * + *
+     * Optional. The optional properties of the namespace.
+     * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProperties().getMap().containsKey(key); + } + + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + + /** + * + * + *
+     * Optional. The optional properties of the namespace.
+     * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getPropertiesMap() { + return internalGetProperties().getMap(); + } + + /** + * + * + *
+     * Optional. The optional properties of the namespace.
+     * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getPropertiesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The optional properties of the namespace.
+     * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableProperties().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. The optional properties of the namespace.
+     * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableProperties() { + bitField0_ |= 0x00000002; + return internalGetMutableProperties().getMutableMap(); + } + + /** + * + * + *
+     * Optional. The optional properties of the namespace.
+     * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putProperties(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableProperties().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Optional. The optional properties of the namespace.
+     * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + 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.cloud.biglake.v1.IcebergNamespace) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergNamespace) + private static final com.google.cloud.biglake.v1.IcebergNamespace DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.IcebergNamespace(); + } + + public static com.google.cloud.biglake.v1.IcebergNamespace getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IcebergNamespace 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.cloud.biglake.v1.IcebergNamespace getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespaceOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespaceOrBuilder.java new file mode 100644 index 000000000000..a3f203eaa639 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespaceOrBuilder.java @@ -0,0 +1,148 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface IcebergNamespaceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.IcebergNamespace) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the namespace.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the namespace. + */ + java.util.List getNamespaceList(); + + /** + * + * + *
+   * Required. The name of the namespace.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of namespace. + */ + int getNamespaceCount(); + + /** + * + * + *
+   * Required. The name of the namespace.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The namespace at the given index. + */ + java.lang.String getNamespace(int index); + + /** + * + * + *
+   * Required. The name of the namespace.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the namespace at the given index. + */ + com.google.protobuf.ByteString getNamespaceBytes(int index); + + /** + * + * + *
+   * Optional. The optional properties of the namespace.
+   * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPropertiesCount(); + + /** + * + * + *
+   * Optional. The optional properties of the namespace.
+   * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsProperties(java.lang.String key); + + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getProperties(); + + /** + * + * + *
+   * Optional. The optional properties of the namespace.
+   * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getPropertiesMap(); + + /** + * + * + *
+   * Optional. The optional properties of the namespace.
+   * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getPropertiesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. The optional properties of the namespace.
+   * 
+ * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getPropertiesOrThrow(java.lang.String key); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespaceUpdate.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespaceUpdate.java new file mode 100644 index 000000000000..67e944d89c57 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespaceUpdate.java @@ -0,0 +1,1084 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `UpdateIcebergNamespace` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.IcebergNamespaceUpdate} + */ +public final class IcebergNamespaceUpdate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.IcebergNamespaceUpdate) + IcebergNamespaceUpdateOrBuilder { + private static final long serialVersionUID = 0L; + + // Use IcebergNamespaceUpdate.newBuilder() to construct. + private IcebergNamespaceUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IcebergNamespaceUpdate() { + removals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IcebergNamespaceUpdate(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergNamespaceUpdate_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetUpdates(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergNamespaceUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.IcebergNamespaceUpdate.class, + com.google.cloud.biglake.v1.IcebergNamespaceUpdate.Builder.class); + } + + public static final int REMOVALS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList removals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Keys of the properties to remove.
+   * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the removals. + */ + public com.google.protobuf.ProtocolStringList getRemovalsList() { + return removals_; + } + + /** + * + * + *
+   * Optional. Keys of the properties to remove.
+   * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of removals. + */ + public int getRemovalsCount() { + return removals_.size(); + } + + /** + * + * + *
+   * Optional. Keys of the properties to remove.
+   * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The removals at the given index. + */ + public java.lang.String getRemovals(int index) { + return removals_.get(index); + } + + /** + * + * + *
+   * Optional. Keys of the properties to remove.
+   * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the removals at the given index. + */ + public com.google.protobuf.ByteString getRemovalsBytes(int index) { + return removals_.getByteString(index); + } + + public static final int UPDATES_FIELD_NUMBER = 3; + + private static final class UpdatesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergNamespaceUpdate_UpdatesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField updates_; + + private com.google.protobuf.MapField internalGetUpdates() { + if (updates_ == null) { + return com.google.protobuf.MapField.emptyMapField(UpdatesDefaultEntryHolder.defaultEntry); + } + return updates_; + } + + public int getUpdatesCount() { + return internalGetUpdates().getMap().size(); + } + + /** + * + * + *
+   * Optional. List of properties to update or add.
+   * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsUpdates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetUpdates().getMap().containsKey(key); + } + + /** Use {@link #getUpdatesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUpdates() { + return getUpdatesMap(); + } + + /** + * + * + *
+   * Optional. List of properties to update or add.
+   * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getUpdatesMap() { + return internalGetUpdates().getMap(); + } + + /** + * + * + *
+   * Optional. List of properties to update or add.
+   * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getUpdatesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUpdates().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. List of properties to update or add.
+   * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getUpdatesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUpdates().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 { + for (int i = 0; i < removals_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, removals_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetUpdates(), UpdatesDefaultEntryHolder.defaultEntry, 3); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < removals_.size(); i++) { + dataSize += computeStringSizeNoTag(removals_.getRaw(i)); + } + size += dataSize; + size += 1 * getRemovalsList().size(); + } + for (java.util.Map.Entry entry : + internalGetUpdates().getMap().entrySet()) { + com.google.protobuf.MapEntry updates__ = + UpdatesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, updates__); + } + 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.cloud.biglake.v1.IcebergNamespaceUpdate)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.IcebergNamespaceUpdate other = + (com.google.cloud.biglake.v1.IcebergNamespaceUpdate) obj; + + if (!getRemovalsList().equals(other.getRemovalsList())) return false; + if (!internalGetUpdates().equals(other.internalGetUpdates())) 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 (getRemovalsCount() > 0) { + hash = (37 * hash) + REMOVALS_FIELD_NUMBER; + hash = (53 * hash) + getRemovalsList().hashCode(); + } + if (!internalGetUpdates().getMap().isEmpty()) { + hash = (37 * hash) + UPDATES_FIELD_NUMBER; + hash = (53 * hash) + internalGetUpdates().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.IcebergNamespaceUpdate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.IcebergNamespaceUpdate parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.IcebergNamespaceUpdate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.IcebergNamespaceUpdate 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.cloud.biglake.v1.IcebergNamespaceUpdate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.IcebergNamespaceUpdate parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.IcebergNamespaceUpdate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.IcebergNamespaceUpdate 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.cloud.biglake.v1.IcebergNamespaceUpdate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.IcebergNamespaceUpdate 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.cloud.biglake.v1.IcebergNamespaceUpdate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.IcebergNamespaceUpdate 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.cloud.biglake.v1.IcebergNamespaceUpdate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `UpdateIcebergNamespace` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.IcebergNamespaceUpdate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.IcebergNamespaceUpdate) + com.google.cloud.biglake.v1.IcebergNamespaceUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergNamespaceUpdate_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetUpdates(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetMutableUpdates(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergNamespaceUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.IcebergNamespaceUpdate.class, + com.google.cloud.biglake.v1.IcebergNamespaceUpdate.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.IcebergNamespaceUpdate.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + removals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + internalGetMutableUpdates().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_IcebergNamespaceUpdate_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergNamespaceUpdate getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.IcebergNamespaceUpdate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergNamespaceUpdate build() { + com.google.cloud.biglake.v1.IcebergNamespaceUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergNamespaceUpdate buildPartial() { + com.google.cloud.biglake.v1.IcebergNamespaceUpdate result = + new com.google.cloud.biglake.v1.IcebergNamespaceUpdate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.IcebergNamespaceUpdate result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + removals_.makeImmutable(); + result.removals_ = removals_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updates_ = internalGetUpdates(); + result.updates_.makeImmutable(); + } + } + + @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.cloud.biglake.v1.IcebergNamespaceUpdate) { + return mergeFrom((com.google.cloud.biglake.v1.IcebergNamespaceUpdate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.IcebergNamespaceUpdate other) { + if (other == com.google.cloud.biglake.v1.IcebergNamespaceUpdate.getDefaultInstance()) + return this; + if (!other.removals_.isEmpty()) { + if (removals_.isEmpty()) { + removals_ = other.removals_; + bitField0_ |= 0x00000001; + } else { + ensureRemovalsIsMutable(); + removals_.addAll(other.removals_); + } + onChanged(); + } + internalGetMutableUpdates().mergeFrom(other.internalGetUpdates()); + bitField0_ |= 0x00000002; + 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 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRemovalsIsMutable(); + removals_.add(s); + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry updates__ = + input.readMessage( + UpdatesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableUpdates() + .getMutableMap() + .put(updates__.getKey(), updates__.getValue()); + bitField0_ |= 0x00000002; + 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.protobuf.LazyStringArrayList removals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRemovalsIsMutable() { + if (!removals_.isModifiable()) { + removals_ = new com.google.protobuf.LazyStringArrayList(removals_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Optional. Keys of the properties to remove.
+     * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the removals. + */ + public com.google.protobuf.ProtocolStringList getRemovalsList() { + removals_.makeImmutable(); + return removals_; + } + + /** + * + * + *
+     * Optional. Keys of the properties to remove.
+     * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of removals. + */ + public int getRemovalsCount() { + return removals_.size(); + } + + /** + * + * + *
+     * Optional. Keys of the properties to remove.
+     * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The removals at the given index. + */ + public java.lang.String getRemovals(int index) { + return removals_.get(index); + } + + /** + * + * + *
+     * Optional. Keys of the properties to remove.
+     * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the removals at the given index. + */ + public com.google.protobuf.ByteString getRemovalsBytes(int index) { + return removals_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Keys of the properties to remove.
+     * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The removals to set. + * @return This builder for chaining. + */ + public Builder setRemovals(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRemovalsIsMutable(); + removals_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Keys of the properties to remove.
+     * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The removals to add. + * @return This builder for chaining. + */ + public Builder addRemovals(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRemovalsIsMutable(); + removals_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Keys of the properties to remove.
+     * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The removals to add. + * @return This builder for chaining. + */ + public Builder addAllRemovals(java.lang.Iterable values) { + ensureRemovalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, removals_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Keys of the properties to remove.
+     * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRemovals() { + removals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Keys of the properties to remove.
+     * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the removals to add. + * @return This builder for chaining. + */ + public Builder addRemovalsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRemovalsIsMutable(); + removals_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.MapField updates_; + + private com.google.protobuf.MapField internalGetUpdates() { + if (updates_ == null) { + return com.google.protobuf.MapField.emptyMapField(UpdatesDefaultEntryHolder.defaultEntry); + } + return updates_; + } + + private com.google.protobuf.MapField + internalGetMutableUpdates() { + if (updates_ == null) { + updates_ = com.google.protobuf.MapField.newMapField(UpdatesDefaultEntryHolder.defaultEntry); + } + if (!updates_.isMutable()) { + updates_ = updates_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return updates_; + } + + public int getUpdatesCount() { + return internalGetUpdates().getMap().size(); + } + + /** + * + * + *
+     * Optional. List of properties to update or add.
+     * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsUpdates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetUpdates().getMap().containsKey(key); + } + + /** Use {@link #getUpdatesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUpdates() { + return getUpdatesMap(); + } + + /** + * + * + *
+     * Optional. List of properties to update or add.
+     * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getUpdatesMap() { + return internalGetUpdates().getMap(); + } + + /** + * + * + *
+     * Optional. List of properties to update or add.
+     * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getUpdatesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUpdates().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. List of properties to update or add.
+     * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getUpdatesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUpdates().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearUpdates() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableUpdates().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. List of properties to update or add.
+     * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeUpdates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableUpdates().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableUpdates() { + bitField0_ |= 0x00000002; + return internalGetMutableUpdates().getMutableMap(); + } + + /** + * + * + *
+     * Optional. List of properties to update or add.
+     * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putUpdates(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableUpdates().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Optional. List of properties to update or add.
+     * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllUpdates(java.util.Map values) { + internalGetMutableUpdates().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + 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.cloud.biglake.v1.IcebergNamespaceUpdate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergNamespaceUpdate) + private static final com.google.cloud.biglake.v1.IcebergNamespaceUpdate DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.IcebergNamespaceUpdate(); + } + + public static com.google.cloud.biglake.v1.IcebergNamespaceUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IcebergNamespaceUpdate 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.cloud.biglake.v1.IcebergNamespaceUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespaceUpdateOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespaceUpdateOrBuilder.java new file mode 100644 index 000000000000..5533e2335ab0 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergNamespaceUpdateOrBuilder.java @@ -0,0 +1,143 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface IcebergNamespaceUpdateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.IcebergNamespaceUpdate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Keys of the properties to remove.
+   * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the removals. + */ + java.util.List getRemovalsList(); + + /** + * + * + *
+   * Optional. Keys of the properties to remove.
+   * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of removals. + */ + int getRemovalsCount(); + + /** + * + * + *
+   * Optional. Keys of the properties to remove.
+   * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The removals at the given index. + */ + java.lang.String getRemovals(int index); + + /** + * + * + *
+   * Optional. Keys of the properties to remove.
+   * 
+ * + * repeated string removals = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the removals at the given index. + */ + com.google.protobuf.ByteString getRemovalsBytes(int index); + + /** + * + * + *
+   * Optional. List of properties to update or add.
+   * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getUpdatesCount(); + + /** + * + * + *
+   * Optional. List of properties to update or add.
+   * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsUpdates(java.lang.String key); + + /** Use {@link #getUpdatesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getUpdates(); + + /** + * + * + *
+   * Optional. List of properties to update or add.
+   * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getUpdatesMap(); + + /** + * + * + *
+   * Optional. List of properties to update or add.
+   * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getUpdatesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. List of properties to update or add.
+   * 
+ * + * map<string, string> updates = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getUpdatesOrThrow(java.lang.String key); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergRestCatalogProto.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergRestCatalogProto.java new file mode 100644 index 000000000000..114631a8de39 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergRestCatalogProto.java @@ -0,0 +1,787 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public final class IcebergRestCatalogProto { + private IcebergRestCatalogProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_RegisterIcebergTableRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_RegisterIcebergTableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_IcebergCatalog_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_IcebergCatalog_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_CreateIcebergCatalogRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_CreateIcebergCatalogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_DeleteIcebergCatalogRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_DeleteIcebergCatalogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_UpdateIcebergCatalogRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_UpdateIcebergCatalogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_GetIcebergCatalogRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_GetIcebergCatalogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_ListIcebergCatalogsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_ListIcebergCatalogsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_ListIcebergCatalogsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_ListIcebergCatalogsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_FailoverIcebergCatalogResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_UpdateIcebergTableRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_UpdateIcebergTableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_GetIcebergTableRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_GetIcebergTableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_DeleteIcebergTableRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_DeleteIcebergTableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_CreateIcebergTableRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_CreateIcebergTableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_TableIdentifier_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_TableIdentifier_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_IcebergNamespaceUpdate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_IcebergNamespaceUpdate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_IcebergNamespaceUpdate_UpdatesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_IcebergNamespaceUpdate_UpdatesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_DeleteIcebergNamespaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_DeleteIcebergNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_IcebergNamespace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_IcebergNamespace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_IcebergNamespace_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_IcebergNamespace_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_CreateIcebergNamespaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_CreateIcebergNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_GetIcebergCatalogConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_GetIcebergCatalogConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_OverridesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_OverridesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_DefaultsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_IcebergCatalogConfig_DefaultsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_GetIcebergNamespaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_GetIcebergNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_ListIcebergNamespacesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_ListIcebergNamespacesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_ListIcebergNamespacesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_ListIcebergNamespacesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_StorageCredential_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_StorageCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_StorageCredential_ConfigEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_StorageCredential_ConfigEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_biglake_v1_LoadIcebergTableCredentialsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_biglake_v1_LoadIcebergTableCredentialsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "2google/cloud/biglake/v1/iceberg_rest_c" + + "atalog.proto\022\027google.cloud.biglake.v1\032\034g" + + "oogle/api/annotations.proto\032\027google/api/" + + "client.proto\032\037google/api/field_behavior." + + "proto\032\031google/api/httpbody.proto\032\031google" + + "/api/resource.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.pro" + + "to\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\265\001\n" + + "\033RegisterIcebergTableRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " biglake.googleapis.com/Namespace\022\021\n" + + "\004name\030\002 \001(\tB\003\340A\002\0221\n" + + "\021metadata_location\030\003 \001(\tB\003\340A\002R\021metadata-location\022\026\n" + + "\toverwrite\030\004 \001(\tB\003\340A\001\"\257\006\n" + + "\016IcebergCatalog\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022e\n" + + "\017credential_mode\030\002 \001(\01626.googl" + + "e.cloud.biglake.v1.IcebergCatalog.CredentialModeB\003\340A\001R\017credential-mode\022=\n" + + "\027biglake_service_account\030\003 \001(" + + "\tB\003\340A\003R\027biglake-service-account\022\\\n" + + "\014catalog_type\030\004 \001(\01623.go" + + "ogle.cloud.biglake.v1.IcebergCatalog.CatalogTypeB\003\340A\002R\014catalog-type\022/\n" + + "\020default_location\030\005 \001(\tB\003\340A\001R\020default-location\022-\n" + + "\017catalog_regions\030\006 \003(\tB\003\340A\003R\017catalog-regions\022A\n" + + "\013create_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003R\013create-time\022A\n" + + "\013update_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003R\013update-time\"H\n" + + "\013CatalogType\022\034\n" + + "\030CATALOG_TYPE_UNSPECIFIED\020\000\022\033\n" + + "\027CATALOG_TYPE_GCS_BUCKET\020\001\"w\n" + + "\016CredentialMode\022\037\n" + + "\033CREDENTIAL_MODE_UNSPECIFIED\020\000\022\034\n" + + "\030CREDENTIAL_MODE_END_USER\020\001\022&\n" + + "\"CREDENTIAL_MODE_VENDED_CREDENTIALS\020\002:]\352AZ\n" + + "\036biglake.googleapis.co" + + "m/Catalog\022%projects/{project}/catalogs/{catalog}*\010catalogs2\007catalog\"\336\001\n" + + "\033CreateIcebergCatalogRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\0223\n" + + "\022iceberg_catalog_id\030\003 \001(\tB\003\340A\002R\022iceberg-catalog-id\022E\n" + + "\017iceberg_catalog\030\002" + + " \001(\0132\'.google.cloud.biglake.v1.IcebergCatalogB\003\340A\002\"S\n" + + "\033DeleteIcebergCatalogRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036biglake.googleapis.com/Catalog\"\232\001\n" + + "\033UpdateIcebergCatalogRequest\022E\n" + + "\017iceberg_catalog\030\001 \001(\0132\'.goo" + + "gle.cloud.biglake.v1.IcebergCatalogB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"P\n" + + "\030GetIcebergCatalogRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036biglake.googleapis.com/Catalog\"\331\002\n" + + "\032ListIcebergCatalogsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022R\n" + + "\004view\030\002 \001(\0162?.google.cloud.biglake.v1.Lis" + + "tIcebergCatalogsRequest.CatalogViewB\003\340A\001\022!\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001R\tpage-size\022#\n\n" + + "page_token\030\004 \001(\tB\003\340A\001R\n" + + "page-token\"Z\n" + + "\013CatalogView\022\034\n" + + "\030CATALOG_VIEW_UNSPECIFIED\020\000\022\026\n" + + "\022CATALOG_VIEW_BASIC\020\001\022\025\n" + + "\021CATALOG_VIEW_FULL\020\002\"\300\001\n" + + "\033ListIcebergCatalogsResponse\022X\n" + + "\020iceberg_catalogs\030\001 \003(\0132\'.google.cloud.bi" + + "glake.v1.IcebergCatalogB\003\340A\003R\020iceberg-catalogs\022-\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\003R\017next-page-token\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\003\"\274\001\n" + + "\035FailoverIcebergCatalogRequest\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\034\n" + + "\017primary_replica\030\002 \001(\tB\003\340A\002\022\032\n\r" + + "validate_only\030\003 \001(\010B\003\340A\001\022N\n" + + "%conditional_failover_replication_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"[\n" + + "\036FailoverIcebergCatalogResponse\0229\n" + + "\020replication_time\030\001" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\206\001\n" + + "\031UpdateIcebergTableRequest\0222\n" + + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034biglake.googleapis.com/Table\0225\n" + + "\thttp_body\030\002 \001(\0132\024.google.api.HttpBodyB\003\340A\002R\007updates\"d\n" + + "\026GetIcebergTableRequest\0222\n" + + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034biglake.googleapis.com/Table\022\026\n" + + "\tsnapshots\030\002 \001(\tB\003\340A\001\"m\n" + + "\031DeleteIcebergTableRequest\0222\n" + + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034biglake.googleapis.com/Table\022\034\n" + + "\017purge_requested\030\002 \001(\010B\003\340A\001\"\203\001\n" + + "\031CreateIcebergTableRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " biglake.googleapis.com/Namespace\022,\n" + + "\thttp_body\030\003 \001(\0132\024.google.api.HttpBodyB\003\340A\002\"\217\001\n" + + "\"ListIcebergTableIdentifiersRequest\022\027\n\n" + + "page_token\030\001 \001(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\0228\n" + + "\006parent\030\003 \001(\tB(\340A\002\372A\"\n" + + " biglake.googleapis.com/Namespace\"Y\n" + + "\017TableIdentifier\0228\n" + + "\tnamespace\030\001 \003(\tB%\372A\"\n" + + " biglake.googleapis.com/Namespace\022\014\n" + + "\004name\030\002 \001(\t\"\230\001\n" + + "#ListIcebergTableIdentifiersResponse\022B\n" + + "\013identifiers\030\001" + + " \003(\0132(.google.cloud.biglake.v1.TableIdentifierB\003\340A\003\022-\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\003R\017next-page-token\"\263\001\n" + + "\026IcebergNamespaceUpdate\022\025\n" + + "\010removals\030\002 \003(\tB\003\340A\001\022R\n" + + "\007updates\030\003 \003(\0132<.google.clou" + + "d.biglake.v1.IcebergNamespaceUpdate.UpdatesEntryB\003\340A\001\032.\n" + + "\014UpdatesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\257\001\n" + + "\035UpdateIcebergNamespaceRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " biglake.googleapis.com/Namespace\022V\n" + + "\030iceberg_namespace_update\030\002 \001(\0132/.google.cloud" + + ".biglake.v1.IcebergNamespaceUpdateB\003\340A\002\"i\n" + + "\036UpdateIcebergNamespaceResponse\022\024\n" + + "\007removed\030\001 \003(\tB\003\340A\003\022\033\n" + + "\007updated\030\002 \003(\tB\003\340A\003R\005added\022\024\n" + + "\007missing\030\003 \003(\tB\003\340A\003\"W\n" + + "\035DeleteIcebergNamespaceRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " biglake.googleapis.com/Namespace\"\261\001\n" + + "\020IcebergNamespace\022\026\n" + + "\tnamespace\030\001 \003(\tB\003\340A\002\022R\n\n" + + "properties\030\002 \003(\01329.google.cloud.bigl" + + "ake.v1.IcebergNamespace.PropertiesEntryB\003\340A\001\0321\n" + + "\017PropertiesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\255\001\n" + + "\035CreateIcebergNamespaceRequest\0226\n" + + "\006parent\030\001 \001(\tB&\340A\002\372A \n" + + "\036biglake.googleapis.com/Catalog\022T\n" + + "\021iceberg_namespace\030\002" + + " \001(\0132).google.cloud.biglake.v1.IcebergNamespaceB\003\340A\002R\tnamespace\"8\n" + + "\036GetIcebergCatalogConfigRequest\022\026\n" + + "\twarehouse\030\001 \001(\tB\003\340A\002\"\273\002\n" + + "\024IcebergCatalogConfig\022T\n" + + "\toverrides\030\001 \003(\0132<.google.cloud.biglake.v1." + + "IcebergCatalogConfig.OverridesEntryB\003\340A\003\022R\n" + + "\010defaults\030\002 \003(\0132;.google.cloud.biglak" + + "e.v1.IcebergCatalogConfig.DefaultsEntryB\003\340A\003\022\026\n" + + "\tendpoints\030\003 \003(\tB\003\340A\003\0320\n" + + "\016OverridesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032/\n\r" + + "DefaultsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"T\n" + + "\032GetIcebergNamespaceRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " biglake.googleapis.com/Namespace\"}\n" + + "\034ListIcebergNamespacesRequest\022\027\n\n" + + "page_token\030\001 \001(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "api_parent\030\003 \001(\tB\003\340A\002\022\023\n" + + "\006parent\030\004 \001(\tB\003\340A\001\"y\n" + + "\035ListIcebergNamespacesResponse\022.\n\n" + + "namespaces\030\001 \003(\0132\032.google.protobuf.ListValue\022(\n" + + "\017next_page_token\030\002 \001(\tR\017next-page-token\"\232\001\n" + + "\021StorageCredential\022\016\n" + + "\006prefix\030\001 \001(\t\022F\n" + + "\006config\030\002 \003(\01326." + + "google.cloud.biglake.v1.StorageCredential.ConfigEntry\032-\n" + + "\013ConfigEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\203\001\n" + + "#LoadIcebergTableCredentialsResponse\022\\\n" + + "\023storage_credentials\030\001" + + " \003(\0132*.google.cloud.biglake.v1.StorageCredentialR\023storage-credentials2\202$\n" + + "\025IcebergCatalogService\022\254\001\n" + + "\027GetIcebergCatalogConfig\0227.google.cloud.biglake.v1.GetIc" + + "ebergCatalogConfigRequest\032-.google.cloud" + + ".biglake.v1.IcebergCatalogConfig\")\202\323\344\223\002#\022!/iceberg/v1/restcatalog/v1/config\022\345\001\n" + + "\025ListIcebergNamespaces\0225.google.cloud.big" + + "lake.v1.ListIcebergNamespacesRequest\0326.g" + + "oogle.cloud.biglake.v1.ListIcebergNamespacesResponse\"]\332A\n" + + "api_parent\202\323\344\223\002J\022H/iceb" + + "erg/v1/restcatalog/v1/{api_parent=projects/*/catalogs/*}/namespaces\022s\n" + + "\033CheckIcebergNamespaceExists\0223.google.cloud.biglak" + + "e.v1.GetIcebergNamespaceRequest\032\026.google.protobuf.Empty\"\007\332A\004name\022\312\001\n" + + "\023GetIcebergNamespace\0223.google.cloud.biglake.v1.GetIc" + + "ebergNamespaceRequest\032).google.cloud.big" + + "lake.v1.IcebergNamespace\"S\332A\004name\202\323\344\223\002F\022" + + "D/iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*}\022\367\001\n" + + "\026CreateIcebergNamespace\0226.google.cloud.biglake." + + "v1.CreateIcebergNamespaceRequest\032).googl" + + "e.cloud.biglake.v1.IcebergNamespace\"z\332A\030" + + "parent,iceberg_namespace\202\323\344\223\002Y\"D/iceberg" + + "/v1/restcatalog/v1/{parent=projects/*/ca" + + "talogs/*}/namespaces:\021iceberg_namespace\022\275\001\n" + + "\026DeleteIcebergNamespace\0226.google.cloud.biglake.v1.DeleteIcebergNamespaceReque" + + "st\032\026.google.protobuf.Empty\"S\332A\004name\202\323\344\223\002" + + "F*D/iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*}\022\353\002\n" + + "\026UpdateIcebergNamespace\0226.google.cloud.biglak" + + "e.v1.UpdateIcebergNamespaceRequest\0327.google.cloud.biglake.v1.UpdateIcebergNamesp" + + "aceResponse\"\337\001\202\323\344\223\002\330\0012O/iceberg/v1/restc" + + "atalog/v1/{name=projects/*/catalogs/*/namespaces/*}/properties:\030iceberg_namespac" + + "e_updateZk\"O/iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*}" + + "/properties:\030iceberg_namespace_update\022\370\001\n" + + "\033ListIcebergTableIdentifiers\022;.google.cloud.biglake.v1.ListIcebergTableIdentifi" + + "ersRequest\032<.google.cloud.biglake.v1.Lis" + + "tIcebergTableIdentifiersResponse\"^\332A\006par" + + "ent\202\323\344\223\002O\022M/iceberg/v1/restcatalog/v1/{p" + + "arent=projects/*/catalogs/*/namespaces/*}/tables\022\313\001\n" + + "\022CreateIcebergTable\0222.google.cloud.biglake.v1.CreateIcebergTableRequ" + + "est\032\024.google.api.HttpBody\"k\332A\020parent,htt" + + "p_body\202\323\344\223\002R\"M/iceberg/v1/restcatalog/v1" + + "/{parent=projects/*/catalogs/*/namespaces/*}/tables:\001*\022k\n" + + "\027CheckIcebergTableExists\022/.google.cloud.biglake.v1.GetIcebergTa" + + "bleRequest\032\026.google.protobuf.Empty\"\007\332A\004name\022\276\001\n" + + "\022DeleteIcebergTable\0222.google.cloud.biglake.v1.DeleteIcebergTableRequest\032\026" + + ".google.protobuf.Empty\"\\\332A\004name\202\323\344\223\002O*M/" + + "iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*/tables/*}\022\300\001\n" + + "\017GetIcebergTable\022/.google.cloud.biglake." + + "v1.GetIcebergTableRequest\032\024.google.api.H" + + "ttpBody\"f\332A\016name,snapshots\202\323\344\223\002O\022M/icebe" + + "rg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*/tables/*}\022\366\001\n" + + "\033LoadIcebergTableCredentials\022/.google.cloud.b" + + "iglake.v1.GetIcebergTableRequest\032<.google.cloud.biglake.v1.LoadIcebergTableCrede" + + "ntialsResponse\"h\332A\004name\202\323\344\223\002[\022Y/iceberg/" + + "v1/restcatalog/v1/{name=projects/*/catal" + + "ogs/*/namespaces/*/tables/*}/credentials\022\270\001\n" + + "\022UpdateIcebergTable\0222.google.cloud.b" + + "iglake.v1.UpdateIcebergTableRequest\032\024.go" + + "ogle.api.HttpBody\"X\202\323\344\223\002R\"M/iceberg/v1/r" + + "estcatalog/v1/{name=projects/*/catalogs/*/namespaces/*/tables/*}:\001*\022\276\001\n" + + "\024RegisterIcebergTable\0224.google.cloud.biglake.v1.R" + + "egisterIcebergTableRequest\032\024.google.api." + + "HttpBody\"Z\202\323\344\223\002T\"O/iceberg/v1/restcatalo" + + "g/v1/{parent=projects/*/catalogs/*/namespaces/*}/register:\001*\022\277\001\n" + + "\021GetIcebergCatalog\0221.google.cloud.biglake.v1.GetIcebergC" + + "atalogRequest\032\'.google.cloud.biglake.v1." + + "IcebergCatalog\"N\332A\004name\202\323\344\223\002A\022?/iceberg/" + + "v1/restcatalog/extensions/{name=projects/*/catalogs/*}\022\322\001\n" + + "\023ListIcebergCatalogs\0223.google.cloud.biglake.v1.ListIcebergCata" + + "logsRequest\0324.google.cloud.biglake.v1.Li" + + "stIcebergCatalogsResponse\"P\332A\006parent\202\323\344\223" + + "\002A\022?/iceberg/v1/restcatalog/extensions/{parent=projects/*}/catalogs\022\264\001\n" + + "\024DeleteIcebergCatalog\0224.google.cloud.biglake.v1.D" + + "eleteIcebergCatalogRequest\032\026.google.prot" + + "obuf.Empty\"N\332A\004name\202\323\344\223\002A*?/iceberg/v1/r" + + "estcatalog/extensions/{name=projects/*/catalogs/*}\022\376\001\n" + + "\024UpdateIcebergCatalog\0224.google.cloud.biglake.v1.UpdateIcebergCatal" + + "ogRequest\032\'.google.cloud.biglake.v1.Iceb" + + "ergCatalog\"\206\001\332A\033iceberg_catalog,update_m" + + "ask\202\323\344\223\002b2O/iceberg/v1/restcatalog/exten" + + "sions/{iceberg_catalog.name=projects/*/catalogs/*}:\017iceberg_catalog\022\374\001\n" + + "\024CreateIcebergCatalog\0224.google.cloud.biglake.v1.C" + + "reateIcebergCatalogRequest\032\'.google.clou" + + "d.biglake.v1.IcebergCatalog\"\204\001\332A)parent," + + "iceberg_catalog,iceberg_catalog_id\202\323\344\223\002R" + + "\"?/iceberg/v1/restcatalog/extensions/{pa" + + "rent=projects/*}/catalogs:\017iceberg_catalog\022\365\001\n" + + "\026FailoverIcebergCatalog\0226.google.cloud.biglake.v1.FailoverIcebergCatalogRe" + + "quest\0327.google.cloud.biglake.v1.Failover" + + "IcebergCatalogResponse\"j\332A\024name,primary_" + + "replica\202\323\344\223\002M\"H/iceberg/v1/restcatalog/e" + + "xtensions/{name=projects/*/catalogs/*}:f" + + "ailover:\001*\032s\312A\026biglake.googleapis.com\322AW" + + "https://www.googleapis.com/auth/bigquery" + + ",https://www.googleapis.com/auth/cloud-platformB\300\002\n" + + "\033com.google.cloud.biglake.v1B\027IcebergRestCatalogProtoP\001Z5cloud.google" + + ".com/go/biglake/apiv1/biglakepb;biglakepb\352Ak\n" + + "\034biglake.googleapis.com/Table\022Kproj" + + "ects/{project}/catalogs/{catalog}/namespaces/{namespace}/tables/{table}\352A`\n" + + " biglake.googleapis.com/Namespace\022 + * The request message for the `ListIcebergCatalogs` API. + * + * + * Protobuf type {@code google.cloud.biglake.v1.ListIcebergCatalogsRequest} + */ +public final class ListIcebergCatalogsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.ListIcebergCatalogsRequest) + ListIcebergCatalogsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListIcebergCatalogsRequest.newBuilder() to construct. + private ListIcebergCatalogsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIcebergCatalogsRequest() { + parent_ = ""; + view_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListIcebergCatalogsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergCatalogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergCatalogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.class, + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.Builder.class); + } + + /** + * + * + *
+   * The enumeration of the views that can be returned.
+   * 
+ * + * Protobuf enum {@code google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView} + */ + public enum CatalogView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default/unset value. Same as BASIC.
+     * 
+ * + * CATALOG_VIEW_UNSPECIFIED = 0; + */ + CATALOG_VIEW_UNSPECIFIED(0), + /** + * + * + *
+     * Include only the name and catalog type.
+     * 
+ * + * CATALOG_VIEW_BASIC = 1; + */ + CATALOG_VIEW_BASIC(1), + /** + * + * + *
+     * Include all fields of the catalog.
+     * 
+ * + * CATALOG_VIEW_FULL = 2; + */ + CATALOG_VIEW_FULL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default/unset value. Same as BASIC.
+     * 
+ * + * CATALOG_VIEW_UNSPECIFIED = 0; + */ + public static final int CATALOG_VIEW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Include only the name and catalog type.
+     * 
+ * + * CATALOG_VIEW_BASIC = 1; + */ + public static final int CATALOG_VIEW_BASIC_VALUE = 1; + + /** + * + * + *
+     * Include all fields of the catalog.
+     * 
+ * + * CATALOG_VIEW_FULL = 2; + */ + public static final int CATALOG_VIEW_FULL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CatalogView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CatalogView forNumber(int value) { + switch (value) { + case 0: + return CATALOG_VIEW_UNSPECIFIED; + case 1: + return CATALOG_VIEW_BASIC; + case 2: + return CATALOG_VIEW_FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CatalogView findValueByNumber(int number) { + return CatalogView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CatalogView[] VALUES = values(); + + public static CatalogView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CatalogView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView) + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where this catalog will be created.
+   * Format: projects/{project_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource where this catalog will be created.
+   * Format: projects/{project_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 2; + private int view_ = 0; + + /** + * + * + *
+   * Optional. The view of the catalog to return.
+   * 
+ * + * + * .google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
+   * Optional. The view of the catalog to return.
+   * 
+ * + * + * .google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView getView() { + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView result = + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView.forNumber(view_); + return result == null + ? com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView.UNRECOGNIZED + : result; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of catalogs to return. The service may return
+   * fewer than this value.
+   * 
+ * + * int32 page_size = 3 [json_name = "page-size", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. The page token, received from a previous `ListIcebergCatalogs`
+   * call. Provide this to retrieve the subsequent page.
+   * 
+ * + * + * string page_token = 4 [json_name = "page-token", (.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. The page token, received from a previous `ListIcebergCatalogs`
+   * call. Provide this to retrieve the subsequent page.
+   * 
+ * + * + * string page_token = 4 [json_name = "page-token", (.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 (view_ + != com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView + .CATALOG_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, view_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, 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 (view_ + != com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView + .CATALOG_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.cloud.biglake.v1.ListIcebergCatalogsRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest other = + (com.google.cloud.biglake.v1.ListIcebergCatalogsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (view_ != other.view_) 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) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + 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.cloud.biglake.v1.ListIcebergCatalogsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsRequest 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.cloud.biglake.v1.ListIcebergCatalogsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsRequest 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.cloud.biglake.v1.ListIcebergCatalogsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsRequest 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.cloud.biglake.v1.ListIcebergCatalogsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsRequest 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.cloud.biglake.v1.ListIcebergCatalogsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `ListIcebergCatalogs` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.ListIcebergCatalogsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.ListIcebergCatalogsRequest) + com.google.cloud.biglake.v1.ListIcebergCatalogsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergCatalogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergCatalogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.class, + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + view_ = 0; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergCatalogsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergCatalogsRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergCatalogsRequest build() { + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergCatalogsRequest buildPartial() { + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest result = + new com.google.cloud.biglake.v1.ListIcebergCatalogsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.ListIcebergCatalogsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.view_ = view_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 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.cloud.biglake.v1.ListIcebergCatalogsRequest) { + return mergeFrom((com.google.cloud.biglake.v1.ListIcebergCatalogsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.ListIcebergCatalogsRequest other) { + if (other == com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + 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: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 resource where this catalog will be created.
+     * Format: projects/{project_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this catalog will be created.
+     * Format: projects/{project_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this catalog will be created.
+     * Format: projects/{project_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this catalog will be created.
+     * Format: projects/{project_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this catalog will be created.
+     * Format: projects/{project_id}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int view_ = 0; + + /** + * + * + *
+     * Optional. The view of the catalog to return.
+     * 
+ * + * + * .google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
+     * Optional. The view of the catalog to return.
+     * 
+ * + * + * .google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The view of the catalog to return.
+     * 
+ * + * + * .google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView getView() { + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView result = + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView.forNumber(view_); + return result == null + ? com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The view of the catalog to return.
+     * 
+ * + * + * .google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView( + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + view_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The view of the catalog to return.
+     * 
+ * + * + * .google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000002); + view_ = 0; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of catalogs to return. The service may return
+     * fewer than this value.
+     * 
+ * + * int32 page_size = 3 [json_name = "page-size", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The maximum number of catalogs to return. The service may return
+     * fewer than this value.
+     * 
+ * + * int32 page_size = 3 [json_name = "page-size", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of catalogs to return. The service may return
+     * fewer than this value.
+     * 
+ * + * int32 page_size = 3 [json_name = "page-size", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. The page token, received from a previous `ListIcebergCatalogs`
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * + * string page_token = 4 [json_name = "page-token", (.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. The page token, received from a previous `ListIcebergCatalogs`
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * + * string page_token = 4 [json_name = "page-token", (.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. The page token, received from a previous `ListIcebergCatalogs`
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * + * string page_token = 4 [json_name = "page-token", (.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The page token, received from a previous `ListIcebergCatalogs`
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * + * string page_token = 4 [json_name = "page-token", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The page token, received from a previous `ListIcebergCatalogs`
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * + * string page_token = 4 [json_name = "page-token", (.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_ |= 0x00000008; + 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.cloud.biglake.v1.ListIcebergCatalogsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.ListIcebergCatalogsRequest) + private static final com.google.cloud.biglake.v1.ListIcebergCatalogsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.ListIcebergCatalogsRequest(); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIcebergCatalogsRequest 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.cloud.biglake.v1.ListIcebergCatalogsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsRequestOrBuilder.java new file mode 100644 index 000000000000..c363a4b30069 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsRequestOrBuilder.java @@ -0,0 +1,135 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface ListIcebergCatalogsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.ListIcebergCatalogsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this catalog will be created.
+   * Format: projects/{project_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where this catalog will be created.
+   * Format: projects/{project_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The view of the catalog to return.
+   * 
+ * + * + * .google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + + /** + * + * + *
+   * Optional. The view of the catalog to return.
+   * 
+ * + * + * .google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest.CatalogView getView(); + + /** + * + * + *
+   * Optional. The maximum number of catalogs to return. The service may return
+   * fewer than this value.
+   * 
+ * + * int32 page_size = 3 [json_name = "page-size", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous `ListIcebergCatalogs`
+   * call. Provide this to retrieve the subsequent page.
+   * 
+ * + * + * string page_token = 4 [json_name = "page-token", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. The page token, received from a previous `ListIcebergCatalogs`
+   * call. Provide this to retrieve the subsequent page.
+   * 
+ * + * + * string page_token = 4 [json_name = "page-token", (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsResponse.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsResponse.java new file mode 100644 index 000000000000..b19b7cad5c02 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsResponse.java @@ -0,0 +1,1507 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The response message for the `ListIcebergCatalogs` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.ListIcebergCatalogsResponse} + */ +public final class ListIcebergCatalogsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.ListIcebergCatalogsResponse) + ListIcebergCatalogsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListIcebergCatalogsResponse.newBuilder() to construct. + private ListIcebergCatalogsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIcebergCatalogsResponse() { + icebergCatalogs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListIcebergCatalogsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergCatalogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergCatalogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse.class, + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse.Builder.class); + } + + public static final int ICEBERG_CATALOGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List icebergCatalogs_; + + /** + * + * + *
+   * Output only. The list of iceberg catalogs.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getIcebergCatalogsList() { + return icebergCatalogs_; + } + + /** + * + * + *
+   * Output only. The list of iceberg catalogs.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getIcebergCatalogsOrBuilderList() { + return icebergCatalogs_; + } + + /** + * + * + *
+   * Output only. The list of iceberg catalogs.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getIcebergCatalogsCount() { + return icebergCatalogs_.size(); + } + + /** + * + * + *
+   * Output only. The list of iceberg catalogs.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalogs(int index) { + return icebergCatalogs_.get(index); + } + + /** + * + * + *
+   * Output only. The list of iceberg catalogs.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalogOrBuilder getIcebergCatalogsOrBuilder( + int index) { + return icebergCatalogs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Output only. The next page token for pagination.
+   * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
+   * Output only. The next page token for pagination.
+   * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The list of unreachable cloud regions for router fanout.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Output only. The list of unreachable cloud regions for router fanout.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Output only. The list of unreachable cloud regions for router fanout.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Output only. The list of unreachable cloud regions for router fanout.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + 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 < icebergCatalogs_.size(); i++) { + output.writeMessage(1, icebergCatalogs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < icebergCatalogs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, icebergCatalogs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + 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.cloud.biglake.v1.ListIcebergCatalogsResponse)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse other = + (com.google.cloud.biglake.v1.ListIcebergCatalogsResponse) obj; + + if (!getIcebergCatalogsList().equals(other.getIcebergCatalogsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) 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 (getIcebergCatalogsCount() > 0) { + hash = (37 * hash) + ICEBERG_CATALOGS_FIELD_NUMBER; + hash = (53 * hash) + getIcebergCatalogsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsResponse 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.cloud.biglake.v1.ListIcebergCatalogsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsResponse 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.cloud.biglake.v1.ListIcebergCatalogsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsResponse 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.cloud.biglake.v1.ListIcebergCatalogsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsResponse 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.cloud.biglake.v1.ListIcebergCatalogsResponse 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 response message for the `ListIcebergCatalogs` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.ListIcebergCatalogsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.ListIcebergCatalogsResponse) + com.google.cloud.biglake.v1.ListIcebergCatalogsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergCatalogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergCatalogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse.class, + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.ListIcebergCatalogsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (icebergCatalogsBuilder_ == null) { + icebergCatalogs_ = java.util.Collections.emptyList(); + } else { + icebergCatalogs_ = null; + icebergCatalogsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergCatalogsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergCatalogsResponse getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.ListIcebergCatalogsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergCatalogsResponse build() { + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergCatalogsResponse buildPartial() { + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse result = + new com.google.cloud.biglake.v1.ListIcebergCatalogsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.biglake.v1.ListIcebergCatalogsResponse result) { + if (icebergCatalogsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + icebergCatalogs_ = java.util.Collections.unmodifiableList(icebergCatalogs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.icebergCatalogs_ = icebergCatalogs_; + } else { + result.icebergCatalogs_ = icebergCatalogsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.biglake.v1.ListIcebergCatalogsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.cloud.biglake.v1.ListIcebergCatalogsResponse) { + return mergeFrom((com.google.cloud.biglake.v1.ListIcebergCatalogsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.ListIcebergCatalogsResponse other) { + if (other == com.google.cloud.biglake.v1.ListIcebergCatalogsResponse.getDefaultInstance()) + return this; + if (icebergCatalogsBuilder_ == null) { + if (!other.icebergCatalogs_.isEmpty()) { + if (icebergCatalogs_.isEmpty()) { + icebergCatalogs_ = other.icebergCatalogs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIcebergCatalogsIsMutable(); + icebergCatalogs_.addAll(other.icebergCatalogs_); + } + onChanged(); + } + } else { + if (!other.icebergCatalogs_.isEmpty()) { + if (icebergCatalogsBuilder_.isEmpty()) { + icebergCatalogsBuilder_.dispose(); + icebergCatalogsBuilder_ = null; + icebergCatalogs_ = other.icebergCatalogs_; + bitField0_ = (bitField0_ & ~0x00000001); + icebergCatalogsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIcebergCatalogsFieldBuilder() + : null; + } else { + icebergCatalogsBuilder_.addAllMessages(other.icebergCatalogs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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.cloud.biglake.v1.IcebergCatalog m = + input.readMessage( + com.google.cloud.biglake.v1.IcebergCatalog.parser(), extensionRegistry); + if (icebergCatalogsBuilder_ == null) { + ensureIcebergCatalogsIsMutable(); + icebergCatalogs_.add(m); + } else { + icebergCatalogsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List icebergCatalogs_ = + java.util.Collections.emptyList(); + + private void ensureIcebergCatalogsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + icebergCatalogs_ = + new java.util.ArrayList(icebergCatalogs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergCatalog, + com.google.cloud.biglake.v1.IcebergCatalog.Builder, + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder> + icebergCatalogsBuilder_; + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getIcebergCatalogsList() { + if (icebergCatalogsBuilder_ == null) { + return java.util.Collections.unmodifiableList(icebergCatalogs_); + } else { + return icebergCatalogsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getIcebergCatalogsCount() { + if (icebergCatalogsBuilder_ == null) { + return icebergCatalogs_.size(); + } else { + return icebergCatalogsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalogs(int index) { + if (icebergCatalogsBuilder_ == null) { + return icebergCatalogs_.get(index); + } else { + return icebergCatalogsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIcebergCatalogs(int index, com.google.cloud.biglake.v1.IcebergCatalog value) { + if (icebergCatalogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIcebergCatalogsIsMutable(); + icebergCatalogs_.set(index, value); + onChanged(); + } else { + icebergCatalogsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIcebergCatalogs( + int index, com.google.cloud.biglake.v1.IcebergCatalog.Builder builderForValue) { + if (icebergCatalogsBuilder_ == null) { + ensureIcebergCatalogsIsMutable(); + icebergCatalogs_.set(index, builderForValue.build()); + onChanged(); + } else { + icebergCatalogsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addIcebergCatalogs(com.google.cloud.biglake.v1.IcebergCatalog value) { + if (icebergCatalogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIcebergCatalogsIsMutable(); + icebergCatalogs_.add(value); + onChanged(); + } else { + icebergCatalogsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addIcebergCatalogs(int index, com.google.cloud.biglake.v1.IcebergCatalog value) { + if (icebergCatalogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIcebergCatalogsIsMutable(); + icebergCatalogs_.add(index, value); + onChanged(); + } else { + icebergCatalogsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addIcebergCatalogs( + com.google.cloud.biglake.v1.IcebergCatalog.Builder builderForValue) { + if (icebergCatalogsBuilder_ == null) { + ensureIcebergCatalogsIsMutable(); + icebergCatalogs_.add(builderForValue.build()); + onChanged(); + } else { + icebergCatalogsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addIcebergCatalogs( + int index, com.google.cloud.biglake.v1.IcebergCatalog.Builder builderForValue) { + if (icebergCatalogsBuilder_ == null) { + ensureIcebergCatalogsIsMutable(); + icebergCatalogs_.add(index, builderForValue.build()); + onChanged(); + } else { + icebergCatalogsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllIcebergCatalogs( + java.lang.Iterable values) { + if (icebergCatalogsBuilder_ == null) { + ensureIcebergCatalogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, icebergCatalogs_); + onChanged(); + } else { + icebergCatalogsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearIcebergCatalogs() { + if (icebergCatalogsBuilder_ == null) { + icebergCatalogs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + icebergCatalogsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeIcebergCatalogs(int index) { + if (icebergCatalogsBuilder_ == null) { + ensureIcebergCatalogsIsMutable(); + icebergCatalogs_.remove(index); + onChanged(); + } else { + icebergCatalogsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.biglake.v1.IcebergCatalog.Builder getIcebergCatalogsBuilder(int index) { + return getIcebergCatalogsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.biglake.v1.IcebergCatalogOrBuilder getIcebergCatalogsOrBuilder( + int index) { + if (icebergCatalogsBuilder_ == null) { + return icebergCatalogs_.get(index); + } else { + return icebergCatalogsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getIcebergCatalogsOrBuilderList() { + if (icebergCatalogsBuilder_ != null) { + return icebergCatalogsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(icebergCatalogs_); + } + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.biglake.v1.IcebergCatalog.Builder addIcebergCatalogsBuilder() { + return getIcebergCatalogsFieldBuilder() + .addBuilder(com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.biglake.v1.IcebergCatalog.Builder addIcebergCatalogsBuilder(int index) { + return getIcebergCatalogsFieldBuilder() + .addBuilder(index, com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The list of iceberg catalogs.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getIcebergCatalogsBuilderList() { + return getIcebergCatalogsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergCatalog, + com.google.cloud.biglake.v1.IcebergCatalog.Builder, + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder> + getIcebergCatalogsFieldBuilder() { + if (icebergCatalogsBuilder_ == null) { + icebergCatalogsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergCatalog, + com.google.cloud.biglake.v1.IcebergCatalog.Builder, + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder>( + icebergCatalogs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + icebergCatalogs_ = null; + } + return icebergCatalogsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Output only. The next page token for pagination.
+     * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The next page token for pagination.
+     * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The next page token for pagination.
+     * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + + /** + * + * + *
+     * Output only. The next page token for pagination.
+     * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The next page token for pagination.
+     * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Output only. The list of unreachable cloud regions for router fanout.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Output only. The list of unreachable cloud regions for router fanout.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Output only. The list of unreachable cloud regions for router fanout.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Output only. The list of unreachable cloud regions for router fanout.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The list of unreachable cloud regions for router fanout.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of unreachable cloud regions for router fanout.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of unreachable cloud regions for router fanout.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of unreachable cloud regions for router fanout.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of unreachable cloud regions for router fanout.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(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.cloud.biglake.v1.ListIcebergCatalogsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.ListIcebergCatalogsResponse) + private static final com.google.cloud.biglake.v1.ListIcebergCatalogsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.ListIcebergCatalogsResponse(); + } + + public static com.google.cloud.biglake.v1.ListIcebergCatalogsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIcebergCatalogsResponse 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.cloud.biglake.v1.ListIcebergCatalogsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsResponseOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsResponseOrBuilder.java new file mode 100644 index 000000000000..2ef278119954 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergCatalogsResponseOrBuilder.java @@ -0,0 +1,176 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface ListIcebergCatalogsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.ListIcebergCatalogsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The list of iceberg catalogs.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getIcebergCatalogsList(); + + /** + * + * + *
+   * Output only. The list of iceberg catalogs.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalogs(int index); + + /** + * + * + *
+   * Output only. The list of iceberg catalogs.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getIcebergCatalogsCount(); + + /** + * + * + *
+   * Output only. The list of iceberg catalogs.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getIcebergCatalogsOrBuilderList(); + + /** + * + * + *
+   * Output only. The list of iceberg catalogs.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.IcebergCatalog iceberg_catalogs = 1 [json_name = "iceberg-catalogs", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder getIcebergCatalogsOrBuilder(int index); + + /** + * + * + *
+   * Output only. The next page token for pagination.
+   * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Output only. The next page token for pagination.
+   * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Output only. The list of unreachable cloud regions for router fanout.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Output only. The list of unreachable cloud regions for router fanout.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Output only. The list of unreachable cloud regions for router fanout.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Output only. The list of unreachable cloud regions for router fanout.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesRequest.java new file mode 100644 index 000000000000..37dd7d7a34e3 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesRequest.java @@ -0,0 +1,1150 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * ListIcebergNamespacesRequest
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.ListIcebergNamespacesRequest} + */ +public final class ListIcebergNamespacesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.ListIcebergNamespacesRequest) + ListIcebergNamespacesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListIcebergNamespacesRequest.newBuilder() to construct. + private ListIcebergNamespacesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIcebergNamespacesRequest() { + pageToken_ = ""; + apiParent_ = ""; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListIcebergNamespacesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergNamespacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergNamespacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest.class, + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest.Builder.class); + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. PageToken
+   * 
+ * + * string page_token = 1 [(.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. PageToken
+   * 
+ * + * string page_token = 1 [(.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; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. For servers that support pagination, this signals an upper bound
+   * of the number of results that a client will receive. For servers that do
+   * not support pagination, clients may receive results larger than the
+   * indicated `pageSize`.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int API_PARENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiParent_ = ""; + + /** + * + * + *
+   * Required. The parent from the resource path.
+   * 
+ * + * string api_parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The apiParent. + */ + @java.lang.Override + public java.lang.String getApiParent() { + java.lang.Object ref = apiParent_; + 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(); + apiParent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent from the resource path.
+   * 
+ * + * string api_parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for apiParent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiParentBytes() { + java.lang.Object ref = apiParent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiParent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Optional. An optional namespace, underneath which to list namespaces. If
+   * not provided or empty, all top-level namespaces should be listed. If parent
+   * is a multipart namespace, the parts must be separated by the unit separator
+   * (`0x1F`) byte.
+   * Not a real parent, so ST_NOT_REQUIRED.
+   * 
+ * + * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. An optional namespace, underneath which to list namespaces. If
+   * not provided or empty, all top-level namespaces should be listed. If parent
+   * is a multipart namespace, the parts must be separated by the unit separator
+   * (`0x1F`) byte.
+   * Not a real parent, so ST_NOT_REQUIRED.
+   * 
+ * + * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiParent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, apiParent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + 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(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiParent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, apiParent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + 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.cloud.biglake.v1.ListIcebergNamespacesRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest other = + (com.google.cloud.biglake.v1.ListIcebergNamespacesRequest) obj; + + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getApiParent().equals(other.getApiParent())) return false; + if (!getParent().equals(other.getParent())) 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) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + API_PARENT_FIELD_NUMBER; + hash = (53 * hash) + getApiParent().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesRequest 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.cloud.biglake.v1.ListIcebergNamespacesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesRequest 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.cloud.biglake.v1.ListIcebergNamespacesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesRequest 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.cloud.biglake.v1.ListIcebergNamespacesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesRequest 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.cloud.biglake.v1.ListIcebergNamespacesRequest 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; + } + + /** + * + * + *
+   * ListIcebergNamespacesRequest
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.ListIcebergNamespacesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.ListIcebergNamespacesRequest) + com.google.cloud.biglake.v1.ListIcebergNamespacesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergNamespacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergNamespacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest.class, + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.ListIcebergNamespacesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageToken_ = ""; + pageSize_ = 0; + apiParent_ = ""; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergNamespacesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergNamespacesRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.ListIcebergNamespacesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergNamespacesRequest build() { + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergNamespacesRequest buildPartial() { + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest result = + new com.google.cloud.biglake.v1.ListIcebergNamespacesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.ListIcebergNamespacesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.apiParent_ = apiParent_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parent_; + } + } + + @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.cloud.biglake.v1.ListIcebergNamespacesRequest) { + return mergeFrom((com.google.cloud.biglake.v1.ListIcebergNamespacesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.ListIcebergNamespacesRequest other) { + if (other == com.google.cloud.biglake.v1.ListIcebergNamespacesRequest.getDefaultInstance()) + return this; + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getApiParent().isEmpty()) { + apiParent_ = other.apiParent_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000008; + 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: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + apiParent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 pageToken_ = ""; + + /** + * + * + *
+     * Optional. PageToken
+     * 
+ * + * string page_token = 1 [(.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. PageToken
+     * 
+ * + * string page_token = 1 [(.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. PageToken
+     * 
+ * + * string page_token = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. PageToken
+     * 
+ * + * string page_token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. PageToken
+     * 
+ * + * string page_token = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. For servers that support pagination, this signals an upper bound
+     * of the number of results that a client will receive. For servers that do
+     * not support pagination, clients may receive results larger than the
+     * indicated `pageSize`.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. For servers that support pagination, this signals an upper bound
+     * of the number of results that a client will receive. For servers that do
+     * not support pagination, clients may receive results larger than the
+     * indicated `pageSize`.
+     * 
+ * + * 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. For servers that support pagination, this signals an upper bound
+     * of the number of results that a client will receive. For servers that do
+     * not support pagination, clients may receive results larger than the
+     * indicated `pageSize`.
+     * 
+ * + * 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 apiParent_ = ""; + + /** + * + * + *
+     * Required. The parent from the resource path.
+     * 
+ * + * string api_parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The apiParent. + */ + public java.lang.String getApiParent() { + java.lang.Object ref = apiParent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiParent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent from the resource path.
+     * 
+ * + * string api_parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for apiParent. + */ + public com.google.protobuf.ByteString getApiParentBytes() { + java.lang.Object ref = apiParent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiParent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent from the resource path.
+     * 
+ * + * string api_parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The apiParent to set. + * @return This builder for chaining. + */ + public Builder setApiParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiParent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent from the resource path.
+     * 
+ * + * string api_parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearApiParent() { + apiParent_ = getDefaultInstance().getApiParent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent from the resource path.
+     * 
+ * + * string api_parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for apiParent to set. + * @return This builder for chaining. + */ + public Builder setApiParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiParent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Optional. An optional namespace, underneath which to list namespaces. If
+     * not provided or empty, all top-level namespaces should be listed. If parent
+     * is a multipart namespace, the parts must be separated by the unit separator
+     * (`0x1F`) byte.
+     * Not a real parent, so ST_NOT_REQUIRED.
+     * 
+ * + * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. An optional namespace, underneath which to list namespaces. If
+     * not provided or empty, all top-level namespaces should be listed. If parent
+     * is a multipart namespace, the parts must be separated by the unit separator
+     * (`0x1F`) byte.
+     * Not a real parent, so ST_NOT_REQUIRED.
+     * 
+ * + * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. An optional namespace, underneath which to list namespaces. If
+     * not provided or empty, all top-level namespaces should be listed. If parent
+     * is a multipart namespace, the parts must be separated by the unit separator
+     * (`0x1F`) byte.
+     * Not a real parent, so ST_NOT_REQUIRED.
+     * 
+ * + * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional namespace, underneath which to list namespaces. If
+     * not provided or empty, all top-level namespaces should be listed. If parent
+     * is a multipart namespace, the parts must be separated by the unit separator
+     * (`0x1F`) byte.
+     * Not a real parent, so ST_NOT_REQUIRED.
+     * 
+ * + * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional namespace, underneath which to list namespaces. If
+     * not provided or empty, all top-level namespaces should be listed. If parent
+     * is a multipart namespace, the parts must be separated by the unit separator
+     * (`0x1F`) byte.
+     * Not a real parent, so ST_NOT_REQUIRED.
+     * 
+ * + * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + 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.cloud.biglake.v1.ListIcebergNamespacesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.ListIcebergNamespacesRequest) + private static final com.google.cloud.biglake.v1.ListIcebergNamespacesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.ListIcebergNamespacesRequest(); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIcebergNamespacesRequest 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.cloud.biglake.v1.ListIcebergNamespacesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesRequestOrBuilder.java new file mode 100644 index 000000000000..4c86afa17a15 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesRequestOrBuilder.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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface ListIcebergNamespacesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.ListIcebergNamespacesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. PageToken
+   * 
+ * + * string page_token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. PageToken
+   * 
+ * + * string page_token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. For servers that support pagination, this signals an upper bound
+   * of the number of results that a client will receive. For servers that do
+   * not support pagination, clients may receive results larger than the
+   * indicated `pageSize`.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Required. The parent from the resource path.
+   * 
+ * + * string api_parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The apiParent. + */ + java.lang.String getApiParent(); + + /** + * + * + *
+   * Required. The parent from the resource path.
+   * 
+ * + * string api_parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for apiParent. + */ + com.google.protobuf.ByteString getApiParentBytes(); + + /** + * + * + *
+   * Optional. An optional namespace, underneath which to list namespaces. If
+   * not provided or empty, all top-level namespaces should be listed. If parent
+   * is a multipart namespace, the parts must be separated by the unit separator
+   * (`0x1F`) byte.
+   * Not a real parent, so ST_NOT_REQUIRED.
+   * 
+ * + * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Optional. An optional namespace, underneath which to list namespaces. If
+   * not provided or empty, all top-level namespaces should be listed. If parent
+   * is a multipart namespace, the parts must be separated by the unit separator
+   * (`0x1F`) byte.
+   * Not a real parent, so ST_NOT_REQUIRED.
+   * 
+ * + * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesResponse.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesResponse.java new file mode 100644 index 000000000000..be2335c31e64 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesResponse.java @@ -0,0 +1,1146 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The response message for the `ListIcebergNamespaces` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.ListIcebergNamespacesResponse} + */ +public final class ListIcebergNamespacesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.ListIcebergNamespacesResponse) + ListIcebergNamespacesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListIcebergNamespacesResponse.newBuilder() to construct. + private ListIcebergNamespacesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIcebergNamespacesResponse() { + namespaces_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListIcebergNamespacesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergNamespacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergNamespacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse.class, + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse.Builder.class); + } + + public static final int NAMESPACES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List namespaces_; + + /** + * + * + *
+   * The list of namespaces.
+   * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + @java.lang.Override + public java.util.List getNamespacesList() { + return namespaces_; + } + + /** + * + * + *
+   * The list of namespaces.
+   * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + @java.lang.Override + public java.util.List + getNamespacesOrBuilderList() { + return namespaces_; + } + + /** + * + * + *
+   * The list of namespaces.
+   * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + @java.lang.Override + public int getNamespacesCount() { + return namespaces_.size(); + } + + /** + * + * + *
+   * The list of namespaces.
+   * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + @java.lang.Override + public com.google.protobuf.ListValue getNamespaces(int index) { + return namespaces_.get(index); + } + + /** + * + * + *
+   * The list of namespaces.
+   * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + @java.lang.Override + public com.google.protobuf.ListValueOrBuilder getNamespacesOrBuilder(int index) { + return namespaces_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * The next page token for pagination.
+   * 
+ * + * string next_page_token = 2 [json_name = "next-page-token"]; + * + * @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; + } + } + + /** + * + * + *
+   * The next page token for pagination.
+   * 
+ * + * string next_page_token = 2 [json_name = "next-page-token"]; + * + * @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 < namespaces_.size(); i++) { + output.writeMessage(1, namespaces_.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 < namespaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, namespaces_.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.cloud.biglake.v1.ListIcebergNamespacesResponse)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse other = + (com.google.cloud.biglake.v1.ListIcebergNamespacesResponse) obj; + + if (!getNamespacesList().equals(other.getNamespacesList())) 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 (getNamespacesCount() > 0) { + hash = (37 * hash) + NAMESPACES_FIELD_NUMBER; + hash = (53 * hash) + getNamespacesList().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.cloud.biglake.v1.ListIcebergNamespacesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesResponse 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.cloud.biglake.v1.ListIcebergNamespacesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesResponse 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.cloud.biglake.v1.ListIcebergNamespacesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesResponse 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.cloud.biglake.v1.ListIcebergNamespacesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesResponse 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.cloud.biglake.v1.ListIcebergNamespacesResponse 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 response message for the `ListIcebergNamespaces` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.ListIcebergNamespacesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.ListIcebergNamespacesResponse) + com.google.cloud.biglake.v1.ListIcebergNamespacesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergNamespacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergNamespacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse.class, + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.ListIcebergNamespacesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (namespacesBuilder_ == null) { + namespaces_ = java.util.Collections.emptyList(); + } else { + namespaces_ = null; + namespacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergNamespacesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergNamespacesResponse getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.ListIcebergNamespacesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergNamespacesResponse build() { + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergNamespacesResponse buildPartial() { + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse result = + new com.google.cloud.biglake.v1.ListIcebergNamespacesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.biglake.v1.ListIcebergNamespacesResponse result) { + if (namespacesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + namespaces_ = java.util.Collections.unmodifiableList(namespaces_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.namespaces_ = namespaces_; + } else { + result.namespaces_ = namespacesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.biglake.v1.ListIcebergNamespacesResponse 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.cloud.biglake.v1.ListIcebergNamespacesResponse) { + return mergeFrom((com.google.cloud.biglake.v1.ListIcebergNamespacesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.ListIcebergNamespacesResponse other) { + if (other == com.google.cloud.biglake.v1.ListIcebergNamespacesResponse.getDefaultInstance()) + return this; + if (namespacesBuilder_ == null) { + if (!other.namespaces_.isEmpty()) { + if (namespaces_.isEmpty()) { + namespaces_ = other.namespaces_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNamespacesIsMutable(); + namespaces_.addAll(other.namespaces_); + } + onChanged(); + } + } else { + if (!other.namespaces_.isEmpty()) { + if (namespacesBuilder_.isEmpty()) { + namespacesBuilder_.dispose(); + namespacesBuilder_ = null; + namespaces_ = other.namespaces_; + bitField0_ = (bitField0_ & ~0x00000001); + namespacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNamespacesFieldBuilder() + : null; + } else { + namespacesBuilder_.addAllMessages(other.namespaces_); + } + } + } + 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.protobuf.ListValue m = + input.readMessage(com.google.protobuf.ListValue.parser(), extensionRegistry); + if (namespacesBuilder_ == null) { + ensureNamespacesIsMutable(); + namespaces_.add(m); + } else { + namespacesBuilder_.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 namespaces_ = + java.util.Collections.emptyList(); + + private void ensureNamespacesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + namespaces_ = new java.util.ArrayList(namespaces_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder> + namespacesBuilder_; + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public java.util.List getNamespacesList() { + if (namespacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(namespaces_); + } else { + return namespacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public int getNamespacesCount() { + if (namespacesBuilder_ == null) { + return namespaces_.size(); + } else { + return namespacesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public com.google.protobuf.ListValue getNamespaces(int index) { + if (namespacesBuilder_ == null) { + return namespaces_.get(index); + } else { + return namespacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public Builder setNamespaces(int index, com.google.protobuf.ListValue value) { + if (namespacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespacesIsMutable(); + namespaces_.set(index, value); + onChanged(); + } else { + namespacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public Builder setNamespaces(int index, com.google.protobuf.ListValue.Builder builderForValue) { + if (namespacesBuilder_ == null) { + ensureNamespacesIsMutable(); + namespaces_.set(index, builderForValue.build()); + onChanged(); + } else { + namespacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public Builder addNamespaces(com.google.protobuf.ListValue value) { + if (namespacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespacesIsMutable(); + namespaces_.add(value); + onChanged(); + } else { + namespacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public Builder addNamespaces(int index, com.google.protobuf.ListValue value) { + if (namespacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespacesIsMutable(); + namespaces_.add(index, value); + onChanged(); + } else { + namespacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public Builder addNamespaces(com.google.protobuf.ListValue.Builder builderForValue) { + if (namespacesBuilder_ == null) { + ensureNamespacesIsMutable(); + namespaces_.add(builderForValue.build()); + onChanged(); + } else { + namespacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public Builder addNamespaces(int index, com.google.protobuf.ListValue.Builder builderForValue) { + if (namespacesBuilder_ == null) { + ensureNamespacesIsMutable(); + namespaces_.add(index, builderForValue.build()); + onChanged(); + } else { + namespacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public Builder addAllNamespaces( + java.lang.Iterable values) { + if (namespacesBuilder_ == null) { + ensureNamespacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespaces_); + onChanged(); + } else { + namespacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public Builder clearNamespaces() { + if (namespacesBuilder_ == null) { + namespaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + namespacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public Builder removeNamespaces(int index) { + if (namespacesBuilder_ == null) { + ensureNamespacesIsMutable(); + namespaces_.remove(index); + onChanged(); + } else { + namespacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public com.google.protobuf.ListValue.Builder getNamespacesBuilder(int index) { + return getNamespacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public com.google.protobuf.ListValueOrBuilder getNamespacesOrBuilder(int index) { + if (namespacesBuilder_ == null) { + return namespaces_.get(index); + } else { + return namespacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public java.util.List + getNamespacesOrBuilderList() { + if (namespacesBuilder_ != null) { + return namespacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(namespaces_); + } + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public com.google.protobuf.ListValue.Builder addNamespacesBuilder() { + return getNamespacesFieldBuilder() + .addBuilder(com.google.protobuf.ListValue.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public com.google.protobuf.ListValue.Builder addNamespacesBuilder(int index) { + return getNamespacesFieldBuilder() + .addBuilder(index, com.google.protobuf.ListValue.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of namespaces.
+     * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + public java.util.List getNamespacesBuilderList() { + return getNamespacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder> + getNamespacesFieldBuilder() { + if (namespacesBuilder_ == null) { + namespacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.ListValue, + com.google.protobuf.ListValue.Builder, + com.google.protobuf.ListValueOrBuilder>( + namespaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + namespaces_ = null; + } + return namespacesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * The next page token for pagination.
+     * 
+ * + * string next_page_token = 2 [json_name = "next-page-token"]; + * + * @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; + } + } + + /** + * + * + *
+     * The next page token for pagination.
+     * 
+ * + * string next_page_token = 2 [json_name = "next-page-token"]; + * + * @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; + } + } + + /** + * + * + *
+     * The next page token for pagination.
+     * 
+ * + * string next_page_token = 2 [json_name = "next-page-token"]; + * + * @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; + } + + /** + * + * + *
+     * The next page token for pagination.
+     * 
+ * + * string next_page_token = 2 [json_name = "next-page-token"]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The next page token for pagination.
+     * 
+ * + * string next_page_token = 2 [json_name = "next-page-token"]; + * + * @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.cloud.biglake.v1.ListIcebergNamespacesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.ListIcebergNamespacesResponse) + private static final com.google.cloud.biglake.v1.ListIcebergNamespacesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.ListIcebergNamespacesResponse(); + } + + public static com.google.cloud.biglake.v1.ListIcebergNamespacesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIcebergNamespacesResponse 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.cloud.biglake.v1.ListIcebergNamespacesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesResponseOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesResponseOrBuilder.java new file mode 100644 index 000000000000..aee6cd833231 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergNamespacesResponseOrBuilder.java @@ -0,0 +1,107 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface ListIcebergNamespacesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.ListIcebergNamespacesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of namespaces.
+   * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + java.util.List getNamespacesList(); + + /** + * + * + *
+   * The list of namespaces.
+   * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + com.google.protobuf.ListValue getNamespaces(int index); + + /** + * + * + *
+   * The list of namespaces.
+   * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + int getNamespacesCount(); + + /** + * + * + *
+   * The list of namespaces.
+   * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + java.util.List getNamespacesOrBuilderList(); + + /** + * + * + *
+   * The list of namespaces.
+   * 
+ * + * repeated .google.protobuf.ListValue namespaces = 1; + */ + com.google.protobuf.ListValueOrBuilder getNamespacesOrBuilder(int index); + + /** + * + * + *
+   * The next page token for pagination.
+   * 
+ * + * string next_page_token = 2 [json_name = "next-page-token"]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * The next page token for pagination.
+   * 
+ * + * string next_page_token = 2 [json_name = "next-page-token"]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersRequest.java new file mode 100644 index 000000000000..9522ca887a06 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersRequest.java @@ -0,0 +1,942 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `ListIcebergTableIdentifiers` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest} + */ +public final class ListIcebergTableIdentifiersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest) + ListIcebergTableIdentifiersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListIcebergTableIdentifiersRequest.newBuilder() to construct. + private ListIcebergTableIdentifiersRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIcebergTableIdentifiersRequest() { + pageToken_ = ""; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListIcebergTableIdentifiersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest.class, + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest.Builder.class); + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. PageToken for pagination.
+   * 
+ * + * string page_token = 1 [(.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. PageToken for pagination.
+   * 
+ * + * string page_token = 1 [(.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; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. Page size for pagination.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PARENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The namespace to list tables from.
+   * 
+ * + * + * string parent = 3 [(.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 namespace to list tables from.
+   * 
+ * + * + * string parent = 3 [(.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; + } + } + + 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(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parent_); + } + 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(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parent_); + } + 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.cloud.biglake.v1.ListIcebergTableIdentifiersRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest other = + (com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest) obj; + + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) 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) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest 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.cloud.biglake.v1.ListIcebergTableIdentifiersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest 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.cloud.biglake.v1.ListIcebergTableIdentifiersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest 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.cloud.biglake.v1.ListIcebergTableIdentifiersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest 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.cloud.biglake.v1.ListIcebergTableIdentifiersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `ListIcebergTableIdentifiers` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest) + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest.class, + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageToken_ = ""; + pageSize_ = 0; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest + getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest build() { + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest buildPartial() { + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest result = + new com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parent_ = parent_; + } + } + + @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.cloud.biglake.v1.ListIcebergTableIdentifiersRequest) { + return mergeFrom((com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest other) { + if (other + == com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest.getDefaultInstance()) + return this; + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + 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: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + parent_ = 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 pageToken_ = ""; + + /** + * + * + *
+     * Optional. PageToken for pagination.
+     * 
+ * + * string page_token = 1 [(.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. PageToken for pagination.
+     * 
+ * + * string page_token = 1 [(.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. PageToken for pagination.
+     * 
+ * + * string page_token = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. PageToken for pagination.
+     * 
+ * + * string page_token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. PageToken for pagination.
+     * 
+ * + * string page_token = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Page size for pagination.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Page size for pagination.
+     * 
+ * + * 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. Page size for pagination.
+     * 
+ * + * 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 parent_ = ""; + + /** + * + * + *
+     * Required. The namespace to list tables from.
+     * 
+ * + * + * string parent = 3 [(.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 namespace to list tables from.
+     * 
+ * + * + * string parent = 3 [(.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 namespace to list tables from.
+     * 
+ * + * + * string parent = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The namespace to list tables from.
+     * 
+ * + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The namespace to list tables from.
+     * 
+ * + * + * string parent = 3 [(.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_ |= 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.cloud.biglake.v1.ListIcebergTableIdentifiersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest) + private static final com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest(); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIcebergTableIdentifiersRequest 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.cloud.biglake.v1.ListIcebergTableIdentifiersRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersRequestOrBuilder.java new file mode 100644 index 000000000000..020917bcb599 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface ListIcebergTableIdentifiersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. PageToken for pagination.
+   * 
+ * + * string page_token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. PageToken for pagination.
+   * 
+ * + * string page_token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Page size for pagination.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Required. The namespace to list tables from.
+   * 
+ * + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The namespace to list tables from.
+   * 
+ * + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersResponse.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersResponse.java new file mode 100644 index 000000000000..f8ba8ca1f563 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersResponse.java @@ -0,0 +1,1221 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The response message for the `ListIcebergTableIdentifiers` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse} + */ +public final class ListIcebergTableIdentifiersResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse) + ListIcebergTableIdentifiersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListIcebergTableIdentifiersResponse.newBuilder() to construct. + private ListIcebergTableIdentifiersResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIcebergTableIdentifiersResponse() { + identifiers_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListIcebergTableIdentifiersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse.class, + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse.Builder.class); + } + + public static final int IDENTIFIERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List identifiers_; + + /** + * + * + *
+   * Output only. The list of table identifiers.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getIdentifiersList() { + return identifiers_; + } + + /** + * + * + *
+   * Output only. The list of table identifiers.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getIdentifiersOrBuilderList() { + return identifiers_; + } + + /** + * + * + *
+   * Output only. The list of table identifiers.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getIdentifiersCount() { + return identifiers_.size(); + } + + /** + * + * + *
+   * Output only. The list of table identifiers.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.biglake.v1.TableIdentifier getIdentifiers(int index) { + return identifiers_.get(index); + } + + /** + * + * + *
+   * Output only. The list of table identifiers.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.biglake.v1.TableIdentifierOrBuilder getIdentifiersOrBuilder(int index) { + return identifiers_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Output only. The next page token for pagination.
+   * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
+   * Output only. The next page token for pagination.
+   * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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 < identifiers_.size(); i++) { + output.writeMessage(1, identifiers_.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 < identifiers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, identifiers_.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.cloud.biglake.v1.ListIcebergTableIdentifiersResponse)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse other = + (com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse) obj; + + if (!getIdentifiersList().equals(other.getIdentifiersList())) 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 (getIdentifiersCount() > 0) { + hash = (37 * hash) + IDENTIFIERS_FIELD_NUMBER; + hash = (53 * hash) + getIdentifiersList().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.cloud.biglake.v1.ListIcebergTableIdentifiersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse 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.cloud.biglake.v1.ListIcebergTableIdentifiersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse 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.cloud.biglake.v1.ListIcebergTableIdentifiersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse 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.cloud.biglake.v1.ListIcebergTableIdentifiersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse 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.cloud.biglake.v1.ListIcebergTableIdentifiersResponse 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 response message for the `ListIcebergTableIdentifiers` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse) + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse.class, + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (identifiersBuilder_ == null) { + identifiers_ = java.util.Collections.emptyList(); + } else { + identifiers_ = null; + identifiersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse + getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse build() { + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse buildPartial() { + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse result = + new com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse result) { + if (identifiersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + identifiers_ = java.util.Collections.unmodifiableList(identifiers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.identifiers_ = identifiers_; + } else { + result.identifiers_ = identifiersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse 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.cloud.biglake.v1.ListIcebergTableIdentifiersResponse) { + return mergeFrom((com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse other) { + if (other + == com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse.getDefaultInstance()) + return this; + if (identifiersBuilder_ == null) { + if (!other.identifiers_.isEmpty()) { + if (identifiers_.isEmpty()) { + identifiers_ = other.identifiers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdentifiersIsMutable(); + identifiers_.addAll(other.identifiers_); + } + onChanged(); + } + } else { + if (!other.identifiers_.isEmpty()) { + if (identifiersBuilder_.isEmpty()) { + identifiersBuilder_.dispose(); + identifiersBuilder_ = null; + identifiers_ = other.identifiers_; + bitField0_ = (bitField0_ & ~0x00000001); + identifiersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIdentifiersFieldBuilder() + : null; + } else { + identifiersBuilder_.addAllMessages(other.identifiers_); + } + } + } + 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.cloud.biglake.v1.TableIdentifier m = + input.readMessage( + com.google.cloud.biglake.v1.TableIdentifier.parser(), extensionRegistry); + if (identifiersBuilder_ == null) { + ensureIdentifiersIsMutable(); + identifiers_.add(m); + } else { + identifiersBuilder_.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 identifiers_ = + java.util.Collections.emptyList(); + + private void ensureIdentifiersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + identifiers_ = + new java.util.ArrayList(identifiers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.biglake.v1.TableIdentifier, + com.google.cloud.biglake.v1.TableIdentifier.Builder, + com.google.cloud.biglake.v1.TableIdentifierOrBuilder> + identifiersBuilder_; + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getIdentifiersList() { + if (identifiersBuilder_ == null) { + return java.util.Collections.unmodifiableList(identifiers_); + } else { + return identifiersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getIdentifiersCount() { + if (identifiersBuilder_ == null) { + return identifiers_.size(); + } else { + return identifiersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.biglake.v1.TableIdentifier getIdentifiers(int index) { + if (identifiersBuilder_ == null) { + return identifiers_.get(index); + } else { + return identifiersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIdentifiers(int index, com.google.cloud.biglake.v1.TableIdentifier value) { + if (identifiersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentifiersIsMutable(); + identifiers_.set(index, value); + onChanged(); + } else { + identifiersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIdentifiers( + int index, com.google.cloud.biglake.v1.TableIdentifier.Builder builderForValue) { + if (identifiersBuilder_ == null) { + ensureIdentifiersIsMutable(); + identifiers_.set(index, builderForValue.build()); + onChanged(); + } else { + identifiersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addIdentifiers(com.google.cloud.biglake.v1.TableIdentifier value) { + if (identifiersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentifiersIsMutable(); + identifiers_.add(value); + onChanged(); + } else { + identifiersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addIdentifiers(int index, com.google.cloud.biglake.v1.TableIdentifier value) { + if (identifiersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentifiersIsMutable(); + identifiers_.add(index, value); + onChanged(); + } else { + identifiersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addIdentifiers( + com.google.cloud.biglake.v1.TableIdentifier.Builder builderForValue) { + if (identifiersBuilder_ == null) { + ensureIdentifiersIsMutable(); + identifiers_.add(builderForValue.build()); + onChanged(); + } else { + identifiersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addIdentifiers( + int index, com.google.cloud.biglake.v1.TableIdentifier.Builder builderForValue) { + if (identifiersBuilder_ == null) { + ensureIdentifiersIsMutable(); + identifiers_.add(index, builderForValue.build()); + onChanged(); + } else { + identifiersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllIdentifiers( + java.lang.Iterable values) { + if (identifiersBuilder_ == null) { + ensureIdentifiersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, identifiers_); + onChanged(); + } else { + identifiersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearIdentifiers() { + if (identifiersBuilder_ == null) { + identifiers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + identifiersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeIdentifiers(int index) { + if (identifiersBuilder_ == null) { + ensureIdentifiersIsMutable(); + identifiers_.remove(index); + onChanged(); + } else { + identifiersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.biglake.v1.TableIdentifier.Builder getIdentifiersBuilder(int index) { + return getIdentifiersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.biglake.v1.TableIdentifierOrBuilder getIdentifiersOrBuilder(int index) { + if (identifiersBuilder_ == null) { + return identifiers_.get(index); + } else { + return identifiersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getIdentifiersOrBuilderList() { + if (identifiersBuilder_ != null) { + return identifiersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(identifiers_); + } + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.biglake.v1.TableIdentifier.Builder addIdentifiersBuilder() { + return getIdentifiersFieldBuilder() + .addBuilder(com.google.cloud.biglake.v1.TableIdentifier.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.biglake.v1.TableIdentifier.Builder addIdentifiersBuilder(int index) { + return getIdentifiersFieldBuilder() + .addBuilder(index, com.google.cloud.biglake.v1.TableIdentifier.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The list of table identifiers.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getIdentifiersBuilderList() { + return getIdentifiersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.biglake.v1.TableIdentifier, + com.google.cloud.biglake.v1.TableIdentifier.Builder, + com.google.cloud.biglake.v1.TableIdentifierOrBuilder> + getIdentifiersFieldBuilder() { + if (identifiersBuilder_ == null) { + identifiersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.biglake.v1.TableIdentifier, + com.google.cloud.biglake.v1.TableIdentifier.Builder, + com.google.cloud.biglake.v1.TableIdentifierOrBuilder>( + identifiers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + identifiers_ = null; + } + return identifiersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Output only. The next page token for pagination.
+     * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The next page token for pagination.
+     * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The next page token for pagination.
+     * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + + /** + * + * + *
+     * Output only. The next page token for pagination.
+     * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The next page token for pagination.
+     * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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.cloud.biglake.v1.ListIcebergTableIdentifiersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse) + private static final com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse(); + } + + public static com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIcebergTableIdentifiersResponse 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.cloud.biglake.v1.ListIcebergTableIdentifiersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersResponseOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersResponseOrBuilder.java new file mode 100644 index 000000000000..0f996ca0d98e --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ListIcebergTableIdentifiersResponseOrBuilder.java @@ -0,0 +1,122 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface ListIcebergTableIdentifiersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The list of table identifiers.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getIdentifiersList(); + + /** + * + * + *
+   * Output only. The list of table identifiers.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.biglake.v1.TableIdentifier getIdentifiers(int index); + + /** + * + * + *
+   * Output only. The list of table identifiers.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getIdentifiersCount(); + + /** + * + * + *
+   * Output only. The list of table identifiers.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getIdentifiersOrBuilderList(); + + /** + * + * + *
+   * Output only. The list of table identifiers.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.TableIdentifier identifiers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.biglake.v1.TableIdentifierOrBuilder getIdentifiersOrBuilder(int index); + + /** + * + * + *
+   * Output only. The next page token for pagination.
+   * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Output only. The next page token for pagination.
+   * 
+ * + * + * string next_page_token = 2 [json_name = "next-page-token", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/LoadIcebergTableCredentialsResponse.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/LoadIcebergTableCredentialsResponse.java new file mode 100644 index 000000000000..0c41808f4165 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/LoadIcebergTableCredentialsResponse.java @@ -0,0 +1,1030 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The response message for the `LoadCredentials` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse} + */ +public final class LoadIcebergTableCredentialsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse) + LoadIcebergTableCredentialsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use LoadIcebergTableCredentialsResponse.newBuilder() to construct. + private LoadIcebergTableCredentialsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LoadIcebergTableCredentialsResponse() { + storageCredentials_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LoadIcebergTableCredentialsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_LoadIcebergTableCredentialsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_LoadIcebergTableCredentialsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse.class, + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse.Builder.class); + } + + public static final int STORAGE_CREDENTIALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List storageCredentials_; + + /** + * + * + *
+   * The credentials for the table assigned to the caller.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + @java.lang.Override + public java.util.List getStorageCredentialsList() { + return storageCredentials_; + } + + /** + * + * + *
+   * The credentials for the table assigned to the caller.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + @java.lang.Override + public java.util.List + getStorageCredentialsOrBuilderList() { + return storageCredentials_; + } + + /** + * + * + *
+   * The credentials for the table assigned to the caller.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + @java.lang.Override + public int getStorageCredentialsCount() { + return storageCredentials_.size(); + } + + /** + * + * + *
+   * The credentials for the table assigned to the caller.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + @java.lang.Override + public com.google.cloud.biglake.v1.StorageCredential getStorageCredentials(int index) { + return storageCredentials_.get(index); + } + + /** + * + * + *
+   * The credentials for the table assigned to the caller.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + @java.lang.Override + public com.google.cloud.biglake.v1.StorageCredentialOrBuilder getStorageCredentialsOrBuilder( + int index) { + return storageCredentials_.get(index); + } + + 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 < storageCredentials_.size(); i++) { + output.writeMessage(1, storageCredentials_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < storageCredentials_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, storageCredentials_.get(i)); + } + 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.cloud.biglake.v1.LoadIcebergTableCredentialsResponse)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse other = + (com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse) obj; + + if (!getStorageCredentialsList().equals(other.getStorageCredentialsList())) 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 (getStorageCredentialsCount() > 0) { + hash = (37 * hash) + STORAGE_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getStorageCredentialsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse 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.cloud.biglake.v1.LoadIcebergTableCredentialsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse 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.cloud.biglake.v1.LoadIcebergTableCredentialsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse 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.cloud.biglake.v1.LoadIcebergTableCredentialsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse 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.cloud.biglake.v1.LoadIcebergTableCredentialsResponse 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 response message for the `LoadCredentials` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse) + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_LoadIcebergTableCredentialsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_LoadIcebergTableCredentialsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse.class, + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (storageCredentialsBuilder_ == null) { + storageCredentials_ = java.util.Collections.emptyList(); + } else { + storageCredentials_ = null; + storageCredentialsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_LoadIcebergTableCredentialsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse + getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse build() { + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse buildPartial() { + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse result = + new com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse result) { + if (storageCredentialsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + storageCredentials_ = java.util.Collections.unmodifiableList(storageCredentials_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.storageCredentials_ = storageCredentials_; + } else { + result.storageCredentials_ = storageCredentialsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse result) { + int from_bitField0_ = 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.cloud.biglake.v1.LoadIcebergTableCredentialsResponse) { + return mergeFrom((com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse other) { + if (other + == com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse.getDefaultInstance()) + return this; + if (storageCredentialsBuilder_ == null) { + if (!other.storageCredentials_.isEmpty()) { + if (storageCredentials_.isEmpty()) { + storageCredentials_ = other.storageCredentials_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStorageCredentialsIsMutable(); + storageCredentials_.addAll(other.storageCredentials_); + } + onChanged(); + } + } else { + if (!other.storageCredentials_.isEmpty()) { + if (storageCredentialsBuilder_.isEmpty()) { + storageCredentialsBuilder_.dispose(); + storageCredentialsBuilder_ = null; + storageCredentials_ = other.storageCredentials_; + bitField0_ = (bitField0_ & ~0x00000001); + storageCredentialsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStorageCredentialsFieldBuilder() + : null; + } else { + storageCredentialsBuilder_.addAllMessages(other.storageCredentials_); + } + } + } + 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.cloud.biglake.v1.StorageCredential m = + input.readMessage( + com.google.cloud.biglake.v1.StorageCredential.parser(), extensionRegistry); + if (storageCredentialsBuilder_ == null) { + ensureStorageCredentialsIsMutable(); + storageCredentials_.add(m); + } else { + storageCredentialsBuilder_.addMessage(m); + } + 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.util.List storageCredentials_ = + java.util.Collections.emptyList(); + + private void ensureStorageCredentialsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + storageCredentials_ = + new java.util.ArrayList( + storageCredentials_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.biglake.v1.StorageCredential, + com.google.cloud.biglake.v1.StorageCredential.Builder, + com.google.cloud.biglake.v1.StorageCredentialOrBuilder> + storageCredentialsBuilder_; + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public java.util.List + getStorageCredentialsList() { + if (storageCredentialsBuilder_ == null) { + return java.util.Collections.unmodifiableList(storageCredentials_); + } else { + return storageCredentialsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public int getStorageCredentialsCount() { + if (storageCredentialsBuilder_ == null) { + return storageCredentials_.size(); + } else { + return storageCredentialsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public com.google.cloud.biglake.v1.StorageCredential getStorageCredentials(int index) { + if (storageCredentialsBuilder_ == null) { + return storageCredentials_.get(index); + } else { + return storageCredentialsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public Builder setStorageCredentials( + int index, com.google.cloud.biglake.v1.StorageCredential value) { + if (storageCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStorageCredentialsIsMutable(); + storageCredentials_.set(index, value); + onChanged(); + } else { + storageCredentialsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public Builder setStorageCredentials( + int index, com.google.cloud.biglake.v1.StorageCredential.Builder builderForValue) { + if (storageCredentialsBuilder_ == null) { + ensureStorageCredentialsIsMutable(); + storageCredentials_.set(index, builderForValue.build()); + onChanged(); + } else { + storageCredentialsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public Builder addStorageCredentials(com.google.cloud.biglake.v1.StorageCredential value) { + if (storageCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStorageCredentialsIsMutable(); + storageCredentials_.add(value); + onChanged(); + } else { + storageCredentialsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public Builder addStorageCredentials( + int index, com.google.cloud.biglake.v1.StorageCredential value) { + if (storageCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStorageCredentialsIsMutable(); + storageCredentials_.add(index, value); + onChanged(); + } else { + storageCredentialsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public Builder addStorageCredentials( + com.google.cloud.biglake.v1.StorageCredential.Builder builderForValue) { + if (storageCredentialsBuilder_ == null) { + ensureStorageCredentialsIsMutable(); + storageCredentials_.add(builderForValue.build()); + onChanged(); + } else { + storageCredentialsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public Builder addStorageCredentials( + int index, com.google.cloud.biglake.v1.StorageCredential.Builder builderForValue) { + if (storageCredentialsBuilder_ == null) { + ensureStorageCredentialsIsMutable(); + storageCredentials_.add(index, builderForValue.build()); + onChanged(); + } else { + storageCredentialsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public Builder addAllStorageCredentials( + java.lang.Iterable values) { + if (storageCredentialsBuilder_ == null) { + ensureStorageCredentialsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, storageCredentials_); + onChanged(); + } else { + storageCredentialsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public Builder clearStorageCredentials() { + if (storageCredentialsBuilder_ == null) { + storageCredentials_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + storageCredentialsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public Builder removeStorageCredentials(int index) { + if (storageCredentialsBuilder_ == null) { + ensureStorageCredentialsIsMutable(); + storageCredentials_.remove(index); + onChanged(); + } else { + storageCredentialsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public com.google.cloud.biglake.v1.StorageCredential.Builder getStorageCredentialsBuilder( + int index) { + return getStorageCredentialsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public com.google.cloud.biglake.v1.StorageCredentialOrBuilder getStorageCredentialsOrBuilder( + int index) { + if (storageCredentialsBuilder_ == null) { + return storageCredentials_.get(index); + } else { + return storageCredentialsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public java.util.List + getStorageCredentialsOrBuilderList() { + if (storageCredentialsBuilder_ != null) { + return storageCredentialsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(storageCredentials_); + } + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public com.google.cloud.biglake.v1.StorageCredential.Builder addStorageCredentialsBuilder() { + return getStorageCredentialsFieldBuilder() + .addBuilder(com.google.cloud.biglake.v1.StorageCredential.getDefaultInstance()); + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public com.google.cloud.biglake.v1.StorageCredential.Builder addStorageCredentialsBuilder( + int index) { + return getStorageCredentialsFieldBuilder() + .addBuilder(index, com.google.cloud.biglake.v1.StorageCredential.getDefaultInstance()); + } + + /** + * + * + *
+     * The credentials for the table assigned to the caller.
+     * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + public java.util.List + getStorageCredentialsBuilderList() { + return getStorageCredentialsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.biglake.v1.StorageCredential, + com.google.cloud.biglake.v1.StorageCredential.Builder, + com.google.cloud.biglake.v1.StorageCredentialOrBuilder> + getStorageCredentialsFieldBuilder() { + if (storageCredentialsBuilder_ == null) { + storageCredentialsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.biglake.v1.StorageCredential, + com.google.cloud.biglake.v1.StorageCredential.Builder, + com.google.cloud.biglake.v1.StorageCredentialOrBuilder>( + storageCredentials_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + storageCredentials_ = null; + } + return storageCredentialsBuilder_; + } + + @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.cloud.biglake.v1.LoadIcebergTableCredentialsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse) + private static final com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse(); + } + + public static com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoadIcebergTableCredentialsResponse 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.cloud.biglake.v1.LoadIcebergTableCredentialsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/LoadIcebergTableCredentialsResponseOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/LoadIcebergTableCredentialsResponseOrBuilder.java new file mode 100644 index 000000000000..573706d3d37f --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/LoadIcebergTableCredentialsResponseOrBuilder.java @@ -0,0 +1,92 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface LoadIcebergTableCredentialsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The credentials for the table assigned to the caller.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + java.util.List getStorageCredentialsList(); + + /** + * + * + *
+   * The credentials for the table assigned to the caller.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + com.google.cloud.biglake.v1.StorageCredential getStorageCredentials(int index); + + /** + * + * + *
+   * The credentials for the table assigned to the caller.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + int getStorageCredentialsCount(); + + /** + * + * + *
+   * The credentials for the table assigned to the caller.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + java.util.List + getStorageCredentialsOrBuilderList(); + + /** + * + * + *
+   * The credentials for the table assigned to the caller.
+   * 
+ * + * + * repeated .google.cloud.biglake.v1.StorageCredential storage_credentials = 1 [json_name = "storage-credentials"]; + * + */ + com.google.cloud.biglake.v1.StorageCredentialOrBuilder getStorageCredentialsOrBuilder(int index); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ProjectName.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ProjectName.java new file mode 100644 index 000000000000..a8cc33b751af --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ProjectName.java @@ -0,0 +1,168 @@ +/* + * 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.cloud.biglake.v1; + +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 ProjectName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + private volatile Map fieldValuesMap; + private final String project; + + @Deprecated + protected ProjectName() { + project = null; + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + 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 (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.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); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT.instantiate("project", project); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ProjectName that = ((ProjectName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(ProjectName projectName) { + this.project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/RegisterIcebergTableRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/RegisterIcebergTableRequest.java new file mode 100644 index 000000000000..fa259e35e7d7 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/RegisterIcebergTableRequest.java @@ -0,0 +1,1251 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `RegisterIcebergTable` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.RegisterIcebergTableRequest} + */ +public final class RegisterIcebergTableRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.RegisterIcebergTableRequest) + RegisterIcebergTableRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RegisterIcebergTableRequest.newBuilder() to construct. + private RegisterIcebergTableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RegisterIcebergTableRequest() { + parent_ = ""; + name_ = ""; + metadataLocation_ = ""; + overwrite_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RegisterIcebergTableRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_RegisterIcebergTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_RegisterIcebergTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.RegisterIcebergTableRequest.class, + com.google.cloud.biglake.v1.RegisterIcebergTableRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Table to register in the format:
+   * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
+   * 
+ * + * + * 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. Table to register in the format:
+   * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
+   * 
+ * + * + * 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 NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the table to register.
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 name of the table to register.
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 METADATA_LOCATION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataLocation_ = ""; + + /** + * + * + *
+   * Required. The metadata location of the table.
+   * 
+ * + * + * string metadata_location = 3 [json_name = "metadata-location", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metadataLocation. + */ + @java.lang.Override + public java.lang.String getMetadataLocation() { + java.lang.Object ref = metadataLocation_; + 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(); + metadataLocation_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The metadata location of the table.
+   * 
+ * + * + * string metadata_location = 3 [json_name = "metadata-location", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for metadataLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadataLocationBytes() { + java.lang.Object ref = metadataLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OVERWRITE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object overwrite_ = ""; + + /** + * + * + *
+   * Optional. Whether to overwrite the table if it already exists. Default is
+   * false. Currently this field is ignored and an error is returned if the
+   * table already exists.
+   * 
+ * + * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overwrite. + */ + @java.lang.Override + public java.lang.String getOverwrite() { + java.lang.Object ref = overwrite_; + 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(); + overwrite_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Whether to overwrite the table if it already exists. Default is
+   * false. Currently this field is ignored and an error is returned if the
+   * table already exists.
+   * 
+ * + * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for overwrite. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOverwriteBytes() { + java.lang.Object ref = overwrite_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + overwrite_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, metadataLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(overwrite_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, overwrite_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, metadataLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(overwrite_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, overwrite_); + } + 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.cloud.biglake.v1.RegisterIcebergTableRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.RegisterIcebergTableRequest other = + (com.google.cloud.biglake.v1.RegisterIcebergTableRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getName().equals(other.getName())) return false; + if (!getMetadataLocation().equals(other.getMetadataLocation())) return false; + if (!getOverwrite().equals(other.getOverwrite())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + METADATA_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getMetadataLocation().hashCode(); + hash = (37 * hash) + OVERWRITE_FIELD_NUMBER; + hash = (53 * hash) + getOverwrite().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.RegisterIcebergTableRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.RegisterIcebergTableRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.RegisterIcebergTableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.RegisterIcebergTableRequest 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.cloud.biglake.v1.RegisterIcebergTableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.RegisterIcebergTableRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.RegisterIcebergTableRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.RegisterIcebergTableRequest 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.cloud.biglake.v1.RegisterIcebergTableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.RegisterIcebergTableRequest 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.cloud.biglake.v1.RegisterIcebergTableRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.RegisterIcebergTableRequest 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.cloud.biglake.v1.RegisterIcebergTableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `RegisterIcebergTable` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.RegisterIcebergTableRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.RegisterIcebergTableRequest) + com.google.cloud.biglake.v1.RegisterIcebergTableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_RegisterIcebergTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_RegisterIcebergTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.RegisterIcebergTableRequest.class, + com.google.cloud.biglake.v1.RegisterIcebergTableRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.RegisterIcebergTableRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + name_ = ""; + metadataLocation_ = ""; + overwrite_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_RegisterIcebergTableRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.RegisterIcebergTableRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.RegisterIcebergTableRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.RegisterIcebergTableRequest build() { + com.google.cloud.biglake.v1.RegisterIcebergTableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.RegisterIcebergTableRequest buildPartial() { + com.google.cloud.biglake.v1.RegisterIcebergTableRequest result = + new com.google.cloud.biglake.v1.RegisterIcebergTableRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.RegisterIcebergTableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadataLocation_ = metadataLocation_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.overwrite_ = overwrite_; + } + } + + @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.cloud.biglake.v1.RegisterIcebergTableRequest) { + return mergeFrom((com.google.cloud.biglake.v1.RegisterIcebergTableRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.RegisterIcebergTableRequest other) { + if (other == com.google.cloud.biglake.v1.RegisterIcebergTableRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMetadataLocation().isEmpty()) { + metadataLocation_ = other.metadataLocation_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOverwrite().isEmpty()) { + overwrite_ = other.overwrite_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + metadataLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + overwrite_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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. Table to register in the format:
+     * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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. Table to register in the format:
+     * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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. Table to register in the format:
+     * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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. Table to register in the format:
+     * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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. Table to register in the format:
+     * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
+     * 
+ * + * + * 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 name_ = ""; + + /** + * + * + *
+     * Required. The name of the table to register.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 name of the table to register.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 name of the table to register.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the table to register.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the table to register.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object metadataLocation_ = ""; + + /** + * + * + *
+     * Required. The metadata location of the table.
+     * 
+ * + * + * string metadata_location = 3 [json_name = "metadata-location", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metadataLocation. + */ + public java.lang.String getMetadataLocation() { + java.lang.Object ref = metadataLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The metadata location of the table.
+     * 
+ * + * + * string metadata_location = 3 [json_name = "metadata-location", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for metadataLocation. + */ + public com.google.protobuf.ByteString getMetadataLocationBytes() { + java.lang.Object ref = metadataLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The metadata location of the table.
+     * 
+ * + * + * string metadata_location = 3 [json_name = "metadata-location", (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The metadataLocation to set. + * @return This builder for chaining. + */ + public Builder setMetadataLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metadataLocation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The metadata location of the table.
+     * 
+ * + * + * string metadata_location = 3 [json_name = "metadata-location", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMetadataLocation() { + metadataLocation_ = getDefaultInstance().getMetadataLocation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The metadata location of the table.
+     * 
+ * + * + * string metadata_location = 3 [json_name = "metadata-location", (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for metadataLocation to set. + * @return This builder for chaining. + */ + public Builder setMetadataLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metadataLocation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object overwrite_ = ""; + + /** + * + * + *
+     * Optional. Whether to overwrite the table if it already exists. Default is
+     * false. Currently this field is ignored and an error is returned if the
+     * table already exists.
+     * 
+ * + * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overwrite. + */ + public java.lang.String getOverwrite() { + java.lang.Object ref = overwrite_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + overwrite_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Whether to overwrite the table if it already exists. Default is
+     * false. Currently this field is ignored and an error is returned if the
+     * table already exists.
+     * 
+ * + * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for overwrite. + */ + public com.google.protobuf.ByteString getOverwriteBytes() { + java.lang.Object ref = overwrite_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + overwrite_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Whether to overwrite the table if it already exists. Default is
+     * false. Currently this field is ignored and an error is returned if the
+     * table already exists.
+     * 
+ * + * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The overwrite to set. + * @return This builder for chaining. + */ + public Builder setOverwrite(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + overwrite_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether to overwrite the table if it already exists. Default is
+     * false. Currently this field is ignored and an error is returned if the
+     * table already exists.
+     * 
+ * + * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOverwrite() { + overwrite_ = getDefaultInstance().getOverwrite(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether to overwrite the table if it already exists. Default is
+     * false. Currently this field is ignored and an error is returned if the
+     * table already exists.
+     * 
+ * + * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for overwrite to set. + * @return This builder for chaining. + */ + public Builder setOverwriteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + overwrite_ = value; + bitField0_ |= 0x00000008; + 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.cloud.biglake.v1.RegisterIcebergTableRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.RegisterIcebergTableRequest) + private static final com.google.cloud.biglake.v1.RegisterIcebergTableRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.RegisterIcebergTableRequest(); + } + + public static com.google.cloud.biglake.v1.RegisterIcebergTableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegisterIcebergTableRequest 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.cloud.biglake.v1.RegisterIcebergTableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/RegisterIcebergTableRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/RegisterIcebergTableRequestOrBuilder.java new file mode 100644 index 000000000000..107d51426964 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/RegisterIcebergTableRequestOrBuilder.java @@ -0,0 +1,144 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface RegisterIcebergTableRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.RegisterIcebergTableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Table to register in the format:
+   * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Table to register in the format:
+   * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The name of the table to register.
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the table to register.
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The metadata location of the table.
+   * 
+ * + * + * string metadata_location = 3 [json_name = "metadata-location", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metadataLocation. + */ + java.lang.String getMetadataLocation(); + + /** + * + * + *
+   * Required. The metadata location of the table.
+   * 
+ * + * + * string metadata_location = 3 [json_name = "metadata-location", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for metadataLocation. + */ + com.google.protobuf.ByteString getMetadataLocationBytes(); + + /** + * + * + *
+   * Optional. Whether to overwrite the table if it already exists. Default is
+   * false. Currently this field is ignored and an error is returned if the
+   * table already exists.
+   * 
+ * + * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overwrite. + */ + java.lang.String getOverwrite(); + + /** + * + * + *
+   * Optional. Whether to overwrite the table if it already exists. Default is
+   * false. Currently this field is ignored and an error is returned if the
+   * table already exists.
+   * 
+ * + * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for overwrite. + */ + com.google.protobuf.ByteString getOverwriteBytes(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/StorageCredential.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/StorageCredential.java new file mode 100644 index 000000000000..4fbf3d828fa0 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/StorageCredential.java @@ -0,0 +1,1015 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The storage credential for a path in the table.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.StorageCredential} + */ +public final class StorageCredential extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.StorageCredential) + StorageCredentialOrBuilder { + private static final long serialVersionUID = 0L; + + // Use StorageCredential.newBuilder() to construct. + private StorageCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StorageCredential() { + prefix_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StorageCredential(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_StorageCredential_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetConfig(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_StorageCredential_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.StorageCredential.class, + com.google.cloud.biglake.v1.StorageCredential.Builder.class); + } + + public static final int PREFIX_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object prefix_ = ""; + + /** + * + * + *
+   * Indicates a storage location prefix where the credential is relevant.
+   * 
+ * + * string prefix = 1; + * + * @return The prefix. + */ + @java.lang.Override + public java.lang.String getPrefix() { + java.lang.Object ref = prefix_; + 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(); + prefix_ = s; + return s; + } + } + + /** + * + * + *
+   * Indicates a storage location prefix where the credential is relevant.
+   * 
+ * + * string prefix = 1; + * + * @return The bytes for prefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrefixBytes() { + java.lang.Object ref = prefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIG_FIELD_NUMBER = 2; + + private static final class ConfigDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_StorageCredential_ConfigEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField config_; + + private com.google.protobuf.MapField internalGetConfig() { + if (config_ == null) { + return com.google.protobuf.MapField.emptyMapField(ConfigDefaultEntryHolder.defaultEntry); + } + return config_; + } + + public int getConfigCount() { + return internalGetConfig().getMap().size(); + } + + /** + * + * + *
+   * The credentials for the storage location. The keys that are populated are:
+   * - `gcs.oauth2.token`
+   * - `gcs.oauth2.token_expires_at`
+   * - `expiration-time` (to support federation from Polaris).
+   * 
+ * + * map<string, string> config = 2; + */ + @java.lang.Override + public boolean containsConfig(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConfig().getMap().containsKey(key); + } + + /** Use {@link #getConfigMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConfig() { + return getConfigMap(); + } + + /** + * + * + *
+   * The credentials for the storage location. The keys that are populated are:
+   * - `gcs.oauth2.token`
+   * - `gcs.oauth2.token_expires_at`
+   * - `expiration-time` (to support federation from Polaris).
+   * 
+ * + * map<string, string> config = 2; + */ + @java.lang.Override + public java.util.Map getConfigMap() { + return internalGetConfig().getMap(); + } + + /** + * + * + *
+   * The credentials for the storage location. The keys that are populated are:
+   * - `gcs.oauth2.token`
+   * - `gcs.oauth2.token_expires_at`
+   * - `expiration-time` (to support federation from Polaris).
+   * 
+ * + * map<string, string> config = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getConfigOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetConfig().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * The credentials for the storage location. The keys that are populated are:
+   * - `gcs.oauth2.token`
+   * - `gcs.oauth2.token_expires_at`
+   * - `expiration-time` (to support federation from Polaris).
+   * 
+ * + * map<string, string> config = 2; + */ + @java.lang.Override + public java.lang.String getConfigOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetConfig().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(prefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, prefix_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetConfig(), ConfigDefaultEntryHolder.defaultEntry, 2); + 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(prefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, prefix_); + } + for (java.util.Map.Entry entry : + internalGetConfig().getMap().entrySet()) { + com.google.protobuf.MapEntry config__ = + ConfigDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, config__); + } + 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.cloud.biglake.v1.StorageCredential)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.StorageCredential other = + (com.google.cloud.biglake.v1.StorageCredential) obj; + + if (!getPrefix().equals(other.getPrefix())) return false; + if (!internalGetConfig().equals(other.internalGetConfig())) 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) + PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getPrefix().hashCode(); + if (!internalGetConfig().getMap().isEmpty()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + internalGetConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.StorageCredential parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.StorageCredential parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.StorageCredential parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.StorageCredential 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.cloud.biglake.v1.StorageCredential parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.StorageCredential parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.StorageCredential parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.StorageCredential 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.cloud.biglake.v1.StorageCredential parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.StorageCredential 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.cloud.biglake.v1.StorageCredential parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.StorageCredential 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.cloud.biglake.v1.StorageCredential 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 storage credential for a path in the table.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.StorageCredential} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.StorageCredential) + com.google.cloud.biglake.v1.StorageCredentialOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_StorageCredential_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetConfig(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableConfig(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_StorageCredential_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.StorageCredential.class, + com.google.cloud.biglake.v1.StorageCredential.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.StorageCredential.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prefix_ = ""; + internalGetMutableConfig().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_StorageCredential_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.StorageCredential getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.StorageCredential.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.StorageCredential build() { + com.google.cloud.biglake.v1.StorageCredential result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.StorageCredential buildPartial() { + com.google.cloud.biglake.v1.StorageCredential result = + new com.google.cloud.biglake.v1.StorageCredential(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.StorageCredential result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prefix_ = prefix_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.config_ = internalGetConfig(); + result.config_.makeImmutable(); + } + } + + @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.cloud.biglake.v1.StorageCredential) { + return mergeFrom((com.google.cloud.biglake.v1.StorageCredential) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.StorageCredential other) { + if (other == com.google.cloud.biglake.v1.StorageCredential.getDefaultInstance()) return this; + if (!other.getPrefix().isEmpty()) { + prefix_ = other.prefix_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableConfig().mergeFrom(other.internalGetConfig()); + bitField0_ |= 0x00000002; + 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: + { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry config__ = + input.readMessage( + ConfigDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableConfig() + .getMutableMap() + .put(config__.getKey(), config__.getValue()); + 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 prefix_ = ""; + + /** + * + * + *
+     * Indicates a storage location prefix where the credential is relevant.
+     * 
+ * + * string prefix = 1; + * + * @return The prefix. + */ + public java.lang.String getPrefix() { + java.lang.Object ref = prefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Indicates a storage location prefix where the credential is relevant.
+     * 
+ * + * string prefix = 1; + * + * @return The bytes for prefix. + */ + public com.google.protobuf.ByteString getPrefixBytes() { + java.lang.Object ref = prefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Indicates a storage location prefix where the credential is relevant.
+     * 
+ * + * string prefix = 1; + * + * @param value The prefix to set. + * @return This builder for chaining. + */ + public Builder setPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prefix_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates a storage location prefix where the credential is relevant.
+     * 
+ * + * string prefix = 1; + * + * @return This builder for chaining. + */ + public Builder clearPrefix() { + prefix_ = getDefaultInstance().getPrefix(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates a storage location prefix where the credential is relevant.
+     * 
+ * + * string prefix = 1; + * + * @param value The bytes for prefix to set. + * @return This builder for chaining. + */ + public Builder setPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prefix_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.MapField config_; + + private com.google.protobuf.MapField internalGetConfig() { + if (config_ == null) { + return com.google.protobuf.MapField.emptyMapField(ConfigDefaultEntryHolder.defaultEntry); + } + return config_; + } + + private com.google.protobuf.MapField + internalGetMutableConfig() { + if (config_ == null) { + config_ = com.google.protobuf.MapField.newMapField(ConfigDefaultEntryHolder.defaultEntry); + } + if (!config_.isMutable()) { + config_ = config_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return config_; + } + + public int getConfigCount() { + return internalGetConfig().getMap().size(); + } + + /** + * + * + *
+     * The credentials for the storage location. The keys that are populated are:
+     * - `gcs.oauth2.token`
+     * - `gcs.oauth2.token_expires_at`
+     * - `expiration-time` (to support federation from Polaris).
+     * 
+ * + * map<string, string> config = 2; + */ + @java.lang.Override + public boolean containsConfig(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConfig().getMap().containsKey(key); + } + + /** Use {@link #getConfigMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConfig() { + return getConfigMap(); + } + + /** + * + * + *
+     * The credentials for the storage location. The keys that are populated are:
+     * - `gcs.oauth2.token`
+     * - `gcs.oauth2.token_expires_at`
+     * - `expiration-time` (to support federation from Polaris).
+     * 
+ * + * map<string, string> config = 2; + */ + @java.lang.Override + public java.util.Map getConfigMap() { + return internalGetConfig().getMap(); + } + + /** + * + * + *
+     * The credentials for the storage location. The keys that are populated are:
+     * - `gcs.oauth2.token`
+     * - `gcs.oauth2.token_expires_at`
+     * - `expiration-time` (to support federation from Polaris).
+     * 
+ * + * map<string, string> config = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getConfigOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetConfig().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * The credentials for the storage location. The keys that are populated are:
+     * - `gcs.oauth2.token`
+     * - `gcs.oauth2.token_expires_at`
+     * - `expiration-time` (to support federation from Polaris).
+     * 
+ * + * map<string, string> config = 2; + */ + @java.lang.Override + public java.lang.String getConfigOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetConfig().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableConfig().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * The credentials for the storage location. The keys that are populated are:
+     * - `gcs.oauth2.token`
+     * - `gcs.oauth2.token_expires_at`
+     * - `expiration-time` (to support federation from Polaris).
+     * 
+ * + * map<string, string> config = 2; + */ + public Builder removeConfig(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableConfig().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableConfig() { + bitField0_ |= 0x00000002; + return internalGetMutableConfig().getMutableMap(); + } + + /** + * + * + *
+     * The credentials for the storage location. The keys that are populated are:
+     * - `gcs.oauth2.token`
+     * - `gcs.oauth2.token_expires_at`
+     * - `expiration-time` (to support federation from Polaris).
+     * 
+ * + * map<string, string> config = 2; + */ + public Builder putConfig(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableConfig().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * The credentials for the storage location. The keys that are populated are:
+     * - `gcs.oauth2.token`
+     * - `gcs.oauth2.token_expires_at`
+     * - `expiration-time` (to support federation from Polaris).
+     * 
+ * + * map<string, string> config = 2; + */ + public Builder putAllConfig(java.util.Map values) { + internalGetMutableConfig().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + 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.cloud.biglake.v1.StorageCredential) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.StorageCredential) + private static final com.google.cloud.biglake.v1.StorageCredential DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.StorageCredential(); + } + + public static com.google.cloud.biglake.v1.StorageCredential getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageCredential 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.cloud.biglake.v1.StorageCredential getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/StorageCredentialOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/StorageCredentialOrBuilder.java new file mode 100644 index 000000000000..eb79474086c7 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/StorageCredentialOrBuilder.java @@ -0,0 +1,130 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface StorageCredentialOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.StorageCredential) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Indicates a storage location prefix where the credential is relevant.
+   * 
+ * + * string prefix = 1; + * + * @return The prefix. + */ + java.lang.String getPrefix(); + + /** + * + * + *
+   * Indicates a storage location prefix where the credential is relevant.
+   * 
+ * + * string prefix = 1; + * + * @return The bytes for prefix. + */ + com.google.protobuf.ByteString getPrefixBytes(); + + /** + * + * + *
+   * The credentials for the storage location. The keys that are populated are:
+   * - `gcs.oauth2.token`
+   * - `gcs.oauth2.token_expires_at`
+   * - `expiration-time` (to support federation from Polaris).
+   * 
+ * + * map<string, string> config = 2; + */ + int getConfigCount(); + + /** + * + * + *
+   * The credentials for the storage location. The keys that are populated are:
+   * - `gcs.oauth2.token`
+   * - `gcs.oauth2.token_expires_at`
+   * - `expiration-time` (to support federation from Polaris).
+   * 
+ * + * map<string, string> config = 2; + */ + boolean containsConfig(java.lang.String key); + + /** Use {@link #getConfigMap()} instead. */ + @java.lang.Deprecated + java.util.Map getConfig(); + + /** + * + * + *
+   * The credentials for the storage location. The keys that are populated are:
+   * - `gcs.oauth2.token`
+   * - `gcs.oauth2.token_expires_at`
+   * - `expiration-time` (to support federation from Polaris).
+   * 
+ * + * map<string, string> config = 2; + */ + java.util.Map getConfigMap(); + + /** + * + * + *
+   * The credentials for the storage location. The keys that are populated are:
+   * - `gcs.oauth2.token`
+   * - `gcs.oauth2.token_expires_at`
+   * - `expiration-time` (to support federation from Polaris).
+   * 
+ * + * map<string, string> config = 2; + */ + /* nullable */ + java.lang.String getConfigOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * The credentials for the storage location. The keys that are populated are:
+   * - `gcs.oauth2.token`
+   * - `gcs.oauth2.token_expires_at`
+   * - `expiration-time` (to support federation from Polaris).
+   * 
+ * + * map<string, string> config = 2; + */ + java.lang.String getConfigOrThrow(java.lang.String key); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/TableIdentifier.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/TableIdentifier.java new file mode 100644 index 000000000000..bcd28a12ab57 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/TableIdentifier.java @@ -0,0 +1,936 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The table identifier.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.TableIdentifier} + */ +public final class TableIdentifier extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.TableIdentifier) + TableIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TableIdentifier.newBuilder() to construct. + private TableIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TableIdentifier() { + namespace_ = com.google.protobuf.LazyStringArrayList.emptyList(); + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TableIdentifier(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_TableIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_TableIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.TableIdentifier.class, + com.google.cloud.biglake.v1.TableIdentifier.Builder.class); + } + + public static final int NAMESPACE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList namespace_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * The namespace of the table. This is always 1 element, since we don't
+   * support nested namespaces.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the namespace. + */ + public com.google.protobuf.ProtocolStringList getNamespaceList() { + return namespace_; + } + + /** + * + * + *
+   * The namespace of the table. This is always 1 element, since we don't
+   * support nested namespaces.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of namespace. + */ + public int getNamespaceCount() { + return namespace_.size(); + } + + /** + * + * + *
+   * The namespace of the table. This is always 1 element, since we don't
+   * support nested namespaces.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The namespace at the given index. + */ + public java.lang.String getNamespace(int index) { + return namespace_.get(index); + } + + /** + * + * + *
+   * The namespace of the table. This is always 1 element, since we don't
+   * support nested namespaces.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the namespace at the given index. + */ + public com.google.protobuf.ByteString getNamespaceBytes(int index) { + return namespace_.getByteString(index); + } + + public static final int NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * The table name.
+   * 
+ * + * string name = 2; + * + * @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; + } + } + + /** + * + * + *
+   * The table name.
+   * 
+ * + * string name = 2; + * + * @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 { + for (int i = 0; i < namespace_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < namespace_.size(); i++) { + dataSize += computeStringSizeNoTag(namespace_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamespaceList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.cloud.biglake.v1.TableIdentifier)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.TableIdentifier other = + (com.google.cloud.biglake.v1.TableIdentifier) obj; + + if (!getNamespaceList().equals(other.getNamespaceList())) return false; + 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(); + if (getNamespaceCount() > 0) { + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespaceList().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.cloud.biglake.v1.TableIdentifier parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.TableIdentifier parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.TableIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.TableIdentifier 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.cloud.biglake.v1.TableIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.TableIdentifier parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.TableIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.TableIdentifier 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.cloud.biglake.v1.TableIdentifier parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.TableIdentifier 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.cloud.biglake.v1.TableIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.TableIdentifier 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.cloud.biglake.v1.TableIdentifier 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 table identifier.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.TableIdentifier} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.TableIdentifier) + com.google.cloud.biglake.v1.TableIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_TableIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_TableIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.TableIdentifier.class, + com.google.cloud.biglake.v1.TableIdentifier.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.TableIdentifier.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + namespace_ = com.google.protobuf.LazyStringArrayList.emptyList(); + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_TableIdentifier_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.TableIdentifier getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.TableIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.TableIdentifier build() { + com.google.cloud.biglake.v1.TableIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.TableIdentifier buildPartial() { + com.google.cloud.biglake.v1.TableIdentifier result = + new com.google.cloud.biglake.v1.TableIdentifier(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.TableIdentifier result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + namespace_.makeImmutable(); + result.namespace_ = namespace_; + } + if (((from_bitField0_ & 0x00000002) != 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.cloud.biglake.v1.TableIdentifier) { + return mergeFrom((com.google.cloud.biglake.v1.TableIdentifier) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.TableIdentifier other) { + if (other == com.google.cloud.biglake.v1.TableIdentifier.getDefaultInstance()) return this; + if (!other.namespace_.isEmpty()) { + if (namespace_.isEmpty()) { + namespace_ = other.namespace_; + bitField0_ |= 0x00000001; + } else { + ensureNamespaceIsMutable(); + namespace_.addAll(other.namespace_); + } + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamespaceIsMutable(); + namespace_.add(s); + break; + } // case 10 + case 18: + { + name_ = 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 com.google.protobuf.LazyStringArrayList namespace_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamespaceIsMutable() { + if (!namespace_.isModifiable()) { + namespace_ = new com.google.protobuf.LazyStringArrayList(namespace_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * The namespace of the table. This is always 1 element, since we don't
+     * support nested namespaces.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the namespace. + */ + public com.google.protobuf.ProtocolStringList getNamespaceList() { + namespace_.makeImmutable(); + return namespace_; + } + + /** + * + * + *
+     * The namespace of the table. This is always 1 element, since we don't
+     * support nested namespaces.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of namespace. + */ + public int getNamespaceCount() { + return namespace_.size(); + } + + /** + * + * + *
+     * The namespace of the table. This is always 1 element, since we don't
+     * support nested namespaces.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The namespace at the given index. + */ + public java.lang.String getNamespace(int index) { + return namespace_.get(index); + } + + /** + * + * + *
+     * The namespace of the table. This is always 1 element, since we don't
+     * support nested namespaces.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the namespace at the given index. + */ + public com.google.protobuf.ByteString getNamespaceBytes(int index) { + return namespace_.getByteString(index); + } + + /** + * + * + *
+     * The namespace of the table. This is always 1 element, since we don't
+     * support nested namespaces.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespace(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespaceIsMutable(); + namespace_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The namespace of the table. This is always 1 element, since we don't
+     * support nested namespaces.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The namespace to add. + * @return This builder for chaining. + */ + public Builder addNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespaceIsMutable(); + namespace_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The namespace of the table. This is always 1 element, since we don't
+     * support nested namespaces.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @param values The namespace to add. + * @return This builder for chaining. + */ + public Builder addAllNamespace(java.lang.Iterable values) { + ensureNamespaceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespace_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The namespace of the table. This is always 1 element, since we don't
+     * support nested namespaces.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearNamespace() { + namespace_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * The namespace of the table. This is always 1 element, since we don't
+     * support nested namespaces.
+     * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the namespace to add. + * @return This builder for chaining. + */ + public Builder addNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamespaceIsMutable(); + namespace_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * The table name.
+     * 
+ * + * string name = 2; + * + * @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; + } + } + + /** + * + * + *
+     * The table name.
+     * 
+ * + * string name = 2; + * + * @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; + } + } + + /** + * + * + *
+     * The table name.
+     * 
+ * + * string name = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The table name.
+     * 
+ * + * string name = 2; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The table name.
+     * 
+ * + * string name = 2; + * + * @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_ |= 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.cloud.biglake.v1.TableIdentifier) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.TableIdentifier) + private static final com.google.cloud.biglake.v1.TableIdentifier DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.TableIdentifier(); + } + + public static com.google.cloud.biglake.v1.TableIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableIdentifier 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.cloud.biglake.v1.TableIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/TableIdentifierOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/TableIdentifierOrBuilder.java new file mode 100644 index 000000000000..e722fe2713ba --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/TableIdentifierOrBuilder.java @@ -0,0 +1,110 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface TableIdentifierOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.TableIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The namespace of the table. This is always 1 element, since we don't
+   * support nested namespaces.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the namespace. + */ + java.util.List getNamespaceList(); + + /** + * + * + *
+   * The namespace of the table. This is always 1 element, since we don't
+   * support nested namespaces.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of namespace. + */ + int getNamespaceCount(); + + /** + * + * + *
+   * The namespace of the table. This is always 1 element, since we don't
+   * support nested namespaces.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The namespace at the given index. + */ + java.lang.String getNamespace(int index); + + /** + * + * + *
+   * The namespace of the table. This is always 1 element, since we don't
+   * support nested namespaces.
+   * 
+ * + * repeated string namespace = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the namespace at the given index. + */ + com.google.protobuf.ByteString getNamespaceBytes(int index); + + /** + * + * + *
+   * The table name.
+   * 
+ * + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * The table name.
+   * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergCatalogRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergCatalogRequest.java new file mode 100644 index 000000000000..608bf81299a2 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergCatalogRequest.java @@ -0,0 +1,1050 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `UpdateIcebergCatalog` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.UpdateIcebergCatalogRequest} + */ +public final class UpdateIcebergCatalogRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.UpdateIcebergCatalogRequest) + UpdateIcebergCatalogRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateIcebergCatalogRequest.newBuilder() to construct. + private UpdateIcebergCatalogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateIcebergCatalogRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateIcebergCatalogRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest.class, + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest.Builder.class); + } + + private int bitField0_; + public static final int ICEBERG_CATALOG_FIELD_NUMBER = 1; + private com.google.cloud.biglake.v1.IcebergCatalog icebergCatalog_; + + /** + * + * + *
+   * Required. The catalog to update.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the icebergCatalog field is set. + */ + @java.lang.Override + public boolean hasIcebergCatalog() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The catalog to update.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergCatalog. + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalog() { + return icebergCatalog_ == null + ? com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance() + : icebergCatalog_; + } + + /** + * + * + *
+   * Required. The catalog to update.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergCatalogOrBuilder getIcebergCatalogOrBuilder() { + return icebergCatalog_ == null + ? com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance() + : icebergCatalog_; + } + + 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, getIcebergCatalog()); + } + 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, getIcebergCatalog()); + } + 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.cloud.biglake.v1.UpdateIcebergCatalogRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest other = + (com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest) obj; + + if (hasIcebergCatalog() != other.hasIcebergCatalog()) return false; + if (hasIcebergCatalog()) { + if (!getIcebergCatalog().equals(other.getIcebergCatalog())) 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 (hasIcebergCatalog()) { + hash = (37 * hash) + ICEBERG_CATALOG_FIELD_NUMBER; + hash = (53 * hash) + getIcebergCatalog().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.cloud.biglake.v1.UpdateIcebergCatalogRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest 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.cloud.biglake.v1.UpdateIcebergCatalogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest 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.cloud.biglake.v1.UpdateIcebergCatalogRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest 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.cloud.biglake.v1.UpdateIcebergCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest 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.cloud.biglake.v1.UpdateIcebergCatalogRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `UpdateIcebergCatalog` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.UpdateIcebergCatalogRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.UpdateIcebergCatalogRequest) + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest.class, + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIcebergCatalogFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + icebergCatalog_ = null; + if (icebergCatalogBuilder_ != null) { + icebergCatalogBuilder_.dispose(); + icebergCatalogBuilder_ = 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.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergCatalogRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest build() { + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest buildPartial() { + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest result = + new com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.icebergCatalog_ = + icebergCatalogBuilder_ == null ? icebergCatalog_ : icebergCatalogBuilder_.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.cloud.biglake.v1.UpdateIcebergCatalogRequest) { + return mergeFrom((com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest other) { + if (other == com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest.getDefaultInstance()) + return this; + if (other.hasIcebergCatalog()) { + mergeIcebergCatalog(other.getIcebergCatalog()); + } + 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(getIcebergCatalogFieldBuilder().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.cloud.biglake.v1.IcebergCatalog icebergCatalog_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergCatalog, + com.google.cloud.biglake.v1.IcebergCatalog.Builder, + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder> + icebergCatalogBuilder_; + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the icebergCatalog field is set. + */ + public boolean hasIcebergCatalog() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergCatalog. + */ + public com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalog() { + if (icebergCatalogBuilder_ == null) { + return icebergCatalog_ == null + ? com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance() + : icebergCatalog_; + } else { + return icebergCatalogBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIcebergCatalog(com.google.cloud.biglake.v1.IcebergCatalog value) { + if (icebergCatalogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + icebergCatalog_ = value; + } else { + icebergCatalogBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIcebergCatalog( + com.google.cloud.biglake.v1.IcebergCatalog.Builder builderForValue) { + if (icebergCatalogBuilder_ == null) { + icebergCatalog_ = builderForValue.build(); + } else { + icebergCatalogBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIcebergCatalog(com.google.cloud.biglake.v1.IcebergCatalog value) { + if (icebergCatalogBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && icebergCatalog_ != null + && icebergCatalog_ != com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance()) { + getIcebergCatalogBuilder().mergeFrom(value); + } else { + icebergCatalog_ = value; + } + } else { + icebergCatalogBuilder_.mergeFrom(value); + } + if (icebergCatalog_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIcebergCatalog() { + bitField0_ = (bitField0_ & ~0x00000001); + icebergCatalog_ = null; + if (icebergCatalogBuilder_ != null) { + icebergCatalogBuilder_.dispose(); + icebergCatalogBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.biglake.v1.IcebergCatalog.Builder getIcebergCatalogBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getIcebergCatalogFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.biglake.v1.IcebergCatalogOrBuilder getIcebergCatalogOrBuilder() { + if (icebergCatalogBuilder_ != null) { + return icebergCatalogBuilder_.getMessageOrBuilder(); + } else { + return icebergCatalog_ == null + ? com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance() + : icebergCatalog_; + } + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergCatalog, + com.google.cloud.biglake.v1.IcebergCatalog.Builder, + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder> + getIcebergCatalogFieldBuilder() { + if (icebergCatalogBuilder_ == null) { + icebergCatalogBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergCatalog, + com.google.cloud.biglake.v1.IcebergCatalog.Builder, + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder>( + getIcebergCatalog(), getParentForChildren(), isClean()); + icebergCatalog_ = null; + } + return icebergCatalogBuilder_; + } + + 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.cloud.biglake.v1.UpdateIcebergCatalogRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.UpdateIcebergCatalogRequest) + private static final com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest(); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateIcebergCatalogRequest 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.cloud.biglake.v1.UpdateIcebergCatalogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergCatalogRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergCatalogRequestOrBuilder.java new file mode 100644 index 000000000000..e53cd86c11b2 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergCatalogRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface UpdateIcebergCatalogRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.UpdateIcebergCatalogRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The catalog to update.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the icebergCatalog field is set. + */ + boolean hasIcebergCatalog(); + + /** + * + * + *
+   * Required. The catalog to update.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergCatalog. + */ + com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalog(); + + /** + * + * + *
+   * Required. The catalog to update.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergCatalog iceberg_catalog = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.biglake.v1.IcebergCatalogOrBuilder getIcebergCatalogOrBuilder(); + + /** + * + * + *
+   * 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/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceRequest.java new file mode 100644 index 000000000000..6cb2bb01c9fc --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceRequest.java @@ -0,0 +1,997 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The request message for the `UpdateIcebergNamespace` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.UpdateIcebergNamespaceRequest} + */ +public final class UpdateIcebergNamespaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.UpdateIcebergNamespaceRequest) + UpdateIcebergNamespaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateIcebergNamespaceRequest.newBuilder() to construct. + private UpdateIcebergNamespaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateIcebergNamespaceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateIcebergNamespaceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest.class, + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The namespace to update.
+   *
+   * The namespace's `name` field is used to identify the namespace to update.
+   * Format: projects/{project_id}/namespaces/{namespace}
+   * 
+ * + * + * 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 namespace to update.
+   *
+   * The namespace's `name` field is used to identify the namespace to update.
+   * Format: projects/{project_id}/namespaces/{namespace}
+   * 
+ * + * + * 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 ICEBERG_NAMESPACE_UPDATE_FIELD_NUMBER = 2; + private com.google.cloud.biglake.v1.IcebergNamespaceUpdate icebergNamespaceUpdate_; + + /** + * + * + *
+   * Required. The update to apply to the namespace.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the icebergNamespaceUpdate field is set. + */ + @java.lang.Override + public boolean hasIcebergNamespaceUpdate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The update to apply to the namespace.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergNamespaceUpdate. + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergNamespaceUpdate getIcebergNamespaceUpdate() { + return icebergNamespaceUpdate_ == null + ? com.google.cloud.biglake.v1.IcebergNamespaceUpdate.getDefaultInstance() + : icebergNamespaceUpdate_; + } + + /** + * + * + *
+   * Required. The update to apply to the namespace.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.biglake.v1.IcebergNamespaceUpdateOrBuilder + getIcebergNamespaceUpdateOrBuilder() { + return icebergNamespaceUpdate_ == null + ? com.google.cloud.biglake.v1.IcebergNamespaceUpdate.getDefaultInstance() + : icebergNamespaceUpdate_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getIcebergNamespaceUpdate()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIcebergNamespaceUpdate()); + } + 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.cloud.biglake.v1.UpdateIcebergNamespaceRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest other = + (com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasIcebergNamespaceUpdate() != other.hasIcebergNamespaceUpdate()) return false; + if (hasIcebergNamespaceUpdate()) { + if (!getIcebergNamespaceUpdate().equals(other.getIcebergNamespaceUpdate())) 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(); + if (hasIcebergNamespaceUpdate()) { + hash = (37 * hash) + ICEBERG_NAMESPACE_UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getIcebergNamespaceUpdate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest 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.cloud.biglake.v1.UpdateIcebergNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest 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.cloud.biglake.v1.UpdateIcebergNamespaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest 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.cloud.biglake.v1.UpdateIcebergNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest 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.cloud.biglake.v1.UpdateIcebergNamespaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the `UpdateIcebergNamespace` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.UpdateIcebergNamespaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.UpdateIcebergNamespaceRequest) + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest.class, + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIcebergNamespaceUpdateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + icebergNamespaceUpdate_ = null; + if (icebergNamespaceUpdateBuilder_ != null) { + icebergNamespaceUpdateBuilder_.dispose(); + icebergNamespaceUpdateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest build() { + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest buildPartial() { + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest result = + new com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.icebergNamespaceUpdate_ = + icebergNamespaceUpdateBuilder_ == null + ? icebergNamespaceUpdate_ + : icebergNamespaceUpdateBuilder_.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.cloud.biglake.v1.UpdateIcebergNamespaceRequest) { + return mergeFrom((com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest other) { + if (other == com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIcebergNamespaceUpdate()) { + mergeIcebergNamespaceUpdate(other.getIcebergNamespaceUpdate()); + } + 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: + { + input.readMessage( + getIcebergNamespaceUpdateFieldBuilder().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 name_ = ""; + + /** + * + * + *
+     * Required. The namespace to update.
+     *
+     * The namespace's `name` field is used to identify the namespace to update.
+     * Format: projects/{project_id}/namespaces/{namespace}
+     * 
+ * + * + * 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 namespace to update.
+     *
+     * The namespace's `name` field is used to identify the namespace to update.
+     * Format: projects/{project_id}/namespaces/{namespace}
+     * 
+ * + * + * 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 namespace to update.
+     *
+     * The namespace's `name` field is used to identify the namespace to update.
+     * Format: projects/{project_id}/namespaces/{namespace}
+     * 
+ * + * + * 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 namespace to update.
+     *
+     * The namespace's `name` field is used to identify the namespace to update.
+     * Format: projects/{project_id}/namespaces/{namespace}
+     * 
+ * + * + * 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 namespace to update.
+     *
+     * The namespace's `name` field is used to identify the namespace to update.
+     * Format: projects/{project_id}/namespaces/{namespace}
+     * 
+ * + * + * 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 com.google.cloud.biglake.v1.IcebergNamespaceUpdate icebergNamespaceUpdate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergNamespaceUpdate, + com.google.cloud.biglake.v1.IcebergNamespaceUpdate.Builder, + com.google.cloud.biglake.v1.IcebergNamespaceUpdateOrBuilder> + icebergNamespaceUpdateBuilder_; + + /** + * + * + *
+     * Required. The update to apply to the namespace.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the icebergNamespaceUpdate field is set. + */ + public boolean hasIcebergNamespaceUpdate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The update to apply to the namespace.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergNamespaceUpdate. + */ + public com.google.cloud.biglake.v1.IcebergNamespaceUpdate getIcebergNamespaceUpdate() { + if (icebergNamespaceUpdateBuilder_ == null) { + return icebergNamespaceUpdate_ == null + ? com.google.cloud.biglake.v1.IcebergNamespaceUpdate.getDefaultInstance() + : icebergNamespaceUpdate_; + } else { + return icebergNamespaceUpdateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The update to apply to the namespace.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIcebergNamespaceUpdate( + com.google.cloud.biglake.v1.IcebergNamespaceUpdate value) { + if (icebergNamespaceUpdateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + icebergNamespaceUpdate_ = value; + } else { + icebergNamespaceUpdateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The update to apply to the namespace.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIcebergNamespaceUpdate( + com.google.cloud.biglake.v1.IcebergNamespaceUpdate.Builder builderForValue) { + if (icebergNamespaceUpdateBuilder_ == null) { + icebergNamespaceUpdate_ = builderForValue.build(); + } else { + icebergNamespaceUpdateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The update to apply to the namespace.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIcebergNamespaceUpdate( + com.google.cloud.biglake.v1.IcebergNamespaceUpdate value) { + if (icebergNamespaceUpdateBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && icebergNamespaceUpdate_ != null + && icebergNamespaceUpdate_ + != com.google.cloud.biglake.v1.IcebergNamespaceUpdate.getDefaultInstance()) { + getIcebergNamespaceUpdateBuilder().mergeFrom(value); + } else { + icebergNamespaceUpdate_ = value; + } + } else { + icebergNamespaceUpdateBuilder_.mergeFrom(value); + } + if (icebergNamespaceUpdate_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The update to apply to the namespace.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIcebergNamespaceUpdate() { + bitField0_ = (bitField0_ & ~0x00000002); + icebergNamespaceUpdate_ = null; + if (icebergNamespaceUpdateBuilder_ != null) { + icebergNamespaceUpdateBuilder_.dispose(); + icebergNamespaceUpdateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The update to apply to the namespace.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.biglake.v1.IcebergNamespaceUpdate.Builder + getIcebergNamespaceUpdateBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getIcebergNamespaceUpdateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The update to apply to the namespace.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.biglake.v1.IcebergNamespaceUpdateOrBuilder + getIcebergNamespaceUpdateOrBuilder() { + if (icebergNamespaceUpdateBuilder_ != null) { + return icebergNamespaceUpdateBuilder_.getMessageOrBuilder(); + } else { + return icebergNamespaceUpdate_ == null + ? com.google.cloud.biglake.v1.IcebergNamespaceUpdate.getDefaultInstance() + : icebergNamespaceUpdate_; + } + } + + /** + * + * + *
+     * Required. The update to apply to the namespace.
+     * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergNamespaceUpdate, + com.google.cloud.biglake.v1.IcebergNamespaceUpdate.Builder, + com.google.cloud.biglake.v1.IcebergNamespaceUpdateOrBuilder> + getIcebergNamespaceUpdateFieldBuilder() { + if (icebergNamespaceUpdateBuilder_ == null) { + icebergNamespaceUpdateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.biglake.v1.IcebergNamespaceUpdate, + com.google.cloud.biglake.v1.IcebergNamespaceUpdate.Builder, + com.google.cloud.biglake.v1.IcebergNamespaceUpdateOrBuilder>( + getIcebergNamespaceUpdate(), getParentForChildren(), isClean()); + icebergNamespaceUpdate_ = null; + } + return icebergNamespaceUpdateBuilder_; + } + + @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.cloud.biglake.v1.UpdateIcebergNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.UpdateIcebergNamespaceRequest) + private static final com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest(); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateIcebergNamespaceRequest 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.cloud.biglake.v1.UpdateIcebergNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceRequestOrBuilder.java new file mode 100644 index 000000000000..7fd0802ddd29 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceRequestOrBuilder.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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface UpdateIcebergNamespaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.UpdateIcebergNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The namespace to update.
+   *
+   * The namespace's `name` field is used to identify the namespace to update.
+   * Format: projects/{project_id}/namespaces/{namespace}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The namespace to update.
+   *
+   * The namespace's `name` field is used to identify the namespace to update.
+   * Format: projects/{project_id}/namespaces/{namespace}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The update to apply to the namespace.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the icebergNamespaceUpdate field is set. + */ + boolean hasIcebergNamespaceUpdate(); + + /** + * + * + *
+   * Required. The update to apply to the namespace.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The icebergNamespaceUpdate. + */ + com.google.cloud.biglake.v1.IcebergNamespaceUpdate getIcebergNamespaceUpdate(); + + /** + * + * + *
+   * Required. The update to apply to the namespace.
+   * 
+ * + * + * .google.cloud.biglake.v1.IcebergNamespaceUpdate iceberg_namespace_update = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.biglake.v1.IcebergNamespaceUpdateOrBuilder getIcebergNamespaceUpdateOrBuilder(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceResponse.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceResponse.java new file mode 100644 index 000000000000..1c1d9bfd1706 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceResponse.java @@ -0,0 +1,1356 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The response message for the `UpdateIcebergNamespace` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.UpdateIcebergNamespaceResponse} + */ +public final class UpdateIcebergNamespaceResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.UpdateIcebergNamespaceResponse) + UpdateIcebergNamespaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateIcebergNamespaceResponse.newBuilder() to construct. + private UpdateIcebergNamespaceResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateIcebergNamespaceResponse() { + removed_ = com.google.protobuf.LazyStringArrayList.emptyList(); + updated_ = com.google.protobuf.LazyStringArrayList.emptyList(); + missing_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateIcebergNamespaceResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse.class, + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse.Builder.class); + } + + public static final int REMOVED_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList removed_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. List of properties that were removed.
+   * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the removed. + */ + public com.google.protobuf.ProtocolStringList getRemovedList() { + return removed_; + } + + /** + * + * + *
+   * Output only. List of properties that were removed.
+   * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of removed. + */ + public int getRemovedCount() { + return removed_.size(); + } + + /** + * + * + *
+   * Output only. List of properties that were removed.
+   * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The removed at the given index. + */ + public java.lang.String getRemoved(int index) { + return removed_.get(index); + } + + /** + * + * + *
+   * Output only. List of properties that were removed.
+   * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the removed at the given index. + */ + public com.google.protobuf.ByteString getRemovedBytes(int index) { + return removed_.getByteString(index); + } + + public static final int UPDATED_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList updated_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. List of properties that were added or updated.
+   * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the updated. + */ + public com.google.protobuf.ProtocolStringList getUpdatedList() { + return updated_; + } + + /** + * + * + *
+   * Output only. List of properties that were added or updated.
+   * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of updated. + */ + public int getUpdatedCount() { + return updated_.size(); + } + + /** + * + * + *
+   * Output only. List of properties that were added or updated.
+   * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The updated at the given index. + */ + public java.lang.String getUpdated(int index) { + return updated_.get(index); + } + + /** + * + * + *
+   * Output only. List of properties that were added or updated.
+   * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the updated at the given index. + */ + public com.google.protobuf.ByteString getUpdatedBytes(int index) { + return updated_.getByteString(index); + } + + public static final int MISSING_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList missing_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. List of properties that were requested to be removed, but were
+   * not found.
+   * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the missing. + */ + public com.google.protobuf.ProtocolStringList getMissingList() { + return missing_; + } + + /** + * + * + *
+   * Output only. List of properties that were requested to be removed, but were
+   * not found.
+   * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of missing. + */ + public int getMissingCount() { + return missing_.size(); + } + + /** + * + * + *
+   * Output only. List of properties that were requested to be removed, but were
+   * not found.
+   * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The missing at the given index. + */ + public java.lang.String getMissing(int index) { + return missing_.get(index); + } + + /** + * + * + *
+   * Output only. List of properties that were requested to be removed, but were
+   * not found.
+   * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the missing at the given index. + */ + public com.google.protobuf.ByteString getMissingBytes(int index) { + return missing_.getByteString(index); + } + + 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 < removed_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, removed_.getRaw(i)); + } + for (int i = 0; i < updated_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, updated_.getRaw(i)); + } + for (int i = 0; i < missing_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, missing_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < removed_.size(); i++) { + dataSize += computeStringSizeNoTag(removed_.getRaw(i)); + } + size += dataSize; + size += 1 * getRemovedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < updated_.size(); i++) { + dataSize += computeStringSizeNoTag(updated_.getRaw(i)); + } + size += dataSize; + size += 1 * getUpdatedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < missing_.size(); i++) { + dataSize += computeStringSizeNoTag(missing_.getRaw(i)); + } + size += dataSize; + size += 1 * getMissingList().size(); + } + 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.cloud.biglake.v1.UpdateIcebergNamespaceResponse)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse other = + (com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse) obj; + + if (!getRemovedList().equals(other.getRemovedList())) return false; + if (!getUpdatedList().equals(other.getUpdatedList())) return false; + if (!getMissingList().equals(other.getMissingList())) 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 (getRemovedCount() > 0) { + hash = (37 * hash) + REMOVED_FIELD_NUMBER; + hash = (53 * hash) + getRemovedList().hashCode(); + } + if (getUpdatedCount() > 0) { + hash = (37 * hash) + UPDATED_FIELD_NUMBER; + hash = (53 * hash) + getUpdatedList().hashCode(); + } + if (getMissingCount() > 0) { + hash = (37 * hash) + MISSING_FIELD_NUMBER; + hash = (53 * hash) + getMissingList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse 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.cloud.biglake.v1.UpdateIcebergNamespaceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse 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.cloud.biglake.v1.UpdateIcebergNamespaceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse 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.cloud.biglake.v1.UpdateIcebergNamespaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse 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.cloud.biglake.v1.UpdateIcebergNamespaceResponse 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 response message for the `UpdateIcebergNamespace` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.UpdateIcebergNamespaceResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.UpdateIcebergNamespaceResponse) + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse.class, + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + removed_ = com.google.protobuf.LazyStringArrayList.emptyList(); + updated_ = com.google.protobuf.LazyStringArrayList.emptyList(); + missing_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergNamespaceResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse build() { + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse buildPartial() { + com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse result = + new com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + removed_.makeImmutable(); + result.removed_ = removed_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + updated_.makeImmutable(); + result.updated_ = updated_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + missing_.makeImmutable(); + result.missing_ = missing_; + } + } + + @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.cloud.biglake.v1.UpdateIcebergNamespaceResponse) { + return mergeFrom((com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse other) { + if (other == com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse.getDefaultInstance()) + return this; + if (!other.removed_.isEmpty()) { + if (removed_.isEmpty()) { + removed_ = other.removed_; + bitField0_ |= 0x00000001; + } else { + ensureRemovedIsMutable(); + removed_.addAll(other.removed_); + } + onChanged(); + } + if (!other.updated_.isEmpty()) { + if (updated_.isEmpty()) { + updated_ = other.updated_; + bitField0_ |= 0x00000002; + } else { + ensureUpdatedIsMutable(); + updated_.addAll(other.updated_); + } + onChanged(); + } + if (!other.missing_.isEmpty()) { + if (missing_.isEmpty()) { + missing_ = other.missing_; + bitField0_ |= 0x00000004; + } else { + ensureMissingIsMutable(); + missing_.addAll(other.missing_); + } + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRemovedIsMutable(); + removed_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUpdatedIsMutable(); + updated_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMissingIsMutable(); + missing_.add(s); + 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.protobuf.LazyStringArrayList removed_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRemovedIsMutable() { + if (!removed_.isModifiable()) { + removed_ = new com.google.protobuf.LazyStringArrayList(removed_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Output only. List of properties that were removed.
+     * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the removed. + */ + public com.google.protobuf.ProtocolStringList getRemovedList() { + removed_.makeImmutable(); + return removed_; + } + + /** + * + * + *
+     * Output only. List of properties that were removed.
+     * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of removed. + */ + public int getRemovedCount() { + return removed_.size(); + } + + /** + * + * + *
+     * Output only. List of properties that were removed.
+     * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The removed at the given index. + */ + public java.lang.String getRemoved(int index) { + return removed_.get(index); + } + + /** + * + * + *
+     * Output only. List of properties that were removed.
+     * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the removed at the given index. + */ + public com.google.protobuf.ByteString getRemovedBytes(int index) { + return removed_.getByteString(index); + } + + /** + * + * + *
+     * Output only. List of properties that were removed.
+     * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The removed to set. + * @return This builder for chaining. + */ + public Builder setRemoved(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRemovedIsMutable(); + removed_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of properties that were removed.
+     * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The removed to add. + * @return This builder for chaining. + */ + public Builder addRemoved(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRemovedIsMutable(); + removed_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of properties that were removed.
+     * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The removed to add. + * @return This builder for chaining. + */ + public Builder addAllRemoved(java.lang.Iterable values) { + ensureRemovedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, removed_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of properties that were removed.
+     * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRemoved() { + removed_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of properties that were removed.
+     * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the removed to add. + * @return This builder for chaining. + */ + public Builder addRemovedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRemovedIsMutable(); + removed_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList updated_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUpdatedIsMutable() { + if (!updated_.isModifiable()) { + updated_ = new com.google.protobuf.LazyStringArrayList(updated_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Output only. List of properties that were added or updated.
+     * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the updated. + */ + public com.google.protobuf.ProtocolStringList getUpdatedList() { + updated_.makeImmutable(); + return updated_; + } + + /** + * + * + *
+     * Output only. List of properties that were added or updated.
+     * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of updated. + */ + public int getUpdatedCount() { + return updated_.size(); + } + + /** + * + * + *
+     * Output only. List of properties that were added or updated.
+     * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The updated at the given index. + */ + public java.lang.String getUpdated(int index) { + return updated_.get(index); + } + + /** + * + * + *
+     * Output only. List of properties that were added or updated.
+     * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the updated at the given index. + */ + public com.google.protobuf.ByteString getUpdatedBytes(int index) { + return updated_.getByteString(index); + } + + /** + * + * + *
+     * Output only. List of properties that were added or updated.
+     * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The updated to set. + * @return This builder for chaining. + */ + public Builder setUpdated(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpdatedIsMutable(); + updated_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of properties that were added or updated.
+     * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The updated to add. + * @return This builder for chaining. + */ + public Builder addUpdated(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpdatedIsMutable(); + updated_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of properties that were added or updated.
+     * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The updated to add. + * @return This builder for chaining. + */ + public Builder addAllUpdated(java.lang.Iterable values) { + ensureUpdatedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, updated_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of properties that were added or updated.
+     * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearUpdated() { + updated_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of properties that were added or updated.
+     * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the updated to add. + * @return This builder for chaining. + */ + public Builder addUpdatedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUpdatedIsMutable(); + updated_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList missing_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureMissingIsMutable() { + if (!missing_.isModifiable()) { + missing_ = new com.google.protobuf.LazyStringArrayList(missing_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Output only. List of properties that were requested to be removed, but were
+     * not found.
+     * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the missing. + */ + public com.google.protobuf.ProtocolStringList getMissingList() { + missing_.makeImmutable(); + return missing_; + } + + /** + * + * + *
+     * Output only. List of properties that were requested to be removed, but were
+     * not found.
+     * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of missing. + */ + public int getMissingCount() { + return missing_.size(); + } + + /** + * + * + *
+     * Output only. List of properties that were requested to be removed, but were
+     * not found.
+     * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The missing at the given index. + */ + public java.lang.String getMissing(int index) { + return missing_.get(index); + } + + /** + * + * + *
+     * Output only. List of properties that were requested to be removed, but were
+     * not found.
+     * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the missing at the given index. + */ + public com.google.protobuf.ByteString getMissingBytes(int index) { + return missing_.getByteString(index); + } + + /** + * + * + *
+     * Output only. List of properties that were requested to be removed, but were
+     * not found.
+     * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The missing to set. + * @return This builder for chaining. + */ + public Builder setMissing(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingIsMutable(); + missing_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of properties that were requested to be removed, but were
+     * not found.
+     * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The missing to add. + * @return This builder for chaining. + */ + public Builder addMissing(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingIsMutable(); + missing_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of properties that were requested to be removed, but were
+     * not found.
+     * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The missing to add. + * @return This builder for chaining. + */ + public Builder addAllMissing(java.lang.Iterable values) { + ensureMissingIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missing_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of properties that were requested to be removed, but were
+     * not found.
+     * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMissing() { + missing_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of properties that were requested to be removed, but were
+     * not found.
+     * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the missing to add. + * @return This builder for chaining. + */ + public Builder addMissingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMissingIsMutable(); + missing_.add(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.cloud.biglake.v1.UpdateIcebergNamespaceResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.UpdateIcebergNamespaceResponse) + private static final com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse(); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateIcebergNamespaceResponse 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.cloud.biglake.v1.UpdateIcebergNamespaceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceResponseOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceResponseOrBuilder.java new file mode 100644 index 000000000000..321186a1b71f --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceResponseOrBuilder.java @@ -0,0 +1,200 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface UpdateIcebergNamespaceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.UpdateIcebergNamespaceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. List of properties that were removed.
+   * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the removed. + */ + java.util.List getRemovedList(); + + /** + * + * + *
+   * Output only. List of properties that were removed.
+   * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of removed. + */ + int getRemovedCount(); + + /** + * + * + *
+   * Output only. List of properties that were removed.
+   * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The removed at the given index. + */ + java.lang.String getRemoved(int index); + + /** + * + * + *
+   * Output only. List of properties that were removed.
+   * 
+ * + * repeated string removed = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the removed at the given index. + */ + com.google.protobuf.ByteString getRemovedBytes(int index); + + /** + * + * + *
+   * Output only. List of properties that were added or updated.
+   * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the updated. + */ + java.util.List getUpdatedList(); + + /** + * + * + *
+   * Output only. List of properties that were added or updated.
+   * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of updated. + */ + int getUpdatedCount(); + + /** + * + * + *
+   * Output only. List of properties that were added or updated.
+   * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The updated at the given index. + */ + java.lang.String getUpdated(int index); + + /** + * + * + *
+   * Output only. List of properties that were added or updated.
+   * 
+ * + * + * repeated string updated = 2 [json_name = "added", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the updated at the given index. + */ + com.google.protobuf.ByteString getUpdatedBytes(int index); + + /** + * + * + *
+   * Output only. List of properties that were requested to be removed, but were
+   * not found.
+   * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the missing. + */ + java.util.List getMissingList(); + + /** + * + * + *
+   * Output only. List of properties that were requested to be removed, but were
+   * not found.
+   * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of missing. + */ + int getMissingCount(); + + /** + * + * + *
+   * Output only. List of properties that were requested to be removed, but were
+   * not found.
+   * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The missing at the given index. + */ + java.lang.String getMissing(int index); + + /** + * + * + *
+   * Output only. List of properties that were requested to be removed, but were
+   * not found.
+   * 
+ * + * repeated string missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the missing at the given index. + */ + com.google.protobuf.ByteString getMissingBytes(int index); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergTableRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergTableRequest.java new file mode 100644 index 000000000000..5091353f63b7 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergTableRequest.java @@ -0,0 +1,986 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +/** + * + * + *
+ * The update message for the `UpdateIcebergTable` API.
+ * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.UpdateIcebergTableRequest} + */ +public final class UpdateIcebergTableRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.UpdateIcebergTableRequest) + UpdateIcebergTableRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateIcebergTableRequest.newBuilder() to construct. + private UpdateIcebergTableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateIcebergTableRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateIcebergTableRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.UpdateIcebergTableRequest.class, + com.google.cloud.biglake.v1.UpdateIcebergTableRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Table to commit in the format:
+   * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+   * 
+ * + * + * 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. Table to commit in the format:
+   * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+   * 
+ * + * + * 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 HTTP_BODY_FIELD_NUMBER = 2; + private com.google.api.HttpBody httpBody_; + + /** + * + * + *
+   * Required. The request body that should be in the format of Apache Iceberg's
+   * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+   * `application/json`. Added this field for easier json parsing.
+   * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the httpBody field is set. + */ + @java.lang.Override + public boolean hasHttpBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The request body that should be in the format of Apache Iceberg's
+   * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+   * `application/json`. Added this field for easier json parsing.
+   * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The httpBody. + */ + @java.lang.Override + public com.google.api.HttpBody getHttpBody() { + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; + } + + /** + * + * + *
+   * Required. The request body that should be in the format of Apache Iceberg's
+   * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+   * `application/json`. Added this field for easier json parsing.
+   * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder() { + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getHttpBody()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHttpBody()); + } + 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.cloud.biglake.v1.UpdateIcebergTableRequest)) { + return super.equals(obj); + } + com.google.cloud.biglake.v1.UpdateIcebergTableRequest other = + (com.google.cloud.biglake.v1.UpdateIcebergTableRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasHttpBody() != other.hasHttpBody()) return false; + if (hasHttpBody()) { + if (!getHttpBody().equals(other.getHttpBody())) 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(); + if (hasHttpBody()) { + hash = (37 * hash) + HTTP_BODY_FIELD_NUMBER; + hash = (53 * hash) + getHttpBody().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.biglake.v1.UpdateIcebergTableRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergTableRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergTableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergTableRequest 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.cloud.biglake.v1.UpdateIcebergTableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergTableRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergTableRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergTableRequest 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.cloud.biglake.v1.UpdateIcebergTableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergTableRequest 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.cloud.biglake.v1.UpdateIcebergTableRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergTableRequest 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.cloud.biglake.v1.UpdateIcebergTableRequest 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 update message for the `UpdateIcebergTable` API.
+   * 
+ * + * Protobuf type {@code google.cloud.biglake.v1.UpdateIcebergTableRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.biglake.v1.UpdateIcebergTableRequest) + com.google.cloud.biglake.v1.UpdateIcebergTableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.biglake.v1.UpdateIcebergTableRequest.class, + com.google.cloud.biglake.v1.UpdateIcebergTableRequest.Builder.class); + } + + // Construct using com.google.cloud.biglake.v1.UpdateIcebergTableRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHttpBodyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + httpBody_ = null; + if (httpBodyBuilder_ != null) { + httpBodyBuilder_.dispose(); + httpBodyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.biglake.v1.IcebergRestCatalogProto + .internal_static_google_cloud_biglake_v1_UpdateIcebergTableRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.UpdateIcebergTableRequest getDefaultInstanceForType() { + return com.google.cloud.biglake.v1.UpdateIcebergTableRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.biglake.v1.UpdateIcebergTableRequest build() { + com.google.cloud.biglake.v1.UpdateIcebergTableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.biglake.v1.UpdateIcebergTableRequest buildPartial() { + com.google.cloud.biglake.v1.UpdateIcebergTableRequest result = + new com.google.cloud.biglake.v1.UpdateIcebergTableRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.biglake.v1.UpdateIcebergTableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.httpBody_ = httpBodyBuilder_ == null ? httpBody_ : httpBodyBuilder_.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.cloud.biglake.v1.UpdateIcebergTableRequest) { + return mergeFrom((com.google.cloud.biglake.v1.UpdateIcebergTableRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.biglake.v1.UpdateIcebergTableRequest other) { + if (other == com.google.cloud.biglake.v1.UpdateIcebergTableRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasHttpBody()) { + mergeHttpBody(other.getHttpBody()); + } + 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: + { + input.readMessage(getHttpBodyFieldBuilder().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 name_ = ""; + + /** + * + * + *
+     * Required. Table to commit in the format:
+     * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+     * 
+ * + * + * 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. Table to commit in the format:
+     * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+     * 
+ * + * + * 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. Table to commit in the format:
+     * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+     * 
+ * + * + * 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. Table to commit in the format:
+     * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+     * 
+ * + * + * 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. Table to commit in the format:
+     * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+     * 
+ * + * + * 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 com.google.api.HttpBody httpBody_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.api.HttpBody, + com.google.api.HttpBody.Builder, + com.google.api.HttpBodyOrBuilder> + httpBodyBuilder_; + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+     * `application/json`. Added this field for easier json parsing.
+     * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the httpBody field is set. + */ + public boolean hasHttpBody() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+     * `application/json`. Added this field for easier json parsing.
+     * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The httpBody. + */ + public com.google.api.HttpBody getHttpBody() { + if (httpBodyBuilder_ == null) { + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; + } else { + return httpBodyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+     * `application/json`. Added this field for easier json parsing.
+     * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHttpBody(com.google.api.HttpBody value) { + if (httpBodyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + httpBody_ = value; + } else { + httpBodyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+     * `application/json`. Added this field for easier json parsing.
+     * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHttpBody(com.google.api.HttpBody.Builder builderForValue) { + if (httpBodyBuilder_ == null) { + httpBody_ = builderForValue.build(); + } else { + httpBodyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+     * `application/json`. Added this field for easier json parsing.
+     * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeHttpBody(com.google.api.HttpBody value) { + if (httpBodyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && httpBody_ != null + && httpBody_ != com.google.api.HttpBody.getDefaultInstance()) { + getHttpBodyBuilder().mergeFrom(value); + } else { + httpBody_ = value; + } + } else { + httpBodyBuilder_.mergeFrom(value); + } + if (httpBody_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+     * `application/json`. Added this field for easier json parsing.
+     * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearHttpBody() { + bitField0_ = (bitField0_ & ~0x00000002); + httpBody_ = null; + if (httpBodyBuilder_ != null) { + httpBodyBuilder_.dispose(); + httpBodyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+     * `application/json`. Added this field for easier json parsing.
+     * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.api.HttpBody.Builder getHttpBodyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getHttpBodyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+     * `application/json`. Added this field for easier json parsing.
+     * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder() { + if (httpBodyBuilder_ != null) { + return httpBodyBuilder_.getMessageOrBuilder(); + } else { + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; + } + } + + /** + * + * + *
+     * Required. The request body that should be in the format of Apache Iceberg's
+     * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+     * `application/json`. Added this field for easier json parsing.
+     * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.api.HttpBody, + com.google.api.HttpBody.Builder, + com.google.api.HttpBodyOrBuilder> + getHttpBodyFieldBuilder() { + if (httpBodyBuilder_ == null) { + httpBodyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.HttpBody, + com.google.api.HttpBody.Builder, + com.google.api.HttpBodyOrBuilder>(getHttpBody(), getParentForChildren(), isClean()); + httpBody_ = null; + } + return httpBodyBuilder_; + } + + @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.cloud.biglake.v1.UpdateIcebergTableRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.UpdateIcebergTableRequest) + private static final com.google.cloud.biglake.v1.UpdateIcebergTableRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.UpdateIcebergTableRequest(); + } + + public static com.google.cloud.biglake.v1.UpdateIcebergTableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateIcebergTableRequest 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.cloud.biglake.v1.UpdateIcebergTableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergTableRequestOrBuilder.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergTableRequestOrBuilder.java new file mode 100644 index 000000000000..f79e3d03da24 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergTableRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * 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/cloud/biglake/v1/iceberg_rest_catalog.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.biglake.v1; + +public interface UpdateIcebergTableRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.UpdateIcebergTableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Table to commit in the format:
+   * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Table to commit in the format:
+   * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The request body that should be in the format of Apache Iceberg's
+   * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+   * `application/json`. Added this field for easier json parsing.
+   * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the httpBody field is set. + */ + boolean hasHttpBody(); + + /** + * + * + *
+   * Required. The request body that should be in the format of Apache Iceberg's
+   * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+   * `application/json`. Added this field for easier json parsing.
+   * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The httpBody. + */ + com.google.api.HttpBody getHttpBody(); + + /** + * + * + *
+   * Required. The request body that should be in the format of Apache Iceberg's
+   * `#/components/schemas/CommitTableRequest`. Content type is expected to be
+   * `application/json`. Added this field for easier json parsing.
+   * 
+ * + * + * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder(); +} diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/proto/google/cloud/biglake/v1/iceberg_rest_catalog.proto b/java-biglake/proto-google-cloud-biglake-v1/src/main/proto/google/cloud/biglake/v1/iceberg_rest_catalog.proto new file mode 100644 index 000000000000..1b40c7342b84 --- /dev/null +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/proto/google/cloud/biglake/v1/iceberg_rest_catalog.proto @@ -0,0 +1,802 @@ +// 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.biglake.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/httpbody.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/biglake/apiv1/biglakepb;biglakepb"; +option java_multiple_files = true; +option java_outer_classname = "IcebergRestCatalogProto"; +option java_package = "com.google.cloud.biglake.v1"; +option (google.api.resource_definition) = { + type: "biglake.googleapis.com/Table" + pattern: "projects/{project}/catalogs/{catalog}/namespaces/{namespace}/tables/{table}" +}; +option (google.api.resource_definition) = { + type: "biglake.googleapis.com/Namespace" + pattern: "projects/{project}/catalogs/{catalog}/namespaces/{namespace}" +}; + +// Iceberg Catalog Service API: this implements the open-source Iceberg REST +// Catalog API. +// See the API definition here: +// https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml +// +// The API is defined as OpenAPI 3.1.1 spec. +// +// Currently we only support the following methods: +// - GetConfig/GetIcebergCatalogConfig +// - ListIcebergNamespaces +// - CheckIcebergNamespaceExists +// - GetIcebergNamespace +// - CreateIcebergNamespace (only supports single level) +// - DeleteIcebergNamespace +// - UpdateIcebergNamespace properties +// - ListTableIdentifiers +// - CreateIcebergTable +// - DeleteIcebergTable +// - GetIcebergTable +// - UpdateIcebergTable (CommitTable) +// - LoadIcebergTableCredentials +// - RegisterTable +// +// Users are required to provided the `X-Goog-User-Project` header with the +// project id or number which can be different from the bucket project id. +// That project will be charged for the API calls and the calling user must have +// access to that project. The caller must have `serviceusage.services.use` +// permission on the project. +service IcebergCatalogService { + option (google.api.default_host) = "biglake.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/bigquery," + "https://www.googleapis.com/auth/cloud-platform"; + + // GetIcebergCatalogConfig lists all catalog configuration settings. Most + // importantly it contains the optional `endpoints` field which lists what + // methods this catalog supports, since we are not supporting all the methods + // right now. + // It returns all the methods defined in this service (subject to project + // config allowlisting). + // + // This is not a GCP resource. + rpc GetIcebergCatalogConfig(GetIcebergCatalogConfigRequest) + returns (IcebergCatalogConfig) { + option (google.api.http) = { + get: "/iceberg/v1/restcatalog/v1/config" + }; + } + + // Lists Iceberg namespaces in the catalog. We only support one level of + // nesting for namespaces. + rpc ListIcebergNamespaces(ListIcebergNamespacesRequest) + returns (ListIcebergNamespacesResponse) { + option (google.api.http) = { + get: "/iceberg/v1/restcatalog/v1/{api_parent=projects/*/catalogs/*}/namespaces" + }; + option (google.api.method_signature) = "api_parent"; + } + + // Returns 204 if the namespace exists, 404 otherwise. + rpc CheckIcebergNamespaceExists(GetIcebergNamespaceRequest) + returns (google.protobuf.Empty) { + option (google.api.method_signature) = "name"; + } + + // Gets an Iceberg namespace in the catalog (or checks if it exists, if the + // method is HEAD). + rpc GetIcebergNamespace(GetIcebergNamespaceRequest) + returns (IcebergNamespace) { + option (google.api.http) = { + get: "/iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a namespace in the catalog. + rpc CreateIcebergNamespace(CreateIcebergNamespaceRequest) + returns (IcebergNamespace) { + option (google.api.http) = { + post: "/iceberg/v1/restcatalog/v1/{parent=projects/*/catalogs/*}/namespaces" + body: "iceberg_namespace" + }; + option (google.api.method_signature) = "parent,iceberg_namespace"; + } + + // Returns 204, not 200 on success. + rpc DeleteIcebergNamespace(DeleteIcebergNamespaceRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates namespace properties. + rpc UpdateIcebergNamespace(UpdateIcebergNamespaceRequest) + returns (UpdateIcebergNamespaceResponse) { + option (google.api.http) = { + patch: "/iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*}/properties" + body: "iceberg_namespace_update" + additional_bindings { + post: "/iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*}/properties" + body: "iceberg_namespace_update" + } + }; + } + + // Lists table identifiers (not *tables*) in the namespace. + rpc ListIcebergTableIdentifiers(ListIcebergTableIdentifiersRequest) + returns (ListIcebergTableIdentifiersResponse) { + option (google.api.http) = { + get: "/iceberg/v1/restcatalog/v1/{parent=projects/*/catalogs/*/namespaces/*}/tables" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a table in the namespace. + rpc CreateIcebergTable(CreateIcebergTableRequest) + returns (google.api.HttpBody) { + option (google.api.http) = { + post: "/iceberg/v1/restcatalog/v1/{parent=projects/*/catalogs/*/namespaces/*}/tables" + body: "*" + }; + option (google.api.method_signature) = "parent,http_body"; + } + + // Returns 204 if the table exists, 404 otherwise. This is a `HEAD` HTTP + // method. + rpc CheckIcebergTableExists(GetIcebergTableRequest) + returns (google.protobuf.Empty) { + option (google.api.method_signature) = "name"; + } + + // Deletes a table in the namespace. + rpc DeleteIcebergTable(DeleteIcebergTableRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*/tables/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets a table in the namespace. + rpc GetIcebergTable(GetIcebergTableRequest) returns (google.api.HttpBody) { + option (google.api.http) = { + get: "/iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*/tables/*}" + }; + option (google.api.method_signature) = "name,snapshots"; + } + + // Loads credentials for a table in the namespace. + rpc LoadIcebergTableCredentials(GetIcebergTableRequest) + returns (LoadIcebergTableCredentialsResponse) { + option (google.api.http) = { + get: "/iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*/tables/*}/credentials" + }; + option (google.api.method_signature) = "name"; + } + + // This is CommitTable Iceberg API, which maps to `UpdateIcebergTable` in the + // Google API nomenclature. + rpc UpdateIcebergTable(UpdateIcebergTableRequest) + returns (google.api.HttpBody) { + option (google.api.http) = { + post: "/iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*/tables/*}" + body: "*" + }; + } + + // Register a table using given metadata file location. + rpc RegisterIcebergTable(RegisterIcebergTableRequest) + returns (google.api.HttpBody) { + option (google.api.http) = { + post: "/iceberg/v1/restcatalog/v1/{parent=projects/*/catalogs/*/namespaces/*}/register" + body: "*" + }; + } + + // Returns the Iceberg REST Catalog configuration options. + rpc GetIcebergCatalog(GetIcebergCatalogRequest) returns (IcebergCatalog) { + option (google.api.http) = { + get: "/iceberg/v1/restcatalog/extensions/{name=projects/*/catalogs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists the Iceberg REST Catalogs. + rpc ListIcebergCatalogs(ListIcebergCatalogsRequest) + returns (ListIcebergCatalogsResponse) { + option (google.api.http) = { + get: "/iceberg/v1/restcatalog/extensions/{parent=projects/*}/catalogs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes the Iceberg REST Catalog. + // Delete does not delete a catalog that has contents -- at least one + // namespace. + // + // Delete is not supported for all catalog types. + rpc DeleteIcebergCatalog(DeleteIcebergCatalogRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/iceberg/v1/restcatalog/extensions/{name=projects/*/catalogs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Update the Iceberg REST Catalog configuration options. + rpc UpdateIcebergCatalog(UpdateIcebergCatalogRequest) + returns (IcebergCatalog) { + option (google.api.http) = { + patch: "/iceberg/v1/restcatalog/extensions/{iceberg_catalog.name=projects/*/catalogs/*}" + body: "iceberg_catalog" + }; + option (google.api.method_signature) = "iceberg_catalog,update_mask"; + } + + // Creates the Iceberg REST Catalog. + // Currently only supports Google Cloud Storage Bucket catalogs. + // Google Cloud Storage Bucket catalog id is the bucket for which the + // catalog is created (e.g. `my-catalog` for `gs://my-catalog`). + // + // If the bucket does not exist, of the caller does not have bucket metadata + // permissions, the catalog will not be created. + rpc CreateIcebergCatalog(CreateIcebergCatalogRequest) + returns (IcebergCatalog) { + option (google.api.http) = { + post: "/iceberg/v1/restcatalog/extensions/{parent=projects/*}/catalogs" + body: "iceberg_catalog" + }; + option (google.api.method_signature) = + "parent,iceberg_catalog,iceberg_catalog_id"; + } + + // Failover the catalog to a new primary replica region. + rpc FailoverIcebergCatalog(FailoverIcebergCatalogRequest) + returns (FailoverIcebergCatalogResponse) { + option (google.api.http) = { + post: "/iceberg/v1/restcatalog/extensions/{name=projects/*/catalogs/*}:failover" + body: "*" + }; + option (google.api.method_signature) = "name,primary_replica"; + } +} + +// The request message for the `RegisterIcebergTable` API. +message RegisterIcebergTableRequest { + // Required. Table to register in the format: + // `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "biglake.googleapis.com/Namespace" + } + ]; + + // Required. The name of the table to register. + string name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The metadata location of the table. + string metadata_location = 3 + [json_name = "metadata-location", (google.api.field_behavior) = REQUIRED]; + + // Optional. Whether to overwrite the table if it already exists. Default is + // false. Currently this field is ignored and an error is returned if the + // table already exists. + string overwrite = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The Iceberg REST Catalog information. +message IcebergCatalog { + option (google.api.resource) = { + type: "biglake.googleapis.com/Catalog" + pattern: "projects/{project}/catalogs/{catalog}" + plural: "catalogs" + singular: "catalog" + }; + + // Determines the catalog type. + enum CatalogType { + // Default value. This value is unused. + CATALOG_TYPE_UNSPECIFIED = 0; + + // Catalog type for Google Cloud Storage Buckets. + CATALOG_TYPE_GCS_BUCKET = 1; + } + + // The credential mode used for the catalog. + enum CredentialMode { + // Default value. This value is unused. + CREDENTIAL_MODE_UNSPECIFIED = 0; + + // End user credentials, default. The authenticating user must have access + // to the catalog resources and the corresponding Google Cloud Storage + // files. + CREDENTIAL_MODE_END_USER = 1; + + // Use credential vending. The authenticating user must have access to the + // catalog resources and the system will provide the caller with downscoped + // credentials to access the Google Cloud Storage files. All table + // operations in this mode would require `X-Iceberg-Access-Delegation` + // header with `vended-credentials` value included. System will generate a + // service account and the catalog administrator must grant the service + // account appropriate permissions. + // + // See: + // https://github.com/apache/iceberg/blob/931865ecaf40a827f9081dddb675bf1c95c05461/open-api/rest-catalog-open-api.yaml#L1854 + // for more details. + CREDENTIAL_MODE_VENDED_CREDENTIALS = 2; + } + + // Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`. + // This field is immutable. + // This field is ignored for CreateIcebergCatalog. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The credential mode for the catalog. + CredentialMode credential_mode = 2 + [json_name = "credential-mode", (google.api.field_behavior) = OPTIONAL]; + + // Output only. The service account used for credential vending, output only. + // Might be empty if Credential vending was never enabled for the catalog. + string biglake_service_account = 3 [ + json_name = "biglake-service-account", + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Required. The catalog type. Required for CreateIcebergCatalog. + CatalogType catalog_type = 4 + [json_name = "catalog-type", (google.api.field_behavior) = REQUIRED]; + + // Optional. The default location for the catalog. For the Google Cloud + // Storage Bucket catalog this is output only. + string default_location = 5 + [json_name = "default-location", (google.api.field_behavior) = OPTIONAL]; + + // Output only. The GCP region(s) where the catalog metadata is stored. + // This will contain one value for all locations, except for the catalogs that + // are configured to use custom dual region buckets. + repeated string catalog_regions = 6 [ + json_name = "catalog-regions", + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. When the catalog was created. + google.protobuf.Timestamp create_time = 7 + [json_name = "create-time", (google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the catalog was last updated. + google.protobuf.Timestamp update_time = 8 + [json_name = "update-time", (google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for the `CreateIcebergCatalog` API. +message CreateIcebergCatalogRequest { + // Required. The parent resource where this catalog will be created. + // Format: projects/{project_id} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Required. The name of the catalog. + string iceberg_catalog_id = 3 [ + json_name = "iceberg-catalog-id", + (google.api.field_behavior) = REQUIRED + ]; + + // Required. The catalog to create. + // The required fields for creation are: + // - catalog_type. + // Optionally: credential_mode can be provided, if Credential Vending is + // desired. + IcebergCatalog iceberg_catalog = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for the `DeleteIcebergCatalog` API. +message DeleteIcebergCatalogRequest { + // Required. The catalog to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "biglake.googleapis.com/Catalog" } + ]; +} + +// The request message for the `UpdateIcebergCatalog` API. +message UpdateIcebergCatalogRequest { + // Required. The catalog to update. + IcebergCatalog iceberg_catalog = 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 request message for the `GetIcebergCatalog` API. +message GetIcebergCatalogRequest { + // Required. The catalog to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "biglake.googleapis.com/Catalog" } + ]; +} + +// The request message for the `ListIcebergCatalogs` API. +message ListIcebergCatalogsRequest { + // The enumeration of the views that can be returned. + enum CatalogView { + // Default/unset value. Same as BASIC. + CATALOG_VIEW_UNSPECIFIED = 0; + + // Include only the name and catalog type. + CATALOG_VIEW_BASIC = 1; + + // Include all fields of the catalog. + CATALOG_VIEW_FULL = 2; + } + + // Required. The parent resource where this catalog will be created. + // Format: projects/{project_id} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Optional. The view of the catalog to return. + CatalogView view = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of catalogs to return. The service may return + // fewer than this value. + int32 page_size = 3 + [json_name = "page-size", (google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous `ListIcebergCatalogs` + // call. Provide this to retrieve the subsequent page. + string page_token = 4 + [json_name = "page-token", (google.api.field_behavior) = OPTIONAL]; +} + +// The response message for the `ListIcebergCatalogs` API. +message ListIcebergCatalogsResponse { + // Output only. The list of iceberg catalogs. + repeated IcebergCatalog iceberg_catalogs = 1 [ + json_name = "iceberg-catalogs", + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. The next page token for pagination. + string next_page_token = 2 [ + json_name = "next-page-token", + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. The list of unreachable cloud regions for router fanout. + repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for FailoverIcebergCatalog. +message FailoverIcebergCatalogRequest { + // Required. The name of the catalog in the form + // "projects/{project_id}/catalogs/{catalog_id}" + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The region being assigned as the new primary replica region. For + // example "us-east1". This must be one of the replica regions in the + // catalog's list of replicas marked as a "secondary". + string primary_replica = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If set, only validate the request, but do not perform the update. + // This can be used to inspect the replication_time at any time, including + // before performing a fail-over. + bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If unset, wait for all data from the source region to replicate + // to the new primary region before completing the failover, with no data loss + // (also called "soft failover"). If set, failover immediately, accepting the + // loss of any data committed in the source region after this timestamp, that + // has not yet replicated. If any data committed before this time has not + // replicated, the failover will not be performed and an error will be + // returned (also called "hard failover"). + google.protobuf.Timestamp conditional_failover_replication_time = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for FailoverIcebergCatalog. +message FailoverIcebergCatalogResponse { + // Output only. The min timestamp for which all namespaces and table metadata + // have been replicated in the region specified as the new primary_replica. + // Some resources may have been replicated more recently than this timestamp. + // If empty, the replica has just been created and has not yet been fully + // initialized. NOTE: When the Cloud Storage replication watermark is + // available, this will represent both catalog metadata and Cloud Storage + // data. + google.protobuf.Timestamp replication_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The update message for the `UpdateIcebergTable` API. +message UpdateIcebergTableRequest { + // Required. Table to commit in the format: + // `projects/{project_id}/namespaces/{namespace}/tables/{table}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "biglake.googleapis.com/Table" } + ]; + + // Required. The request body that should be in the format of Apache Iceberg's + // `#/components/schemas/CommitTableRequest`. Content type is expected to be + // `application/json`. Added this field for easier json parsing. + google.api.HttpBody http_body = 2 + [json_name = "updates", (google.api.field_behavior) = REQUIRED]; +} + +// The request message for the `GetIcebergTable` API. +message GetIcebergTableRequest { + // Required. Table to get in the format: + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "biglake.googleapis.com/Table" } + ]; + + // Optional. What snapshot to get. Valid only for GetIcebergTable. + string snapshots = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request message for the `DeleteIcebergTable` API. +message DeleteIcebergTableRequest { + // Required. Table to delete in the format: + // `projects/{project_id}/namespaces/{namespace}/tables/{table}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "biglake.googleapis.com/Table" } + ]; + + // Optional. If true we'll delete both the table and the data. Currently + // purgin data is not supported. + bool purge_requested = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request message for the `CreateIcebergTable` API. +message CreateIcebergTableRequest { + // Required. The parent resource where this table will be created. + // Format: projects/{project_id}/namespaces/{namespace} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "biglake.googleapis.com/Namespace" + } + ]; + + // Required. The request body that should be in the format of Apache Iceberg's + // `#/components/schemas/CreateTableRequest`. Content type is expected to be + // `application/json`. + google.api.HttpBody http_body = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for the `ListIcebergTableIdentifiers` API. +message ListIcebergTableIdentifiersRequest { + // Optional. PageToken for pagination. + string page_token = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page size for pagination. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The namespace to list tables from. + string parent = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "biglake.googleapis.com/Namespace" + } + ]; +} + +// The table identifier. +message TableIdentifier { + // The namespace of the table. This is always 1 element, since we don't + // support nested namespaces. + repeated string namespace = 1 [(google.api.resource_reference) = { + type: "biglake.googleapis.com/Namespace" + }]; + + // The table name. + string name = 2; +} + +// The response message for the `ListIcebergTableIdentifiers` API. +message ListIcebergTableIdentifiersResponse { + // Output only. The list of table identifiers. + repeated TableIdentifier identifiers = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The next page token for pagination. + string next_page_token = 2 [ + json_name = "next-page-token", + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} + +// The request message for the `UpdateIcebergNamespace` API. +message IcebergNamespaceUpdate { + // Optional. Keys of the properties to remove. + repeated string removals = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of properties to update or add. + map updates = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request message for the `UpdateIcebergNamespace` API. +message UpdateIcebergNamespaceRequest { + // Required. The namespace to update. + // + // The namespace's `name` field is used to identify the namespace to update. + // Format: projects/{project_id}/namespaces/{namespace} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "biglake.googleapis.com/Namespace" + } + ]; + + // Required. The update to apply to the namespace. + IcebergNamespaceUpdate iceberg_namespace_update = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// The response message for the `UpdateIcebergNamespace` API. +message UpdateIcebergNamespaceResponse { + // Output only. List of properties that were removed. + repeated string removed = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of properties that were added or updated. + repeated string updated = 2 + [json_name = "added", (google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of properties that were requested to be removed, but were + // not found. + repeated string missing = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for the `DeleteIcebergNamespace` API. +message DeleteIcebergNamespaceRequest { + // Required. Iceberg namespace to delete in the format: + // `projects/{project_id}/namespaces/{namespace}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "biglake.googleapis.com/Namespace" + } + ]; +} + +// The namespace object to create. +message IcebergNamespace { + // Required. The name of the namespace. + repeated string namespace = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The optional properties of the namespace. + map properties = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request message for the `CreateIcebergNamespace` API. +message CreateIcebergNamespaceRequest { + // Required. The parent resource where this namespace will be created. + // Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "biglake.googleapis.com/Catalog" } + ]; + + // Required. The namespace to create. + IcebergNamespace iceberg_namespace = 2 + [json_name = "namespace", (google.api.field_behavior) = REQUIRED]; +} + +// The request message for the `GetIcebergCatalogConfig` API. +message GetIcebergCatalogConfigRequest { + // Required. Warehouse location or identifier to request from the service. + string warehouse = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The iceberg catalog configuration. +message IcebergCatalogConfig { + // Output only. Properties that should be used to override client + // configuration; applied after defaults and client configuration. Required, + // even if empty. + map overrides = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Properties that should be used as default configuration; + // applied before client configuration. Required, even if empty. + map defaults = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Endpoints, required, must not be empty. + repeated string endpoints = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for the `GetIcebergNamespace` API. +message GetIcebergNamespaceRequest { + // Required. Iceberg namespace to fetch in the format: + // `projects/{project_id}/namespaces/{namespace}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "biglake.googleapis.com/Namespace" + } + ]; +} + +// ListIcebergNamespacesRequest +message ListIcebergNamespacesRequest { + // Optional. PageToken + string page_token = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. For servers that support pagination, this signals an upper bound + // of the number of results that a client will receive. For servers that do + // not support pagination, clients may receive results larger than the + // indicated `pageSize`. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The parent from the resource path. + string api_parent = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional namespace, underneath which to list namespaces. If + // not provided or empty, all top-level namespaces should be listed. If parent + // is a multipart namespace, the parts must be separated by the unit separator + // (`0x1F`) byte. + // Not a real parent, so ST_NOT_REQUIRED. + string parent = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for the `ListIcebergNamespaces` API. +message ListIcebergNamespacesResponse { + // The list of namespaces. + repeated google.protobuf.ListValue namespaces = 1; + + // The next page token for pagination. + string next_page_token = 2 [json_name = "next-page-token"]; +} + +// The storage credential for a path in the table. +message StorageCredential { + // Indicates a storage location prefix where the credential is relevant. + string prefix = 1; + + // The credentials for the storage location. The keys that are populated are: + // - `gcs.oauth2.token` + // - `gcs.oauth2.token_expires_at` + // - `expiration-time` (to support federation from Polaris). + map config = 2; +} + +// The response message for the `LoadCredentials` API. +message LoadIcebergTableCredentialsResponse { + // The credentials for the table assigned to the caller. + repeated StorageCredential storage_credentials = 1 + [json_name = "storage-credentials"]; +} diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/create/SyncCreateSetCredentialsProvider.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..626e42c3f294 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.IcebergCatalogServiceSettings; +import com.google.cloud.biglake.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + IcebergCatalogServiceSettings icebergCatalogServiceSettings = + IcebergCatalogServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create(icebergCatalogServiceSettings); + } +} +// [END biglake_v1_generated_IcebergCatalogService_Create_SetCredentialsProvider_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/create/SyncCreateSetEndpoint.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..2cca9cce888d --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_Create_SetEndpoint_sync] +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.IcebergCatalogServiceSettings; +import com.google.cloud.biglake.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + IcebergCatalogServiceSettings icebergCatalogServiceSettings = + IcebergCatalogServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create(icebergCatalogServiceSettings); + } +} +// [END biglake_v1_generated_IcebergCatalogService_Create_SetEndpoint_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/create/SyncCreateUseHttpJsonTransport.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..65666b546155 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.IcebergCatalogServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // 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 + IcebergCatalogServiceSettings icebergCatalogServiceSettings = + IcebergCatalogServiceSettings.newHttpJsonBuilder().build(); + IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create(icebergCatalogServiceSettings); + } +} +// [END biglake_v1_generated_IcebergCatalogService_Create_UseHttpJsonTransport_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/AsyncCreateIcebergCatalog.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/AsyncCreateIcebergCatalog.java new file mode 100644 index 000000000000..fae2d5e18c01 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/AsyncCreateIcebergCatalog.java @@ -0,0 +1,53 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_CreateIcebergCatalog_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.biglake.v1.CreateIcebergCatalogRequest; +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.ProjectName; + +public class AsyncCreateIcebergCatalog { + + public static void main(String[] args) throws Exception { + asyncCreateIcebergCatalog(); + } + + public static void asyncCreateIcebergCatalog() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + CreateIcebergCatalogRequest request = + CreateIcebergCatalogRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setIcebergCatalogId("icebergCatalogId504062865") + .setIcebergCatalog(IcebergCatalog.newBuilder().build()) + .build(); + ApiFuture future = + icebergCatalogServiceClient.createIcebergCatalogCallable().futureCall(request); + // Do something. + IcebergCatalog response = future.get(); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_CreateIcebergCatalog_async] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/SyncCreateIcebergCatalog.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/SyncCreateIcebergCatalog.java new file mode 100644 index 000000000000..ee66eba160e6 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/SyncCreateIcebergCatalog.java @@ -0,0 +1,49 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_CreateIcebergCatalog_sync] +import com.google.cloud.biglake.v1.CreateIcebergCatalogRequest; +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.ProjectName; + +public class SyncCreateIcebergCatalog { + + public static void main(String[] args) throws Exception { + syncCreateIcebergCatalog(); + } + + public static void syncCreateIcebergCatalog() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + CreateIcebergCatalogRequest request = + CreateIcebergCatalogRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setIcebergCatalogId("icebergCatalogId504062865") + .setIcebergCatalog(IcebergCatalog.newBuilder().build()) + .build(); + IcebergCatalog response = icebergCatalogServiceClient.createIcebergCatalog(request); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_CreateIcebergCatalog_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/SyncCreateIcebergCatalogProjectnameIcebergcatalogString.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/SyncCreateIcebergCatalogProjectnameIcebergcatalogString.java new file mode 100644 index 000000000000..0c52f9302186 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/SyncCreateIcebergCatalogProjectnameIcebergcatalogString.java @@ -0,0 +1,47 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_CreateIcebergCatalog_ProjectnameIcebergcatalogString_sync] +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.ProjectName; + +public class SyncCreateIcebergCatalogProjectnameIcebergcatalogString { + + public static void main(String[] args) throws Exception { + syncCreateIcebergCatalogProjectnameIcebergcatalogString(); + } + + public static void syncCreateIcebergCatalogProjectnameIcebergcatalogString() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + String icebergCatalogId = "icebergCatalogId504062865"; + IcebergCatalog response = + icebergCatalogServiceClient.createIcebergCatalog( + parent, icebergCatalog, icebergCatalogId); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_CreateIcebergCatalog_ProjectnameIcebergcatalogString_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/SyncCreateIcebergCatalogStringIcebergcatalogString.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/SyncCreateIcebergCatalogStringIcebergcatalogString.java new file mode 100644 index 000000000000..c7fbe9f1fc10 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/createicebergcatalog/SyncCreateIcebergCatalogStringIcebergcatalogString.java @@ -0,0 +1,47 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_CreateIcebergCatalog_StringIcebergcatalogString_sync] +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.ProjectName; + +public class SyncCreateIcebergCatalogStringIcebergcatalogString { + + public static void main(String[] args) throws Exception { + syncCreateIcebergCatalogStringIcebergcatalogString(); + } + + public static void syncCreateIcebergCatalogStringIcebergcatalogString() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + String icebergCatalogId = "icebergCatalogId504062865"; + IcebergCatalog response = + icebergCatalogServiceClient.createIcebergCatalog( + parent, icebergCatalog, icebergCatalogId); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_CreateIcebergCatalog_StringIcebergcatalogString_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/failovericebergcatalog/AsyncFailoverIcebergCatalog.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/failovericebergcatalog/AsyncFailoverIcebergCatalog.java new file mode 100644 index 000000000000..051399e7e0be --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/failovericebergcatalog/AsyncFailoverIcebergCatalog.java @@ -0,0 +1,54 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_FailoverIcebergCatalog_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest; +import com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.protobuf.Timestamp; + +public class AsyncFailoverIcebergCatalog { + + public static void main(String[] args) throws Exception { + asyncFailoverIcebergCatalog(); + } + + public static void asyncFailoverIcebergCatalog() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + FailoverIcebergCatalogRequest request = + FailoverIcebergCatalogRequest.newBuilder() + .setName("name3373707") + .setPrimaryReplica("primaryReplica-389090218") + .setValidateOnly(true) + .setConditionalFailoverReplicationTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + icebergCatalogServiceClient.failoverIcebergCatalogCallable().futureCall(request); + // Do something. + FailoverIcebergCatalogResponse response = future.get(); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_FailoverIcebergCatalog_async] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/failovericebergcatalog/SyncFailoverIcebergCatalog.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/failovericebergcatalog/SyncFailoverIcebergCatalog.java new file mode 100644 index 000000000000..a8b26445044b --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/failovericebergcatalog/SyncFailoverIcebergCatalog.java @@ -0,0 +1,51 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_FailoverIcebergCatalog_sync] +import com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest; +import com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.protobuf.Timestamp; + +public class SyncFailoverIcebergCatalog { + + public static void main(String[] args) throws Exception { + syncFailoverIcebergCatalog(); + } + + public static void syncFailoverIcebergCatalog() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + FailoverIcebergCatalogRequest request = + FailoverIcebergCatalogRequest.newBuilder() + .setName("name3373707") + .setPrimaryReplica("primaryReplica-389090218") + .setValidateOnly(true) + .setConditionalFailoverReplicationTime(Timestamp.newBuilder().build()) + .build(); + FailoverIcebergCatalogResponse response = + icebergCatalogServiceClient.failoverIcebergCatalog(request); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_FailoverIcebergCatalog_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/failovericebergcatalog/SyncFailoverIcebergCatalogStringString.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/failovericebergcatalog/SyncFailoverIcebergCatalogStringString.java new file mode 100644 index 000000000000..f612da9f353c --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/failovericebergcatalog/SyncFailoverIcebergCatalogStringString.java @@ -0,0 +1,44 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_FailoverIcebergCatalog_StringString_sync] +import com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; + +public class SyncFailoverIcebergCatalogStringString { + + public static void main(String[] args) throws Exception { + syncFailoverIcebergCatalogStringString(); + } + + public static void syncFailoverIcebergCatalogStringString() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + String name = "name3373707"; + String primaryReplica = "primaryReplica-389090218"; + FailoverIcebergCatalogResponse response = + icebergCatalogServiceClient.failoverIcebergCatalog(name, primaryReplica); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_FailoverIcebergCatalog_StringString_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/AsyncGetIcebergCatalog.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/AsyncGetIcebergCatalog.java new file mode 100644 index 000000000000..27105c5006ff --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/AsyncGetIcebergCatalog.java @@ -0,0 +1,51 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_GetIcebergCatalog_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.biglake.v1.CatalogName; +import com.google.cloud.biglake.v1.GetIcebergCatalogRequest; +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; + +public class AsyncGetIcebergCatalog { + + public static void main(String[] args) throws Exception { + asyncGetIcebergCatalog(); + } + + public static void asyncGetIcebergCatalog() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + GetIcebergCatalogRequest request = + GetIcebergCatalogRequest.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .build(); + ApiFuture future = + icebergCatalogServiceClient.getIcebergCatalogCallable().futureCall(request); + // Do something. + IcebergCatalog response = future.get(); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_GetIcebergCatalog_async] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/SyncGetIcebergCatalog.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/SyncGetIcebergCatalog.java new file mode 100644 index 000000000000..f503f841ced0 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/SyncGetIcebergCatalog.java @@ -0,0 +1,47 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_GetIcebergCatalog_sync] +import com.google.cloud.biglake.v1.CatalogName; +import com.google.cloud.biglake.v1.GetIcebergCatalogRequest; +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; + +public class SyncGetIcebergCatalog { + + public static void main(String[] args) throws Exception { + syncGetIcebergCatalog(); + } + + public static void syncGetIcebergCatalog() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + GetIcebergCatalogRequest request = + GetIcebergCatalogRequest.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString()) + .build(); + IcebergCatalog response = icebergCatalogServiceClient.getIcebergCatalog(request); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_GetIcebergCatalog_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/SyncGetIcebergCatalogCatalogname.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/SyncGetIcebergCatalogCatalogname.java new file mode 100644 index 000000000000..7504ef2adac3 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/SyncGetIcebergCatalogCatalogname.java @@ -0,0 +1,43 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_GetIcebergCatalog_Catalogname_sync] +import com.google.cloud.biglake.v1.CatalogName; +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; + +public class SyncGetIcebergCatalogCatalogname { + + public static void main(String[] args) throws Exception { + syncGetIcebergCatalogCatalogname(); + } + + public static void syncGetIcebergCatalogCatalogname() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + CatalogName name = CatalogName.of("[PROJECT]", "[CATALOG]"); + IcebergCatalog response = icebergCatalogServiceClient.getIcebergCatalog(name); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_GetIcebergCatalog_Catalogname_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/SyncGetIcebergCatalogString.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/SyncGetIcebergCatalogString.java new file mode 100644 index 000000000000..fbbfe6f6137c --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/geticebergcatalog/SyncGetIcebergCatalogString.java @@ -0,0 +1,43 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_GetIcebergCatalog_String_sync] +import com.google.cloud.biglake.v1.CatalogName; +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; + +public class SyncGetIcebergCatalogString { + + public static void main(String[] args) throws Exception { + syncGetIcebergCatalogString(); + } + + public static void syncGetIcebergCatalogString() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + String name = CatalogName.of("[PROJECT]", "[CATALOG]").toString(); + IcebergCatalog response = icebergCatalogServiceClient.getIcebergCatalog(name); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_GetIcebergCatalog_String_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/AsyncListIcebergCatalogs.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/AsyncListIcebergCatalogs.java new file mode 100644 index 000000000000..e4749f23115d --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/AsyncListIcebergCatalogs.java @@ -0,0 +1,55 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_ListIcebergCatalogs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.ListIcebergCatalogsRequest; +import com.google.cloud.biglake.v1.ProjectName; + +public class AsyncListIcebergCatalogs { + + public static void main(String[] args) throws Exception { + asyncListIcebergCatalogs(); + } + + public static void asyncListIcebergCatalogs() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + ListIcebergCatalogsRequest request = + ListIcebergCatalogsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + icebergCatalogServiceClient.listIcebergCatalogsPagedCallable().futureCall(request); + // Do something. + for (IcebergCatalog element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_ListIcebergCatalogs_async] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/AsyncListIcebergCatalogsPaged.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/AsyncListIcebergCatalogsPaged.java new file mode 100644 index 000000000000..a1b9a2bae77d --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/AsyncListIcebergCatalogsPaged.java @@ -0,0 +1,63 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_ListIcebergCatalogs_Paged_async] +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.ListIcebergCatalogsRequest; +import com.google.cloud.biglake.v1.ListIcebergCatalogsResponse; +import com.google.cloud.biglake.v1.ProjectName; +import com.google.common.base.Strings; + +public class AsyncListIcebergCatalogsPaged { + + public static void main(String[] args) throws Exception { + asyncListIcebergCatalogsPaged(); + } + + public static void asyncListIcebergCatalogsPaged() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + ListIcebergCatalogsRequest request = + ListIcebergCatalogsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListIcebergCatalogsResponse response = + icebergCatalogServiceClient.listIcebergCatalogsCallable().call(request); + for (IcebergCatalog element : response.getIcebergCatalogsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_ListIcebergCatalogs_Paged_async] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/SyncListIcebergCatalogs.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/SyncListIcebergCatalogs.java new file mode 100644 index 000000000000..c419bb27105d --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/SyncListIcebergCatalogs.java @@ -0,0 +1,52 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_ListIcebergCatalogs_sync] +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.ListIcebergCatalogsRequest; +import com.google.cloud.biglake.v1.ProjectName; + +public class SyncListIcebergCatalogs { + + public static void main(String[] args) throws Exception { + syncListIcebergCatalogs(); + } + + public static void syncListIcebergCatalogs() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + ListIcebergCatalogsRequest request = + ListIcebergCatalogsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (IcebergCatalog element : + icebergCatalogServiceClient.listIcebergCatalogs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_ListIcebergCatalogs_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/SyncListIcebergCatalogsProjectname.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/SyncListIcebergCatalogsProjectname.java new file mode 100644 index 000000000000..e7bc7917cda6 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/SyncListIcebergCatalogsProjectname.java @@ -0,0 +1,46 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_ListIcebergCatalogs_Projectname_sync] +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.ProjectName; + +public class SyncListIcebergCatalogsProjectname { + + public static void main(String[] args) throws Exception { + syncListIcebergCatalogsProjectname(); + } + + public static void syncListIcebergCatalogsProjectname() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (IcebergCatalog element : + icebergCatalogServiceClient.listIcebergCatalogs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_ListIcebergCatalogs_Projectname_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/SyncListIcebergCatalogsString.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/SyncListIcebergCatalogsString.java new file mode 100644 index 000000000000..7c34e9f28b6a --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/listicebergcatalogs/SyncListIcebergCatalogsString.java @@ -0,0 +1,46 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_ListIcebergCatalogs_String_sync] +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.ProjectName; + +public class SyncListIcebergCatalogsString { + + public static void main(String[] args) throws Exception { + syncListIcebergCatalogsString(); + } + + public static void syncListIcebergCatalogsString() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (IcebergCatalog element : + icebergCatalogServiceClient.listIcebergCatalogs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_ListIcebergCatalogs_String_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/updateicebergcatalog/AsyncUpdateIcebergCatalog.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/updateicebergcatalog/AsyncUpdateIcebergCatalog.java new file mode 100644 index 000000000000..f3d1eb8f3c5d --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/updateicebergcatalog/AsyncUpdateIcebergCatalog.java @@ -0,0 +1,52 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_UpdateIcebergCatalog_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateIcebergCatalog { + + public static void main(String[] args) throws Exception { + asyncUpdateIcebergCatalog(); + } + + public static void asyncUpdateIcebergCatalog() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + UpdateIcebergCatalogRequest request = + UpdateIcebergCatalogRequest.newBuilder() + .setIcebergCatalog(IcebergCatalog.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + icebergCatalogServiceClient.updateIcebergCatalogCallable().futureCall(request); + // Do something. + IcebergCatalog response = future.get(); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_UpdateIcebergCatalog_async] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/updateicebergcatalog/SyncUpdateIcebergCatalog.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/updateicebergcatalog/SyncUpdateIcebergCatalog.java new file mode 100644 index 000000000000..59222eee3743 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/updateicebergcatalog/SyncUpdateIcebergCatalog.java @@ -0,0 +1,48 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_UpdateIcebergCatalog_sync] +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateIcebergCatalog { + + public static void main(String[] args) throws Exception { + syncUpdateIcebergCatalog(); + } + + public static void syncUpdateIcebergCatalog() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + UpdateIcebergCatalogRequest request = + UpdateIcebergCatalogRequest.newBuilder() + .setIcebergCatalog(IcebergCatalog.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + IcebergCatalog response = icebergCatalogServiceClient.updateIcebergCatalog(request); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_UpdateIcebergCatalog_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/updateicebergcatalog/SyncUpdateIcebergCatalogIcebergcatalogFieldmask.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/updateicebergcatalog/SyncUpdateIcebergCatalogIcebergcatalogFieldmask.java new file mode 100644 index 000000000000..01816d3e7ff9 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservice/updateicebergcatalog/SyncUpdateIcebergCatalogIcebergcatalogFieldmask.java @@ -0,0 +1,45 @@ +/* + * 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.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogService_UpdateIcebergCatalog_IcebergcatalogFieldmask_sync] +import com.google.cloud.biglake.v1.IcebergCatalog; +import com.google.cloud.biglake.v1.IcebergCatalogServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateIcebergCatalogIcebergcatalogFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateIcebergCatalogIcebergcatalogFieldmask(); + } + + public static void syncUpdateIcebergCatalogIcebergcatalogFieldmask() throws Exception { + // 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 (IcebergCatalogServiceClient icebergCatalogServiceClient = + IcebergCatalogServiceClient.create()) { + IcebergCatalog icebergCatalog = IcebergCatalog.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + IcebergCatalog response = + icebergCatalogServiceClient.updateIcebergCatalog(icebergCatalog, updateMask); + } + } +} +// [END biglake_v1_generated_IcebergCatalogService_UpdateIcebergCatalog_IcebergcatalogFieldmask_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservicesettings/geticebergcatalog/SyncGetIcebergCatalog.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservicesettings/geticebergcatalog/SyncGetIcebergCatalog.java new file mode 100644 index 000000000000..5733ae543204 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/icebergcatalogservicesettings/geticebergcatalog/SyncGetIcebergCatalog.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. + */ + +package com.google.cloud.biglake.v1.samples; + +// [START biglake_v1_generated_IcebergCatalogServiceSettings_GetIcebergCatalog_sync] +import com.google.cloud.biglake.v1.IcebergCatalogServiceSettings; +import java.time.Duration; + +public class SyncGetIcebergCatalog { + + public static void main(String[] args) throws Exception { + syncGetIcebergCatalog(); + } + + public static void syncGetIcebergCatalog() throws Exception { + // 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 + IcebergCatalogServiceSettings.Builder icebergCatalogServiceSettingsBuilder = + IcebergCatalogServiceSettings.newBuilder(); + icebergCatalogServiceSettingsBuilder + .getIcebergCatalogSettings() + .setRetrySettings( + icebergCatalogServiceSettingsBuilder + .getIcebergCatalogSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + IcebergCatalogServiceSettings icebergCatalogServiceSettings = + icebergCatalogServiceSettingsBuilder.build(); + } +} +// [END biglake_v1_generated_IcebergCatalogServiceSettings_GetIcebergCatalog_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/stub/icebergcatalogservicestubsettings/geticebergcatalog/SyncGetIcebergCatalog.java b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/stub/icebergcatalogservicestubsettings/geticebergcatalog/SyncGetIcebergCatalog.java new file mode 100644 index 000000000000..1b1dc2a3247c --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/biglake/v1/stub/icebergcatalogservicestubsettings/geticebergcatalog/SyncGetIcebergCatalog.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. + */ + +package com.google.cloud.biglake.v1.stub.samples; + +// [START biglake_v1_generated_IcebergCatalogServiceStubSettings_GetIcebergCatalog_sync] +import com.google.cloud.biglake.v1.stub.IcebergCatalogServiceStubSettings; +import java.time.Duration; + +public class SyncGetIcebergCatalog { + + public static void main(String[] args) throws Exception { + syncGetIcebergCatalog(); + } + + public static void syncGetIcebergCatalog() throws Exception { + // 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 + IcebergCatalogServiceStubSettings.Builder icebergCatalogServiceSettingsBuilder = + IcebergCatalogServiceStubSettings.newBuilder(); + icebergCatalogServiceSettingsBuilder + .getIcebergCatalogSettings() + .setRetrySettings( + icebergCatalogServiceSettingsBuilder + .getIcebergCatalogSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + IcebergCatalogServiceStubSettings icebergCatalogServiceSettings = + icebergCatalogServiceSettingsBuilder.build(); + } +} +// [END biglake_v1_generated_IcebergCatalogServiceStubSettings_GetIcebergCatalog_sync]