diff --git a/generation_config.yaml b/generation_config.yaml index 5270ebe849a4..10ab615e932c 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: 00bb3db8a8cc88f0755e872856462b902d6dd8c4 +googleapis_commitish: f7b17174725f43b5cb11b0b8c6bbad20a3dc5bd1 libraries_bom_version: 26.83.0 is_monorepo: true libraries: 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 index 1004e50d64e8..b2201387dd9c 100644 --- 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 @@ -35,23 +35,9 @@ // 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. + * Service Description: Lakehouse runtime catalog supports the following catalog management methods: + * - GetIcebergCatalog - ListIcebergCatalogs - DeleteIcebergCatalog - UpdateIcebergCatalog - + * CreateIcebergCatalog - FailoverIcebergCatalog * *
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: @@ -139,7 +125,7 @@ * *
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`). + *
Creates the Iceberg REST Catalog. 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.
@@ -150,6 +136,8 @@ *createIcebergCatalog(ProjectName parent, IcebergCatalog icebergCatalog, String icebergCatalogId) *
createIcebergCatalog(String parent, IcebergCatalog icebergCatalog, String icebergCatalogId) + *
createIcebergCatalog(ProjectName parent, IcebergCatalog icebergCatalog, String icebergCatalogId, String primaryLocation) + *
createIcebergCatalog(String parent, IcebergCatalog icebergCatalog, String icebergCatalogId, String primaryLocation) *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*If the bucket does not exist, of the caller does not have bucket metadata permissions, the * catalog will not be created. @@ -719,9 +706,8 @@ public final IcebergCatalog createIcebergCatalog( // 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`). + * Creates the Iceberg REST Catalog. 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. @@ -766,9 +752,128 @@ public final IcebergCatalog createIcebergCatalog( // 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`). + * Creates the Iceberg REST Catalog. 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";
+ * String primaryLocation = "primaryLocation-1140723753";
+ * IcebergCatalog response =
+ * icebergCatalogServiceClient.createIcebergCatalog(
+ * parent, icebergCatalog, icebergCatalogId, primaryLocation);
+ * }
+ * }
+ *
+ * @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.
+ * @param primaryLocation Optional. The primary location where the catalog metadata will be
+ * stored.
+ * For Google Cloud Storage bucket catalogs and BigLake catalogs, if this is not specified, + * then the region is inferred from the bucket's region (`default_location` bucket for BigLake + * catalogs). If specified, the region must be in jurisdiction (near the `default_location` + * bucket's region and the `restricted_locations` buckets' regions for BigLake catalogs). + *
For federated catalogs, this must be specified and be a Lakehouse-supported location + * (https://docs.cloud.google.com/lakehouse/docs/locations). It should be close to the remote + * catalog's location for the best performance and cost. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IcebergCatalog createIcebergCatalog( + ProjectName parent, + IcebergCatalog icebergCatalog, + String icebergCatalogId, + String primaryLocation) { + CreateIcebergCatalogRequest request = + CreateIcebergCatalogRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setIcebergCatalog(icebergCatalog) + .setIcebergCatalogId(icebergCatalogId) + .setPrimaryLocation(primaryLocation) + .build(); + return createIcebergCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates the Iceberg REST Catalog. 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";
+ * String primaryLocation = "primaryLocation-1140723753";
+ * IcebergCatalog response =
+ * icebergCatalogServiceClient.createIcebergCatalog(
+ * parent, icebergCatalog, icebergCatalogId, primaryLocation);
+ * }
+ * }
+ *
+ * @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.
+ * @param primaryLocation Optional. The primary location where the catalog metadata will be
+ * stored.
+ * For Google Cloud Storage bucket catalogs and BigLake catalogs, if this is not specified, + * then the region is inferred from the bucket's region (`default_location` bucket for BigLake + * catalogs). If specified, the region must be in jurisdiction (near the `default_location` + * bucket's region and the `restricted_locations` buckets' regions for BigLake catalogs). + *
For federated catalogs, this must be specified and be a Lakehouse-supported location + * (https://docs.cloud.google.com/lakehouse/docs/locations). It should be close to the remote + * catalog's location for the best performance and cost. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IcebergCatalog createIcebergCatalog( + String parent, + IcebergCatalog icebergCatalog, + String icebergCatalogId, + String primaryLocation) { + CreateIcebergCatalogRequest request = + CreateIcebergCatalogRequest.newBuilder() + .setParent(parent) + .setIcebergCatalog(icebergCatalog) + .setIcebergCatalogId(icebergCatalogId) + .setPrimaryLocation(primaryLocation) + .build(); + return createIcebergCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates the Iceberg REST Catalog. 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. @@ -788,6 +893,7 @@ public final IcebergCatalog createIcebergCatalog( * .setParent(ProjectName.of("[PROJECT]").toString()) * .setIcebergCatalogId("icebergCatalogId504062865") * .setIcebergCatalog(IcebergCatalog.newBuilder().build()) + * .setPrimaryLocation("primaryLocation-1140723753") * .build(); * IcebergCatalog response = icebergCatalogServiceClient.createIcebergCatalog(request); * } @@ -802,9 +908,8 @@ public final IcebergCatalog createIcebergCatalog(CreateIcebergCatalogRequest req // 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`). + * Creates the Iceberg REST Catalog. 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.
@@ -824,6 +929,7 @@ public final IcebergCatalog createIcebergCatalog(CreateIcebergCatalogRequest req
* .setParent(ProjectName.of("[PROJECT]").toString())
* .setIcebergCatalogId("icebergCatalogId504062865")
* .setIcebergCatalog(IcebergCatalog.newBuilder().build())
+ * .setPrimaryLocation("primaryLocation-1140723753")
* .build();
* ApiFuture ======================= 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.
+ * Service Description: Lakehouse runtime catalog supports the following catalog management
+ * methods: - GetIcebergCatalog - ListIcebergCatalogs - DeleteIcebergCatalog - UpdateIcebergCatalog
+ * - CreateIcebergCatalog - FailoverIcebergCatalog
*
* Sample for IcebergCatalogServiceClient:
*
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
index 77126144e5d7..0f0b4267cff6 100644
--- 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
@@ -196,6 +196,8 @@ public class HttpJsonIcebergCatalogServiceStub extends IcebergCatalogServiceStub
ProtoRestSerializer.create();
serializer.putQueryParam(
fields, "iceberg-catalog-id", request.getIcebergCatalogId());
+ serializer.putQueryParam(
+ fields, "primary_location", request.getPrimaryLocation());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
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
index 9337a2b91785..ab748edb561c 100644
--- 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
@@ -170,6 +170,33 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.api.FieldInfo",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.api.FieldInfo$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.api.FieldInfo$Format",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.api.FlowControlLimitExceededBehaviorProto",
"queryAllDeclaredConstructors": true,
@@ -494,6 +521,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.api.TypeReference",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.api.TypeReference$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.biglake.v1.CreateIcebergCatalogRequest",
"queryAllDeclaredConstructors": true,
@@ -746,6 +791,177 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$GlueCatalogInfo",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$GlueCatalogInfo$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$RefreshOptions",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$RefreshOptions$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$RefreshSchedule",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$RefreshSchedule$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$RefreshScope",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$RefreshScope$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$RefreshStatus",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$RefreshStatus$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$UnityCatalogInfo",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$FederatedCatalogOptions$UnityCatalogInfo$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$Replica",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$Replica$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$Replica$State",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$RestrictedLocationsConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.IcebergCatalog$RestrictedLocationsConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.biglake.v1.IcebergCatalogConfig",
"queryAllDeclaredConstructors": true,
@@ -953,6 +1169,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.biglake.v1.StorageCredential",
"queryAllDeclaredConstructors": true,
@@ -2005,5 +2239,23 @@
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
+ },
+ {
+ "name": "com.google.rpc.Status",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.rpc.Status$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
}
]
\ No newline at end of file
diff --git a/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
index c6a81e4f5d0b..1f7e92838994 100644
--- 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
@@ -84,10 +84,16 @@ public void getIcebergCatalogTest() throws Exception {
IcebergCatalog.newBuilder()
.setName(CatalogName.of("[PROJECT]", "[CATALOG]").toString())
.setBiglakeServiceAccount("biglakeServiceAccount-779711961")
+ .setBiglakeServiceAccountUniqueId("biglakeServiceAccountUniqueId1477884947")
.setDefaultLocation("defaultLocation-395835114")
- .addAllCatalogRegions(new ArrayList
- * 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.
+ * Lakehouse runtime catalog supports the following catalog management methods:
+ * - GetIcebergCatalog
+ * - ListIcebergCatalogs
+ * - DeleteIcebergCatalog
+ * - UpdateIcebergCatalog
+ * - CreateIcebergCatalog
+ * - FailoverIcebergCatalog
*
*/
@io.grpc.stub.annotations.GrpcGenerated
@@ -794,6 +776,55 @@ private IcebergCatalogServiceGrpc() {}
return getRegisterIcebergTableMethod;
}
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest, com.google.protobuf.Empty>
+ getReportIcebergTableMetricsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ReportIcebergTableMetrics",
+ requestType = com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest, com.google.protobuf.Empty>
+ getReportIcebergTableMetricsMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest, com.google.protobuf.Empty>
+ getReportIcebergTableMetricsMethod;
+ if ((getReportIcebergTableMetricsMethod =
+ IcebergCatalogServiceGrpc.getReportIcebergTableMetricsMethod)
+ == null) {
+ synchronized (IcebergCatalogServiceGrpc.class) {
+ if ((getReportIcebergTableMetricsMethod =
+ IcebergCatalogServiceGrpc.getReportIcebergTableMetricsMethod)
+ == null) {
+ IcebergCatalogServiceGrpc.getReportIcebergTableMetricsMethod =
+ getReportIcebergTableMetricsMethod =
+ io.grpc.MethodDescriptor
+ .
- * 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.
+ * Lakehouse runtime catalog supports the following catalog management methods:
+ * - GetIcebergCatalog
+ * - ListIcebergCatalogs
+ * - DeleteIcebergCatalog
+ * - UpdateIcebergCatalog
+ * - CreateIcebergCatalog
+ * - FailoverIcebergCatalog
*
*/
public interface AsyncService {
@@ -1406,6 +1419,20 @@ default void registerIcebergTable(
getRegisterIcebergTableMethod(), responseObserver);
}
+ /**
+ *
+ *
+ *
+ * Reports a metrics report for a table.
+ *
+ */
+ default void reportIcebergTableMetrics(
+ com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest request,
+ io.grpc.stub.StreamObserver
* 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
@@ -1505,31 +1531,13 @@ default void failoverIcebergCatalog(
* 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.
+ * Lakehouse runtime catalog supports the following catalog management methods:
+ * - GetIcebergCatalog
+ * - ListIcebergCatalogs
+ * - DeleteIcebergCatalog
+ * - UpdateIcebergCatalog
+ * - CreateIcebergCatalog
+ * - FailoverIcebergCatalog
*
*/
public abstract static class IcebergCatalogServiceImplBase
@@ -1545,31 +1553,13 @@ public final io.grpc.ServerServiceDefinition bindService() {
* 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.
+ * Lakehouse runtime catalog supports the following catalog management methods:
+ * - GetIcebergCatalog
+ * - ListIcebergCatalogs
+ * - DeleteIcebergCatalog
+ * - UpdateIcebergCatalog
+ * - CreateIcebergCatalog
+ * - FailoverIcebergCatalog
*
*/
public static final class IcebergCatalogServiceStub
@@ -1841,6 +1831,22 @@ public void registerIcebergTable(
responseObserver);
}
+ /**
+ *
+ *
+ *
+ * Reports a metrics report for a table.
+ *
+ */
+ public void reportIcebergTableMetrics(
+ com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest request,
+ io.grpc.stub.StreamObserver
* 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
@@ -1952,31 +1957,13 @@ public void failoverIcebergCatalog(
* 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.
+ * Lakehouse runtime catalog supports the following catalog management methods:
+ * - GetIcebergCatalog
+ * - ListIcebergCatalogs
+ * - DeleteIcebergCatalog
+ * - UpdateIcebergCatalog
+ * - CreateIcebergCatalog
+ * - FailoverIcebergCatalog
*
*/
public static final class IcebergCatalogServiceBlockingV2Stub
@@ -2211,6 +2198,20 @@ public com.google.api.HttpBody registerIcebergTable(
getChannel(), getRegisterIcebergTableMethod(), getCallOptions(), request);
}
+ /**
+ *
+ *
+ *
+ * Reports a metrics report for a table.
+ *
+ */
+ public com.google.protobuf.Empty reportIcebergTableMetrics(
+ com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest request)
+ throws io.grpc.StatusException {
+ return io.grpc.stub.ClientCalls.blockingV2UnaryCall(
+ getChannel(), getReportIcebergTableMetricsMethod(), getCallOptions(), request);
+ }
+
/**
*
*
@@ -2275,7 +2276,6 @@ public com.google.cloud.biglake.v1.IcebergCatalog updateIcebergCatalog(
*
*
* 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
@@ -2308,31 +2308,13 @@ public com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse failoverIceber
* 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.
+ * Lakehouse runtime catalog supports the following catalog management methods:
+ * - GetIcebergCatalog
+ * - ListIcebergCatalogs
+ * - DeleteIcebergCatalog
+ * - UpdateIcebergCatalog
+ * - CreateIcebergCatalog
+ * - FailoverIcebergCatalog
*
*/
public static final class IcebergCatalogServiceBlockingStub
@@ -2554,6 +2536,19 @@ public com.google.api.HttpBody registerIcebergTable(
getChannel(), getRegisterIcebergTableMethod(), getCallOptions(), request);
}
+ /**
+ *
+ *
+ *
+ * Reports a metrics report for a table.
+ *
+ */
+ public com.google.protobuf.Empty reportIcebergTableMetrics(
+ com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getReportIcebergTableMetricsMethod(), getCallOptions(), request);
+ }
+
/**
*
*
@@ -2614,7 +2609,6 @@ public com.google.cloud.biglake.v1.IcebergCatalog updateIcebergCatalog(
*
*
* 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
@@ -2646,31 +2640,13 @@ public com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse failoverIceber
* 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.
+ * Lakehouse runtime catalog supports the following catalog management methods:
+ * - GetIcebergCatalog
+ * - ListIcebergCatalogs
+ * - DeleteIcebergCatalog
+ * - UpdateIcebergCatalog
+ * - CreateIcebergCatalog
+ * - FailoverIcebergCatalog
*
*/
public static final class IcebergCatalogServiceFutureStub
@@ -2901,6 +2877,20 @@ protected IcebergCatalogServiceFutureStub build(
getChannel().newCall(getRegisterIcebergTableMethod(), getCallOptions()), request);
}
+ /**
+ *
+ *
+ *
+ * Reports a metrics report for a table.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
* 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
@@ -3008,12 +2997,13 @@ protected IcebergCatalogServiceFutureStub build(
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 int METHODID_REPORT_ICEBERG_TABLE_METRICS = 15;
+ private static final int METHODID_GET_ICEBERG_CATALOG = 16;
+ private static final int METHODID_LIST_ICEBERG_CATALOGS = 17;
+ private static final int METHODID_DELETE_ICEBERG_CATALOG = 18;
+ private static final int METHODID_UPDATE_ICEBERG_CATALOG = 19;
+ private static final int METHODID_CREATE_ICEBERG_CATALOG = 20;
+ private static final int METHODID_FAILOVER_ICEBERG_CATALOG = 21;
private static final class MethodHandlers
*
*
+ * Optional. The primary location where the catalog metadata will be stored.
+ *
+ * For Google Cloud Storage bucket catalogs and BigLake catalogs, if this
+ * is not specified, then the region is inferred from the bucket's region
+ * (`default_location` bucket for BigLake catalogs). If specified, the region
+ * must be in jurisdiction (near the `default_location` bucket's region and
+ * the `restricted_locations` buckets' regions for BigLake catalogs).
+ *
+ * For federated catalogs, this must be specified and be a Lakehouse-supported
+ * location (https://docs.cloud.google.com/lakehouse/docs/locations). It
+ * should be close to the remote catalog's location for the best
+ * performance and cost.
+ *
+ *
+ *
+ * string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The primaryLocation.
+ */
+ @java.lang.Override
+ public java.lang.String getPrimaryLocation() {
+ java.lang.Object ref = primaryLocation_;
+ 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();
+ primaryLocation_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The primary location where the catalog metadata will be stored.
+ *
+ * For Google Cloud Storage bucket catalogs and BigLake catalogs, if this
+ * is not specified, then the region is inferred from the bucket's region
+ * (`default_location` bucket for BigLake catalogs). If specified, the region
+ * must be in jurisdiction (near the `default_location` bucket's region and
+ * the `restricted_locations` buckets' regions for BigLake catalogs).
+ *
+ * For federated catalogs, this must be specified and be a Lakehouse-supported
+ * location (https://docs.cloud.google.com/lakehouse/docs/locations). It
+ * should be close to the remote catalog's location for the best
+ * performance and cost.
+ *
+ *
+ *
+ * string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bytes for primaryLocation.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPrimaryLocationBytes() {
+ java.lang.Object ref = primaryLocation_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ primaryLocation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -282,6 +362,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(icebergCatalogId_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, icebergCatalogId_);
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(primaryLocation_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, primaryLocation_);
+ }
getUnknownFields().writeTo(output);
}
@@ -300,6 +383,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(icebergCatalogId_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, icebergCatalogId_);
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(primaryLocation_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, primaryLocation_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -322,6 +408,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasIcebergCatalog()) {
if (!getIcebergCatalog().equals(other.getIcebergCatalog())) return false;
}
+ if (!getPrimaryLocation().equals(other.getPrimaryLocation())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -341,6 +428,8 @@ public int hashCode() {
hash = (37 * hash) + ICEBERG_CATALOG_FIELD_NUMBER;
hash = (53 * hash) + getIcebergCatalog().hashCode();
}
+ hash = (37 * hash) + PRIMARY_LOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getPrimaryLocation().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -498,6 +587,7 @@ public Builder clear() {
icebergCatalogBuilder_.dispose();
icebergCatalogBuilder_ = null;
}
+ primaryLocation_ = "";
return this;
}
@@ -546,6 +636,9 @@ private void buildPartial0(com.google.cloud.biglake.v1.CreateIcebergCatalogReque
icebergCatalogBuilder_ == null ? icebergCatalog_ : icebergCatalogBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.primaryLocation_ = primaryLocation_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -575,6 +668,11 @@ public Builder mergeFrom(com.google.cloud.biglake.v1.CreateIcebergCatalogRequest
if (other.hasIcebergCatalog()) {
mergeIcebergCatalog(other.getIcebergCatalog());
}
+ if (!other.getPrimaryLocation().isEmpty()) {
+ primaryLocation_ = other.primaryLocation_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -620,6 +718,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 26
+ case 34:
+ {
+ primaryLocation_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1135,6 +1239,182 @@ public com.google.cloud.biglake.v1.IcebergCatalogOrBuilder getIcebergCatalogOrBu
return icebergCatalogBuilder_;
}
+ private java.lang.Object primaryLocation_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The primary location where the catalog metadata will be stored.
+ *
+ * For Google Cloud Storage bucket catalogs and BigLake catalogs, if this
+ * is not specified, then the region is inferred from the bucket's region
+ * (`default_location` bucket for BigLake catalogs). If specified, the region
+ * must be in jurisdiction (near the `default_location` bucket's region and
+ * the `restricted_locations` buckets' regions for BigLake catalogs).
+ *
+ * For federated catalogs, this must be specified and be a Lakehouse-supported
+ * location (https://docs.cloud.google.com/lakehouse/docs/locations). It
+ * should be close to the remote catalog's location for the best
+ * performance and cost.
+ *
+ *
+ *
+ * string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The primaryLocation.
+ */
+ public java.lang.String getPrimaryLocation() {
+ java.lang.Object ref = primaryLocation_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ primaryLocation_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The primary location where the catalog metadata will be stored.
+ *
+ * For Google Cloud Storage bucket catalogs and BigLake catalogs, if this
+ * is not specified, then the region is inferred from the bucket's region
+ * (`default_location` bucket for BigLake catalogs). If specified, the region
+ * must be in jurisdiction (near the `default_location` bucket's region and
+ * the `restricted_locations` buckets' regions for BigLake catalogs).
+ *
+ * For federated catalogs, this must be specified and be a Lakehouse-supported
+ * location (https://docs.cloud.google.com/lakehouse/docs/locations). It
+ * should be close to the remote catalog's location for the best
+ * performance and cost.
+ *
+ *
+ *
+ * string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bytes for primaryLocation.
+ */
+ public com.google.protobuf.ByteString getPrimaryLocationBytes() {
+ java.lang.Object ref = primaryLocation_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ primaryLocation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The primary location where the catalog metadata will be stored.
+ *
+ * For Google Cloud Storage bucket catalogs and BigLake catalogs, if this
+ * is not specified, then the region is inferred from the bucket's region
+ * (`default_location` bucket for BigLake catalogs). If specified, the region
+ * must be in jurisdiction (near the `default_location` bucket's region and
+ * the `restricted_locations` buckets' regions for BigLake catalogs).
+ *
+ * For federated catalogs, this must be specified and be a Lakehouse-supported
+ * location (https://docs.cloud.google.com/lakehouse/docs/locations). It
+ * should be close to the remote catalog's location for the best
+ * performance and cost.
+ *
+ *
+ *
+ * string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The primaryLocation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPrimaryLocation(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ primaryLocation_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The primary location where the catalog metadata will be stored.
+ *
+ * For Google Cloud Storage bucket catalogs and BigLake catalogs, if this
+ * is not specified, then the region is inferred from the bucket's region
+ * (`default_location` bucket for BigLake catalogs). If specified, the region
+ * must be in jurisdiction (near the `default_location` bucket's region and
+ * the `restricted_locations` buckets' regions for BigLake catalogs).
+ *
+ * For federated catalogs, this must be specified and be a Lakehouse-supported
+ * location (https://docs.cloud.google.com/lakehouse/docs/locations). It
+ * should be close to the remote catalog's location for the best
+ * performance and cost.
+ *
+ *
+ *
+ * string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPrimaryLocation() {
+ primaryLocation_ = getDefaultInstance().getPrimaryLocation();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The primary location where the catalog metadata will be stored.
+ *
+ * For Google Cloud Storage bucket catalogs and BigLake catalogs, if this
+ * is not specified, then the region is inferred from the bucket's region
+ * (`default_location` bucket for BigLake catalogs). If specified, the region
+ * must be in jurisdiction (near the `default_location` bucket's region and
+ * the `restricted_locations` buckets' regions for BigLake catalogs).
+ *
+ * For federated catalogs, this must be specified and be a Lakehouse-supported
+ * location (https://docs.cloud.google.com/lakehouse/docs/locations). It
+ * should be close to the remote catalog's location for the best
+ * performance and cost.
+ *
+ *
+ *
+ * string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The bytes for primaryLocation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPrimaryLocationBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ primaryLocation_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.CreateIcebergCatalogRequest)
}
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
index 007f13df204d..292c69693bb3 100644
--- 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
@@ -142,4 +142,56 @@ public interface CreateIcebergCatalogRequestOrBuilder
*
*/
com.google.cloud.biglake.v1.IcebergCatalogOrBuilder getIcebergCatalogOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. The primary location where the catalog metadata will be stored.
+ *
+ * For Google Cloud Storage bucket catalogs and BigLake catalogs, if this
+ * is not specified, then the region is inferred from the bucket's region
+ * (`default_location` bucket for BigLake catalogs). If specified, the region
+ * must be in jurisdiction (near the `default_location` bucket's region and
+ * the `restricted_locations` buckets' regions for BigLake catalogs).
+ *
+ * For federated catalogs, this must be specified and be a Lakehouse-supported
+ * location (https://docs.cloud.google.com/lakehouse/docs/locations). It
+ * should be close to the remote catalog's location for the best
+ * performance and cost.
+ *
+ *
+ *
+ * string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The primaryLocation.
+ */
+ java.lang.String getPrimaryLocation();
+
+ /**
+ *
+ *
+ *
+ * Optional. The primary location where the catalog metadata will be stored.
+ *
+ * For Google Cloud Storage bucket catalogs and BigLake catalogs, if this
+ * is not specified, then the region is inferred from the bucket's region
+ * (`default_location` bucket for BigLake catalogs). If specified, the region
+ * must be in jurisdiction (near the `default_location` bucket's region and
+ * the `restricted_locations` buckets' regions for BigLake catalogs).
+ *
+ * For federated catalogs, this must be specified and be a Lakehouse-supported
+ * location (https://docs.cloud.google.com/lakehouse/docs/locations). It
+ * should be close to the remote catalog's location for the best
+ * performance and cost.
+ *
+ *
+ *
+ * string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bytes for primaryLocation.
+ */
+ com.google.protobuf.ByteString getPrimaryLocationBytes();
}
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
index cc1d8f5125d9..823f7b9183b1 100644
--- 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
@@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. The parent resource where this namespace will be created.
- * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+ * Format: projects/{project_id}/catalogs/{catalog_id}
*
*
*
@@ -108,7 +108,7 @@ public java.lang.String getParent() {
*
*
* Required. The parent resource where this namespace will be created.
- * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+ * Format: projects/{project_id}/catalogs/{catalog_id}
*
*
*
@@ -552,7 +552,7 @@ public Builder mergeFrom(
*
*
* Required. The parent resource where this namespace will be created.
- * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+ * Format: projects/{project_id}/catalogs/{catalog_id}
*
*
*
@@ -578,7 +578,7 @@ public java.lang.String getParent() {
*
*
* Required. The parent resource where this namespace will be created.
- * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+ * Format: projects/{project_id}/catalogs/{catalog_id}
*
*
*
@@ -604,7 +604,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* Required. The parent resource where this namespace will be created.
- * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+ * Format: projects/{project_id}/catalogs/{catalog_id}
*
*
*
@@ -629,7 +629,7 @@ public Builder setParent(java.lang.String value) {
*
*
* Required. The parent resource where this namespace will be created.
- * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+ * Format: projects/{project_id}/catalogs/{catalog_id}
*
*
*
@@ -650,7 +650,7 @@ public Builder clearParent() {
*
*
* Required. The parent resource where this namespace will be created.
- * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+ * Format: projects/{project_id}/catalogs/{catalog_id}
*
*
*
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
index 9d29c5a24f37..60da1aacf1d4 100644
--- 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
@@ -31,7 +31,7 @@ public interface CreateIcebergNamespaceRequestOrBuilder
*
*
* Required. The parent resource where this namespace will be created.
- * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+ * Format: projects/{project_id}/catalogs/{catalog_id}
*
*
*
@@ -47,7 +47,7 @@ public interface CreateIcebergNamespaceRequestOrBuilder
*
*
* Required. The parent resource where this namespace will be created.
- * Format: projects/{project_id}/restcatalog/v1/catalogs/{catalog_id}
+ * Format: projects/{project_id}/catalogs/{catalog_id}
*
*
*
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
index 155a5c300188..42d22e925d48 100644
--- 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
@@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. The parent resource where this table will be created.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -108,7 +108,7 @@ public java.lang.String getParent() {
*
*
* Required. The parent resource where this table will be created.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -137,9 +137,7 @@ public 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -155,9 +153,7 @@ public 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -173,9 +169,7 @@ public 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -547,7 +541,7 @@ public Builder mergeFrom(
*
*
* Required. The parent resource where this table will be created.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -573,7 +567,7 @@ public java.lang.String getParent() {
*
*
* Required. The parent resource where this table will be created.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -599,7 +593,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* Required. The parent resource where this table will be created.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -624,7 +618,7 @@ public Builder setParent(java.lang.String value) {
*
*
* Required. The parent resource where this table will be created.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -645,7 +639,7 @@ public Builder clearParent() {
*
*
* Required. The parent resource where this table will be created.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -677,9 +671,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
*
*
- * 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -694,9 +686,7 @@ public 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -715,9 +705,7 @@ public 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -740,9 +728,7 @@ public Builder setHttpBody(com.google.api.HttpBody value) {
*
*
*
- * 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -762,9 +748,7 @@ public Builder setHttpBody(com.google.api.HttpBody.Builder builderForValue) {
*
*
*
- * 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -792,9 +776,7 @@ public Builder mergeHttpBody(com.google.api.HttpBody value) {
*
*
*
- * 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -814,9 +796,7 @@ public Builder clearHttpBody() {
*
*
*
- * 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -831,9 +811,7 @@ public com.google.api.HttpBody.Builder getHttpBodyBuilder() {
*
*
*
- * 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -850,9 +828,7 @@ public com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder() {
*
*
*
- * 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
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
index 25e919badd92..795e413d3add 100644
--- 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
@@ -31,7 +31,7 @@ public interface CreateIcebergTableRequestOrBuilder
*
*
* Required. The parent resource where this table will be created.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -47,7 +47,7 @@ public interface CreateIcebergTableRequestOrBuilder
*
*
* Required. The parent resource where this table will be created.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -62,9 +62,7 @@ public interface CreateIcebergTableRequestOrBuilder
*
*
*
- * 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -77,9 +75,7 @@ public interface CreateIcebergTableRequestOrBuilder
*
*
*
- * 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -92,9 +88,7 @@ public interface CreateIcebergTableRequestOrBuilder
*
*
*
- * 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`.
+ * Required.
*
*
* .google.api.HttpBody http_body = 3 [(.google.api.field_behavior) = REQUIRED];
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
index 63c711157752..f5829294322b 100644
--- 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
@@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. Iceberg namespace to delete in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -107,7 +107,7 @@ public java.lang.String getName() {
*
*
* Required. Iceberg namespace to delete in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -447,7 +447,7 @@ public Builder mergeFrom(
*
*
* Required. Iceberg namespace to delete in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -473,7 +473,7 @@ public java.lang.String getName() {
*
*
* Required. Iceberg namespace to delete in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Required. Iceberg namespace to delete in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) {
*
*
* Required. Iceberg namespace to delete in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -545,7 +545,7 @@ public Builder clearName() {
*
*
* Required. Iceberg namespace to delete in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
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
index f7bc94422306..25e7131616d4 100644
--- 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
@@ -31,7 +31,7 @@ public interface DeleteIcebergNamespaceRequestOrBuilder
*
*
* Required. Iceberg namespace to delete in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -47,7 +47,7 @@ public interface DeleteIcebergNamespaceRequestOrBuilder
*
*
* Required. Iceberg namespace to delete in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
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
index f42c48398b1e..ccf0c558a383 100644
--- 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
@@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. Iceberg namespace to fetch in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -107,7 +107,7 @@ public java.lang.String getName() {
*
*
* Required. Iceberg namespace to fetch in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -447,7 +447,7 @@ public Builder mergeFrom(
*
*
* Required. Iceberg namespace to fetch in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -473,7 +473,7 @@ public java.lang.String getName() {
*
*
* Required. Iceberg namespace to fetch in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Required. Iceberg namespace to fetch in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) {
*
*
* Required. Iceberg namespace to fetch in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -545,7 +545,7 @@ public Builder clearName() {
*
*
* Required. Iceberg namespace to fetch in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
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
index 27edf8ca900b..d5476460923d 100644
--- 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
@@ -31,7 +31,7 @@ public interface GetIcebergNamespaceRequestOrBuilder
*
*
* Required. Iceberg namespace to fetch in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
@@ -47,7 +47,7 @@ public interface GetIcebergNamespaceRequestOrBuilder
*
*
* Required. Iceberg namespace to fetch in the format:
- * `projects/{project_id}/namespaces/{namespace}`.
+ * `projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}`.
*
*
*
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
index 98b84f0fa8f9..50ba3b2fa08a 100644
--- 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
@@ -55,9 +55,12 @@ private IcebergCatalog() {
name_ = "";
credentialMode_ = 0;
biglakeServiceAccount_ = "";
+ biglakeServiceAccountUniqueId_ = "";
catalogType_ = 0;
defaultLocation_ = "";
- catalogRegions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ storageRegions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ replicas_ = java.util.Collections.emptyList();
+ description_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -99,12 +102,32 @@ public enum CatalogType implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Catalog type for Google Cloud Storage Buckets.
+ * Google Cloud Storage bucket catalog type.
*
*
* CATALOG_TYPE_GCS_BUCKET = 1;
*/
CATALOG_TYPE_GCS_BUCKET(1),
+ /**
+ *
+ *
+ *
+ * BigLake catalog type.
+ *
+ *
+ * CATALOG_TYPE_BIGLAKE = 3;
+ */
+ CATALOG_TYPE_BIGLAKE(3),
+ /**
+ *
+ *
+ *
+ * Federated catalog type.
+ *
+ *
+ * CATALOG_TYPE_FEDERATED = 4;
+ */
+ CATALOG_TYPE_FEDERATED(4),
UNRECOGNIZED(-1),
;
@@ -133,13 +156,35 @@ public enum CatalogType implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Catalog type for Google Cloud Storage Buckets.
+ * Google Cloud Storage bucket catalog type.
*
*
* CATALOG_TYPE_GCS_BUCKET = 1;
*/
public static final int CATALOG_TYPE_GCS_BUCKET_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * BigLake catalog type.
+ *
+ *
+ * CATALOG_TYPE_BIGLAKE = 3;
+ */
+ public static final int CATALOG_TYPE_BIGLAKE_VALUE = 3;
+
+ /**
+ *
+ *
+ *
+ * Federated catalog type.
+ *
+ *
+ * CATALOG_TYPE_FEDERATED = 4;
+ */
+ public static final int CATALOG_TYPE_FEDERATED_VALUE = 4;
+
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
@@ -168,6 +213,10 @@ public static CatalogType forNumber(int value) {
return CATALOG_TYPE_UNSPECIFIED;
case 1:
return CATALOG_TYPE_GCS_BUCKET;
+ case 3:
+ return CATALOG_TYPE_BIGLAKE;
+ case 4:
+ return CATALOG_TYPE_FEDERATED;
default:
return null;
}
@@ -414,968 +463,13620 @@ private CredentialMode(int 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_ = "";
+ public interface ReplicaOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.IcebergCatalog.Replica)
+ 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.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;
- }
- }
+ /**
+ *
+ *
+ *
+ * Output only. The region of the replica. For example "us-east1"
+ *
+ *
+ * string region = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The region.
+ */
+ java.lang.String getRegion();
- /**
- *
- *
- *
- * 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;
- }
- }
+ /**
+ *
+ *
+ *
+ * Output only. The region of the replica. For example "us-east1"
+ *
+ *
+ * string region = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for region.
+ */
+ com.google.protobuf.ByteString getRegionBytes();
- public static final int CREDENTIAL_MODE_FIELD_NUMBER = 2;
- private int credentialMode_ = 0;
+ /**
+ *
+ *
+ *
+ * Output only. The current state of the replica.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.Replica.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
- /**
- *
- *
- *
- * 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_;
+ /**
+ *
+ *
+ *
+ * Output only. The current state of the replica.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.Replica.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.Replica.State getState();
}
/**
*
*
*
- * Optional. The credential mode for the catalog.
+ * The replica of the Catalog.
*
*
- *
- * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The credentialMode.
+ * Protobuf type {@code google.cloud.biglake.v1.IcebergCatalog.Replica}
*/
- @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 class Replica extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.IcebergCatalog.Replica)
+ ReplicaOrBuilder {
+ private static final long serialVersionUID = 0L;
- public static final int BIGLAKE_SERVICE_ACCOUNT_FIELD_NUMBER = 3;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "Replica");
+ }
- @SuppressWarnings("serial")
- private volatile java.lang.Object biglakeServiceAccount_ = "";
+ // Use Replica.newBuilder() to construct.
+ private Replica(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
- /**
- *
- *
- *
- * 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;
+ private Replica() {
+ region_ = "";
+ state_ = 0;
}
- }
- /**
- *
- *
- *
- * 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 com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_Replica_descriptor;
}
- }
- public static final int CATALOG_TYPE_FIELD_NUMBER = 4;
- private int catalogType_ = 0;
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_Replica_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.biglake.v1.IcebergCatalog.Replica.class,
+ com.google.cloud.biglake.v1.IcebergCatalog.Replica.Builder.class);
+ }
- /**
- *
- *
- *
- * 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_;
- }
+ /**
+ *
+ *
+ *
+ * If the catalog is replicated to multiple regions, this enum describes the
+ * current state of the replica.
+ *
+ *
+ * Protobuf enum {@code google.cloud.biglake.v1.IcebergCatalog.Replica.State}
+ */
+ public enum State implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * The replica state is unknown.
+ *
+ *
+ * STATE_UNKNOWN = 0;
+ */
+ STATE_UNKNOWN(0),
+ /**
+ *
+ *
+ *
+ * The replica is the writable primary.
+ *
+ *
+ * STATE_PRIMARY = 1;
+ */
+ STATE_PRIMARY(1),
+ /**
+ *
+ *
+ *
+ * The replica has been recently assigned as the primary, but not all
+ * namespaces are writeable yet.
+ *
+ *
+ * STATE_PRIMARY_IN_PROGRESS = 2;
+ */
+ STATE_PRIMARY_IN_PROGRESS(2),
+ /**
+ *
+ *
+ *
+ * The replica is a read-only secondary replica.
+ *
+ *
+ * STATE_SECONDARY = 3;
+ */
+ STATE_SECONDARY(3),
+ UNRECOGNIZED(-1),
+ ;
- /**
- *
- *
- *
- * 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;
- }
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "State");
+ }
- public static final int DEFAULT_LOCATION_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ *
+ * The replica state is unknown.
+ *
+ *
+ * STATE_UNKNOWN = 0;
+ */
+ public static final int STATE_UNKNOWN_VALUE = 0;
- @SuppressWarnings("serial")
- private volatile java.lang.Object defaultLocation_ = "";
+ /**
+ *
+ *
+ *
+ * The replica is the writable primary.
+ *
+ *
+ * STATE_PRIMARY = 1;
+ */
+ public static final int STATE_PRIMARY_VALUE = 1;
- /**
- *
- *
- *
- * 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;
- }
- }
+ /**
+ *
+ *
+ *
+ * The replica has been recently assigned as the primary, but not all
+ * namespaces are writeable yet.
+ *
+ *
+ * STATE_PRIMARY_IN_PROGRESS = 2;
+ */
+ public static final int STATE_PRIMARY_IN_PROGRESS_VALUE = 2;
- /**
- *
- *
- *
- * 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;
- }
- }
+ /**
+ *
+ *
+ *
+ * The replica is a read-only secondary replica.
+ *
+ *
+ * STATE_SECONDARY = 3;
+ */
+ public static final int STATE_SECONDARY_VALUE = 3;
- public static final int CATALOG_REGIONS_FIELD_NUMBER = 6;
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList catalogRegions_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * @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 State valueOf(int value) {
+ return forNumber(value);
+ }
- /**
- *
- *
- *
- * 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_;
- }
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STATE_UNKNOWN;
+ case 1:
+ return STATE_PRIMARY;
+ case 2:
+ return STATE_PRIMARY_IN_PROGRESS;
+ case 3:
+ return STATE_SECONDARY;
+ default:
+ return null;
+ }
+ }
- /**
- *
- *
- *
- * 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();
- }
+ public static com.google.protobuf.Internal.EnumLiteMap
- * 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);
- }
+ private static final com.google.protobuf.Internal.EnumLiteMap
- * 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 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 static final int CREATE_TIME_FIELD_NUMBER = 7;
- private com.google.protobuf.Timestamp createTime_;
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
- /**
- *
- *
- *
- * 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);
- }
+ public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return com.google.cloud.biglake.v1.IcebergCatalog.Replica.getDescriptor()
+ .getEnumTypes()
+ .get(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_;
- }
+ private static final State[] VALUES = values();
- /**
- *
- *
- *
- * 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 State 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()];
+ }
- public static final int UPDATE_TIME_FIELD_NUMBER = 8;
- private com.google.protobuf.Timestamp updateTime_;
+ private final int value;
- /**
- *
- *
- *
- * 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);
- }
+ private State(int value) {
+ this.value = value;
+ }
- /**
- *
- *
- *
- * 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_;
- }
+ // @@protoc_insertion_point(enum_scope:google.cloud.biglake.v1.IcebergCatalog.Replica.State)
+ }
- /**
- *
- *
- *
- * 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_;
- }
+ public static final int REGION_FIELD_NUMBER = 1;
- private byte memoizedIsInitialized = -1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object region_ = "";
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ /**
+ *
+ *
+ *
+ * Output only. The region of the replica. For example "us-east1"
+ *
+ *
+ * string region = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The region.
+ */
+ @java.lang.Override
+ public java.lang.String getRegion() {
+ java.lang.Object ref = region_;
+ 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();
+ region_ = s;
+ return s;
+ }
+ }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
+ /**
+ *
+ *
+ *
+ * Output only. The region of the replica. For example "us-east1"
+ *
+ *
+ * string region = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for region.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRegionBytes() {
+ java.lang.Object ref = region_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ region_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
- if (credentialMode_
- != com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode.CREDENTIAL_MODE_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(2, credentialMode_);
+
+ public static final int STATE_FIELD_NUMBER = 2;
+ private int state_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. The current state of the replica.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.Replica.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(biglakeServiceAccount_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 3, biglakeServiceAccount_);
+
+ /**
+ *
+ *
+ *
+ * Output only. The current state of the replica.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.Replica.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.Replica.State getState() {
+ com.google.cloud.biglake.v1.IcebergCatalog.Replica.State result =
+ com.google.cloud.biglake.v1.IcebergCatalog.Replica.State.forNumber(state_);
+ return result == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.Replica.State.UNRECOGNIZED
+ : result;
}
- if (catalogType_
- != com.google.cloud.biglake.v1.IcebergCatalog.CatalogType.CATALOG_TYPE_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(4, catalogType_);
+
+ 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;
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLocation_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 5, defaultLocation_);
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, region_);
+ }
+ if (state_
+ != com.google.cloud.biglake.v1.IcebergCatalog.Replica.State.STATE_UNKNOWN.getNumber()) {
+ output.writeEnum(2, state_);
+ }
+ getUnknownFields().writeTo(output);
}
- for (int i = 0; i < catalogRegions_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 6, catalogRegions_.getRaw(i));
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, region_);
+ }
+ if (state_
+ != com.google.cloud.biglake.v1.IcebergCatalog.Replica.State.STATE_UNKNOWN.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
}
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(7, getCreateTime());
+
+ @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.Replica)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.biglake.v1.IcebergCatalog.Replica other =
+ (com.google.cloud.biglake.v1.IcebergCatalog.Replica) obj;
+
+ if (!getRegion().equals(other.getRegion())) return false;
+ if (state_ != other.state_) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
}
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeMessage(8, getUpdateTime());
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REGION_FIELD_NUMBER;
+ hash = (53 * hash) + getRegion().hashCode();
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
- getUnknownFields().writeTo(output);
- }
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- size = 0;
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
}
- if (credentialMode_
- != com.google.cloud.biglake.v1.IcebergCatalog.CredentialMode.CREDENTIAL_MODE_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, credentialMode_);
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(biglakeServiceAccount_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(3, biglakeServiceAccount_);
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
}
- if (catalogType_
- != com.google.cloud.biglake.v1.IcebergCatalog.CatalogType.CATALOG_TYPE_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, catalogType_);
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLocation_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(5, defaultLocation_);
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
}
- {
- int dataSize = 0;
- for (int i = 0; i < catalogRegions_.size(); i++) {
- dataSize += computeStringSizeNoTag(catalogRegions_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getCatalogRegionsList().size();
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
}
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime());
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
}
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime());
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
}
- if (!(obj instanceof com.google.cloud.biglake.v1.IcebergCatalog)) {
- return super.equals(obj);
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
}
- 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;
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
}
- if (hasUpdateTime() != other.hasUpdateTime()) return false;
- if (hasUpdateTime()) {
- if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
}
- 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();
+
+ public static Builder newBuilder(com.google.cloud.biglake.v1.IcebergCatalog.Replica prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- if (hasCreateTime()) {
- hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
- hash = (53 * hash) + getCreateTime().hashCode();
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
- if (hasUpdateTime()) {
- hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
- hash = (53 * hash) + getUpdateTime().hashCode();
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
}
- 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);
- }
+ /**
+ *
+ *
+ *
+ * The replica of the Catalog.
+ *
+ *
+ * Protobuf type {@code google.cloud.biglake.v1.IcebergCatalog.Replica}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The region of the replica. For example "us-east1"
+ *
+ *
+ * string region = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The region.
+ */
+ public java.lang.String getRegion() {
+ java.lang.Object ref = region_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ region_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The region of the replica. For example "us-east1"
+ *
+ *
+ * string region = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for region.
+ */
+ public com.google.protobuf.ByteString getRegionBytes() {
+ java.lang.Object ref = region_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ region_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The region of the replica. For example "us-east1"
+ *
+ *
+ * string region = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The region to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRegion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ region_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The region of the replica. For example "us-east1"
+ *
+ *
+ * string region = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRegion() {
+ region_ = getDefaultInstance().getRegion();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The region of the replica. For example "us-east1"
+ *
+ *
+ * string region = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for region to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRegionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ region_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int state_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. The current state of the replica.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.Replica.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The current state of the replica.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.Replica.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The current state of the replica.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.Replica.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.Replica.State getState() {
+ com.google.cloud.biglake.v1.IcebergCatalog.Replica.State result =
+ com.google.cloud.biglake.v1.IcebergCatalog.Replica.State.forNumber(state_);
+ return result == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.Replica.State.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The current state of the replica.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.Replica.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(com.google.cloud.biglake.v1.IcebergCatalog.Replica.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The current state of the replica.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.Replica.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.IcebergCatalog.Replica)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergCatalog.Replica)
+ private static final com.google.cloud.biglake.v1.IcebergCatalog.Replica DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.IcebergCatalog.Replica();
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.Replica getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the restrictedLocations.
+ */
+ java.util.List
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of restrictedLocations.
+ */
+ int getRestrictedLocationsCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The restrictedLocations at the given index.
+ */
+ java.lang.String getRestrictedLocations(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the restrictedLocations at the given index.
+ */
+ com.google.protobuf.ByteString getRestrictedLocationsBytes(int index);
}
/**
*
*
*
- * The Iceberg REST Catalog information.
+ * Configuration of location restrictions.
*
*
- * Protobuf type {@code google.cloud.biglake.v1.IcebergCatalog}
+ * Protobuf type {@code google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig}
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the restrictedLocations.
+ */
+ public com.google.protobuf.ProtocolStringList getRestrictedLocationsList() {
+ return restrictedLocations_;
}
- private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
+ /**
+ *
+ *
+ *
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of restrictedLocations.
+ */
+ public int getRestrictedLocationsCount() {
+ return restrictedLocations_.size();
}
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- internalGetCreateTimeFieldBuilder();
- internalGetUpdateTimeFieldBuilder();
+ /**
+ *
+ *
+ *
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The restrictedLocations at the given index.
+ */
+ public java.lang.String getRestrictedLocations(int index) {
+ return restrictedLocations_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the restrictedLocations at the given index.
+ */
+ public com.google.protobuf.ByteString getRestrictedLocationsBytes(int index) {
+ return restrictedLocations_.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 < restrictedLocations_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, restrictedLocations_.getRaw(i));
}
+ getUnknownFields().writeTo(output);
}
@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;
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < restrictedLocations_.size(); i++) {
+ dataSize += computeStringSizeNoTag(restrictedLocations_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getRestrictedLocationsList().size();
}
- updateTime_ = null;
- if (updateTimeBuilder_ != null) {
- updateTimeBuilder_.dispose();
- updateTimeBuilder_ = null;
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
}
- return this;
+ if (!(obj instanceof com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig other =
+ (com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig) obj;
+
+ if (!getRestrictedLocationsList().equals(other.getRestrictedLocationsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
}
@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;
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getRestrictedLocationsCount() > 0) {
+ hash = (37 * hash) + RESTRICTED_LOCATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getRestrictedLocationsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig 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.RestrictedLocationsConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig 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.RestrictedLocationsConfig parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig 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.RestrictedLocationsConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
}
@java.lang.Override
- public com.google.cloud.biglake.v1.IcebergCatalog getDefaultInstanceForType() {
- return com.google.cloud.biglake.v1.IcebergCatalog.getDefaultInstance();
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@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;
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@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;
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
}
- private void buildPartial0(com.google.cloud.biglake.v1.IcebergCatalog result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.name_ = name_;
+ /**
+ *
+ *
+ *
+ * Configuration of location restrictions.
+ *
+ *
+ * Protobuf type {@code google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the restrictedLocations.
+ */
+ public com.google.protobuf.ProtocolStringList getRestrictedLocationsList() {
+ restrictedLocations_.makeImmutable();
+ return restrictedLocations_;
}
- if (!other.getBiglakeServiceAccount().isEmpty()) {
- biglakeServiceAccount_ = other.biglakeServiceAccount_;
- bitField0_ |= 0x00000004;
- onChanged();
+
+ /**
+ *
+ *
+ *
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of restrictedLocations.
+ */
+ public int getRestrictedLocationsCount() {
+ return restrictedLocations_.size();
}
- if (other.catalogType_ != 0) {
- setCatalogTypeValue(other.getCatalogTypeValue());
+
+ /**
+ *
+ *
+ *
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The restrictedLocations at the given index.
+ */
+ public java.lang.String getRestrictedLocations(int index) {
+ return restrictedLocations_.get(index);
}
- if (!other.getDefaultLocation().isEmpty()) {
- defaultLocation_ = other.defaultLocation_;
- bitField0_ |= 0x00000010;
+
+ /**
+ *
+ *
+ *
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the restrictedLocations at the given index.
+ */
+ public com.google.protobuf.ByteString getRestrictedLocationsBytes(int index) {
+ return restrictedLocations_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The restrictedLocations to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRestrictedLocations(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRestrictedLocationsIsMutable();
+ restrictedLocations_.set(index, value);
+ bitField0_ |= 0x00000001;
onChanged();
+ return this;
}
- if (!other.catalogRegions_.isEmpty()) {
- if (catalogRegions_.isEmpty()) {
- catalogRegions_ = other.catalogRegions_;
- bitField0_ |= 0x00000020;
- } else {
- ensureCatalogRegionsIsMutable();
- catalogRegions_.addAll(other.catalogRegions_);
+
+ /**
+ *
+ *
+ *
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The restrictedLocations to add.
+ * @return This builder for chaining.
+ */
+ public Builder addRestrictedLocations(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureRestrictedLocationsIsMutable();
+ restrictedLocations_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
+ return this;
}
- if (other.hasCreateTime()) {
- mergeCreateTime(other.getCreateTime());
+
+ /**
+ *
+ *
+ *
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param values The restrictedLocations to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllRestrictedLocations(java.lang.Iterable
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRestrictedLocations() {
+ restrictedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
}
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
+
+ /**
+ *
+ *
+ *
+ * Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ * `gs://my-other-bucket/...`) that are permitted for use by resources
+ * within a catalog. This field is currently only used for BigLake catalogs.
+ *
+ * If `restricted_locations` is empty and unrestricted catalog creation is
+ * enabled, all accessible locations are allowed.
+ * Otherwise, only `default_location` and locations in this list are
+ * allowed.
+ *
+ *
+ *
+ * repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The bytes of the restrictedLocations to add.
+ * @return This builder for chaining.
+ */
+ public Builder addRestrictedLocationsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureRestrictedLocationsIsMutable();
+ restrictedLocations_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig)
+ private static final com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig();
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the unityCatalogInfo field is set.
+ */
+ boolean hasUnityCatalogInfo();
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The unityCatalogInfo.
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ getUnityCatalogInfo();
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfoOrBuilder
+ getUnityCatalogInfoOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the glueCatalogInfo field is set.
+ */
+ boolean hasGlueCatalogInfo();
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The glueCatalogInfo.
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ getGlueCatalogInfo();
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfoOrBuilder
+ getGlueCatalogInfoOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. The secret resource name in Secret Manager, in the format
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}` or
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}/versions/{version_id}`.
+ *
+ * The project ID must match the catalog's project and location must match
+ * the catalog's location.
+ * If the version is not specified, the latest version will be used.
+ *
+ * This field is not used when `service_principal_application_id` is set.
+ *
+ *
+ *
+ * optional string secret_name = 1 [json_name = "secret-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the secretName field is set.
+ */
+ boolean hasSecretName();
+
+ /**
+ *
+ *
+ *
+ * Optional. The secret resource name in Secret Manager, in the format
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}` or
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}/versions/{version_id}`.
+ *
+ * The project ID must match the catalog's project and location must match
+ * the catalog's location.
+ * If the version is not specified, the latest version will be used.
+ *
+ * This field is not used when `service_principal_application_id` is set.
+ *
+ *
+ *
+ * optional string secret_name = 1 [json_name = "secret-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The secretName.
+ */
+ java.lang.String getSecretName();
+
+ /**
+ *
+ *
+ *
+ * Optional. The secret resource name in Secret Manager, in the format
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}` or
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}/versions/{version_id}`.
+ *
+ * The project ID must match the catalog's project and location must match
+ * the catalog's location.
+ * If the version is not specified, the latest version will be used.
+ *
+ * This field is not used when `service_principal_application_id` is set.
+ *
+ *
+ *
+ * optional string secret_name = 1 [json_name = "secret-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for secretName.
+ */
+ com.google.protobuf.ByteString getSecretNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The service directory resource name for routing traffic over a
+ * private network connection through Cross-Cloud Interconnect, in the
+ * format
+ * `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}`.
+ *
+ *
+ *
+ * optional string service_directory_name = 5 [json_name = "service-directory-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the serviceDirectoryName field is set.
+ */
+ boolean hasServiceDirectoryName();
+
+ /**
+ *
+ *
+ *
+ * Optional. The service directory resource name for routing traffic over a
+ * private network connection through Cross-Cloud Interconnect, in the
+ * format
+ * `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}`.
+ *
+ *
+ *
+ * optional string service_directory_name = 5 [json_name = "service-directory-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The serviceDirectoryName.
+ */
+ java.lang.String getServiceDirectoryName();
+
+ /**
+ *
+ *
+ *
+ * Optional. The service directory resource name for routing traffic over a
+ * private network connection through Cross-Cloud Interconnect, in the
+ * format
+ * `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}`.
+ *
+ *
+ *
+ * optional string service_directory_name = 5 [json_name = "service-directory-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for serviceDirectoryName.
+ */
+ com.google.protobuf.ByteString getServiceDirectoryNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the refreshOptions field is set.
+ */
+ boolean hasRefreshOptions();
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The refreshOptions.
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ getRefreshOptions();
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptionsOrBuilder
+ getRefreshOptionsOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the refreshStatus field is set.
+ */
+ boolean hasRefreshStatus();
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The refreshStatus.
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ getRefreshStatus();
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatusOrBuilder
+ getRefreshStatusOrBuilder();
+
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RemoteCatalogInfoCase
+ getRemoteCatalogInfoCase();
+ }
+
+ /**
+ *
+ *
+ *
+ * Configuration options for a federated catalog.
+ *
+ *
+ * Protobuf type {@code google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions}
+ */
+ public static final class FederatedCatalogOptions extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions)
+ FederatedCatalogOptionsOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "FederatedCatalogOptions");
+ }
+
+ // Use FederatedCatalogOptions.newBuilder() to construct.
+ private FederatedCatalogOptions(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private FederatedCatalogOptions() {
+ secretName_ = "";
+ serviceDirectoryName_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.class,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.Builder.class);
+ }
+
+ public interface UnityCatalogInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The instance name is the first part of the URL when logging
+ * into the Databricks deployment. For example, for a Databricks on GCP
+ * workspace URL https://1.1.gcp.databricks.com, the instance name is
+ * 1.1.gcp.databricks.com.
+ *
+ *
+ *
+ * optional string instance_name = 1 [json_name = "instance-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the instanceName field is set.
+ */
+ boolean hasInstanceName();
+
+ /**
+ *
+ *
+ *
+ * Required. The instance name is the first part of the URL when logging
+ * into the Databricks deployment. For example, for a Databricks on GCP
+ * workspace URL https://1.1.gcp.databricks.com, the instance name is
+ * 1.1.gcp.databricks.com.
+ *
+ *
+ *
+ * optional string instance_name = 1 [json_name = "instance-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The instanceName.
+ */
+ java.lang.String getInstanceName();
+
+ /**
+ *
+ *
+ *
+ * Required. The instance name is the first part of the URL when logging
+ * into the Databricks deployment. For example, for a Databricks on GCP
+ * workspace URL https://1.1.gcp.databricks.com, the instance name is
+ * 1.1.gcp.databricks.com.
+ *
+ *
+ *
+ * optional string instance_name = 1 [json_name = "instance-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The bytes for instanceName.
+ */
+ com.google.protobuf.ByteString getInstanceNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. The catalog name in Unity Catalog.
+ *
+ *
+ *
+ * optional string catalog_name = 2 [json_name = "catalog-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the catalogName field is set.
+ */
+ boolean hasCatalogName();
+
+ /**
+ *
+ *
+ *
+ * Required. The catalog name in Unity Catalog.
+ *
+ *
+ *
+ * optional string catalog_name = 2 [json_name = "catalog-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The catalogName.
+ */
+ java.lang.String getCatalogName();
+
+ /**
+ *
+ *
+ *
+ * Required. The catalog name in Unity Catalog.
+ *
+ *
+ *
+ * optional string catalog_name = 2 [json_name = "catalog-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The bytes for catalogName.
+ */
+ com.google.protobuf.ByteString getCatalogNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The application ID of the Databricks service principal that
+ * will be used to access the Unity Catalog in the OIDC authentication
+ * flow. With OIDC, the secret_name field is not used.
+ *
+ *
+ *
+ * optional string service_principal_application_id = 3 [json_name = "service-principal-application-id", (.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return Whether the servicePrincipalApplicationId field is set.
+ */
+ boolean hasServicePrincipalApplicationId();
+
+ /**
+ *
+ *
+ *
+ * Optional. The application ID of the Databricks service principal that
+ * will be used to access the Unity Catalog in the OIDC authentication
+ * flow. With OIDC, the secret_name field is not used.
+ *
+ *
+ *
+ * optional string service_principal_application_id = 3 [json_name = "service-principal-application-id", (.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The servicePrincipalApplicationId.
+ */
+ java.lang.String getServicePrincipalApplicationId();
+
+ /**
+ *
+ *
+ *
+ * Optional. The application ID of the Databricks service principal that
+ * will be used to access the Unity Catalog in the OIDC authentication
+ * flow. With OIDC, the secret_name field is not used.
+ *
+ *
+ *
+ * optional string service_principal_application_id = 3 [json_name = "service-principal-application-id", (.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The bytes for servicePrincipalApplicationId.
+ */
+ com.google.protobuf.ByteString getServicePrincipalApplicationIdBytes();
+ }
+
+ /**
+ *
+ *
+ *
+ * Unity Catalog info.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo}
+ */
+ public static final class UnityCatalogInfo extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo)
+ UnityCatalogInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "UnityCatalogInfo");
+ }
+
+ // Use UnityCatalogInfo.newBuilder() to construct.
+ private UnityCatalogInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private UnityCatalogInfo() {
+ instanceName_ = "";
+ catalogName_ = "";
+ servicePrincipalApplicationId_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_UnityCatalogInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_UnityCatalogInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ .class,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ .Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int INSTANCE_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object instanceName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The instance name is the first part of the URL when logging
+ * into the Databricks deployment. For example, for a Databricks on GCP
+ * workspace URL https://1.1.gcp.databricks.com, the instance name is
+ * 1.1.gcp.databricks.com.
+ *
+ *
+ *
+ * optional string instance_name = 1 [json_name = "instance-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the instanceName field is set.
+ */
+ @java.lang.Override
+ public boolean hasInstanceName() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The instance name is the first part of the URL when logging
+ * into the Databricks deployment. For example, for a Databricks on GCP
+ * workspace URL https://1.1.gcp.databricks.com, the instance name is
+ * 1.1.gcp.databricks.com.
+ *
+ *
+ *
+ * optional string instance_name = 1 [json_name = "instance-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The instanceName.
+ */
+ @java.lang.Override
+ public java.lang.String getInstanceName() {
+ java.lang.Object ref = instanceName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instanceName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The instance name is the first part of the URL when logging
+ * into the Databricks deployment. For example, for a Databricks on GCP
+ * workspace URL https://1.1.gcp.databricks.com, the instance name is
+ * 1.1.gcp.databricks.com.
+ *
+ *
+ *
+ * optional string instance_name = 1 [json_name = "instance-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The bytes for instanceName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInstanceNameBytes() {
+ java.lang.Object ref = instanceName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instanceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CATALOG_NAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object catalogName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The catalog name in Unity Catalog.
+ *
+ *
+ *
+ * optional string catalog_name = 2 [json_name = "catalog-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the catalogName field is set.
+ */
+ @java.lang.Override
+ public boolean hasCatalogName() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The catalog name in Unity Catalog.
+ *
+ *
+ *
+ * optional string catalog_name = 2 [json_name = "catalog-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The catalogName.
+ */
+ @java.lang.Override
+ public java.lang.String getCatalogName() {
+ java.lang.Object ref = catalogName_;
+ 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();
+ catalogName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The catalog name in Unity Catalog.
+ *
+ *
+ *
+ * optional string catalog_name = 2 [json_name = "catalog-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The bytes for catalogName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCatalogNameBytes() {
+ java.lang.Object ref = catalogName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ catalogName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICE_PRINCIPAL_APPLICATION_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object servicePrincipalApplicationId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The application ID of the Databricks service principal that
+ * will be used to access the Unity Catalog in the OIDC authentication
+ * flow. With OIDC, the secret_name field is not used.
+ *
+ *
+ *
+ * optional string service_principal_application_id = 3 [json_name = "service-principal-application-id", (.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return Whether the servicePrincipalApplicationId field is set.
+ */
+ @java.lang.Override
+ public boolean hasServicePrincipalApplicationId() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The application ID of the Databricks service principal that
+ * will be used to access the Unity Catalog in the OIDC authentication
+ * flow. With OIDC, the secret_name field is not used.
+ *
+ *
+ *
+ * optional string service_principal_application_id = 3 [json_name = "service-principal-application-id", (.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The servicePrincipalApplicationId.
+ */
+ @java.lang.Override
+ public java.lang.String getServicePrincipalApplicationId() {
+ java.lang.Object ref = servicePrincipalApplicationId_;
+ 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();
+ servicePrincipalApplicationId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The application ID of the Databricks service principal that
+ * will be used to access the Unity Catalog in the OIDC authentication
+ * flow. With OIDC, the secret_name field is not used.
+ *
+ *
+ *
+ * optional string service_principal_application_id = 3 [json_name = "service-principal-application-id", (.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The bytes for servicePrincipalApplicationId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getServicePrincipalApplicationIdBytes() {
+ java.lang.Object ref = servicePrincipalApplicationId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ servicePrincipalApplicationId_ = 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 (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, instanceName_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, catalogName_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(
+ output, 3, servicePrincipalApplicationId_);
+ }
+ 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.GeneratedMessage.computeStringSize(1, instanceName_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, catalogName_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size +=
+ com.google.protobuf.GeneratedMessage.computeStringSize(
+ 3, servicePrincipalApplicationId_);
+ }
+ 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.FederatedCatalogOptions.UnityCatalogInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo other =
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo)
+ obj;
+
+ if (hasInstanceName() != other.hasInstanceName()) return false;
+ if (hasInstanceName()) {
+ if (!getInstanceName().equals(other.getInstanceName())) return false;
+ }
+ if (hasCatalogName() != other.hasCatalogName()) return false;
+ if (hasCatalogName()) {
+ if (!getCatalogName().equals(other.getCatalogName())) return false;
+ }
+ if (hasServicePrincipalApplicationId() != other.hasServicePrincipalApplicationId())
+ return false;
+ if (hasServicePrincipalApplicationId()) {
+ if (!getServicePrincipalApplicationId().equals(other.getServicePrincipalApplicationId()))
+ 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 (hasInstanceName()) {
+ hash = (37 * hash) + INSTANCE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceName().hashCode();
+ }
+ if (hasCatalogName()) {
+ hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogName().hashCode();
+ }
+ if (hasServicePrincipalApplicationId()) {
+ hash = (37 * hash) + SERVICE_PRINCIPAL_APPLICATION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getServicePrincipalApplicationId().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo
+ 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.FederatedCatalogOptions
+ .UnityCatalogInfo
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo
+ 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.FederatedCatalogOptions
+ .UnityCatalogInfo
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo
+ 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.FederatedCatalogOptions
+ .UnityCatalogInfo
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.FederatedCatalogOptions.UnityCatalogInfo
+ 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Unity Catalog info.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The instance name is the first part of the URL when logging
+ * into the Databricks deployment. For example, for a Databricks on GCP
+ * workspace URL https://1.1.gcp.databricks.com, the instance name is
+ * 1.1.gcp.databricks.com.
+ *
+ *
+ *
+ * optional string instance_name = 1 [json_name = "instance-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the instanceName field is set.
+ */
+ public boolean hasInstanceName() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The instance name is the first part of the URL when logging
+ * into the Databricks deployment. For example, for a Databricks on GCP
+ * workspace URL https://1.1.gcp.databricks.com, the instance name is
+ * 1.1.gcp.databricks.com.
+ *
+ *
+ *
+ * optional string instance_name = 1 [json_name = "instance-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The instanceName.
+ */
+ public java.lang.String getInstanceName() {
+ java.lang.Object ref = instanceName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instanceName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The instance name is the first part of the URL when logging
+ * into the Databricks deployment. For example, for a Databricks on GCP
+ * workspace URL https://1.1.gcp.databricks.com, the instance name is
+ * 1.1.gcp.databricks.com.
+ *
+ *
+ *
+ * optional string instance_name = 1 [json_name = "instance-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The bytes for instanceName.
+ */
+ public com.google.protobuf.ByteString getInstanceNameBytes() {
+ java.lang.Object ref = instanceName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instanceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The instance name is the first part of the URL when logging
+ * into the Databricks deployment. For example, for a Databricks on GCP
+ * workspace URL https://1.1.gcp.databricks.com, the instance name is
+ * 1.1.gcp.databricks.com.
+ *
+ *
+ *
+ * optional string instance_name = 1 [json_name = "instance-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The instanceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The instance name is the first part of the URL when logging
+ * into the Databricks deployment. For example, for a Databricks on GCP
+ * workspace URL https://1.1.gcp.databricks.com, the instance name is
+ * 1.1.gcp.databricks.com.
+ *
+ *
+ *
+ * optional string instance_name = 1 [json_name = "instance-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstanceName() {
+ instanceName_ = getDefaultInstance().getInstanceName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The instance name is the first part of the URL when logging
+ * into the Databricks deployment. For example, for a Databricks on GCP
+ * workspace URL https://1.1.gcp.databricks.com, the instance name is
+ * 1.1.gcp.databricks.com.
+ *
+ *
+ *
+ * optional string instance_name = 1 [json_name = "instance-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The bytes for instanceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instanceName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object catalogName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The catalog name in Unity Catalog.
+ *
+ *
+ *
+ * optional string catalog_name = 2 [json_name = "catalog-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the catalogName field is set.
+ */
+ public boolean hasCatalogName() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The catalog name in Unity Catalog.
+ *
+ *
+ *
+ * optional string catalog_name = 2 [json_name = "catalog-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The catalogName.
+ */
+ public java.lang.String getCatalogName() {
+ java.lang.Object ref = catalogName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ catalogName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The catalog name in Unity Catalog.
+ *
+ *
+ *
+ * optional string catalog_name = 2 [json_name = "catalog-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The bytes for catalogName.
+ */
+ public com.google.protobuf.ByteString getCatalogNameBytes() {
+ java.lang.Object ref = catalogName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ catalogName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The catalog name in Unity Catalog.
+ *
+ *
+ *
+ * optional string catalog_name = 2 [json_name = "catalog-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The catalogName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCatalogName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ catalogName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The catalog name in Unity Catalog.
+ *
+ *
+ *
+ * optional string catalog_name = 2 [json_name = "catalog-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCatalogName() {
+ catalogName_ = getDefaultInstance().getCatalogName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The catalog name in Unity Catalog.
+ *
+ *
+ *
+ * optional string catalog_name = 2 [json_name = "catalog-name", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The bytes for catalogName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCatalogNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ catalogName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object servicePrincipalApplicationId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The application ID of the Databricks service principal that
+ * will be used to access the Unity Catalog in the OIDC authentication
+ * flow. With OIDC, the secret_name field is not used.
+ *
+ *
+ *
+ * optional string service_principal_application_id = 3 [json_name = "service-principal-application-id", (.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return Whether the servicePrincipalApplicationId field is set.
+ */
+ public boolean hasServicePrincipalApplicationId() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The application ID of the Databricks service principal that
+ * will be used to access the Unity Catalog in the OIDC authentication
+ * flow. With OIDC, the secret_name field is not used.
+ *
+ *
+ *
+ * optional string service_principal_application_id = 3 [json_name = "service-principal-application-id", (.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The servicePrincipalApplicationId.
+ */
+ public java.lang.String getServicePrincipalApplicationId() {
+ java.lang.Object ref = servicePrincipalApplicationId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ servicePrincipalApplicationId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The application ID of the Databricks service principal that
+ * will be used to access the Unity Catalog in the OIDC authentication
+ * flow. With OIDC, the secret_name field is not used.
+ *
+ *
+ *
+ * optional string service_principal_application_id = 3 [json_name = "service-principal-application-id", (.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The bytes for servicePrincipalApplicationId.
+ */
+ public com.google.protobuf.ByteString getServicePrincipalApplicationIdBytes() {
+ java.lang.Object ref = servicePrincipalApplicationId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ servicePrincipalApplicationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The application ID of the Databricks service principal that
+ * will be used to access the Unity Catalog in the OIDC authentication
+ * flow. With OIDC, the secret_name field is not used.
+ *
+ *
+ *
+ * optional string service_principal_application_id = 3 [json_name = "service-principal-application-id", (.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
+ *
+ * @param value The servicePrincipalApplicationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServicePrincipalApplicationId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ servicePrincipalApplicationId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The application ID of the Databricks service principal that
+ * will be used to access the Unity Catalog in the OIDC authentication
+ * flow. With OIDC, the secret_name field is not used.
+ *
+ *
+ *
+ * optional string service_principal_application_id = 3 [json_name = "service-principal-application-id", (.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearServicePrincipalApplicationId() {
+ servicePrincipalApplicationId_ = getDefaultInstance().getServicePrincipalApplicationId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The application ID of the Databricks service principal that
+ * will be used to access the Unity Catalog in the OIDC authentication
+ * flow. With OIDC, the secret_name field is not used.
+ *
+ *
+ *
+ * optional string service_principal_application_id = 3 [json_name = "service-principal-application-id", (.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
+ *
+ *
+ * @param value The bytes for servicePrincipalApplicationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServicePrincipalApplicationIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ servicePrincipalApplicationId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo)
+ private static final com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo();
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. Immutable. The warehouse to connect to a regional AWS Glue
+ * Iceberg REST Catalog. For top level access, use the AWS account ID
+ * (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ * form: 111222333444:s3tablescatalog/<table-bucket-name>. The URL to
+ * access catalog will be
+ * https://glue.{aws_region}.amazonaws.com/iceberg/v1?warehouse={warehouse}.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string warehouse = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return Whether the warehouse field is set.
+ */
+ boolean hasWarehouse();
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The warehouse to connect to a regional AWS Glue
+ * Iceberg REST Catalog. For top level access, use the AWS account ID
+ * (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ * form: 111222333444:s3tablescatalog/<table-bucket-name>. The URL to
+ * access catalog will be
+ * https://glue.{aws_region}.amazonaws.com/iceberg/v1?warehouse={warehouse}.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string warehouse = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The warehouse.
+ */
+ java.lang.String getWarehouse();
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The warehouse to connect to a regional AWS Glue
+ * Iceberg REST Catalog. For top level access, use the AWS account ID
+ * (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ * form: 111222333444:s3tablescatalog/<table-bucket-name>. The URL to
+ * access catalog will be
+ * https://glue.{aws_region}.amazonaws.com/iceberg/v1?warehouse={warehouse}.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string warehouse = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for warehouse.
+ */
+ com.google.protobuf.ByteString getWarehouseBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The AWS region of the Glue catalog to connect to.
+ * The region should be in the same geographical region and jurisdiction
+ * as the federated catalog.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string aws_region = 2 [json_name = "aws-region", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return Whether the awsRegion field is set.
+ */
+ boolean hasAwsRegion();
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The AWS region of the Glue catalog to connect to.
+ * The region should be in the same geographical region and jurisdiction
+ * as the federated catalog.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string aws_region = 2 [json_name = "aws-region", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The awsRegion.
+ */
+ java.lang.String getAwsRegion();
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The AWS region of the Glue catalog to connect to.
+ * The region should be in the same geographical region and jurisdiction
+ * as the federated catalog.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string aws_region = 2 [json_name = "aws-region", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for awsRegion.
+ */
+ com.google.protobuf.ByteString getAwsRegionBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. The AWS role ARN of the Glue catalog that the federated
+ * catalog will assume to access the catalog. Must be non-empty. Can be
+ * updated.
+ *
+ *
+ *
+ * optional string aws_role_arn = 3 [json_name = "aws-role-arn", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the awsRoleArn field is set.
+ */
+ boolean hasAwsRoleArn();
+
+ /**
+ *
+ *
+ *
+ * Required. The AWS role ARN of the Glue catalog that the federated
+ * catalog will assume to access the catalog. Must be non-empty. Can be
+ * updated.
+ *
+ *
+ *
+ * optional string aws_role_arn = 3 [json_name = "aws-role-arn", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The awsRoleArn.
+ */
+ java.lang.String getAwsRoleArn();
+
+ /**
+ *
+ *
+ *
+ * Required. The AWS role ARN of the Glue catalog that the federated
+ * catalog will assume to access the catalog. Must be non-empty. Can be
+ * updated.
+ *
+ *
+ *
+ * optional string aws_role_arn = 3 [json_name = "aws-role-arn", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The bytes for awsRoleArn.
+ */
+ com.google.protobuf.ByteString getAwsRoleArnBytes();
+ }
+
+ /**
+ *
+ *
+ *
+ * AWS Glue Catalog info. We support regional AWS Glue default account
+ * catalog and S3 Table Buckets.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo}
+ */
+ public static final class GlueCatalogInfo extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo)
+ GlueCatalogInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "GlueCatalogInfo");
+ }
+
+ // Use GlueCatalogInfo.newBuilder() to construct.
+ private GlueCatalogInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private GlueCatalogInfo() {
+ warehouse_ = "";
+ awsRegion_ = "";
+ awsRoleArn_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_GlueCatalogInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_GlueCatalogInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .class,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int WAREHOUSE_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object warehouse_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The warehouse to connect to a regional AWS Glue
+ * Iceberg REST Catalog. For top level access, use the AWS account ID
+ * (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ * form: 111222333444:s3tablescatalog/<table-bucket-name>. The URL to
+ * access catalog will be
+ * https://glue.{aws_region}.amazonaws.com/iceberg/v1?warehouse={warehouse}.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string warehouse = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return Whether the warehouse field is set.
+ */
+ @java.lang.Override
+ public boolean hasWarehouse() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The warehouse to connect to a regional AWS Glue
+ * Iceberg REST Catalog. For top level access, use the AWS account ID
+ * (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ * form: 111222333444:s3tablescatalog/<table-bucket-name>. The URL to
+ * access catalog will be
+ * https://glue.{aws_region}.amazonaws.com/iceberg/v1?warehouse={warehouse}.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string warehouse = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @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. Immutable. The warehouse to connect to a regional AWS Glue
+ * Iceberg REST Catalog. For top level access, use the AWS account ID
+ * (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ * form: 111222333444:s3tablescatalog/<table-bucket-name>. The URL to
+ * access catalog will be
+ * https://glue.{aws_region}.amazonaws.com/iceberg/v1?warehouse={warehouse}.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string warehouse = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @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;
+ }
+ }
+
+ public static final int AWS_REGION_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object awsRegion_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The AWS region of the Glue catalog to connect to.
+ * The region should be in the same geographical region and jurisdiction
+ * as the federated catalog.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string aws_region = 2 [json_name = "aws-region", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return Whether the awsRegion field is set.
+ */
+ @java.lang.Override
+ public boolean hasAwsRegion() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The AWS region of the Glue catalog to connect to.
+ * The region should be in the same geographical region and jurisdiction
+ * as the federated catalog.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string aws_region = 2 [json_name = "aws-region", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The awsRegion.
+ */
+ @java.lang.Override
+ public java.lang.String getAwsRegion() {
+ java.lang.Object ref = awsRegion_;
+ 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();
+ awsRegion_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The AWS region of the Glue catalog to connect to.
+ * The region should be in the same geographical region and jurisdiction
+ * as the federated catalog.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string aws_region = 2 [json_name = "aws-region", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for awsRegion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAwsRegionBytes() {
+ java.lang.Object ref = awsRegion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ awsRegion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AWS_ROLE_ARN_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object awsRoleArn_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The AWS role ARN of the Glue catalog that the federated
+ * catalog will assume to access the catalog. Must be non-empty. Can be
+ * updated.
+ *
+ *
+ *
+ * optional string aws_role_arn = 3 [json_name = "aws-role-arn", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the awsRoleArn field is set.
+ */
+ @java.lang.Override
+ public boolean hasAwsRoleArn() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The AWS role ARN of the Glue catalog that the federated
+ * catalog will assume to access the catalog. Must be non-empty. Can be
+ * updated.
+ *
+ *
+ *
+ * optional string aws_role_arn = 3 [json_name = "aws-role-arn", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The awsRoleArn.
+ */
+ @java.lang.Override
+ public java.lang.String getAwsRoleArn() {
+ java.lang.Object ref = awsRoleArn_;
+ 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();
+ awsRoleArn_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The AWS role ARN of the Glue catalog that the federated
+ * catalog will assume to access the catalog. Must be non-empty. Can be
+ * updated.
+ *
+ *
+ *
+ * optional string aws_role_arn = 3 [json_name = "aws-role-arn", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The bytes for awsRoleArn.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAwsRoleArnBytes() {
+ java.lang.Object ref = awsRoleArn_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ awsRoleArn_ = 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 (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, warehouse_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, awsRegion_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, awsRoleArn_);
+ }
+ 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.GeneratedMessage.computeStringSize(1, warehouse_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, awsRegion_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, awsRoleArn_);
+ }
+ 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.FederatedCatalogOptions.GlueCatalogInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo other =
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo)
+ obj;
+
+ if (hasWarehouse() != other.hasWarehouse()) return false;
+ if (hasWarehouse()) {
+ if (!getWarehouse().equals(other.getWarehouse())) return false;
+ }
+ if (hasAwsRegion() != other.hasAwsRegion()) return false;
+ if (hasAwsRegion()) {
+ if (!getAwsRegion().equals(other.getAwsRegion())) return false;
+ }
+ if (hasAwsRoleArn() != other.hasAwsRoleArn()) return false;
+ if (hasAwsRoleArn()) {
+ if (!getAwsRoleArn().equals(other.getAwsRoleArn())) 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 (hasWarehouse()) {
+ hash = (37 * hash) + WAREHOUSE_FIELD_NUMBER;
+ hash = (53 * hash) + getWarehouse().hashCode();
+ }
+ if (hasAwsRegion()) {
+ hash = (37 * hash) + AWS_REGION_FIELD_NUMBER;
+ hash = (53 * hash) + getAwsRegion().hashCode();
+ }
+ if (hasAwsRoleArn()) {
+ hash = (37 * hash) + AWS_ROLE_ARN_FIELD_NUMBER;
+ hash = (53 * hash) + getAwsRoleArn().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo
+ 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.FederatedCatalogOptions
+ .GlueCatalogInfo
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo
+ 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.FederatedCatalogOptions
+ .GlueCatalogInfo
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo
+ 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.FederatedCatalogOptions
+ .GlueCatalogInfo
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.FederatedCatalogOptions.GlueCatalogInfo
+ 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * AWS Glue Catalog info. We support regional AWS Glue default account
+ * catalog and S3 Table Buckets.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. Immutable. The warehouse to connect to a regional AWS Glue
+ * Iceberg REST Catalog. For top level access, use the AWS account ID
+ * (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ * form: 111222333444:s3tablescatalog/<table-bucket-name>. The URL to
+ * access catalog will be
+ * https://glue.{aws_region}.amazonaws.com/iceberg/v1?warehouse={warehouse}.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string warehouse = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return Whether the warehouse field is set.
+ */
+ public boolean hasWarehouse() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The warehouse to connect to a regional AWS Glue
+ * Iceberg REST Catalog. For top level access, use the AWS account ID
+ * (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ * form: 111222333444:s3tablescatalog/<table-bucket-name>. The URL to
+ * access catalog will be
+ * https://glue.{aws_region}.amazonaws.com/iceberg/v1?warehouse={warehouse}.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string warehouse = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @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. Immutable. The warehouse to connect to a regional AWS Glue
+ * Iceberg REST Catalog. For top level access, use the AWS account ID
+ * (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ * form: 111222333444:s3tablescatalog/<table-bucket-name>. The URL to
+ * access catalog will be
+ * https://glue.{aws_region}.amazonaws.com/iceberg/v1?warehouse={warehouse}.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string warehouse = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @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. Immutable. The warehouse to connect to a regional AWS Glue
+ * Iceberg REST Catalog. For top level access, use the AWS account ID
+ * (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ * form: 111222333444:s3tablescatalog/<table-bucket-name>. The URL to
+ * access catalog will be
+ * https://glue.{aws_region}.amazonaws.com/iceberg/v1?warehouse={warehouse}.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string warehouse = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @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. Immutable. The warehouse to connect to a regional AWS Glue
+ * Iceberg REST Catalog. For top level access, use the AWS account ID
+ * (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ * form: 111222333444:s3tablescatalog/<table-bucket-name>. The URL to
+ * access catalog will be
+ * https://glue.{aws_region}.amazonaws.com/iceberg/v1?warehouse={warehouse}.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string warehouse = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearWarehouse() {
+ warehouse_ = getDefaultInstance().getWarehouse();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The warehouse to connect to a regional AWS Glue
+ * Iceberg REST Catalog. For top level access, use the AWS account ID
+ * (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ * form: 111222333444:s3tablescatalog/<table-bucket-name>. The URL to
+ * access catalog will be
+ * https://glue.{aws_region}.amazonaws.com/iceberg/v1?warehouse={warehouse}.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string warehouse = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @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;
+ }
+
+ private java.lang.Object awsRegion_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The AWS region of the Glue catalog to connect to.
+ * The region should be in the same geographical region and jurisdiction
+ * as the federated catalog.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string aws_region = 2 [json_name = "aws-region", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return Whether the awsRegion field is set.
+ */
+ public boolean hasAwsRegion() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The AWS region of the Glue catalog to connect to.
+ * The region should be in the same geographical region and jurisdiction
+ * as the federated catalog.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string aws_region = 2 [json_name = "aws-region", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The awsRegion.
+ */
+ public java.lang.String getAwsRegion() {
+ java.lang.Object ref = awsRegion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ awsRegion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The AWS region of the Glue catalog to connect to.
+ * The region should be in the same geographical region and jurisdiction
+ * as the federated catalog.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string aws_region = 2 [json_name = "aws-region", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for awsRegion.
+ */
+ public com.google.protobuf.ByteString getAwsRegionBytes() {
+ java.lang.Object ref = awsRegion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ awsRegion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The AWS region of the Glue catalog to connect to.
+ * The region should be in the same geographical region and jurisdiction
+ * as the federated catalog.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string aws_region = 2 [json_name = "aws-region", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @param value The awsRegion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAwsRegion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ awsRegion_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The AWS region of the Glue catalog to connect to.
+ * The region should be in the same geographical region and jurisdiction
+ * as the federated catalog.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string aws_region = 2 [json_name = "aws-region", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAwsRegion() {
+ awsRegion_ = getDefaultInstance().getAwsRegion();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Immutable. The AWS region of the Glue catalog to connect to.
+ * The region should be in the same geographical region and jurisdiction
+ * as the federated catalog.
+ * Must be non-empty and is immutable.
+ *
+ *
+ *
+ * optional string aws_region = 2 [json_name = "aws-region", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @param value The bytes for awsRegion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAwsRegionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ awsRegion_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object awsRoleArn_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The AWS role ARN of the Glue catalog that the federated
+ * catalog will assume to access the catalog. Must be non-empty. Can be
+ * updated.
+ *
+ *
+ *
+ * optional string aws_role_arn = 3 [json_name = "aws-role-arn", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the awsRoleArn field is set.
+ */
+ public boolean hasAwsRoleArn() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The AWS role ARN of the Glue catalog that the federated
+ * catalog will assume to access the catalog. Must be non-empty. Can be
+ * updated.
+ *
+ *
+ *
+ * optional string aws_role_arn = 3 [json_name = "aws-role-arn", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The awsRoleArn.
+ */
+ public java.lang.String getAwsRoleArn() {
+ java.lang.Object ref = awsRoleArn_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ awsRoleArn_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The AWS role ARN of the Glue catalog that the federated
+ * catalog will assume to access the catalog. Must be non-empty. Can be
+ * updated.
+ *
+ *
+ *
+ * optional string aws_role_arn = 3 [json_name = "aws-role-arn", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The bytes for awsRoleArn.
+ */
+ public com.google.protobuf.ByteString getAwsRoleArnBytes() {
+ java.lang.Object ref = awsRoleArn_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ awsRoleArn_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The AWS role ARN of the Glue catalog that the federated
+ * catalog will assume to access the catalog. Must be non-empty. Can be
+ * updated.
+ *
+ *
+ *
+ * optional string aws_role_arn = 3 [json_name = "aws-role-arn", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The awsRoleArn to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAwsRoleArn(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ awsRoleArn_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The AWS role ARN of the Glue catalog that the federated
+ * catalog will assume to access the catalog. Must be non-empty. Can be
+ * updated.
+ *
+ *
+ *
+ * optional string aws_role_arn = 3 [json_name = "aws-role-arn", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAwsRoleArn() {
+ awsRoleArn_ = getDefaultInstance().getAwsRoleArn();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The AWS role ARN of the Glue catalog that the federated
+ * catalog will assume to access the catalog. Must be non-empty. Can be
+ * updated.
+ *
+ *
+ *
+ * optional string aws_role_arn = 3 [json_name = "aws-role-arn", (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The bytes for awsRoleArn to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAwsRoleArnBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ awsRoleArn_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo)
+ private static final com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo();
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the refreshInterval field is set.
+ */
+ boolean hasRefreshInterval();
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The refreshInterval.
+ */
+ com.google.protobuf.Duration getRefreshInterval();
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Schedule defines if and when metadata refresh should be scheduled.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule}
+ */
+ public static final class RefreshSchedule extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule)
+ RefreshScheduleOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "RefreshSchedule");
+ }
+
+ // Use RefreshSchedule.newBuilder() to construct.
+ private RefreshSchedule(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private RefreshSchedule() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshSchedule_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshSchedule_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ .class,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ .Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int REFRESH_INTERVAL_FIELD_NUMBER = 1;
+ private com.google.protobuf.Duration refreshInterval_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the refreshInterval field is set.
+ */
+ @java.lang.Override
+ public boolean hasRefreshInterval() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The refreshInterval.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getRefreshInterval() {
+ return refreshInterval_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : refreshInterval_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder() {
+ return refreshInterval_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : refreshInterval_;
+ }
+
+ 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, getRefreshInterval());
+ }
+ 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, getRefreshInterval());
+ }
+ 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.FederatedCatalogOptions.RefreshSchedule)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule other =
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule)
+ obj;
+
+ if (hasRefreshInterval() != other.hasRefreshInterval()) return false;
+ if (hasRefreshInterval()) {
+ if (!getRefreshInterval().equals(other.getRefreshInterval())) 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 (hasRefreshInterval()) {
+ hash = (37 * hash) + REFRESH_INTERVAL_FIELD_NUMBER;
+ hash = (53 * hash) + getRefreshInterval().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule
+ 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.FederatedCatalogOptions
+ .RefreshSchedule
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule
+ 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.FederatedCatalogOptions
+ .RefreshSchedule
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule
+ 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.FederatedCatalogOptions
+ .RefreshSchedule
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.FederatedCatalogOptions.RefreshSchedule
+ 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Schedule defines if and when metadata refresh should be scheduled.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the refreshInterval field is set.
+ */
+ public boolean hasRefreshInterval() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The refreshInterval.
+ */
+ public com.google.protobuf.Duration getRefreshInterval() {
+ if (refreshIntervalBuilder_ == null) {
+ return refreshInterval_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : refreshInterval_;
+ } else {
+ return refreshIntervalBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRefreshInterval(com.google.protobuf.Duration value) {
+ if (refreshIntervalBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ refreshInterval_ = value;
+ } else {
+ refreshIntervalBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRefreshInterval(com.google.protobuf.Duration.Builder builderForValue) {
+ if (refreshIntervalBuilder_ == null) {
+ refreshInterval_ = builderForValue.build();
+ } else {
+ refreshIntervalBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeRefreshInterval(com.google.protobuf.Duration value) {
+ if (refreshIntervalBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && refreshInterval_ != null
+ && refreshInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getRefreshIntervalBuilder().mergeFrom(value);
+ } else {
+ refreshInterval_ = value;
+ }
+ } else {
+ refreshIntervalBuilder_.mergeFrom(value);
+ }
+ if (refreshInterval_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearRefreshInterval() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ refreshInterval_ = null;
+ if (refreshIntervalBuilder_ != null) {
+ refreshIntervalBuilder_.dispose();
+ refreshIntervalBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getRefreshIntervalBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetRefreshIntervalFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder() {
+ if (refreshIntervalBuilder_ != null) {
+ return refreshIntervalBuilder_.getMessageOrBuilder();
+ } else {
+ return refreshInterval_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : refreshInterval_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The interval for refreshing metadata from the remote catalog.
+ * If unset or if the value is <= 0, the background refresh will be
+ * disabled. If this field is updated for an existing federated catalog,
+ * the previous background refresh must complete before the new refresh
+ * interval will take effect.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration refresh_interval = 1 [json_name = "refresh-interval", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetRefreshIntervalFieldBuilder() {
+ if (refreshIntervalBuilder_ == null) {
+ refreshIntervalBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getRefreshInterval(), getParentForChildren(), isClean());
+ refreshInterval_ = null;
+ }
+ return refreshIntervalBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule)
+ private static final com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule();
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the namespaceFilters.
+ */
+ java.util.List
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of namespaceFilters.
+ */
+ int getNamespaceFiltersCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The namespaceFilters at the given index.
+ */
+ java.lang.String getNamespaceFilters(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the namespaceFilters at the given index.
+ */
+ com.google.protobuf.ByteString getNamespaceFiltersBytes(int index);
+ }
+
+ /**
+ *
+ *
+ *
+ * The scope defines a subset of namespaces to be refreshed.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope}
+ */
+ public static final class RefreshScope extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope)
+ RefreshScopeOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "RefreshScope");
+ }
+
+ // Use RefreshScope.newBuilder() to construct.
+ private RefreshScope(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private RefreshScope() {
+ namespaceFilters_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshScope_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshScope_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ .class,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ .Builder.class);
+ }
+
+ public static final int NAMESPACE_FILTERS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList namespaceFilters_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the namespaceFilters.
+ */
+ public com.google.protobuf.ProtocolStringList getNamespaceFiltersList() {
+ return namespaceFilters_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of namespaceFilters.
+ */
+ public int getNamespaceFiltersCount() {
+ return namespaceFilters_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The namespaceFilters at the given index.
+ */
+ public java.lang.String getNamespaceFilters(int index) {
+ return namespaceFilters_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the namespaceFilters at the given index.
+ */
+ public com.google.protobuf.ByteString getNamespaceFiltersBytes(int index) {
+ return namespaceFilters_.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 < namespaceFilters_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, namespaceFilters_.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 < namespaceFilters_.size(); i++) {
+ dataSize += computeStringSizeNoTag(namespaceFilters_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getNamespaceFiltersList().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.IcebergCatalog.FederatedCatalogOptions.RefreshScope)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope other =
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope) obj;
+
+ if (!getNamespaceFiltersList().equals(other.getNamespaceFiltersList())) 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 (getNamespaceFiltersCount() > 0) {
+ hash = (37 * hash) + NAMESPACE_FILTERS_FIELD_NUMBER;
+ hash = (53 * hash) + getNamespaceFiltersList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ 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.FederatedCatalogOptions.RefreshScope
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ 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.FederatedCatalogOptions.RefreshScope
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ 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.FederatedCatalogOptions.RefreshScope
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.FederatedCatalogOptions.RefreshScope
+ 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The scope defines a subset of namespaces to be refreshed.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the namespaceFilters.
+ */
+ public com.google.protobuf.ProtocolStringList getNamespaceFiltersList() {
+ namespaceFilters_.makeImmutable();
+ return namespaceFilters_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of namespaceFilters.
+ */
+ public int getNamespaceFiltersCount() {
+ return namespaceFilters_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The namespaceFilters at the given index.
+ */
+ public java.lang.String getNamespaceFilters(int index) {
+ return namespaceFilters_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the namespaceFilters at the given index.
+ */
+ public com.google.protobuf.ByteString getNamespaceFiltersBytes(int index) {
+ return namespaceFilters_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The namespaceFilters to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNamespaceFilters(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNamespaceFiltersIsMutable();
+ namespaceFilters_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The namespaceFilters to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNamespaceFilters(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNamespaceFiltersIsMutable();
+ namespaceFilters_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param values The namespaceFilters to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllNamespaceFilters(java.lang.Iterable
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNamespaceFilters() {
+ namespaceFilters_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Filters to determine which namespaces are included in the
+ * refresh process.
+ * - empty list means include all namespaces.
+ * - "[namespaces]" means include the specified namespaces.
+ * ['ns1', 'ns2'] : Discover only namespaces 'ns1' and 'ns2'.
+ * The maximum number of namespace filters allowed is 32.
+ *
+ *
+ *
+ * repeated string namespace_filters = 1 [json_name = "namespace-filters", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The bytes of the namespaceFilters to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNamespaceFiltersBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureNamespaceFiltersIsMutable();
+ namespaceFilters_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope)
+ private static final com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshScope
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope();
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the refreshSchedule field is set.
+ */
+ boolean hasRefreshSchedule();
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The refreshSchedule.
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ getRefreshSchedule();
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScheduleOrBuilder
+ getRefreshScheduleOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the refreshScope field is set.
+ */
+ boolean hasRefreshScope();
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The refreshScope.
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ getRefreshScope();
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScopeOrBuilder
+ getRefreshScopeOrBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Refresh configuration.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions}
+ */
+ public static final class RefreshOptions extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions)
+ RefreshOptionsOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "RefreshOptions");
+ }
+
+ // Use RefreshOptions.newBuilder() to construct.
+ private RefreshOptions(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private RefreshOptions() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshOptions_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshOptions_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ .class,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ .Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int REFRESH_SCHEDULE_FIELD_NUMBER = 1;
+ private com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ refreshSchedule_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the refreshSchedule field is set.
+ */
+ @java.lang.Override
+ public boolean hasRefreshSchedule() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The refreshSchedule.
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ getRefreshSchedule() {
+ return refreshSchedule_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ .getDefaultInstance()
+ : refreshSchedule_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshScheduleOrBuilder
+ getRefreshScheduleOrBuilder() {
+ return refreshSchedule_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ .getDefaultInstance()
+ : refreshSchedule_;
+ }
+
+ public static final int REFRESH_SCOPE_FIELD_NUMBER = 2;
+ private com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ refreshScope_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the refreshScope field is set.
+ */
+ @java.lang.Override
+ public boolean hasRefreshScope() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The refreshScope.
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ getRefreshScope() {
+ return refreshScope_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ .getDefaultInstance()
+ : refreshScope_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshScopeOrBuilder
+ getRefreshScopeOrBuilder() {
+ return refreshScope_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ .getDefaultInstance()
+ : refreshScope_;
+ }
+
+ 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, getRefreshSchedule());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getRefreshScope());
+ }
+ 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, getRefreshSchedule());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRefreshScope());
+ }
+ 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.FederatedCatalogOptions.RefreshOptions)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions other =
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions) obj;
+
+ if (hasRefreshSchedule() != other.hasRefreshSchedule()) return false;
+ if (hasRefreshSchedule()) {
+ if (!getRefreshSchedule().equals(other.getRefreshSchedule())) return false;
+ }
+ if (hasRefreshScope() != other.hasRefreshScope()) return false;
+ if (hasRefreshScope()) {
+ if (!getRefreshScope().equals(other.getRefreshScope())) 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 (hasRefreshSchedule()) {
+ hash = (37 * hash) + REFRESH_SCHEDULE_FIELD_NUMBER;
+ hash = (53 * hash) + getRefreshSchedule().hashCode();
+ }
+ if (hasRefreshScope()) {
+ hash = (37 * hash) + REFRESH_SCOPE_FIELD_NUMBER;
+ hash = (53 * hash) + getRefreshScope().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptions
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptions
+ 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.FederatedCatalogOptions
+ .RefreshOptions
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptions
+ 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.FederatedCatalogOptions
+ .RefreshOptions
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptions
+ 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.FederatedCatalogOptions
+ .RefreshOptions
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptions
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptions
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptions
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptions
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptions
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.FederatedCatalogOptions.RefreshOptions
+ 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Refresh configuration.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the refreshSchedule field is set.
+ */
+ public boolean hasRefreshSchedule() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The refreshSchedule.
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ getRefreshSchedule() {
+ if (refreshScheduleBuilder_ == null) {
+ return refreshSchedule_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ .getDefaultInstance()
+ : refreshSchedule_;
+ } else {
+ return refreshScheduleBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRefreshSchedule(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ value) {
+ if (refreshScheduleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ refreshSchedule_ = value;
+ } else {
+ refreshScheduleBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRefreshSchedule(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ .Builder
+ builderForValue) {
+ if (refreshScheduleBuilder_ == null) {
+ refreshSchedule_ = builderForValue.build();
+ } else {
+ refreshScheduleBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeRefreshSchedule(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ value) {
+ if (refreshScheduleBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && refreshSchedule_ != null
+ && refreshSchedule_
+ != com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule.getDefaultInstance()) {
+ getRefreshScheduleBuilder().mergeFrom(value);
+ } else {
+ refreshSchedule_ = value;
+ }
+ } else {
+ refreshScheduleBuilder_.mergeFrom(value);
+ }
+ if (refreshSchedule_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearRefreshSchedule() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ refreshSchedule_ = null;
+ if (refreshScheduleBuilder_ != null) {
+ refreshScheduleBuilder_.dispose();
+ refreshScheduleBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ .Builder
+ getRefreshScheduleBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetRefreshScheduleFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshScheduleOrBuilder
+ getRefreshScheduleOrBuilder() {
+ if (refreshScheduleBuilder_ != null) {
+ return refreshScheduleBuilder_.getMessageOrBuilder();
+ } else {
+ return refreshSchedule_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ .getDefaultInstance()
+ : refreshSchedule_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Schedule defines if and when metadata refresh should be
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule refresh_schedule = 1 [json_name = "refresh-schedule", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshSchedule
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshScheduleOrBuilder>
+ internalGetRefreshScheduleFieldBuilder() {
+ if (refreshScheduleBuilder_ == null) {
+ refreshScheduleBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshSchedule.Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshScheduleOrBuilder>(
+ getRefreshSchedule(), getParentForChildren(), isClean());
+ refreshSchedule_ = null;
+ }
+ return refreshScheduleBuilder_;
+ }
+
+ private com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ refreshScope_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshScopeOrBuilder>
+ refreshScopeBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the refreshScope field is set.
+ */
+ public boolean hasRefreshScope() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The refreshScope.
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ getRefreshScope() {
+ if (refreshScopeBuilder_ == null) {
+ return refreshScope_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ .getDefaultInstance()
+ : refreshScope_;
+ } else {
+ return refreshScopeBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRefreshScope(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope value) {
+ if (refreshScopeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ refreshScope_ = value;
+ } else {
+ refreshScopeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRefreshScope(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope.Builder
+ builderForValue) {
+ if (refreshScopeBuilder_ == null) {
+ refreshScope_ = builderForValue.build();
+ } else {
+ refreshScopeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeRefreshScope(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope value) {
+ if (refreshScopeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && refreshScope_ != null
+ && refreshScope_
+ != com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshScope.getDefaultInstance()) {
+ getRefreshScopeBuilder().mergeFrom(value);
+ } else {
+ refreshScope_ = value;
+ }
+ } else {
+ refreshScopeBuilder_.mergeFrom(value);
+ }
+ if (refreshScope_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearRefreshScope() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ refreshScope_ = null;
+ if (refreshScopeBuilder_ != null) {
+ refreshScopeBuilder_.dispose();
+ refreshScopeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ .Builder
+ getRefreshScopeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetRefreshScopeFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshScopeOrBuilder
+ getRefreshScopeOrBuilder() {
+ if (refreshScopeBuilder_ != null) {
+ return refreshScopeBuilder_.getMessageOrBuilder();
+ } else {
+ return refreshScope_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ .getDefaultInstance()
+ : refreshScope_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh scope configurations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope refresh_scope = 2 [json_name = "refresh-scope", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshScopeOrBuilder>
+ internalGetRefreshScopeFieldBuilder() {
+ if (refreshScopeBuilder_ == null) {
+ refreshScopeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScope
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshScopeOrBuilder>(
+ getRefreshScope(), getParentForChildren(), isClean());
+ refreshScope_ = null;
+ }
+ return refreshScopeBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions)
+ private static final com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptions
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions();
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptions
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the startTime field is set.
+ */
+ boolean hasStartTime();
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The startTime.
+ */
+ com.google.protobuf.Timestamp getStartTime();
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the endTime field is set.
+ */
+ boolean hasEndTime();
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The endTime.
+ */
+ com.google.protobuf.Timestamp getEndTime();
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the status field is set.
+ */
+ boolean hasStatus();
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The status.
+ */
+ com.google.rpc.Status getStatus();
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.rpc.StatusOrBuilder getStatusOrBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Remote catalog background refresh status.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus}
+ */
+ public static final class RefreshStatus extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus)
+ RefreshStatusOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "RefreshStatus");
+ }
+
+ // Use RefreshStatus.newBuilder() to construct.
+ private RefreshStatus(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private RefreshStatus() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshStatus_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshStatus_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ .class,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ .Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int START_TIME_FIELD_NUMBER = 1;
+ private com.google.protobuf.Timestamp startTime_;
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the startTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasStartTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The startTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getStartTime() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+
+ public static final int END_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp endTime_;
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the endTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasEndTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The endTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getEndTime() {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 3;
+ private com.google.rpc.Status status_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the status field is set.
+ */
+ @java.lang.Override
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The status.
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getStatus() {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+
+ 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, getStartTime());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getEndTime());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(3, getStatus());
+ }
+ 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, getStartTime());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus());
+ }
+ 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.FederatedCatalogOptions.RefreshStatus)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus other =
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus) obj;
+
+ if (hasStartTime() != other.hasStartTime()) return false;
+ if (hasStartTime()) {
+ if (!getStartTime().equals(other.getStartTime())) return false;
+ }
+ if (hasEndTime() != other.hasEndTime()) return false;
+ if (hasEndTime()) {
+ if (!getEndTime().equals(other.getEndTime())) return false;
+ }
+ if (hasStatus() != other.hasStatus()) return false;
+ if (hasStatus()) {
+ if (!getStatus().equals(other.getStatus())) 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 (hasStartTime()) {
+ hash = (37 * hash) + START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getStartTime().hashCode();
+ }
+ if (hasEndTime()) {
+ hash = (37 * hash) + END_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEndTime().hashCode();
+ }
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatus().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ 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.FederatedCatalogOptions.RefreshStatus
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ 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.FederatedCatalogOptions.RefreshStatus
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ 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.FederatedCatalogOptions.RefreshStatus
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.FederatedCatalogOptions.RefreshStatus
+ 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Remote catalog background refresh status.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the startTime field is set.
+ */
+ public boolean hasStartTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The startTime.
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ if (startTimeBuilder_ == null) {
+ return startTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : startTime_;
+ } else {
+ return startTimeBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ startTime_ = value;
+ } else {
+ startTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (startTimeBuilder_ == null) {
+ startTime_ = builderForValue.build();
+ } else {
+ startTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && startTime_ != null
+ && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getStartTimeBuilder().mergeFrom(value);
+ } else {
+ startTime_ = value;
+ }
+ } else {
+ startTimeBuilder_.mergeFrom(value);
+ }
+ if (startTime_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearStartTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ startTime_ = null;
+ if (startTimeBuilder_ != null) {
+ startTimeBuilder_.dispose();
+ startTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetStartTimeFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ if (startTimeBuilder_ != null) {
+ return startTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return startTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : startTime_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has started, including
+ * in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp start_time = 1 [json_name = "start-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ internalGetStartTimeFieldBuilder() {
+ if (startTimeBuilder_ == null) {
+ startTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getStartTime(), getParentForChildren(), isClean());
+ startTime_ = null;
+ }
+ return startTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp endTime_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ endTimeBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the endTime field is set.
+ */
+ public boolean hasEndTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The endTime.
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ if (endTimeBuilder_ == null) {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ } else {
+ return endTimeBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ endTime_ = value;
+ } else {
+ endTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (endTimeBuilder_ == null) {
+ endTime_ = builderForValue.build();
+ } else {
+ endTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && endTime_ != null
+ && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getEndTimeBuilder().mergeFrom(value);
+ } else {
+ endTime_ = value;
+ }
+ } else {
+ endTimeBuilder_.mergeFrom(value);
+ }
+ if (endTime_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearEndTime() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ endTime_ = null;
+ if (endTimeBuilder_ != null) {
+ endTimeBuilder_.dispose();
+ endTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetEndTimeFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ if (endTimeBuilder_ != null) {
+ return endTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. When the catalog refresh has ended, unset for in-progress
+ * refreshes.
+ *
+ *
+ *
+ * optional .google.protobuf.Timestamp end_time = 2 [json_name = "end-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ internalGetEndTimeFieldBuilder() {
+ if (endTimeBuilder_ == null) {
+ endTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getEndTime(), getParentForChildren(), isClean());
+ endTime_ = null;
+ }
+ return endTimeBuilder_;
+ }
+
+ private com.google.rpc.Status status_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>
+ statusBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the status field is set.
+ */
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The status.
+ */
+ public com.google.rpc.Status getStatus() {
+ if (statusBuilder_ == null) {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ } else {
+ return statusBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ status_ = value;
+ } else {
+ statusBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
+ if (statusBuilder_ == null) {
+ status_ = builderForValue.build();
+ } else {
+ statusBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && status_ != null
+ && status_ != com.google.rpc.Status.getDefaultInstance()) {
+ getStatusBuilder().mergeFrom(value);
+ } else {
+ status_ = value;
+ }
+ } else {
+ statusBuilder_.mergeFrom(value);
+ }
+ if (status_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearStatus() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ status_ = null;
+ if (statusBuilder_ != null) {
+ statusBuilder_.dispose();
+ statusBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.rpc.Status.Builder getStatusBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return internalGetStatusFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ if (statusBuilder_ != null) {
+ return statusBuilder_.getMessageOrBuilder();
+ } else {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the last background refresh operation, unset
+ * for in-progress refreshes.
+ *
+ *
+ *
+ * optional .google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>
+ internalGetStatusFieldBuilder() {
+ if (statusBuilder_ == null) {
+ statusBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean());
+ status_ = null;
+ }
+ return statusBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus)
+ private static final com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshStatus
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus();
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the unityCatalogInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasUnityCatalogInfo() {
+ return remoteCatalogInfoCase_ == 2;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The unityCatalogInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ getUnityCatalogInfo() {
+ if (remoteCatalogInfoCase_ == 2) {
+ return (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo)
+ remoteCatalogInfo_;
+ }
+ return com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ .getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfoOrBuilder
+ getUnityCatalogInfoOrBuilder() {
+ if (remoteCatalogInfoCase_ == 2) {
+ return (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo)
+ remoteCatalogInfo_;
+ }
+ return com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ .getDefaultInstance();
+ }
+
+ public static final int GLUE_CATALOG_INFO_FIELD_NUMBER = 4;
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the glueCatalogInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasGlueCatalogInfo() {
+ return remoteCatalogInfoCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The glueCatalogInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ getGlueCatalogInfo() {
+ if (remoteCatalogInfoCase_ == 4) {
+ return (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo)
+ remoteCatalogInfo_;
+ }
+ return com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfoOrBuilder
+ getGlueCatalogInfoOrBuilder() {
+ if (remoteCatalogInfoCase_ == 4) {
+ return (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo)
+ remoteCatalogInfo_;
+ }
+ return com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .getDefaultInstance();
+ }
+
+ public static final int SECRET_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object secretName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The secret resource name in Secret Manager, in the format
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}` or
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}/versions/{version_id}`.
+ *
+ * The project ID must match the catalog's project and location must match
+ * the catalog's location.
+ * If the version is not specified, the latest version will be used.
+ *
+ * This field is not used when `service_principal_application_id` is set.
+ *
+ *
+ *
+ * optional string secret_name = 1 [json_name = "secret-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the secretName field is set.
+ */
+ @java.lang.Override
+ public boolean hasSecretName() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The secret resource name in Secret Manager, in the format
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}` or
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}/versions/{version_id}`.
+ *
+ * The project ID must match the catalog's project and location must match
+ * the catalog's location.
+ * If the version is not specified, the latest version will be used.
+ *
+ * This field is not used when `service_principal_application_id` is set.
+ *
+ *
+ *
+ * optional string secret_name = 1 [json_name = "secret-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The secretName.
+ */
+ @java.lang.Override
+ public java.lang.String getSecretName() {
+ java.lang.Object ref = secretName_;
+ 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();
+ secretName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The secret resource name in Secret Manager, in the format
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}` or
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}/versions/{version_id}`.
+ *
+ * The project ID must match the catalog's project and location must match
+ * the catalog's location.
+ * If the version is not specified, the latest version will be used.
+ *
+ * This field is not used when `service_principal_application_id` is set.
+ *
+ *
+ *
+ * optional string secret_name = 1 [json_name = "secret-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for secretName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSecretNameBytes() {
+ java.lang.Object ref = secretName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ secretName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICE_DIRECTORY_NAME_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object serviceDirectoryName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The service directory resource name for routing traffic over a
+ * private network connection through Cross-Cloud Interconnect, in the
+ * format
+ * `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}`.
+ *
+ *
+ *
+ * optional string service_directory_name = 5 [json_name = "service-directory-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the serviceDirectoryName field is set.
+ */
+ @java.lang.Override
+ public boolean hasServiceDirectoryName() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The service directory resource name for routing traffic over a
+ * private network connection through Cross-Cloud Interconnect, in the
+ * format
+ * `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}`.
+ *
+ *
+ *
+ * optional string service_directory_name = 5 [json_name = "service-directory-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The serviceDirectoryName.
+ */
+ @java.lang.Override
+ public java.lang.String getServiceDirectoryName() {
+ java.lang.Object ref = serviceDirectoryName_;
+ 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();
+ serviceDirectoryName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The service directory resource name for routing traffic over a
+ * private network connection through Cross-Cloud Interconnect, in the
+ * format
+ * `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}`.
+ *
+ *
+ *
+ * optional string service_directory_name = 5 [json_name = "service-directory-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for serviceDirectoryName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getServiceDirectoryNameBytes() {
+ java.lang.Object ref = serviceDirectoryName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceDirectoryName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REFRESH_OPTIONS_FIELD_NUMBER = 3;
+ private com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ refreshOptions_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the refreshOptions field is set.
+ */
+ @java.lang.Override
+ public boolean hasRefreshOptions() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The refreshOptions.
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ getRefreshOptions() {
+ return refreshOptions_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ .getDefaultInstance()
+ : refreshOptions_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptionsOrBuilder
+ getRefreshOptionsOrBuilder() {
+ return refreshOptions_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ .getDefaultInstance()
+ : refreshOptions_;
+ }
+
+ public static final int REFRESH_STATUS_FIELD_NUMBER = 6;
+ private com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ refreshStatus_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the refreshStatus field is set.
+ */
+ @java.lang.Override
+ public boolean hasRefreshStatus() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The refreshStatus.
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ getRefreshStatus() {
+ return refreshStatus_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ .getDefaultInstance()
+ : refreshStatus_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatusOrBuilder
+ getRefreshStatusOrBuilder() {
+ return refreshStatus_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ .getDefaultInstance()
+ : refreshStatus_;
+ }
+
+ 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)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, secretName_);
+ }
+ if (remoteCatalogInfoCase_ == 2) {
+ output.writeMessage(
+ 2,
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo)
+ remoteCatalogInfo_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(3, getRefreshOptions());
+ }
+ if (remoteCatalogInfoCase_ == 4) {
+ output.writeMessage(
+ 4,
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo)
+ remoteCatalogInfo_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, serviceDirectoryName_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(6, getRefreshStatus());
+ }
+ 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.GeneratedMessage.computeStringSize(1, secretName_);
+ }
+ if (remoteCatalogInfoCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2,
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo)
+ remoteCatalogInfo_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRefreshOptions());
+ }
+ if (remoteCatalogInfoCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4,
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo)
+ remoteCatalogInfo_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, serviceDirectoryName_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRefreshStatus());
+ }
+ 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.FederatedCatalogOptions)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions other =
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions) obj;
+
+ if (hasSecretName() != other.hasSecretName()) return false;
+ if (hasSecretName()) {
+ if (!getSecretName().equals(other.getSecretName())) return false;
+ }
+ if (hasServiceDirectoryName() != other.hasServiceDirectoryName()) return false;
+ if (hasServiceDirectoryName()) {
+ if (!getServiceDirectoryName().equals(other.getServiceDirectoryName())) return false;
+ }
+ if (hasRefreshOptions() != other.hasRefreshOptions()) return false;
+ if (hasRefreshOptions()) {
+ if (!getRefreshOptions().equals(other.getRefreshOptions())) return false;
+ }
+ if (hasRefreshStatus() != other.hasRefreshStatus()) return false;
+ if (hasRefreshStatus()) {
+ if (!getRefreshStatus().equals(other.getRefreshStatus())) return false;
+ }
+ if (!getRemoteCatalogInfoCase().equals(other.getRemoteCatalogInfoCase())) return false;
+ switch (remoteCatalogInfoCase_) {
+ case 2:
+ if (!getUnityCatalogInfo().equals(other.getUnityCatalogInfo())) return false;
+ break;
+ case 4:
+ if (!getGlueCatalogInfo().equals(other.getGlueCatalogInfo())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasSecretName()) {
+ hash = (37 * hash) + SECRET_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSecretName().hashCode();
+ }
+ if (hasServiceDirectoryName()) {
+ hash = (37 * hash) + SERVICE_DIRECTORY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceDirectoryName().hashCode();
+ }
+ if (hasRefreshOptions()) {
+ hash = (37 * hash) + REFRESH_OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getRefreshOptions().hashCode();
+ }
+ if (hasRefreshStatus()) {
+ hash = (37 * hash) + REFRESH_STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getRefreshStatus().hashCode();
+ }
+ switch (remoteCatalogInfoCase_) {
+ case 2:
+ hash = (37 * hash) + UNITY_CATALOG_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getUnityCatalogInfo().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + GLUE_CATALOG_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getGlueCatalogInfo().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions 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.FederatedCatalogOptions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions 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.FederatedCatalogOptions parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions 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.FederatedCatalogOptions parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.FederatedCatalogOptions 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Configuration options for a federated catalog.
+ *
+ *
+ * Protobuf type {@code google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the unityCatalogInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasUnityCatalogInfo() {
+ return remoteCatalogInfoCase_ == 2;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The unityCatalogInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ getUnityCatalogInfo() {
+ if (unityCatalogInfoBuilder_ == null) {
+ if (remoteCatalogInfoCase_ == 2) {
+ return (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo)
+ remoteCatalogInfo_;
+ }
+ return com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ .getDefaultInstance();
+ } else {
+ if (remoteCatalogInfoCase_ == 2) {
+ return unityCatalogInfoBuilder_.getMessage();
+ }
+ return com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setUnityCatalogInfo(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ value) {
+ if (unityCatalogInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ remoteCatalogInfo_ = value;
+ onChanged();
+ } else {
+ unityCatalogInfoBuilder_.setMessage(value);
+ }
+ remoteCatalogInfoCase_ = 2;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setUnityCatalogInfo(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ .Builder
+ builderForValue) {
+ if (unityCatalogInfoBuilder_ == null) {
+ remoteCatalogInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ unityCatalogInfoBuilder_.setMessage(builderForValue.build());
+ }
+ remoteCatalogInfoCase_ = 2;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeUnityCatalogInfo(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ value) {
+ if (unityCatalogInfoBuilder_ == null) {
+ if (remoteCatalogInfoCase_ == 2
+ && remoteCatalogInfo_
+ != com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo.getDefaultInstance()) {
+ remoteCatalogInfo_ =
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ .newBuilder(
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo)
+ remoteCatalogInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ remoteCatalogInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (remoteCatalogInfoCase_ == 2) {
+ unityCatalogInfoBuilder_.mergeFrom(value);
+ } else {
+ unityCatalogInfoBuilder_.setMessage(value);
+ }
+ }
+ remoteCatalogInfoCase_ = 2;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearUnityCatalogInfo() {
+ if (unityCatalogInfoBuilder_ == null) {
+ if (remoteCatalogInfoCase_ == 2) {
+ remoteCatalogInfoCase_ = 0;
+ remoteCatalogInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (remoteCatalogInfoCase_ == 2) {
+ remoteCatalogInfoCase_ = 0;
+ remoteCatalogInfo_ = null;
+ }
+ unityCatalogInfoBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ .Builder
+ getUnityCatalogInfoBuilder() {
+ return internalGetUnityCatalogInfoFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfoOrBuilder
+ getUnityCatalogInfoOrBuilder() {
+ if ((remoteCatalogInfoCase_ == 2) && (unityCatalogInfoBuilder_ != null)) {
+ return unityCatalogInfoBuilder_.getMessageOrBuilder();
+ } else {
+ if (remoteCatalogInfoCase_ == 2) {
+ return (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo)
+ remoteCatalogInfo_;
+ }
+ return com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to a Unity Catalog by Databricks.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo unity_catalog_info = 2 [json_name = "unity-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfoOrBuilder>
+ internalGetUnityCatalogInfoFieldBuilder() {
+ if (unityCatalogInfoBuilder_ == null) {
+ if (!(remoteCatalogInfoCase_ == 2)) {
+ remoteCatalogInfo_ =
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.UnityCatalogInfo
+ .getDefaultInstance();
+ }
+ unityCatalogInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo.Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfoOrBuilder>(
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .UnityCatalogInfo)
+ remoteCatalogInfo_,
+ getParentForChildren(),
+ isClean());
+ remoteCatalogInfo_ = null;
+ }
+ remoteCatalogInfoCase_ = 2;
+ onChanged();
+ return unityCatalogInfoBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfoOrBuilder>
+ glueCatalogInfoBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the glueCatalogInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasGlueCatalogInfo() {
+ return remoteCatalogInfoCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The glueCatalogInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ getGlueCatalogInfo() {
+ if (glueCatalogInfoBuilder_ == null) {
+ if (remoteCatalogInfoCase_ == 4) {
+ return (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo)
+ remoteCatalogInfo_;
+ }
+ return com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .getDefaultInstance();
+ } else {
+ if (remoteCatalogInfoCase_ == 4) {
+ return glueCatalogInfoBuilder_.getMessage();
+ }
+ return com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setGlueCatalogInfo(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ value) {
+ if (glueCatalogInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ remoteCatalogInfo_ = value;
+ onChanged();
+ } else {
+ glueCatalogInfoBuilder_.setMessage(value);
+ }
+ remoteCatalogInfoCase_ = 4;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setGlueCatalogInfo(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo.Builder
+ builderForValue) {
+ if (glueCatalogInfoBuilder_ == null) {
+ remoteCatalogInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ glueCatalogInfoBuilder_.setMessage(builderForValue.build());
+ }
+ remoteCatalogInfoCase_ = 4;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeGlueCatalogInfo(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ value) {
+ if (glueCatalogInfoBuilder_ == null) {
+ if (remoteCatalogInfoCase_ == 4
+ && remoteCatalogInfo_
+ != com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo.getDefaultInstance()) {
+ remoteCatalogInfo_ =
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .newBuilder(
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo)
+ remoteCatalogInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ remoteCatalogInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (remoteCatalogInfoCase_ == 4) {
+ glueCatalogInfoBuilder_.mergeFrom(value);
+ } else {
+ glueCatalogInfoBuilder_.setMessage(value);
+ }
+ }
+ remoteCatalogInfoCase_ = 4;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearGlueCatalogInfo() {
+ if (glueCatalogInfoBuilder_ == null) {
+ if (remoteCatalogInfoCase_ == 4) {
+ remoteCatalogInfoCase_ = 0;
+ remoteCatalogInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (remoteCatalogInfoCase_ == 4) {
+ remoteCatalogInfoCase_ = 0;
+ remoteCatalogInfo_ = null;
+ }
+ glueCatalogInfoBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .Builder
+ getGlueCatalogInfoBuilder() {
+ return internalGetGlueCatalogInfoFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfoOrBuilder
+ getGlueCatalogInfoOrBuilder() {
+ if ((remoteCatalogInfoCase_ == 4) && (glueCatalogInfoBuilder_ != null)) {
+ return glueCatalogInfoBuilder_.getMessageOrBuilder();
+ } else {
+ if (remoteCatalogInfoCase_ == 4) {
+ return (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo)
+ remoteCatalogInfo_;
+ }
+ return com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Info specific to an AWS Glue Catalog.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo glue_catalog_info = 4 [json_name = "glue-catalog-info", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfoOrBuilder>
+ internalGetGlueCatalogInfoFieldBuilder() {
+ if (glueCatalogInfoBuilder_ == null) {
+ if (!(remoteCatalogInfoCase_ == 4)) {
+ remoteCatalogInfo_ =
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .getDefaultInstance();
+ }
+ glueCatalogInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.GlueCatalogInfo
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfoOrBuilder>(
+ (com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .GlueCatalogInfo)
+ remoteCatalogInfo_,
+ getParentForChildren(),
+ isClean());
+ remoteCatalogInfo_ = null;
+ }
+ remoteCatalogInfoCase_ = 4;
+ onChanged();
+ return glueCatalogInfoBuilder_;
+ }
+
+ private java.lang.Object secretName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The secret resource name in Secret Manager, in the format
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}` or
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}/versions/{version_id}`.
+ *
+ * The project ID must match the catalog's project and location must match
+ * the catalog's location.
+ * If the version is not specified, the latest version will be used.
+ *
+ * This field is not used when `service_principal_application_id` is set.
+ *
+ *
+ *
+ * optional string secret_name = 1 [json_name = "secret-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the secretName field is set.
+ */
+ public boolean hasSecretName() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The secret resource name in Secret Manager, in the format
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}` or
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}/versions/{version_id}`.
+ *
+ * The project ID must match the catalog's project and location must match
+ * the catalog's location.
+ * If the version is not specified, the latest version will be used.
+ *
+ * This field is not used when `service_principal_application_id` is set.
+ *
+ *
+ *
+ * optional string secret_name = 1 [json_name = "secret-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The secretName.
+ */
+ public java.lang.String getSecretName() {
+ java.lang.Object ref = secretName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secretName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The secret resource name in Secret Manager, in the format
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}` or
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}/versions/{version_id}`.
+ *
+ * The project ID must match the catalog's project and location must match
+ * the catalog's location.
+ * If the version is not specified, the latest version will be used.
+ *
+ * This field is not used when `service_principal_application_id` is set.
+ *
+ *
+ *
+ * optional string secret_name = 1 [json_name = "secret-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for secretName.
+ */
+ public com.google.protobuf.ByteString getSecretNameBytes() {
+ java.lang.Object ref = secretName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ secretName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The secret resource name in Secret Manager, in the format
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}` or
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}/versions/{version_id}`.
+ *
+ * The project ID must match the catalog's project and location must match
+ * the catalog's location.
+ * If the version is not specified, the latest version will be used.
+ *
+ * This field is not used when `service_principal_application_id` is set.
+ *
+ *
+ *
+ * optional string secret_name = 1 [json_name = "secret-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The secretName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecretName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ secretName_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The secret resource name in Secret Manager, in the format
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}` or
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}/versions/{version_id}`.
+ *
+ * The project ID must match the catalog's project and location must match
+ * the catalog's location.
+ * If the version is not specified, the latest version will be used.
+ *
+ * This field is not used when `service_principal_application_id` is set.
+ *
+ *
+ *
+ * optional string secret_name = 1 [json_name = "secret-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSecretName() {
+ secretName_ = getDefaultInstance().getSecretName();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The secret resource name in Secret Manager, in the format
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}` or
+ * `projects/{project_id}/locations/{location}/secrets/{secret_id}/versions/{version_id}`.
+ *
+ * The project ID must match the catalog's project and location must match
+ * the catalog's location.
+ * If the version is not specified, the latest version will be used.
+ *
+ * This field is not used when `service_principal_application_id` is set.
+ *
+ *
+ *
+ * optional string secret_name = 1 [json_name = "secret-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for secretName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecretNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ secretName_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serviceDirectoryName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The service directory resource name for routing traffic over a
+ * private network connection through Cross-Cloud Interconnect, in the
+ * format
+ * `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}`.
+ *
+ *
+ *
+ * optional string service_directory_name = 5 [json_name = "service-directory-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the serviceDirectoryName field is set.
+ */
+ public boolean hasServiceDirectoryName() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The service directory resource name for routing traffic over a
+ * private network connection through Cross-Cloud Interconnect, in the
+ * format
+ * `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}`.
+ *
+ *
+ *
+ * optional string service_directory_name = 5 [json_name = "service-directory-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The serviceDirectoryName.
+ */
+ public java.lang.String getServiceDirectoryName() {
+ java.lang.Object ref = serviceDirectoryName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceDirectoryName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The service directory resource name for routing traffic over a
+ * private network connection through Cross-Cloud Interconnect, in the
+ * format
+ * `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}`.
+ *
+ *
+ *
+ * optional string service_directory_name = 5 [json_name = "service-directory-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for serviceDirectoryName.
+ */
+ public com.google.protobuf.ByteString getServiceDirectoryNameBytes() {
+ java.lang.Object ref = serviceDirectoryName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceDirectoryName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The service directory resource name for routing traffic over a
+ * private network connection through Cross-Cloud Interconnect, in the
+ * format
+ * `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}`.
+ *
+ *
+ *
+ * optional string service_directory_name = 5 [json_name = "service-directory-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The serviceDirectoryName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceDirectoryName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ serviceDirectoryName_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The service directory resource name for routing traffic over a
+ * private network connection through Cross-Cloud Interconnect, in the
+ * format
+ * `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}`.
+ *
+ *
+ *
+ * optional string service_directory_name = 5 [json_name = "service-directory-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceDirectoryName() {
+ serviceDirectoryName_ = getDefaultInstance().getServiceDirectoryName();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The service directory resource name for routing traffic over a
+ * private network connection through Cross-Cloud Interconnect, in the
+ * format
+ * `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}`.
+ *
+ *
+ *
+ * optional string service_directory_name = 5 [json_name = "service-directory-name", (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for serviceDirectoryName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceDirectoryNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ serviceDirectoryName_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ refreshOptions_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptionsOrBuilder>
+ refreshOptionsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the refreshOptions field is set.
+ */
+ public boolean hasRefreshOptions() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The refreshOptions.
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ getRefreshOptions() {
+ if (refreshOptionsBuilder_ == null) {
+ return refreshOptions_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ .getDefaultInstance()
+ : refreshOptions_;
+ } else {
+ return refreshOptionsBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRefreshOptions(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions value) {
+ if (refreshOptionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ refreshOptions_ = value;
+ } else {
+ refreshOptionsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRefreshOptions(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions.Builder
+ builderForValue) {
+ if (refreshOptionsBuilder_ == null) {
+ refreshOptions_ = builderForValue.build();
+ } else {
+ refreshOptionsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeRefreshOptions(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions value) {
+ if (refreshOptionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && refreshOptions_ != null
+ && refreshOptions_
+ != com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptions.getDefaultInstance()) {
+ getRefreshOptionsBuilder().mergeFrom(value);
+ } else {
+ refreshOptions_ = value;
+ }
+ } else {
+ refreshOptionsBuilder_.mergeFrom(value);
+ }
+ if (refreshOptions_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearRefreshOptions() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ refreshOptions_ = null;
+ if (refreshOptionsBuilder_ != null) {
+ refreshOptionsBuilder_.dispose();
+ refreshOptionsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ .Builder
+ getRefreshOptionsBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return internalGetRefreshOptionsFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptionsOrBuilder
+ getRefreshOptionsOrBuilder() {
+ if (refreshOptionsBuilder_ != null) {
+ return refreshOptionsBuilder_.getMessageOrBuilder();
+ } else {
+ return refreshOptions_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ .getDefaultInstance()
+ : refreshOptions_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Refresh configuration.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions refresh_options = 3 [json_name = "refresh-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptionsOrBuilder>
+ internalGetRefreshOptionsFieldBuilder() {
+ if (refreshOptionsBuilder_ == null) {
+ refreshOptionsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshOptions
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshOptionsOrBuilder>(
+ getRefreshOptions(), getParentForChildren(), isClean());
+ refreshOptions_ = null;
+ }
+ return refreshOptionsBuilder_;
+ }
+
+ private com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ refreshStatus_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshStatusOrBuilder>
+ refreshStatusBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the refreshStatus field is set.
+ */
+ public boolean hasRefreshStatus() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The refreshStatus.
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ getRefreshStatus() {
+ if (refreshStatusBuilder_ == null) {
+ return refreshStatus_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ .getDefaultInstance()
+ : refreshStatus_;
+ } else {
+ return refreshStatusBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setRefreshStatus(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus value) {
+ if (refreshStatusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ refreshStatus_ = value;
+ } else {
+ refreshStatusBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setRefreshStatus(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus.Builder
+ builderForValue) {
+ if (refreshStatusBuilder_ == null) {
+ refreshStatus_ = builderForValue.build();
+ } else {
+ refreshStatusBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeRefreshStatus(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus value) {
+ if (refreshStatusBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && refreshStatus_ != null
+ && refreshStatus_
+ != com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshStatus.getDefaultInstance()) {
+ getRefreshStatusBuilder().mergeFrom(value);
+ } else {
+ refreshStatus_ = value;
+ }
+ } else {
+ refreshStatusBuilder_.mergeFrom(value);
+ }
+ if (refreshStatus_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearRefreshStatus() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ refreshStatus_ = null;
+ if (refreshStatusBuilder_ != null) {
+ refreshStatusBuilder_.dispose();
+ refreshStatusBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ .Builder
+ getRefreshStatusBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return internalGetRefreshStatusFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshStatusOrBuilder
+ getRefreshStatusOrBuilder() {
+ if (refreshStatusBuilder_ != null) {
+ return refreshStatusBuilder_.getMessageOrBuilder();
+ } else {
+ return refreshStatus_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ .getDefaultInstance()
+ : refreshStatus_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The status of the background refresh operations.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus refresh_status = 6 [json_name = "refresh-status", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshStatusOrBuilder>
+ internalGetRefreshStatusFieldBuilder() {
+ if (refreshStatusBuilder_ == null) {
+ refreshStatusBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshStatus
+ .Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .RefreshStatusOrBuilder>(
+ getRefreshStatus(), getParentForChildren(), isClean());
+ refreshStatus_ = null;
+ }
+ return refreshStatusBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions)
+ private static final com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions();
+ }
+
+ public static com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * 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. For
+ * federated catalogs, the service account will be always provisioned and will
+ * be used to access the remote Iceberg REST Catalog using access to Secret
+ * Manager secret or identity federation.
+ *
+ *
+ *
+ * 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. For
+ * federated catalogs, the service account will be always provisioned and will
+ * be used to access the remote Iceberg REST Catalog using access to Secret
+ * Manager secret or identity federation.
+ *
+ *
+ *
+ * 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 BIGLAKE_SERVICE_ACCOUNT_UNIQUE_ID_FIELD_NUMBER = 14;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object biglakeServiceAccountUniqueId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The unique ID of the service account. This is used for
+ * federation scenarios.
+ *
+ *
+ *
+ * string biglake_service_account_unique_id = 14 [json_name = "biglake-service-account-id", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The biglakeServiceAccountUniqueId.
+ */
+ @java.lang.Override
+ public java.lang.String getBiglakeServiceAccountUniqueId() {
+ java.lang.Object ref = biglakeServiceAccountUniqueId_;
+ 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();
+ biglakeServiceAccountUniqueId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The unique ID of the service account. This is used for
+ * federation scenarios.
+ *
+ *
+ *
+ * string biglake_service_account_unique_id = 14 [json_name = "biglake-service-account-id", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for biglakeServiceAccountUniqueId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBiglakeServiceAccountUniqueIdBytes() {
+ java.lang.Object ref = biglakeServiceAccountUniqueId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ biglakeServiceAccountUniqueId_ = 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 storage location for the catalog, e.g.,
+ * `gs://my-bucket`. For Google Cloud Storage bucket catalogs, this is output
+ * only.
+ *
+ * For BigLake catalogs, this field must be provided and point to a
+ * Google Cloud Storage bucket or a path within that bucket. This path serves
+ * as the base directory for constructing the full path to a table's data and
+ * metadata directories when a location is not specified at the namespace or
+ * table level. The full path is formed by appending the namespace and table
+ * identifiers to the default location.
+ *
+ *
+ *
+ * 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 storage location for the catalog, e.g.,
+ * `gs://my-bucket`. For Google Cloud Storage bucket catalogs, this is output
+ * only.
+ *
+ * For BigLake catalogs, this field must be provided and point to a
+ * Google Cloud Storage bucket or a path within that bucket. This path serves
+ * as the base directory for constructing the full path to a table's data and
+ * metadata directories when a location is not specified at the namespace or
+ * table level. The full path is formed by appending the namespace and table
+ * identifiers to the default location.
+ *
+ *
+ *
+ * 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 STORAGE_REGIONS_FIELD_NUMBER = 10;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList storageRegions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ *
+ *
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return A list containing the storageRegions.
+ */
+ public com.google.protobuf.ProtocolStringList getStorageRegionsList() {
+ return storageRegions_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The count of storageRegions.
+ */
+ public int getStorageRegionsCount() {
+ return storageRegions_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The storageRegions at the given index.
+ */
+ public java.lang.String getStorageRegions(int index) {
+ return storageRegions_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the storageRegions at the given index.
+ */
+ public com.google.protobuf.ByteString getStorageRegionsBytes(int index) {
+ return storageRegions_.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_;
+ }
+
+ public static final int REPLICAS_FIELD_NUMBER = 9;
+
+ @SuppressWarnings("serial")
+ private java.util.List
+ * Output only. The replicas for the catalog metadata.
+ *
+ *
+ *
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * Output only. The replicas for the catalog metadata.
+ *
+ *
+ *
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.biglake.v1.IcebergCatalog.ReplicaOrBuilder>
+ getReplicasOrBuilderList() {
+ return replicas_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The replicas for the catalog metadata.
+ *
+ *
+ *
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getReplicasCount() {
+ return replicas_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The replicas for the catalog metadata.
+ *
+ *
+ *
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.Replica getReplicas(int index) {
+ return replicas_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The replicas for the catalog metadata.
+ *
+ *
+ *
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.ReplicaOrBuilder getReplicasOrBuilder(
+ int index) {
+ return replicas_.get(index);
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 12;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object description_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. A user-provided description of the catalog. The description must
+ * be a UTF-8 string with a maximum length of 1024 characters.
+ *
+ *
+ * string description = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ 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();
+ description_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A user-provided description of the catalog. The description must
+ * be a UTF-8 string with a maximum length of 1024 characters.
+ *
+ *
+ * string description = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RESTRICTED_LOCATIONS_CONFIG_FIELD_NUMBER = 15;
+ private com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig
+ restrictedLocationsConfig_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the restrictedLocationsConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasRestrictedLocationsConfig() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The restrictedLocationsConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig
+ getRestrictedLocationsConfig() {
+ return restrictedLocationsConfig_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig.getDefaultInstance()
+ : restrictedLocationsConfig_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfigOrBuilder
+ getRestrictedLocationsConfigOrBuilder() {
+ return restrictedLocationsConfig_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig.getDefaultInstance()
+ : restrictedLocationsConfig_;
+ }
+
+ public static final int FEDERATED_CATALOG_OPTIONS_FIELD_NUMBER = 13;
+ private com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ federatedCatalogOptions_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration options for federated catalogs.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the federatedCatalogOptions field is set.
+ */
+ @java.lang.Override
+ public boolean hasFederatedCatalogOptions() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration options for federated catalogs.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The federatedCatalogOptions.
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ getFederatedCatalogOptions() {
+ return federatedCatalogOptions_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.getDefaultInstance()
+ : federatedCatalogOptions_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration options for federated catalogs.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptionsOrBuilder
+ getFederatedCatalogOptionsOrBuilder() {
+ return federatedCatalogOptions_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.getDefaultInstance()
+ : federatedCatalogOptions_;
+ }
+
+ 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.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(biglakeServiceAccount_)) {
+ com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(defaultLocation_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, defaultLocation_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(7, getCreateTime());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(8, getUpdateTime());
+ }
+ for (int i = 0; i < replicas_.size(); i++) {
+ output.writeMessage(9, replicas_.get(i));
+ }
+ for (int i = 0; i < storageRegions_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 10, storageRegions_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 12, description_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(13, getFederatedCatalogOptions());
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(biglakeServiceAccountUniqueId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 14, biglakeServiceAccountUniqueId_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(15, getRestrictedLocationsConfig());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(biglakeServiceAccount_)) {
+ size += com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(defaultLocation_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, defaultLocation_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime());
+ }
+ for (int i = 0; i < replicas_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, replicas_.get(i));
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < storageRegions_.size(); i++) {
+ dataSize += computeStringSizeNoTag(storageRegions_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getStorageRegionsList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(12, description_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 13, getFederatedCatalogOptions());
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(biglakeServiceAccountUniqueId_)) {
+ size +=
+ com.google.protobuf.GeneratedMessage.computeStringSize(
+ 14, biglakeServiceAccountUniqueId_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 15, getRestrictedLocationsConfig());
+ }
+ 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 (!getBiglakeServiceAccountUniqueId().equals(other.getBiglakeServiceAccountUniqueId()))
+ return false;
+ if (catalogType_ != other.catalogType_) return false;
+ if (!getDefaultLocation().equals(other.getDefaultLocation())) return false;
+ if (!getStorageRegionsList().equals(other.getStorageRegionsList())) 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 (!getReplicasList().equals(other.getReplicasList())) return false;
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (hasRestrictedLocationsConfig() != other.hasRestrictedLocationsConfig()) return false;
+ if (hasRestrictedLocationsConfig()) {
+ if (!getRestrictedLocationsConfig().equals(other.getRestrictedLocationsConfig()))
+ return false;
+ }
+ if (hasFederatedCatalogOptions() != other.hasFederatedCatalogOptions()) return false;
+ if (hasFederatedCatalogOptions()) {
+ if (!getFederatedCatalogOptions().equals(other.getFederatedCatalogOptions())) 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) + BIGLAKE_SERVICE_ACCOUNT_UNIQUE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getBiglakeServiceAccountUniqueId().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 (getStorageRegionsCount() > 0) {
+ hash = (37 * hash) + STORAGE_REGIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getStorageRegionsList().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();
+ }
+ if (getReplicasCount() > 0) {
+ hash = (37 * hash) + REPLICAS_FIELD_NUMBER;
+ hash = (53 * hash) + getReplicasList().hashCode();
+ }
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ if (hasRestrictedLocationsConfig()) {
+ hash = (37 * hash) + RESTRICTED_LOCATIONS_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getRestrictedLocationsConfig().hashCode();
+ }
+ if (hasFederatedCatalogOptions()) {
+ hash = (37 * hash) + FEDERATED_CATALOG_OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getFederatedCatalogOptions().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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.Builder
+ * 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. For
+ * federated catalogs, the service account will be always provisioned and will
+ * be used to access the remote Iceberg REST Catalog using access to Secret
+ * Manager secret or identity federation.
+ *
+ *
+ *
+ * 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. For
+ * federated catalogs, the service account will be always provisioned and will
+ * be used to access the remote Iceberg REST Catalog using access to Secret
+ * Manager secret or identity federation.
+ *
+ *
+ *
+ * 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. For
+ * federated catalogs, the service account will be always provisioned and will
+ * be used to access the remote Iceberg REST Catalog using access to Secret
+ * Manager secret or identity federation.
+ *
+ *
+ *
+ * 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. For
+ * federated catalogs, the service account will be always provisioned and will
+ * be used to access the remote Iceberg REST Catalog using access to Secret
+ * Manager secret or identity federation.
+ *
+ *
+ *
+ * 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. For
+ * federated catalogs, the service account will be always provisioned and will
+ * be used to access the remote Iceberg REST Catalog using access to Secret
+ * Manager secret or identity federation.
+ *
+ *
+ *
+ * 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 java.lang.Object biglakeServiceAccountUniqueId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The unique ID of the service account. This is used for
+ * federation scenarios.
+ *
+ *
+ *
+ * string biglake_service_account_unique_id = 14 [json_name = "biglake-service-account-id", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The biglakeServiceAccountUniqueId.
+ */
+ public java.lang.String getBiglakeServiceAccountUniqueId() {
+ java.lang.Object ref = biglakeServiceAccountUniqueId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ biglakeServiceAccountUniqueId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The unique ID of the service account. This is used for
+ * federation scenarios.
+ *
+ *
+ *
+ * string biglake_service_account_unique_id = 14 [json_name = "biglake-service-account-id", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for biglakeServiceAccountUniqueId.
+ */
+ public com.google.protobuf.ByteString getBiglakeServiceAccountUniqueIdBytes() {
+ java.lang.Object ref = biglakeServiceAccountUniqueId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ biglakeServiceAccountUniqueId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The unique ID of the service account. This is used for
+ * federation scenarios.
+ *
+ *
+ *
+ * string biglake_service_account_unique_id = 14 [json_name = "biglake-service-account-id", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The biglakeServiceAccountUniqueId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBiglakeServiceAccountUniqueId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ biglakeServiceAccountUniqueId_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The unique ID of the service account. This is used for
+ * federation scenarios.
+ *
+ *
+ *
+ * string biglake_service_account_unique_id = 14 [json_name = "biglake-service-account-id", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBiglakeServiceAccountUniqueId() {
+ biglakeServiceAccountUniqueId_ = getDefaultInstance().getBiglakeServiceAccountUniqueId();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The unique ID of the service account. This is used for
+ * federation scenarios.
+ *
+ *
+ *
+ * string biglake_service_account_unique_id = 14 [json_name = "biglake-service-account-id", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes for biglakeServiceAccountUniqueId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBiglakeServiceAccountUniqueIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ biglakeServiceAccountUniqueId_ = value;
+ bitField0_ |= 0x00000008;
+ 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_ |= 0x00000010;
+ 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_ |= 0x00000010;
+ 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_ & ~0x00000010);
+ catalogType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object defaultLocation_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The default storage location for the catalog, e.g.,
+ * `gs://my-bucket`. For Google Cloud Storage bucket catalogs, this is output
+ * only.
+ *
+ * For BigLake catalogs, this field must be provided and point to a
+ * Google Cloud Storage bucket or a path within that bucket. This path serves
+ * as the base directory for constructing the full path to a table's data and
+ * metadata directories when a location is not specified at the namespace or
+ * table level. The full path is formed by appending the namespace and table
+ * identifiers to the default location.
+ *
+ *
+ *
+ * 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 storage location for the catalog, e.g.,
+ * `gs://my-bucket`. For Google Cloud Storage bucket catalogs, this is output
+ * only.
+ *
+ * For BigLake catalogs, this field must be provided and point to a
+ * Google Cloud Storage bucket or a path within that bucket. This path serves
+ * as the base directory for constructing the full path to a table's data and
+ * metadata directories when a location is not specified at the namespace or
+ * table level. The full path is formed by appending the namespace and table
+ * identifiers to the default location.
+ *
+ *
+ *
+ * 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 storage location for the catalog, e.g.,
+ * `gs://my-bucket`. For Google Cloud Storage bucket catalogs, this is output
+ * only.
+ *
+ * For BigLake catalogs, this field must be provided and point to a
+ * Google Cloud Storage bucket or a path within that bucket. This path serves
+ * as the base directory for constructing the full path to a table's data and
+ * metadata directories when a location is not specified at the namespace or
+ * table level. The full path is formed by appending the namespace and table
+ * identifiers to the default location.
+ *
+ *
+ *
+ * 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_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The default storage location for the catalog, e.g.,
+ * `gs://my-bucket`. For Google Cloud Storage bucket catalogs, this is output
+ * only.
+ *
+ * For BigLake catalogs, this field must be provided and point to a
+ * Google Cloud Storage bucket or a path within that bucket. This path serves
+ * as the base directory for constructing the full path to a table's data and
+ * metadata directories when a location is not specified at the namespace or
+ * table level. The full path is formed by appending the namespace and table
+ * identifiers to the default location.
+ *
+ *
+ *
+ * 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_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The default storage location for the catalog, e.g.,
+ * `gs://my-bucket`. For Google Cloud Storage bucket catalogs, this is output
+ * only.
+ *
+ * For BigLake catalogs, this field must be provided and point to a
+ * Google Cloud Storage bucket or a path within that bucket. This path serves
+ * as the base directory for constructing the full path to a table's data and
+ * metadata directories when a location is not specified at the namespace or
+ * table level. The full path is formed by appending the namespace and table
+ * identifiers to the default location.
+ *
+ *
+ *
+ * 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_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList storageRegions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureStorageRegionsIsMutable() {
+ if (!storageRegions_.isModifiable()) {
+ storageRegions_ = new com.google.protobuf.LazyStringArrayList(storageRegions_);
+ }
+ bitField0_ |= 0x00000040;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return A list containing the storageRegions.
+ */
+ public com.google.protobuf.ProtocolStringList getStorageRegionsList() {
+ storageRegions_.makeImmutable();
+ return storageRegions_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The count of storageRegions.
+ */
+ public int getStorageRegionsCount() {
+ return storageRegions_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The storageRegions at the given index.
+ */
+ public java.lang.String getStorageRegions(int index) {
+ return storageRegions_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the storageRegions at the given index.
+ */
+ public com.google.protobuf.ByteString getStorageRegionsBytes(int index) {
+ return storageRegions_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The storageRegions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStorageRegions(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStorageRegionsIsMutable();
+ storageRegions_.set(index, value);
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The storageRegions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addStorageRegions(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStorageRegionsIsMutable();
+ storageRegions_.add(value);
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param values The storageRegions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllStorageRegions(java.lang.Iterable
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStorageRegions() {
+ storageRegions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
+ *
+ *
+ *
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes of the storageRegions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addStorageRegionsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureStorageRegionsIsMutable();
+ storageRegions_.add(value);
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp createTime_;
+ private com.google.protobuf.SingleFieldBuilder<
+ 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_ & 0x00000080) != 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_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
/**
*
*
*
- * Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
- * This field is immutable.
- * This field is ignored for CreateIcebergCatalog.
+ * Output only. When the catalog was created.
*
*
- * string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
- *
- * @return The name.
+ *
+ * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- 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;
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
} else {
- return (java.lang.String) ref;
+ createTimeBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
}
/**
*
*
*
- * Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
- * This field is immutable.
- * This field is ignored for CreateIcebergCatalog.
+ * Output only. When the catalog was created.
*
*
- * string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
- *
- * @return The bytes for name.
+ *
+ * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- 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;
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)
+ && createTime_ != null
+ && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getCreateTimeBuilder().mergeFrom(value);
+ } else {
+ createTime_ = value;
+ }
} else {
- return (com.google.protobuf.ByteString) ref;
+ createTimeBuilder_.mergeFrom(value);
+ }
+ if (createTime_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
}
+ return this;
}
/**
*
*
*
- * Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
- * This field is immutable.
- * This field is ignored for CreateIcebergCatalog.
+ * Output only. When the catalog was created.
*
*
- * string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
- *
- * @param value The name to set.
- * @return This builder for chaining.
+ *
+ * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder setName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder clearCreateTime() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
+ createTimeBuilder_ = null;
}
- name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1475,84 +15261,136 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
- * This field is immutable.
- * This field is ignored for CreateIcebergCatalog.
+ * Output only. When the catalog was created.
*
*
- * string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
- *
- * @return This builder for chaining.
+ *
+ * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder clearName() {
- name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000001);
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+ bitField0_ |= 0x00000080;
onChanged();
- return this;
+ return internalGetCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
- * Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
- * This field is immutable.
- * This field is ignored for CreateIcebergCatalog.
+ * Output only. When the catalog was created.
*
*
- * string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ *
+ * .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_;
+ }
+ }
+
+ /**
*
- * @param value The bytes for name to set.
- * @return This builder for chaining.
+ *
+ *
+ * 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 setNameBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ internalGetCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
}
- checkByteStringIsUtf8(value);
- name_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
+ return createTimeBuilder_;
}
- private int credentialMode_ = 0;
+ private com.google.protobuf.Timestamp updateTime_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ updateTimeBuilder_;
/**
*
*
*
- * Optional. The credential mode for the catalog.
+ * Output only. When the catalog was last updated.
*
*
*
- * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL];
+ * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
*
*
- * @return The enum numeric value on the wire for credentialMode.
+ * @return Whether the updateTime field is set.
*/
- @java.lang.Override
- public int getCredentialModeValue() {
- return credentialMode_;
+ public boolean hasUpdateTime() {
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*
*
- * Optional. The credential mode for the catalog.
+ * Output only. When the catalog was last updated.
*
*
*
- * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL];
+ * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
*
*
- * @param value The enum numeric value on the wire for credentialMode to set.
- * @return This builder for chaining.
+ * @return The updateTime.
*/
- public Builder setCredentialModeValue(int value) {
- credentialMode_ = value;
- bitField0_ |= 0x00000002;
+ 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_ |= 0x00000100;
onChanged();
return this;
}
@@ -1561,45 +15399,72 @@ public Builder setCredentialModeValue(int value) {
*
*
*
- * Optional. The credential mode for the catalog.
+ * Output only. When the catalog was last updated.
*
*
*
- * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL];
+ * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @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 Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = builderForValue.build();
+ } else {
+ updateTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000100;
+ 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_ & 0x00000100) != 0)
+ && updateTime_ != null
+ && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getUpdateTimeBuilder().mergeFrom(value);
+ } else {
+ updateTime_ = value;
+ }
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+ if (updateTime_ != null) {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
+ return this;
}
/**
*
*
*
- * Optional. The credential mode for the catalog.
+ * Output only. When the catalog was last updated.
*
*
*
- * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL];
+ * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @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();
+ public Builder clearUpdateTime() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ updateTime_ = null;
+ if (updateTimeBuilder_ != null) {
+ updateTimeBuilder_.dispose();
+ updateTimeBuilder_ = null;
}
- bitField0_ |= 0x00000002;
- credentialMode_ = value.getNumber();
onChanged();
return this;
}
@@ -1608,47 +15473,37 @@ public Builder setCredentialMode(
*
*
*
- * Optional. The credential mode for the catalog.
+ * Output only. When the catalog was last updated.
*
*
*
- * .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL];
+ * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return This builder for chaining.
*/
- public Builder clearCredentialMode() {
- bitField0_ = (bitField0_ & ~0x00000002);
- credentialMode_ = 0;
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+ bitField0_ |= 0x00000100;
onChanged();
- return this;
+ return internalGetUpdateTimeFieldBuilder().getBuilder();
}
- 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.
+ * Output only. When the catalog was last updated.
*
*
*
- * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.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;
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ if (updateTimeBuilder_ != null) {
+ return updateTimeBuilder_.getMessageOrBuilder();
} else {
- return (java.lang.String) ref;
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
}
}
@@ -1656,138 +15511,150 @@ public 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.
+ * Output only. When the catalog was last updated.
*
*
*
- * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.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;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ internalGetUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(), getParentForChildren(), isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+
+ private java.util.List
- * Output only. The service account used for credential vending, output only.
- * Might be empty if Credential vending was never enabled for the catalog.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.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();
+ public java.util.List
- * Output only. The service account used for credential vending, output only.
- * Might be empty if Credential vending was never enabled for the catalog.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return This builder for chaining.
*/
- public Builder clearBiglakeServiceAccount() {
- biglakeServiceAccount_ = getDefaultInstance().getBiglakeServiceAccount();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
+ public int getReplicasCount() {
+ if (replicasBuilder_ == null) {
+ return replicas_.size();
+ } else {
+ return replicasBuilder_.getCount();
+ }
}
/**
*
*
*
- * Output only. The service account used for credential vending, output only.
- * Might be empty if Credential vending was never enabled for the catalog.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.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();
+ public com.google.cloud.biglake.v1.IcebergCatalog.Replica getReplicas(int index) {
+ if (replicasBuilder_ == null) {
+ return replicas_.get(index);
+ } else {
+ return replicasBuilder_.getMessage(index);
}
- checkByteStringIsUtf8(value);
- biglakeServiceAccount_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
}
- private int catalogType_ = 0;
-
/**
*
*
*
- * Required. The catalog type. Required for CreateIcebergCatalog.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return The enum numeric value on the wire for catalogType.
*/
- @java.lang.Override
- public int getCatalogTypeValue() {
- return catalogType_;
+ public Builder setReplicas(
+ int index, com.google.cloud.biglake.v1.IcebergCatalog.Replica value) {
+ if (replicasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReplicasIsMutable();
+ replicas_.set(index, value);
+ onChanged();
+ } else {
+ replicasBuilder_.setMessage(index, value);
+ }
+ return this;
}
/**
*
*
*
- * Required. The catalog type. Required for CreateIcebergCatalog.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @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();
+ public Builder setReplicas(
+ int index, com.google.cloud.biglake.v1.IcebergCatalog.Replica.Builder builderForValue) {
+ if (replicasBuilder_ == null) {
+ ensureReplicasIsMutable();
+ replicas_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ replicasBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
@@ -1795,45 +15662,50 @@ public Builder setCatalogTypeValue(int value) {
*
*
*
- * Required. The catalog type. Required for CreateIcebergCatalog.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @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 Builder addReplicas(com.google.cloud.biglake.v1.IcebergCatalog.Replica value) {
+ if (replicasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReplicasIsMutable();
+ replicas_.add(value);
+ onChanged();
+ } else {
+ replicasBuilder_.addMessage(value);
+ }
+ return this;
}
/**
*
*
*
- * Required. The catalog type. Required for CreateIcebergCatalog.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @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();
+ public Builder addReplicas(
+ int index, com.google.cloud.biglake.v1.IcebergCatalog.Replica value) {
+ if (replicasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReplicasIsMutable();
+ replicas_.add(index, value);
+ onChanged();
+ } else {
+ replicasBuilder_.addMessage(index, value);
}
- bitField0_ |= 0x00000008;
- catalogType_ = value.getNumber();
- onChanged();
return this;
}
@@ -1841,98 +15713,90 @@ public Builder setCatalogType(com.google.cloud.biglake.v1.IcebergCatalog.Catalog
*
*
*
- * Required. The catalog type. Required for CreateIcebergCatalog.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return This builder for chaining.
*/
- public Builder clearCatalogType() {
- bitField0_ = (bitField0_ & ~0x00000008);
- catalogType_ = 0;
- onChanged();
+ public Builder addReplicas(
+ com.google.cloud.biglake.v1.IcebergCatalog.Replica.Builder builderForValue) {
+ if (replicasBuilder_ == null) {
+ ensureReplicasIsMutable();
+ replicas_.add(builderForValue.build());
+ onChanged();
+ } else {
+ replicasBuilder_.addMessage(builderForValue.build());
+ }
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.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @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;
+ public Builder addReplicas(
+ int index, com.google.cloud.biglake.v1.IcebergCatalog.Replica.Builder builderForValue) {
+ if (replicasBuilder_ == null) {
+ ensureReplicasIsMutable();
+ replicas_.add(index, builderForValue.build());
+ onChanged();
} else {
- return (java.lang.String) ref;
+ replicasBuilder_.addMessage(index, builderForValue.build());
}
+ return this;
}
/**
*
*
*
- * Optional. The default location for the catalog. For the Google Cloud
- * Storage Bucket catalog this is output only.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @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;
+ public Builder addAllReplicas(
+ java.lang.Iterable extends com.google.cloud.biglake.v1.IcebergCatalog.Replica> values) {
+ if (replicasBuilder_ == null) {
+ ensureReplicasIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicas_);
+ onChanged();
} else {
- return (com.google.protobuf.ByteString) ref;
+ replicasBuilder_.addAllMessages(values);
}
+ return this;
}
/**
*
*
*
- * Optional. The default location for the catalog. For the Google Cloud
- * Storage Bucket catalog this is output only.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @param value The defaultLocation to set.
- * @return This builder for chaining.
*/
- public Builder setDefaultLocation(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder clearReplicas() {
+ if (replicasBuilder_ == null) {
+ replicas_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000200);
+ onChanged();
+ } else {
+ replicasBuilder_.clear();
}
- defaultLocation_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
return this;
}
@@ -1940,20 +15804,21 @@ public Builder setDefaultLocation(java.lang.String value) {
*
*
*
- * Optional. The default location for the catalog. For the Google Cloud
- * Storage Bucket catalog this is output only.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return This builder for chaining.
*/
- public Builder clearDefaultLocation() {
- defaultLocation_ = getDefaultInstance().getDefaultLocation();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
+ public Builder removeReplicas(int index) {
+ if (replicasBuilder_ == null) {
+ ensureReplicasIsMutable();
+ replicas_.remove(index);
+ onChanged();
+ } else {
+ replicasBuilder_.remove(index);
+ }
return this;
}
@@ -1961,192 +15826,194 @@ public Builder clearDefaultLocation() {
*
*
*
- * Optional. The default location for the catalog. For the Google Cloud
- * Storage Bucket catalog this is output only.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @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;
+ public com.google.cloud.biglake.v1.IcebergCatalog.Replica.Builder getReplicasBuilder(
+ int index) {
+ return internalGetReplicasFieldBuilder().getBuilder(index);
}
- private com.google.protobuf.LazyStringArrayList catalogRegions_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
-
- private void ensureCatalogRegionsIsMutable() {
- if (!catalogRegions_.isModifiable()) {
- catalogRegions_ = new com.google.protobuf.LazyStringArrayList(catalogRegions_);
+ /**
+ *
+ *
+ *
+ * Output only. The replicas for the catalog metadata.
+ *
+ *
+ *
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.biglake.v1.IcebergCatalog.ReplicaOrBuilder getReplicasOrBuilder(
+ int index) {
+ if (replicasBuilder_ == null) {
+ return replicas_.get(index);
+ } else {
+ return replicasBuilder_.getMessageOrBuilder(index);
}
- 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.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return A list containing the catalogRegions.
*/
- public com.google.protobuf.ProtocolStringList getCatalogRegionsList() {
- catalogRegions_.makeImmutable();
- return catalogRegions_;
+ public java.util.List extends com.google.cloud.biglake.v1.IcebergCatalog.ReplicaOrBuilder>
+ getReplicasOrBuilderList() {
+ if (replicasBuilder_ != null) {
+ return replicasBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(replicas_);
+ }
}
/**
*
*
*
- * 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.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return The count of catalogRegions.
*/
- public int getCatalogRegionsCount() {
- return catalogRegions_.size();
+ public com.google.cloud.biglake.v1.IcebergCatalog.Replica.Builder addReplicasBuilder() {
+ return internalGetReplicasFieldBuilder()
+ .addBuilder(com.google.cloud.biglake.v1.IcebergCatalog.Replica.getDefaultInstance());
}
/**
*
*
*
- * 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.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.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);
+ public com.google.cloud.biglake.v1.IcebergCatalog.Replica.Builder addReplicasBuilder(
+ int index) {
+ return internalGetReplicasFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.biglake.v1.IcebergCatalog.Replica.getDefaultInstance());
}
/**
*
*
*
- * 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.
+ * Output only. The replicas for the catalog metadata.
*
*
*
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.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 java.util.List
- * 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.
+ * Optional. A user-provided description of the catalog. The description must
+ * be a UTF-8 string with a maximum length of 1024 characters.
*
*
- *
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * string description = 12 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param index The index to set the value at.
- * @param value The catalogRegions to set.
- * @return This builder for chaining.
+ * @return The description.
*/
- public Builder setCatalogRegions(int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
}
- 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.
+ * Optional. A user-provided description of the catalog. The description must
+ * be a UTF-8 string with a maximum length of 1024 characters.
*
*
- *
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * string description = 12 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param value The catalogRegions to add.
- * @return This builder for chaining.
+ * @return The bytes for description.
*/
- public Builder addCatalogRegions(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- 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.
+ * Optional. A user-provided description of the catalog. The description must
+ * be a UTF-8 string with a maximum length of 1024 characters.
*
*
- *
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * string description = 12 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param values The catalogRegions to add.
+ * @param value The description to set.
* @return This builder for chaining.
*/
- public Builder addAllCatalogRegions(java.lang.Iterable
- * 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.
+ * Optional. A user-provided description of the catalog. The description must
+ * be a UTF-8 string with a maximum length of 1024 characters.
*
*
- *
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * string description = 12 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
- public Builder clearCatalogRegions() {
- catalogRegions_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- ;
+ public Builder clearDescription() {
+ description_ = getDefaultInstance().getDescription();
+ bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
@@ -2178,74 +16041,89 @@ public Builder clearCatalogRegions() {
*
*
*
- * 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.
+ * Optional. A user-provided description of the catalog. The description must
+ * be a UTF-8 string with a maximum length of 1024 characters.
*
*
- *
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * string description = 12 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param value The bytes of the catalogRegions to add.
+ * @param value The bytes for description to set.
* @return This builder for chaining.
*/
- public Builder addCatalogRegionsBytes(com.google.protobuf.ByteString value) {
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- ensureCatalogRegionsIsMutable();
- catalogRegions_.add(value);
- bitField0_ |= 0x00000020;
+ description_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
- private com.google.protobuf.Timestamp createTime_;
+ private com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig
+ restrictedLocationsConfig_;
private com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- createTimeBuilder_;
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig,
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig.Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfigOrBuilder>
+ restrictedLocationsConfigBuilder_;
/**
*
*
*
- * Output only. When the catalog was created.
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
*
*
*
- * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
*
*
- * @return Whether the createTime field is set.
+ * @return Whether the restrictedLocationsConfig field is set.
*/
- public boolean hasCreateTime() {
- return ((bitField0_ & 0x00000040) != 0);
+ public boolean hasRestrictedLocationsConfig() {
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
*
*
*
- * Output only. When the catalog was created.
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
*
*
*
- * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
*
*
- * @return The createTime.
+ * @return The restrictedLocationsConfig.
*/
- public com.google.protobuf.Timestamp getCreateTime() {
- if (createTimeBuilder_ == null) {
- return createTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : createTime_;
+ public com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig
+ getRestrictedLocationsConfig() {
+ if (restrictedLocationsConfigBuilder_ == null) {
+ return restrictedLocationsConfig_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig
+ .getDefaultInstance()
+ : restrictedLocationsConfig_;
} else {
- return createTimeBuilder_.getMessage();
+ return restrictedLocationsConfigBuilder_.getMessage();
}
}
@@ -2253,23 +16131,32 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * Output only. When the catalog was created.
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
*
*
*
- * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
*
*/
- public Builder setCreateTime(com.google.protobuf.Timestamp value) {
- if (createTimeBuilder_ == null) {
+ public Builder setRestrictedLocationsConfig(
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig value) {
+ if (restrictedLocationsConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- createTime_ = value;
+ restrictedLocationsConfig_ = value;
} else {
- createTimeBuilder_.setMessage(value);
+ restrictedLocationsConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -2278,20 +16165,30 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Output only. When the catalog was created.
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
*
*
*
- * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
*
*/
- public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
- if (createTimeBuilder_ == null) {
- createTime_ = builderForValue.build();
+ public Builder setRestrictedLocationsConfig(
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig.Builder
+ builderForValue) {
+ if (restrictedLocationsConfigBuilder_ == null) {
+ restrictedLocationsConfig_ = builderForValue.build();
} else {
- createTimeBuilder_.setMessage(builderForValue.build());
+ restrictedLocationsConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -2300,27 +16197,38 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * Output only. When the catalog was created.
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
*
*
*
- * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
*
*/
- 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);
+ public Builder mergeRestrictedLocationsConfig(
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig value) {
+ if (restrictedLocationsConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000800) != 0)
+ && restrictedLocationsConfig_ != null
+ && restrictedLocationsConfig_
+ != com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig
+ .getDefaultInstance()) {
+ getRestrictedLocationsConfigBuilder().mergeFrom(value);
} else {
- createTime_ = value;
+ restrictedLocationsConfig_ = value;
}
} else {
- createTimeBuilder_.mergeFrom(value);
+ restrictedLocationsConfigBuilder_.mergeFrom(value);
}
- if (createTime_ != null) {
- bitField0_ |= 0x00000040;
+ if (restrictedLocationsConfig_ != null) {
+ bitField0_ |= 0x00000800;
onChanged();
}
return this;
@@ -2330,19 +16238,27 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Output only. When the catalog was created.
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
*
*
*
- * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
*
*/
- public Builder clearCreateTime() {
- bitField0_ = (bitField0_ & ~0x00000040);
- createTime_ = null;
- if (createTimeBuilder_ != null) {
- createTimeBuilder_.dispose();
- createTimeBuilder_ = null;
+ public Builder clearRestrictedLocationsConfig() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ restrictedLocationsConfig_ = null;
+ if (restrictedLocationsConfigBuilder_ != null) {
+ restrictedLocationsConfigBuilder_.dispose();
+ restrictedLocationsConfigBuilder_ = null;
}
onChanged();
return this;
@@ -2352,37 +16268,56 @@ public Builder clearCreateTime() {
*
*
*
- * Output only. When the catalog was created.
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
*
*
*
- * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
*
*/
- public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
- bitField0_ |= 0x00000040;
+ public com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig.Builder
+ getRestrictedLocationsConfigBuilder() {
+ bitField0_ |= 0x00000800;
onChanged();
- return internalGetCreateTimeFieldBuilder().getBuilder();
+ return internalGetRestrictedLocationsConfigFieldBuilder().getBuilder();
}
/**
*
*
*
- * Output only. When the catalog was created.
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
*
*
*
- * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
*
*/
- public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
- if (createTimeBuilder_ != null) {
- return createTimeBuilder_.getMessageOrBuilder();
+ public com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfigOrBuilder
+ getRestrictedLocationsConfigOrBuilder() {
+ if (restrictedLocationsConfigBuilder_ != null) {
+ return restrictedLocationsConfigBuilder_.getMessageOrBuilder();
} else {
- return createTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : createTime_;
+ return restrictedLocationsConfig_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig
+ .getDefaultInstance()
+ : restrictedLocationsConfig_;
}
}
@@ -2390,74 +16325,85 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Output only. When the catalog was created.
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
*
*
*
- * .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- internalGetCreateTimeFieldBuilder() {
- if (createTimeBuilder_ == null) {
- createTimeBuilder_ =
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig,
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig.Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfigOrBuilder>
+ internalGetRestrictedLocationsConfigFieldBuilder() {
+ if (restrictedLocationsConfigBuilder_ == null) {
+ restrictedLocationsConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>(
- getCreateTime(), getParentForChildren(), isClean());
- createTime_ = null;
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig,
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig.Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfigOrBuilder>(
+ getRestrictedLocationsConfig(), getParentForChildren(), isClean());
+ restrictedLocationsConfig_ = null;
}
- return createTimeBuilder_;
+ return restrictedLocationsConfigBuilder_;
}
- private com.google.protobuf.Timestamp updateTime_;
+ private com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ federatedCatalogOptions_;
private com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- updateTimeBuilder_;
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptionsOrBuilder>
+ federatedCatalogOptionsBuilder_;
/**
*
*
*
- * Output only. When the catalog was last updated.
+ * Optional. Configuration options for federated catalogs.
*
*
*
- * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
*
*
- * @return Whether the updateTime field is set.
+ * @return Whether the federatedCatalogOptions field is set.
*/
- public boolean hasUpdateTime() {
- return ((bitField0_ & 0x00000080) != 0);
+ public boolean hasFederatedCatalogOptions() {
+ return ((bitField0_ & 0x00001000) != 0);
}
/**
*
*
*
- * Output only. When the catalog was last updated.
+ * Optional. Configuration options for federated catalogs.
*
*
*
- * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
*
*
- * @return The updateTime.
+ * @return The federatedCatalogOptions.
*/
- public com.google.protobuf.Timestamp getUpdateTime() {
- if (updateTimeBuilder_ == null) {
- return updateTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : updateTime_;
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ getFederatedCatalogOptions() {
+ if (federatedCatalogOptionsBuilder_ == null) {
+ return federatedCatalogOptions_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .getDefaultInstance()
+ : federatedCatalogOptions_;
} else {
- return updateTimeBuilder_.getMessage();
+ return federatedCatalogOptionsBuilder_.getMessage();
}
}
@@ -2465,23 +16411,24 @@ public com.google.protobuf.Timestamp getUpdateTime() {
*
*
*
- * Output only. When the catalog was last updated.
+ * Optional. Configuration options for federated catalogs.
*
*
*
- * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
*
*/
- public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
- if (updateTimeBuilder_ == null) {
+ public Builder setFederatedCatalogOptions(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions value) {
+ if (federatedCatalogOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- updateTime_ = value;
+ federatedCatalogOptions_ = value;
} else {
- updateTimeBuilder_.setMessage(value);
+ federatedCatalogOptionsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -2490,20 +16437,22 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Output only. When the catalog was last updated.
+ * Optional. Configuration options for federated catalogs.
*
*
*
- * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
*
*/
- public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
- if (updateTimeBuilder_ == null) {
- updateTime_ = builderForValue.build();
+ public Builder setFederatedCatalogOptions(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.Builder
+ builderForValue) {
+ if (federatedCatalogOptionsBuilder_ == null) {
+ federatedCatalogOptions_ = builderForValue.build();
} else {
- updateTimeBuilder_.setMessage(builderForValue.build());
+ federatedCatalogOptionsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -2512,27 +16461,30 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * Output only. When the catalog was last updated.
+ * Optional. Configuration options for federated catalogs.
*
*
*
- * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
*
*/
- 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);
+ public Builder mergeFederatedCatalogOptions(
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions value) {
+ if (federatedCatalogOptionsBuilder_ == null) {
+ if (((bitField0_ & 0x00001000) != 0)
+ && federatedCatalogOptions_ != null
+ && federatedCatalogOptions_
+ != com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .getDefaultInstance()) {
+ getFederatedCatalogOptionsBuilder().mergeFrom(value);
} else {
- updateTime_ = value;
+ federatedCatalogOptions_ = value;
}
} else {
- updateTimeBuilder_.mergeFrom(value);
+ federatedCatalogOptionsBuilder_.mergeFrom(value);
}
- if (updateTime_ != null) {
- bitField0_ |= 0x00000080;
+ if (federatedCatalogOptions_ != null) {
+ bitField0_ |= 0x00001000;
onChanged();
}
return this;
@@ -2542,19 +16494,19 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Output only. When the catalog was last updated.
+ * Optional. Configuration options for federated catalogs.
*
*
*
- * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
*
*/
- public Builder clearUpdateTime() {
- bitField0_ = (bitField0_ & ~0x00000080);
- updateTime_ = null;
- if (updateTimeBuilder_ != null) {
- updateTimeBuilder_.dispose();
- updateTimeBuilder_ = null;
+ public Builder clearFederatedCatalogOptions() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ federatedCatalogOptions_ = null;
+ if (federatedCatalogOptionsBuilder_ != null) {
+ federatedCatalogOptionsBuilder_.dispose();
+ federatedCatalogOptionsBuilder_ = null;
}
onChanged();
return this;
@@ -2564,37 +16516,40 @@ public Builder clearUpdateTime() {
*
*
*
- * Output only. When the catalog was last updated.
+ * Optional. Configuration options for federated catalogs.
*
*
*
- * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
*
*/
- public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
- bitField0_ |= 0x00000080;
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.Builder
+ getFederatedCatalogOptionsBuilder() {
+ bitField0_ |= 0x00001000;
onChanged();
- return internalGetUpdateTimeFieldBuilder().getBuilder();
+ return internalGetFederatedCatalogOptionsFieldBuilder().getBuilder();
}
/**
*
*
*
- * Output only. When the catalog was last updated.
+ * Optional. Configuration options for federated catalogs.
*
*
*
- * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
*
*/
- public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
- if (updateTimeBuilder_ != null) {
- return updateTimeBuilder_.getMessageOrBuilder();
+ public com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptionsOrBuilder
+ getFederatedCatalogOptionsOrBuilder() {
+ if (federatedCatalogOptionsBuilder_ != null) {
+ return federatedCatalogOptionsBuilder_.getMessageOrBuilder();
} else {
- return updateTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : updateTime_;
+ return federatedCatalogOptions_ == null
+ ? com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions
+ .getDefaultInstance()
+ : federatedCatalogOptions_;
}
}
@@ -2602,28 +16557,28 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
*
- * Output only. When the catalog was last updated.
+ * Optional. Configuration options for federated catalogs.
*
*
*
- * .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- internalGetUpdateTimeFieldBuilder() {
- if (updateTimeBuilder_ == null) {
- updateTimeBuilder_ =
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptionsOrBuilder>
+ internalGetFederatedCatalogOptionsFieldBuilder() {
+ if (federatedCatalogOptionsBuilder_ == null) {
+ federatedCatalogOptionsBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>(
- getUpdateTime(), getParentForChildren(), isClean());
- updateTime_ = null;
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.Builder,
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptionsOrBuilder>(
+ getFederatedCatalogOptions(), getParentForChildren(), isClean());
+ federatedCatalogOptions_ = null;
}
- return updateTimeBuilder_;
+ return federatedCatalogOptionsBuilder_;
}
// @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.IcebergCatalog)
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
index 588fd50e6958..7ef63a6dcd74 100644
--- 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
@@ -91,7 +91,10 @@ public interface IcebergCatalogOrBuilder
*
*
* Output only. The service account used for credential vending, output only.
- * Might be empty if Credential vending was never enabled for the catalog.
+ * Might be empty if Credential vending was never enabled for the catalog. For
+ * federated catalogs, the service account will be always provisioned and will
+ * be used to access the remote Iceberg REST Catalog using access to Secret
+ * Manager secret or identity federation.
*
*
*
@@ -107,7 +110,10 @@ public interface IcebergCatalogOrBuilder
*
*
* Output only. The service account used for credential vending, output only.
- * Might be empty if Credential vending was never enabled for the catalog.
+ * Might be empty if Credential vending was never enabled for the catalog. For
+ * federated catalogs, the service account will be always provisioned and will
+ * be used to access the remote Iceberg REST Catalog using access to Secret
+ * Manager secret or identity federation.
*
*
*
@@ -118,6 +124,38 @@ public interface IcebergCatalogOrBuilder
*/
com.google.protobuf.ByteString getBiglakeServiceAccountBytes();
+ /**
+ *
+ *
+ *
+ * Output only. The unique ID of the service account. This is used for
+ * federation scenarios.
+ *
+ *
+ *
+ * string biglake_service_account_unique_id = 14 [json_name = "biglake-service-account-id", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The biglakeServiceAccountUniqueId.
+ */
+ java.lang.String getBiglakeServiceAccountUniqueId();
+
+ /**
+ *
+ *
+ *
+ * Output only. The unique ID of the service account. This is used for
+ * federation scenarios.
+ *
+ *
+ *
+ * string biglake_service_account_unique_id = 14 [json_name = "biglake-service-account-id", (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for biglakeServiceAccountUniqueId.
+ */
+ com.google.protobuf.ByteString getBiglakeServiceAccountUniqueIdBytes();
+
/**
*
*
@@ -152,8 +190,16 @@ public interface IcebergCatalogOrBuilder
*
*
*
- * Optional. The default location for the catalog. For the Google Cloud
- * Storage Bucket catalog this is output only.
+ * Optional. The default storage location for the catalog, e.g.,
+ * `gs://my-bucket`. For Google Cloud Storage bucket catalogs, this is output
+ * only.
+ *
+ * For BigLake catalogs, this field must be provided and point to a
+ * Google Cloud Storage bucket or a path within that bucket. This path serves
+ * as the base directory for constructing the full path to a table's data and
+ * metadata directories when a location is not specified at the namespace or
+ * table level. The full path is formed by appending the namespace and table
+ * identifiers to the default location.
*
*
*
@@ -168,8 +214,16 @@ public interface IcebergCatalogOrBuilder
*
*
*
- * Optional. The default location for the catalog. For the Google Cloud
- * Storage Bucket catalog this is output only.
+ * Optional. The default storage location for the catalog, e.g.,
+ * `gs://my-bucket`. For Google Cloud Storage bucket catalogs, this is output
+ * only.
+ *
+ * For BigLake catalogs, this field must be provided and point to a
+ * Google Cloud Storage bucket or a path within that bucket. This path serves
+ * as the base directory for constructing the full path to a table's data and
+ * metadata directories when a location is not specified at the namespace or
+ * table level. The full path is formed by appending the namespace and table
+ * identifiers to the default location.
*
*
*
@@ -184,71 +238,83 @@ public interface IcebergCatalogOrBuilder
*
*
*
*/
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
- * 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.
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
*
*
*
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
*
*
- * @return A list containing the catalogRegions.
+ * @return A list containing the storageRegions.
*/
- java.util.List
- * 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.
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
*
*
*
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
*
*
- * @return The count of catalogRegions.
+ * @return The count of storageRegions.
*/
- int getCatalogRegionsCount();
+ int getStorageRegionsCount();
/**
*
*
*
- * 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.
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
*
*
*
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated string storage_regions = 10 [json_name = "storage-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the element to return.
- * @return The catalogRegions at the given index.
+ * @return The storageRegions at the given index.
*/
- java.lang.String getCatalogRegions(int index);
+ java.lang.String getStorageRegions(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.
+ * Output only. The GCP region(s) of the default location's bucket, e.g.
+ * `us-central1`, `nam4` or `us`. This will contain one value for all
+ * locations, except for the catalogs that are configured to use custom dual
+ * region buckets, in which case it will contain the two regions of the
+ * bucket. The region(s) of this field should be in the jurisdiction of or
+ * nearby the primary location of the catalog.
*
*
*
- * repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated string storage_regions = 10 [json_name = "storage-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.
+ * @return The bytes of the storageRegions at the given index.
*/
- com.google.protobuf.ByteString getCatalogRegionsBytes(int index);
+ com.google.protobuf.ByteString getStorageRegionsBytes(int index);
/**
*
@@ -335,4 +401,211 @@ public interface IcebergCatalogOrBuilder
*
+ * Output only. The replicas for the catalog metadata.
+ *
+ *
+ *
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List
+ * Output only. The replicas for the catalog metadata.
+ *
+ *
+ *
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.Replica getReplicas(int index);
+
+ /**
+ *
+ *
+ *
+ * Output only. The replicas for the catalog metadata.
+ *
+ *
+ *
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getReplicasCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. The replicas for the catalog metadata.
+ *
+ *
+ *
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.cloud.biglake.v1.IcebergCatalog.ReplicaOrBuilder>
+ getReplicasOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * Output only. The replicas for the catalog metadata.
+ *
+ *
+ *
+ * repeated .google.cloud.biglake.v1.IcebergCatalog.Replica replicas = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.ReplicaOrBuilder getReplicasOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. A user-provided description of the catalog. The description must
+ * be a UTF-8 string with a maximum length of 1024 characters.
+ *
+ *
+ * string description = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The description.
+ */
+ java.lang.String getDescription();
+
+ /**
+ *
+ *
+ *
+ * Optional. A user-provided description of the catalog. The description must
+ * be a UTF-8 string with a maximum length of 1024 characters.
+ *
+ *
+ * string description = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the restrictedLocationsConfig field is set.
+ */
+ boolean hasRestrictedLocationsConfig();
+
+ /**
+ *
+ *
+ *
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The restrictedLocationsConfig.
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig
+ getRestrictedLocationsConfig();
+
+ /**
+ *
+ *
+ *
+ * Optional. Restricted locations configuration. This field is currently only
+ * used for BigLake catalogs.
+ *
+ * If this field is unset, or if
+ * `restricted_locations_config.restricted_locations` is empty, all
+ * accessible locations are allowed. If
+ * `restricted_locations_config.restricted_locations` is not empty, only
+ * locations in `default_location` and
+ * `restricted_locations_config.restricted_locations` are allowed.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig restricted_locations_config = 15 [json_name = "restricted-locations-config", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfigOrBuilder
+ getRestrictedLocationsConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration options for federated catalogs.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the federatedCatalogOptions field is set.
+ */
+ boolean hasFederatedCatalogOptions();
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration options for federated catalogs.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The federatedCatalogOptions.
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions getFederatedCatalogOptions();
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration options for federated catalogs.
+ *
+ *
+ *
+ * .google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions federated_catalog_options = 13 [json_name = "federated-catalog-options", (.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptionsOrBuilder
+ getFederatedCatalogOptionsOrBuilder();
}
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
index 86d642eeab97..807cc5f539ce 100644
--- 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
@@ -40,14 +40,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
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.GeneratedMessage.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.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_biglake_v1_IcebergCatalog_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_Replica_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_Replica_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_RestrictedLocationsConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_RestrictedLocationsConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_UnityCatalogInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_UnityCatalogInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_GlueCatalogInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_GlueCatalogInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshSchedule_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshSchedule_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshScope_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshScope_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshOptions_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshOptions_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshStatus_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_biglake_v1_IcebergCatalog_FederatedCatalogOptions_RefreshStatus_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_biglake_v1_CreateIcebergCatalogRequest_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -96,6 +128,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_biglake_v1_CreateIcebergTableRequest_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_biglake_v1_CreateIcebergTableRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_biglake_v1_RegisterIcebergTableRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_biglake_v1_RegisterIcebergTableRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_biglake_v1_ReportIcebergTableMetricsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_biglake_v1_ReportIcebergTableMetricsRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_biglake_v1_ListIcebergTableIdentifiersRequest_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -194,51 +234,135 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "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"
+ + "proto\032\033google/api/field_info.proto\032\031goog"
+ + "le/api/httpbody.proto\032\031google/api/resour"
+ + "ce.proto\032\036google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032"
+ + " google/protobuf/field_mask.proto\032\034google/protobuf"
+ + "/struct.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\204\034\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"
+ + "\017credential_mode\030\002 \001(\01626.google.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"
+ + "\tB\003\340A\003R\027biglake-service-account\022J\n"
+ + "!biglake_service_account_unique_id\030\016 \001("
+ + "\tB\003\340A\003R\032biglake-service-account-id\022\\\n"
+ + "\014catalog_type\030\004 \001(\01623.google.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"
+ + "\017storage_regions\030\n"
+ + " \003(\tB\003\340A\003R\017storage-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"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003R\013update-time\022F\n"
+ + "\010replicas\030\t"
+ + " \003(\0132/.google.cloud.biglake.v1.IcebergCatalog.ReplicaB\003\340A\003\022\030\n"
+ + "\013description\030\014 \001(\tB\003\340A\001\022\210\001\n"
+ + "\033restricted_locations_config\030\017 \001(\0132A.google.cloud.biglake.v1.Ic"
+ + "ebergCatalog.RestrictedLocationsConfigB\003\340A\001R\033restricted-locations-config\022\202\001\n"
+ + "\031federated_catalog_options\030\r"
+ + " \001(\0132?.google.cloud.biglake.v1.IcebergCatalog.FederatedC"
+ + "atalogOptionsB\003\340A\001R\031federated-catalog-options\032\314\001\n"
+ + "\007Replica\022\023\n"
+ + "\006region\030\001 \001(\tB\003\340A\003\022I\n"
+ + "\005state\030\002"
+ + " \001(\01625.google.cloud.biglake.v1.IcebergCatalog.Replica.StateB\003\340A\003\"a\n"
+ + "\005State\022\021\n\r"
+ + "STATE_UNKNOWN\020\000\022\021\n\r"
+ + "STATE_PRIMARY\020\001\022\035\n"
+ + "\031STATE_PRIMARY_IN_PROGRESS\020\002\022\023\n"
+ + "\017STATE_SECONDARY\020\003\032T\n"
+ + "\031RestrictedLocationsConfig\0227\n"
+ + "\024restricted_locations\030\001 \003("
+ + "\tB\003\340A\001R\024restricted-locations\032\271\017\n"
+ + "\027FederatedCatalogOptions\022\207\001\n"
+ + "\022unity_catalog_info\030\002 \001(\0132P.google.cloud.biglake.v1.IcebergCatalog.Fed"
+ + "eratedCatalogOptions.UnityCatalogInfoB\003\340A\001H\000R\022unity-catalog-info\022\204\001\n"
+ + "\021glue_catalog_info\030\004 \001(\0132O.google.cloud.biglake.v1.I"
+ + "cebergCatalog.FederatedCatalogOptions.Gl"
+ + "ueCatalogInfoB\003\340A\001H\000R\021glue-catalog-info\022R\n"
+ + "\013secret_name\030\001 \001(\tB+\340A\001\372A%\n"
+ + "#secretmanager.googleapis.com/SecretH\001R\013secret-name\210\001\001\022l\n"
+ + "\026service_directory_name\030\005 \001(\tB/\340A\001\372A)\n"
+ + "\'servicedirectory.googleapis.com/ServiceH\002R\026service-directory-name\210\001\001\022}\n"
+ + "\017refresh_options\030\003 \001(\0132N.google.cloud.biglak"
+ + "e.v1.IcebergCatalog.FederatedCatalogOpti"
+ + "ons.RefreshOptionsB\003\340A\001R\017refresh-options\022z\n"
+ + "\016refresh_status\030\006 \001(\0132M.google.cloud."
+ + "biglake.v1.IcebergCatalog.FederatedCatal"
+ + "ogOptions.RefreshStatusB\003\340A\003R\016refresh-status\032\226\002\n"
+ + "\020UnityCatalogInfo\022.\n\r"
+ + "instance_name\030\001 \001(\tB\003\340A\002H\000R\r"
+ + "instance-name\210\001\001\022,\n"
+ + "\014catalog_name\030\002 \001("
+ + "\tB\003\340A\002H\001R\014catalog-name\210\001\001\022\\\n"
+ + " service_principal_application_id\030\003 \001("
+ + "\tB\013\340A\001\342\214\317\327\010\002\010\001H\002R"
+ + " service-principal-application-id\210\001\001B\020\n"
+ + "\016_instance_nameB\017\n\r"
+ + "_catalog_nameB#\n"
+ + "!_service_principal_application_id\032\272\001\n"
+ + "\017GlueCatalogInfo\022\036\n"
+ + "\twarehouse\030\001 \001(\tB\006\340A\002\340A\005H\000\210\001\001\022+\n\n"
+ + "aws_region\030\002 \001(\tB\006\340A\002\340A\005H\001R\n"
+ + "aws-region\210\001\001\022,\n"
+ + "\014aws_role_arn\030\003 \001("
+ + "\tB\003\340A\002H\002R\014aws-role-arn\210\001\001B\014\n\n"
+ + "_warehouseB\r\n"
+ + "\013_aws_regionB\017\n\r"
+ + "_aws_role_arn\032w\n"
+ + "\017RefreshSchedule\022O\n"
+ + "\020refresh_interval\030\001 \001(\0132"
+ + "\031.google.protobuf.DurationB\003\340A\001H\000R\020refresh-interval\210\001\001B\023\n"
+ + "\021_refresh_interval\032A\n"
+ + "\014RefreshScope\0221\n"
+ + "\021namespace_filters\030\001 \003("
+ + "\tB\003\340A\001R\021namespace-filters\032\214\002\n"
+ + "\016RefreshOptions\022\200\001\n"
+ + "\020refresh_schedule\030\001 \001(\0132O.google.cl"
+ + "oud.biglake.v1.IcebergCatalog.FederatedC"
+ + "atalogOptions.RefreshScheduleB\003\340A\001R\020refresh-schedule\022w\n\r"
+ + "refresh_scope\030\002 \001(\0132L.go"
+ + "ogle.cloud.biglake.v1.IcebergCatalog.FederatedCatalogOptions.RefreshScopeB\003\340A\001R\r"
+ + "refresh-scope\032\354\001\n\r"
+ + "RefreshStatus\022D\n\n"
+ + "start_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\000R\n"
+ + "start-time\210\001\001\022@\n"
+ + "\010end_time\030\002 \001(\0132"
+ + "\032.google.protobuf.TimestampB\003\340A\003H\001R\010end-time\210\001\001\022,\n"
+ + "\006status\030\003"
+ + " \001(\0132\022.google.rpc.StatusB\003\340A\003H\002\210\001\001B\r\n"
+ + "\013_start_timeB\013\n"
+ + "\t_end_timeB\t\n"
+ + "\007_statusB\025\n"
+ + "\023remote_catalog_infoB\016\n"
+ + "\014_secret_nameB\031\n"
+ + "\027_service_directory_name\"~\n"
+ "\013CatalogType\022\034\n"
+ "\030CATALOG_TYPE_UNSPECIFIED\020\000\022\033\n"
- + "\027CATALOG_TYPE_GCS_BUCKET\020\001\"w\n"
+ + "\027CATALOG_TYPE_GCS_BUCKET\020\001\022\030\n"
+ + "\024CATALOG_TYPE_BIGLAKE\020\003\022\032\n"
+ + "\026CATALOG_TYPE_FEDERATED\020\004\"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"
+ + "\036biglake.googleapis.com/Cat"
+ + "alog\022%projects/{project}/catalogs/{catalog}*\010catalogs2\007catalog\"\217\002\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"
+ + "\017iceberg_catalog\030\002 \001("
+ + "\0132\'.google.cloud.biglake.v1.IcebergCatalogB\003\340A\002\022/\n"
+ + "\020primary_location\030\004 \001(\tB\003\340A\001R\020primary_location\"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"
+ + "\017iceberg_catalog\030\001 \001(\0132\'"
+ + ".google.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"
@@ -246,8 +370,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\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"
+ + "\004view\030\002 \001(\0162?.google.cloud.biglake.v1"
+ + ".ListIcebergCatalogsRequest.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"
@@ -256,8 +380,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\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"
+ + "\020iceberg_catalogs\030\001 \003(\0132\'.google.clou"
+ + "d.biglake.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"
@@ -268,11 +392,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \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"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"}\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"
+ + "\034biglake.googleapis.com/Table\022,\n"
+ + "\thttp_body\030\002 \001(\0132\024.google.api.HttpBodyB\003\340A\002\"d\n"
+ "\026GetIcebergTableRequest\0222\n"
+ "\004name\030\001 \001(\tB$\340A\002\372A\036\n"
+ "\034biglake.googleapis.com/Table\022\026\n"
@@ -284,7 +408,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\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"
+ + "\thttp_body\030\003 \001(\0132\024.google.api.HttpBodyB\003\340A\002\"\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(\010B\003\340A\001\"\204\001\n"
+ + " ReportIcebergTableMetricsRequest\0222\n"
+ + "\004name\030\001 \001(\tB$\340A\002\372A\036\n"
+ + "\034biglake.googleapis.com/Table\022,\n"
+ + "\thttp_body\030\002 \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"
@@ -300,16 +434,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\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"
+ + "\007updates\030\003 \003(\0132<.google.cloud.bigla"
+ + "ke.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"
+ + "\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"
@@ -319,8 +453,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " 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"
+ + "properties\030\002"
+ + " \003(\01329.google.cloud.biglake.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"
@@ -332,10 +466,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\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"
+ + "\toverrides\030\001"
+ + " \003(\0132<.google.cloud.biglake.v1.IcebergCatalogConfig.OverridesEntryB\003\340A\003\022R\n"
+ + "\010defaults\030\002"
+ + " \003(\0132;.google.cloud.biglake.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"
@@ -350,118 +484,129 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "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"
+ + "\006parent\030\004 \001(\tB\003\340A\001\"\223\001\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"
+ + "\017next_page_token\030\002 \001(\tR\017next-page-token\022\030\n"
+ + "\013unreachable\030\003 \003(\tB\003\340A\003\"\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"
+ + "\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"
+ + "\023storage_credentials\030\001 \003(\0132*.google.c"
+ + "loud.biglake.v1.StorageCredentialR\023storage-credentials2\217&\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\022repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -241,7 +242,8 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() {
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -256,7 +258,8 @@ public int getUnreachableCount() {
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -272,7 +275,8 @@ public java.lang.String getUnreachable(int index) {
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1248,7 +1252,8 @@ private void ensureUnreachableIsMutable() {
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1264,7 +1269,8 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() {
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1279,7 +1285,8 @@ public int getUnreachableCount() {
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1295,7 +1302,8 @@ public java.lang.String getUnreachable(int index) {
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1311,7 +1319,8 @@ public com.google.protobuf.ByteString getUnreachableBytes(int index) {
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1335,7 +1344,8 @@ public Builder setUnreachable(int index, java.lang.String value) {
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1358,7 +1368,8 @@ public Builder addUnreachable(java.lang.String value) {
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1378,7 +1389,8 @@ public Builder addAllUnreachable(java.lang.Iterable
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1397,7 +1409,8 @@ public Builder clearUnreachable() {
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
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
index ca8f3c437f7d..05dddb5f508b 100644
--- 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
@@ -126,7 +126,8 @@ public interface ListIcebergCatalogsResponseOrBuilder
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -139,7 +140,8 @@ public interface ListIcebergCatalogsResponseOrBuilder
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -152,7 +154,8 @@ public interface ListIcebergCatalogsResponseOrBuilder
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -166,7 +169,8 @@ public interface ListIcebergCatalogsResponseOrBuilder
*
*
*
- * Output only. The list of unreachable cloud regions for router fanout.
+ * Output only. The list of unreachable cloud regions. If non-empty, the
+ * result set might be incomplete.
*
*
* repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
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
index 7b32494d4b34..33c77e39f446 100644
--- 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
@@ -81,7 +81,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Optional. PageToken
+ * Optional. Specify the page_token returned in the previous response to
+ * retrieve the next page of results.
*
*
* string page_token = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -105,7 +106,8 @@ public java.lang.String getPageToken() {
*
*
*
- * Optional. PageToken
+ * Optional. Specify the page_token returned in the previous response to
+ * retrieve the next page of results.
*
*
* string page_token = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -135,7 +137,7 @@ public 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`.
+ * indicated `pageSize`. Defaults to 100 if not set.
* int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -648,7 +650,8 @@ public Builder mergeFrom(
*
*
*
- * Optional. PageToken
+ * Optional. Specify the page_token returned in the previous response to
+ * retrieve the next page of results.
*
*
* string page_token = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -671,7 +674,8 @@ public java.lang.String getPageToken() {
*
*
*
- * Optional. PageToken
+ * Optional. Specify the page_token returned in the previous response to
+ * retrieve the next page of results.
*
*
* string page_token = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -694,7 +698,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
*
*
- * Optional. PageToken
+ * Optional. Specify the page_token returned in the previous response to
+ * retrieve the next page of results.
*
*
* string page_token = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -716,7 +721,8 @@ public Builder setPageToken(java.lang.String value) {
*
*
*
- * Optional. PageToken
+ * Optional. Specify the page_token returned in the previous response to
+ * retrieve the next page of results.
*
*
* string page_token = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -734,7 +740,8 @@ public Builder clearPageToken() {
*
*
*
- * Optional. PageToken
+ * Optional. Specify the page_token returned in the previous response to
+ * retrieve the next page of results.
*
*
* string page_token = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -762,7 +769,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
* 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`.
+ * indicated `pageSize`. Defaults to 100 if not set.
* int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -781,7 +788,7 @@ public int getPageSize() {
* 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`.
+ * indicated `pageSize`. Defaults to 100 if not set.
* int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -804,7 +811,7 @@ public Builder setPageSize(int value) {
* 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`.
+ * indicated `pageSize`. Defaults to 100 if not set.
* int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
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
index d8f908086dac..1693fe3eea70 100644
--- 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
@@ -30,7 +30,8 @@ public interface ListIcebergNamespacesRequestOrBuilder
*
*
*
- * Optional. PageToken
+ * Optional. Specify the page_token returned in the previous response to
+ * retrieve the next page of results.
*
*
* string page_token = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -43,7 +44,8 @@ public interface ListIcebergNamespacesRequestOrBuilder
*
*
*
- * Optional. PageToken
+ * Optional. Specify the page_token returned in the previous response to
+ * retrieve the next page of results.
*
*
* string page_token = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -59,7 +61,7 @@ public interface ListIcebergNamespacesRequestOrBuilder
* 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`.
+ * indicated `pageSize`. Defaults to 100 if not set.
*
*
* int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
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
index 1f8688725a87..19be1a64e4e6 100644
--- 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
@@ -54,6 +54,7 @@ private ListIcebergNamespacesResponse(com.google.protobuf.GeneratedMessage.Build
private ListIcebergNamespacesResponse() {
namespaces_ = java.util.Collections.emptyList();
nextPageToken_ = "";
+ unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -200,6 +201,78 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
}
}
+ public static final int UNREACHABLE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList unreachable_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ *
+ *
+ * Output only. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The count of unreachable.
+ */
+ public int getUnreachableCount() {
+ return unreachable_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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
@@ -220,6 +293,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_);
}
+ for (int i = 0; i < unreachable_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -235,6 +311,14 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessage.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;
@@ -253,6 +337,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getNamespacesList().equals(other.getNamespacesList())) 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;
}
@@ -270,6 +355,10 @@ public int 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;
@@ -419,6 +508,7 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
+ unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -472,6 +562,10 @@ private void buildPartial0(com.google.cloud.biglake.v1.ListIcebergNamespacesResp
if (((from_bitField0_ & 0x00000002) != 0)) {
result.nextPageToken_ = nextPageToken_;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ unreachable_.makeImmutable();
+ result.unreachable_ = unreachable_;
+ }
}
@java.lang.Override
@@ -519,6 +613,16 @@ public Builder mergeFrom(com.google.cloud.biglake.v1.ListIcebergNamespacesRespon
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;
@@ -563,6 +667,13 @@ public Builder mergeFrom(
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)) {
@@ -1056,6 +1167,198 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
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. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The count of unreachable.
+ */
+ public int getUnreachableCount() {
+ return unreachable_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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
+ * Output only. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.ListIcebergNamespacesResponse)
}
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
index d137a023f0ff..4e55b0b82a47 100644
--- 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
@@ -106,4 +106,62 @@ public interface ListIcebergNamespacesResponseOrBuilder
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString getNextPageTokenBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return A list containing the unreachable.
+ */
+ java.util.List
+ * Output only. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The count of unreachable.
+ */
+ int getUnreachableCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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. A list of skipped locations that were unreachable. If
+ * non-empty, the result set might be incomplete.
+ *
+ *
+ * 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/RegisterIcebergTableRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/RegisterIcebergTableRequest.java
index 5bc70df0d5f2..289b4c2d8c67 100644
--- 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
@@ -55,7 +55,6 @@ private RegisterIcebergTableRequest() {
parent_ = "";
name_ = "";
metadataLocation_ = "";
- overwrite_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -243,60 +242,23 @@ public com.google.protobuf.ByteString getMetadataLocationBytes() {
}
public static final int OVERWRITE_FIELD_NUMBER = 4;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object overwrite_ = "";
+ private boolean overwrite_ = false;
/**
*
*
*
* 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.
+ * false.
*
*
- * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * bool 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;
- }
+ public boolean getOverwrite() {
+ return overwrite_;
}
private byte memoizedIsInitialized = -1;
@@ -322,8 +284,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(metadataLocation_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, metadataLocation_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(overwrite_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 4, overwrite_);
+ if (overwrite_ != false) {
+ output.writeBool(4, overwrite_);
}
getUnknownFields().writeTo(output);
}
@@ -343,8 +305,8 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(metadataLocation_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, metadataLocation_);
}
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(overwrite_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(4, overwrite_);
+ if (overwrite_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, overwrite_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -365,7 +327,7 @@ public boolean equals(final java.lang.Object 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 (getOverwrite() != other.getOverwrite()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -384,7 +346,7 @@ public int 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 = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOverwrite());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -529,7 +491,7 @@ public Builder clear() {
parent_ = "";
name_ = "";
metadataLocation_ = "";
- overwrite_ = "";
+ overwrite_ = false;
return this;
}
@@ -608,10 +570,8 @@ public Builder mergeFrom(com.google.cloud.biglake.v1.RegisterIcebergTableRequest
bitField0_ |= 0x00000004;
onChanged();
}
- if (!other.getOverwrite().isEmpty()) {
- overwrite_ = other.overwrite_;
- bitField0_ |= 0x00000008;
- onChanged();
+ if (other.getOverwrite() != false) {
+ setOverwrite(other.getOverwrite());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
@@ -657,12 +617,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 26
- case 34:
+ case 32:
{
- overwrite_ = input.readStringRequireUtf8();
+ overwrite_ = input.readBool();
bitField0_ |= 0x00000008;
break;
- } // case 34
+ } // case 32
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1040,56 +1000,23 @@ public Builder setMetadataLocationBytes(com.google.protobuf.ByteString value) {
return this;
}
- private java.lang.Object overwrite_ = "";
+ private boolean 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.
+ * false.
*
*
- * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * bool 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;
- }
+ @java.lang.Override
+ public boolean getOverwrite() {
+ return overwrite_;
}
/**
@@ -1097,19 +1024,16 @@ public com.google.protobuf.ByteString getOverwriteBytes() {
*
*
* 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.
+ * false.
*
*
- * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * bool 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();
- }
+ public Builder setOverwrite(boolean value) {
+
overwrite_ = value;
bitField0_ |= 0x00000008;
onChanged();
@@ -1121,42 +1045,16 @@ public Builder setOverwrite(java.lang.String value) {
*
*
* 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.
+ * false.
*
*
- * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * bool 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;
+ overwrite_ = false;
onChanged();
return this;
}
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
index 8f913432d9f8..f34cc291e8d7 100644
--- 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
@@ -119,28 +119,12 @@ public interface RegisterIcebergTableRequestOrBuilder
*
*
* 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.
+ * false.
*
*
- * string overwrite = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * bool 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();
+ boolean getOverwrite();
}
diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ReportIcebergTableMetricsRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ReportIcebergTableMetricsRequest.java
new file mode 100644
index 000000000000..3d40b9b34d6a
--- /dev/null
+++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ReportIcebergTableMetricsRequest.java
@@ -0,0 +1,906 @@
+/*
+ * Copyright 2026 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!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/biglake/v1/iceberg_rest_catalog.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.biglake.v1;
+
+/**
+ *
+ *
+ *
+ * The request message for the `ReportIcebergTableMetrics` API.
+ *
+ *
+ * Protobuf type {@code google.cloud.biglake.v1.ReportIcebergTableMetricsRequest}
+ */
+@com.google.protobuf.Generated
+public final class ReportIcebergTableMetricsRequest extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.biglake.v1.ReportIcebergTableMetricsRequest)
+ ReportIcebergTableMetricsRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "ReportIcebergTableMetricsRequest");
+ }
+
+ // Use ReportIcebergTableMetricsRequest.newBuilder() to construct.
+ private ReportIcebergTableMetricsRequest(
+ com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ReportIcebergTableMetricsRequest() {
+ name_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_ReportIcebergTableMetricsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.biglake.v1.IcebergRestCatalogProto
+ .internal_static_google_cloud_biglake_v1_ReportIcebergTableMetricsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest.class,
+ com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. Table to report metrics for 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 report metrics for 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.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return Whether the httpBody field is set.
+ */
+ @java.lang.Override
+ public boolean hasHttpBody() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.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.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.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.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.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.ReportIcebergTableMetricsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest other =
+ (com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest) 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.ReportIcebergTableMetricsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest 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.ReportIcebergTableMetricsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest 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.ReportIcebergTableMetricsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest 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.ReportIcebergTableMetricsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.ReportIcebergTableMetricsRequest 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The request message for the `ReportIcebergTableMetrics` API.
+ *
+ *
+ * Protobuf type {@code google.cloud.biglake.v1.ReportIcebergTableMetricsRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. Table to report metrics for 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 report metrics for 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 report metrics for 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 report metrics for 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 report metrics for 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.SingleFieldBuilder<
+ com.google.api.HttpBody,
+ com.google.api.HttpBody.Builder,
+ com.google.api.HttpBodyOrBuilder>
+ httpBodyBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Required.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return Whether the httpBody field is set.
+ */
+ public boolean hasHttpBody() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.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.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.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.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.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.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.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.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public Builder clearHttpBody() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ httpBody_ = null;
+ if (httpBodyBuilder_ != null) {
+ httpBodyBuilder_.dispose();
+ httpBodyBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public com.google.api.HttpBody.Builder getHttpBodyBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetHttpBodyFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Required.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.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.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.api.HttpBody,
+ com.google.api.HttpBody.Builder,
+ com.google.api.HttpBodyOrBuilder>
+ internalGetHttpBodyFieldBuilder() {
+ if (httpBodyBuilder_ == null) {
+ httpBodyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.api.HttpBody,
+ com.google.api.HttpBody.Builder,
+ com.google.api.HttpBodyOrBuilder>(getHttpBody(), getParentForChildren(), isClean());
+ httpBody_ = null;
+ }
+ return httpBodyBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.biglake.v1.ReportIcebergTableMetricsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.biglake.v1.ReportIcebergTableMetricsRequest)
+ private static final com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest();
+ }
+
+ public static com.google.cloud.biglake.v1.ReportIcebergTableMetricsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. Table to report metrics for 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 report metrics for 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.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return Whether the httpBody field is set.
+ */
+ boolean hasHttpBody();
+
+ /**
+ *
+ *
+ *
+ * Required.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The httpBody.
+ */
+ com.google.api.HttpBody getHttpBody();
+
+ /**
+ *
+ *
+ *
+ * Required.
+ *
+ *
+ * .google.api.HttpBody http_body = 2 [(.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/UpdateIcebergNamespaceRequest.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/UpdateIcebergNamespaceRequest.java
index 71fec750c47d..5a12fb67f6be 100644
--- 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
@@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* Required. The namespace to update.
*
* The namespace's `name` field is used to identify the namespace to update.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -112,7 +112,7 @@ public 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}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -563,7 +563,7 @@ public Builder mergeFrom(
* Required. The namespace to update.
*
* The namespace's `name` field is used to identify the namespace to update.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -591,7 +591,7 @@ public 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}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -619,7 +619,7 @@ public com.google.protobuf.ByteString getNameBytes() {
* Required. The namespace to update.
*
* The namespace's `name` field is used to identify the namespace to update.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -646,7 +646,7 @@ public Builder setName(java.lang.String value) {
* Required. The namespace to update.
*
* The namespace's `name` field is used to identify the namespace to update.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -669,7 +669,7 @@ public Builder clearName() {
* Required. The namespace to update.
*
* The namespace's `name` field is used to identify the namespace to update.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
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
index 09e290bbf6be..068933d26644 100644
--- 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
@@ -33,7 +33,7 @@ public interface UpdateIcebergNamespaceRequestOrBuilder
* Required. The namespace to update.
*
* The namespace's `name` field is used to identify the namespace to update.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
@@ -51,7 +51,7 @@ public interface UpdateIcebergNamespaceRequestOrBuilder
* Required. The namespace to update.
*
* The namespace's `name` field is used to identify the namespace to update.
- * Format: projects/{project_id}/namespaces/{namespace}
+ * Format: projects/{project_id}/catalogs/{catalog_id}/namespaces/{namespace}
*
*
*
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
index 3d452ffa53da..da5488bc2f6f 100644
--- 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
@@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. Table to commit in the format:
- * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+ * `projects/{projectId}/catalogs/{catalogId}/namespaces/{namespace}/tables/{table}`.
*
*
*
@@ -108,7 +108,7 @@ public java.lang.String getName() {
*
*
* Required. Table to commit in the format:
- * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+ * `projects/{projectId}/catalogs/{catalogId}/namespaces/{namespace}/tables/{table}`.
*
*
*
@@ -137,14 +137,10 @@ public 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return Whether the httpBody field is set.
*/
@@ -157,14 +153,10 @@ public 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The httpBody.
*/
@@ -177,14 +169,10 @@ public 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder() {
@@ -553,7 +541,7 @@ public Builder mergeFrom(
*
*
* Required. Table to commit in the format:
- * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+ * `projects/{projectId}/catalogs/{catalogId}/namespaces/{namespace}/tables/{table}`.
*
*
*
@@ -579,7 +567,7 @@ public java.lang.String getName() {
*
*
* Required. Table to commit in the format:
- * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+ * `projects/{projectId}/catalogs/{catalogId}/namespaces/{namespace}/tables/{table}`.
*
*
*
@@ -605,7 +593,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Required. Table to commit in the format:
- * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+ * `projects/{projectId}/catalogs/{catalogId}/namespaces/{namespace}/tables/{table}`.
*
*
*
@@ -630,7 +618,7 @@ public Builder setName(java.lang.String value) {
*
*
* Required. Table to commit in the format:
- * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+ * `projects/{projectId}/catalogs/{catalogId}/namespaces/{namespace}/tables/{table}`.
*
*
*
@@ -651,7 +639,7 @@ public Builder clearName() {
*
*
* Required. Table to commit in the format:
- * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+ * `projects/{projectId}/catalogs/{catalogId}/namespaces/{namespace}/tables/{table}`.
*
*
*
@@ -683,14 +671,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return Whether the httpBody field is set.
*/
@@ -702,14 +686,10 @@ public 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The httpBody.
*/
@@ -725,14 +705,10 @@ public 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setHttpBody(com.google.api.HttpBody value) {
if (httpBodyBuilder_ == null) {
@@ -752,14 +728,10 @@ public Builder setHttpBody(com.google.api.HttpBody value) {
*
*
*
- * 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setHttpBody(com.google.api.HttpBody.Builder builderForValue) {
if (httpBodyBuilder_ == null) {
@@ -776,14 +748,10 @@ public Builder setHttpBody(com.google.api.HttpBody.Builder builderForValue) {
*
*
*
- * 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder mergeHttpBody(com.google.api.HttpBody value) {
if (httpBodyBuilder_ == null) {
@@ -808,14 +776,10 @@ public Builder mergeHttpBody(com.google.api.HttpBody value) {
*
*
*
- * 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearHttpBody() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -832,14 +796,10 @@ public Builder clearHttpBody() {
*
*
*
- * 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.api.HttpBody.Builder getHttpBodyBuilder() {
bitField0_ |= 0x00000002;
@@ -851,14 +811,10 @@ public com.google.api.HttpBody.Builder getHttpBodyBuilder() {
*
*
*
- * 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder() {
if (httpBodyBuilder_ != null) {
@@ -872,14 +828,10 @@ public com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder() {
*
*
*
- * 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.api.HttpBody,
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
index 39e831e4c7e0..25f09537e0fd 100644
--- 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
@@ -31,7 +31,7 @@ public interface UpdateIcebergTableRequestOrBuilder
*
*
* Required. Table to commit in the format:
- * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+ * `projects/{projectId}/catalogs/{catalogId}/namespaces/{namespace}/tables/{table}`.
*
*
*
@@ -47,7 +47,7 @@ public interface UpdateIcebergTableRequestOrBuilder
*
*
* Required. Table to commit in the format:
- * `projects/{project_id}/namespaces/{namespace}/tables/{table}`.
+ * `projects/{projectId}/catalogs/{catalogId}/namespaces/{namespace}/tables/{table}`.
*
*
*
@@ -62,14 +62,10 @@ public interface UpdateIcebergTableRequestOrBuilder
*
*
*
- * 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return Whether the httpBody field is set.
*/
@@ -79,14 +75,10 @@ public interface UpdateIcebergTableRequestOrBuilder
*
*
*
- * 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The httpBody.
*/
@@ -96,14 +88,10 @@ public interface UpdateIcebergTableRequestOrBuilder
*
*
*
- * 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.
+ * Required.
*
*
- *
- * .google.api.HttpBody http_body = 2 [json_name = "updates", (.google.api.field_behavior) = REQUIRED];
- *
+ * .google.api.HttpBody http_body = 2 [(.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
index 1b40c7342b84..191290781b4d 100644
--- 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
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,12 +19,15 @@ package google.cloud.biglake.v1;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
+import "google/api/field_info.proto";
import "google/api/httpbody.proto";
import "google/api/resource.proto";
+import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
option go_package = "cloud.google.com/go/biglake/apiv1/biglakepb;biglakepb";
option java_multiple_files = true;
@@ -38,35 +41,26 @@ option (google.api.resource_definition) = {
type: "biglake.googleapis.com/Namespace"
pattern: "projects/{project}/catalogs/{catalog}/namespaces/{namespace}"
};
+option (google.api.resource_definition) = {
+ type: "secretmanager.googleapis.com/Secret"
+ pattern: "projects/{project}/secrets/{secret}"
+ pattern: "projects/{project}/locations/{location}/secrets/{secret}"
+ plural: "secrets"
+ singular: "secret"
+};
+option (google.api.resource_definition) = {
+ type: "servicedirectory.googleapis.com/Service"
+ pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}"
+};
-// 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.
+// Lakehouse runtime catalog supports the following catalog management methods:
+// - GetIcebergCatalog
+// - ListIcebergCatalogs
+// - DeleteIcebergCatalog
+// - UpdateIcebergCatalog
+// - CreateIcebergCatalog
+// - FailoverIcebergCatalog
service IcebergCatalogService {
option (google.api.default_host) = "biglake.googleapis.com";
option (google.api.oauth_scopes) =
@@ -162,7 +156,7 @@ service IcebergCatalogService {
post: "/iceberg/v1/restcatalog/v1/{parent=projects/*/catalogs/*/namespaces/*}/tables"
body: "*"
};
- option (google.api.method_signature) = "parent,http_body";
+ option (google.api.method_signature) = "parent";
}
// Returns 204 if the table exists, 404 otherwise. This is a `HEAD` HTTP
@@ -217,6 +211,16 @@ service IcebergCatalogService {
};
}
+ // Reports a metrics report for a table.
+ rpc ReportIcebergTableMetrics(ReportIcebergTableMetricsRequest)
+ returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/iceberg/v1/restcatalog/v1/{name=projects/*/catalogs/*/namespaces/*/tables/*}/metrics"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
// Returns the Iceberg REST Catalog configuration options.
rpc GetIcebergCatalog(GetIcebergCatalogRequest) returns (IcebergCatalog) {
option (google.api.http) = {
@@ -258,7 +262,6 @@ service IcebergCatalogService {
}
// 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`).
//
@@ -272,6 +275,8 @@ service IcebergCatalogService {
};
option (google.api.method_signature) =
"parent,iceberg_catalog,iceberg_catalog_id";
+ option (google.api.method_signature) =
+ "parent,iceberg_catalog,iceberg_catalog_id,primary_location";
}
// Failover the catalog to a new primary replica region.
@@ -285,30 +290,6 @@ service IcebergCatalogService {
}
}
-// 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) = {
@@ -318,13 +299,232 @@ message IcebergCatalog {
singular: "catalog"
};
+ // The replica of the Catalog.
+ message Replica {
+ // If the catalog is replicated to multiple regions, this enum describes the
+ // current state of the replica.
+ enum State {
+ // The replica state is unknown.
+ STATE_UNKNOWN = 0;
+
+ // The replica is the writable primary.
+ STATE_PRIMARY = 1;
+
+ // The replica has been recently assigned as the primary, but not all
+ // namespaces are writeable yet.
+ STATE_PRIMARY_IN_PROGRESS = 2;
+
+ // The replica is a read-only secondary replica.
+ STATE_SECONDARY = 3;
+ }
+
+ // Output only. The region of the replica. For example "us-east1"
+ string region = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the replica.
+ State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Configuration of location restrictions.
+ message RestrictedLocationsConfig {
+ // Optional. Additional Google Cloud Storage buckets and locations (e.g.,
+ // `gs://my-other-bucket/...`) that are permitted for use by resources
+ // within a catalog. This field is currently only used for BigLake catalogs.
+ //
+ // If `restricted_locations` is empty and unrestricted catalog creation is
+ // enabled, all accessible locations are allowed.
+ // Otherwise, only `default_location` and locations in this list are
+ // allowed.
+ repeated string restricted_locations = 1 [
+ json_name = "restricted-locations",
+ (google.api.field_behavior) = OPTIONAL
+ ];
+ }
+
+ // Configuration options for a federated catalog.
+ message FederatedCatalogOptions {
+ // Unity Catalog info.
+ message UnityCatalogInfo {
+ // Required. The instance name is the first part of the URL when logging
+ // into the Databricks deployment. For example, for a Databricks on GCP
+ // workspace URL https://1.1.gcp.databricks.com, the instance name is
+ // 1.1.gcp.databricks.com.
+ optional string instance_name = 1
+ [json_name = "instance-name", (google.api.field_behavior) = REQUIRED];
+
+ // Required. The catalog name in Unity Catalog.
+ optional string catalog_name = 2
+ [json_name = "catalog-name", (google.api.field_behavior) = REQUIRED];
+
+ // Optional. The application ID of the Databricks service principal that
+ // will be used to access the Unity Catalog in the OIDC authentication
+ // flow. With OIDC, the secret_name field is not used.
+ optional string service_principal_application_id = 3 [
+ json_name = "service-principal-application-id",
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+ }
+
+ // AWS Glue Catalog info. We support regional AWS Glue default account
+ // catalog and S3 Table Buckets.
+ message GlueCatalogInfo {
+ // Required. Immutable. The warehouse to connect to a regional AWS Glue
+ // Iceberg REST Catalog. For top level access, use the AWS account ID
+ // (e.g. 111222333444). For an S3 table bucket, the warehouse is of the
+ // form: 111222333444:s3tablescatalog/