This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create()) { + * BatchCreateMetastorePartitionsRequest request = + * BatchCreateMetastorePartitionsRequest.newBuilder() + * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + * .addAllRequests(new ArrayList+ * + *()) + * .setSkipExistingPartitions(true) + * .build(); + * BatchCreateMetastorePartitionsResponse response = + * metastorePartitionServiceClient.batchCreateMetastorePartitions(request); + * } + * }
Note: close() needs to be called on the MetastorePartitionServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *
Method | + *Description | + *Method Variants | + *
---|---|---|
BatchCreateMetastorePartitions |
+ * Adds metastore partitions to a table. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
BatchDeleteMetastorePartitions |
+ * Deletes metastore partitions from a table. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
BatchUpdateMetastorePartitions |
+ * Updates metastore partitions in a table. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListMetastorePartitions |
+ * Gets metastore partitions from a table. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
StreamMetastorePartitions |
+ * This is a bi-di streaming rpc method that allows the client to send a stream of partitions and commit all of them atomically at the end. If the commit is successful, the server will return a response and close the stream. If the commit fails (due to duplicate partitions or other reason), the server will close the stream with an error. This method is only available via the gRPC API (not REST). |
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of + * MetastorePartitionServiceSettings to create(). For example: + * + *
To customize credentials: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * MetastorePartitionServiceSettings metastorePartitionServiceSettings = + * MetastorePartitionServiceSettings.newBuilder() + * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + * .build(); + * MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create(metastorePartitionServiceSettings); + * }+ * + *
To customize the endpoint: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * MetastorePartitionServiceSettings metastorePartitionServiceSettings = + * MetastorePartitionServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + * MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create(metastorePartitionServiceSettings); + * }+ * + *
Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class MetastorePartitionServiceClient implements BackgroundResource { + private final MetastorePartitionServiceSettings settings; + private final MetastorePartitionServiceStub stub; + + /** Constructs an instance of MetastorePartitionServiceClient with default settings. */ + public static final MetastorePartitionServiceClient create() throws IOException { + return create(MetastorePartitionServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of MetastorePartitionServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final MetastorePartitionServiceClient create( + MetastorePartitionServiceSettings settings) throws IOException { + return new MetastorePartitionServiceClient(settings); + } + + /** + * Constructs an instance of MetastorePartitionServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(MetastorePartitionServiceSettings). + */ + public static final MetastorePartitionServiceClient create(MetastorePartitionServiceStub stub) { + return new MetastorePartitionServiceClient(stub); + } + + /** + * Constructs an instance of MetastorePartitionServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected MetastorePartitionServiceClient(MetastorePartitionServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((MetastorePartitionServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected MetastorePartitionServiceClient(MetastorePartitionServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final MetastorePartitionServiceSettings getSettings() { + return settings; + } + + public MetastorePartitionServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds metastore partitions to a table. + * + *
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 (MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create()) { + * BatchCreateMetastorePartitionsRequest request = + * BatchCreateMetastorePartitionsRequest.newBuilder() + * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + * .addAllRequests(new ArrayList+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateMetastorePartitionsResponse batchCreateMetastorePartitions( + BatchCreateMetastorePartitionsRequest request) { + return batchCreateMetastorePartitionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds metastore partitions to a table. + * + *()) + * .setSkipExistingPartitions(true) + * .build(); + * BatchCreateMetastorePartitionsResponse response = + * metastorePartitionServiceClient.batchCreateMetastorePartitions(request); + * } + * }
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 (MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create()) { + * BatchCreateMetastorePartitionsRequest request = + * BatchCreateMetastorePartitionsRequest.newBuilder() + * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + * .addAllRequests(new ArrayList+ */ + public final UnaryCallable< + BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse> + batchCreateMetastorePartitionsCallable() { + return stub.batchCreateMetastorePartitionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes metastore partitions from a table. + * + *()) + * .setSkipExistingPartitions(true) + * .build(); + * ApiFuture future = + * metastorePartitionServiceClient + * .batchCreateMetastorePartitionsCallable() + * .futureCall(request); + * // Do something. + * BatchCreateMetastorePartitionsResponse response = future.get(); + * } + * }
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 (MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create()) { + * BatchDeleteMetastorePartitionsRequest request = + * BatchDeleteMetastorePartitionsRequest.newBuilder() + * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + * .addAllPartitionValues(new ArrayList+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void batchDeleteMetastorePartitions(BatchDeleteMetastorePartitionsRequest request) { + batchDeleteMetastorePartitionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes metastore partitions from a table. + * + *()) + * .build(); + * metastorePartitionServiceClient.batchDeleteMetastorePartitions(request); + * } + * }
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 (MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create()) { + * BatchDeleteMetastorePartitionsRequest request = + * BatchDeleteMetastorePartitionsRequest.newBuilder() + * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + * .addAllPartitionValues(new ArrayList+ */ + public final UnaryCallable()) + * .build(); + * ApiFuture future = + * metastorePartitionServiceClient + * .batchDeleteMetastorePartitionsCallable() + * .futureCall(request); + * // Do something. + * future.get(); + * } + * }
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 (MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create()) { + * BatchUpdateMetastorePartitionsRequest request = + * BatchUpdateMetastorePartitionsRequest.newBuilder() + * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + * .addAllRequests(new ArrayList+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateMetastorePartitionsResponse batchUpdateMetastorePartitions( + BatchUpdateMetastorePartitionsRequest request) { + return batchUpdateMetastorePartitionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates metastore partitions in a table. + * + *()) + * .build(); + * BatchUpdateMetastorePartitionsResponse response = + * metastorePartitionServiceClient.batchUpdateMetastorePartitions(request); + * } + * }
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 (MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create()) { + * BatchUpdateMetastorePartitionsRequest request = + * BatchUpdateMetastorePartitionsRequest.newBuilder() + * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + * .addAllRequests(new ArrayList+ */ + public final UnaryCallable< + BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitionsCallable() { + return stub.batchUpdateMetastorePartitionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets metastore partitions from a table. + * + *()) + * .build(); + * ApiFuture future = + * metastorePartitionServiceClient + * .batchUpdateMetastorePartitionsCallable() + * .futureCall(request); + * // Do something. + * BatchUpdateMetastorePartitionsResponse response = future.get(); + * } + * }
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 (MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create()) { + * TableName parent = TableName.of("[PROJECT]", "[DATASET]", "[TABLE]"); + * ListMetastorePartitionsResponse response = + * metastorePartitionServiceClient.listMetastorePartitions(parent); + * } + * }+ * + * @param parent Required. Reference to the table to which these metastore partitions belong, in + * the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMetastorePartitionsResponse listMetastorePartitions(TableName parent) { + ListMetastorePartitionsRequest request = + ListMetastorePartitionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMetastorePartitions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets metastore partitions from a table. + * + *
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 (MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create()) { + * String parent = TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString(); + * ListMetastorePartitionsResponse response = + * metastorePartitionServiceClient.listMetastorePartitions(parent); + * } + * }+ * + * @param parent Required. Reference to the table to which these metastore partitions belong, in + * the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMetastorePartitionsResponse listMetastorePartitions(String parent) { + ListMetastorePartitionsRequest request = + ListMetastorePartitionsRequest.newBuilder().setParent(parent).build(); + return listMetastorePartitions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets metastore partitions from a table. + * + *
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 (MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create()) { + * ListMetastorePartitionsRequest request = + * ListMetastorePartitionsRequest.newBuilder() + * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + * .setFilter("filter-1274492040") + * .build(); + * ListMetastorePartitionsResponse response = + * metastorePartitionServiceClient.listMetastorePartitions(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMetastorePartitionsResponse listMetastorePartitions( + ListMetastorePartitionsRequest request) { + return listMetastorePartitionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets metastore partitions from a table. + * + *
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 (MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create()) { + * ListMetastorePartitionsRequest request = + * ListMetastorePartitionsRequest.newBuilder() + * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + * .setFilter("filter-1274492040") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * metastorePartitionServiceClient.listMetastorePartitionsCallable().futureCall(request); + * // Do something. + * ListMetastorePartitionsResponse response = future.get(); + * } + * }
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 (MetastorePartitionServiceClient metastorePartitionServiceClient = + * MetastorePartitionServiceClient.create()) { + * BidiStream+ */ + public final BidiStreamingCallable< + StreamMetastorePartitionsRequest, StreamMetastorePartitionsResponse> + streamMetastorePartitionsCallable() { + return stub.streamMetastorePartitionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceSettings.java new file mode 100644 index 0000000000..6d2322b6f4 --- /dev/null +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceSettings.java @@ -0,0 +1,253 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.storage.v1alpha; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.bigquery.storage.v1alpha.stub.MetastorePartitionServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MetastorePartitionServiceClient}. + * + *bidiStream = + * metastorePartitionServiceClient.streamMetastorePartitionsCallable().call(); + * StreamMetastorePartitionsRequest request = + * StreamMetastorePartitionsRequest.newBuilder() + * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + * .addAllMetastorePartitions(new ArrayList ()) + * .setSkipExistingPartitions(true) + * .build(); + * bidiStream.send(request); + * for (StreamMetastorePartitionsResponse response : bidiStream) { + * // Do something when a response is received. + * } + * } + * }
The default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the total timeout of batchCreateMetastorePartitions to 30 seconds: + * + *
{@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 + * MetastorePartitionServiceSettings.Builder metastorePartitionServiceSettingsBuilder = + * MetastorePartitionServiceSettings.newBuilder(); + * metastorePartitionServiceSettingsBuilder + * .batchCreateMetastorePartitionsSettings() + * .setRetrySettings( + * metastorePartitionServiceSettingsBuilder + * .batchCreateMetastorePartitionsSettings() + * .getRetrySettings() + * .toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); + * MetastorePartitionServiceSettings metastorePartitionServiceSettings = + * metastorePartitionServiceSettingsBuilder.build(); + * }+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class MetastorePartitionServiceSettings + extends ClientSettings
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= MetastorePartitionServiceClient =======================
+ *
+ * Service Description: BigQuery Metastore Partition Service API. This service is used for
+ * managing metastore partitions in BigQuery metastore. The service supports only batch operations
+ * for write.
+ *
+ * Sample for MetastorePartitionServiceClient:
+ *
+ * This class is for advanced usage.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class GrpcMetastorePartitionServiceCallableFactory implements GrpcStubCallableFactory {
+
+ @Override
+ public This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class GrpcMetastorePartitionServiceStub extends MetastorePartitionServiceStub {
+ private static final MethodDescriptor<
+ BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse>
+ batchCreateMetastorePartitionsMethodDescriptor =
+ MethodDescriptor
+ . This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public abstract class MetastorePartitionServiceStub implements BackgroundResource {
+
+ public UnaryCallable<
+ BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse>
+ batchCreateMetastorePartitionsCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: batchCreateMetastorePartitionsCallable()");
+ }
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of batchCreateMetastorePartitions to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction{@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 (MetastorePartitionServiceClient metastorePartitionServiceClient =
+ * MetastorePartitionServiceClient.create()) {
+ * BatchCreateMetastorePartitionsRequest request =
+ * BatchCreateMetastorePartitionsRequest.newBuilder()
+ * .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+@Generated("by gapic-generator-java")
+package com.google.cloud.bigquery.storage.v1alpha;
+
+import javax.annotation.Generated;
diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/GrpcMetastorePartitionServiceCallableFactory.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/GrpcMetastorePartitionServiceCallableFactory.java
new file mode 100644
index 0000000000..6a44a501aa
--- /dev/null
+++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/GrpcMetastorePartitionServiceCallableFactory.java
@@ -0,0 +1,115 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.bigquery.storage.v1alpha.stub;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcCallableFactory;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.BidiStreamingCallable;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientStreamingCallable;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.StreamingCallSettings;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * gRPC callable factory implementation for the MetastorePartitionService service API.
+ *
+ *
+ *
+ *
+ * {@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
+ * MetastorePartitionServiceStubSettings.Builder metastorePartitionServiceSettingsBuilder =
+ * MetastorePartitionServiceStubSettings.newBuilder();
+ * metastorePartitionServiceSettingsBuilder
+ * .batchCreateMetastorePartitionsSettings()
+ * .setRetrySettings(
+ * metastorePartitionServiceSettingsBuilder
+ * .batchCreateMetastorePartitionsSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * MetastorePartitionServiceStubSettings metastorePartitionServiceSettings =
+ * metastorePartitionServiceSettingsBuilder.build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MetastorePartitionServiceStubSettings
+ extends StubSettings
+ * Request message for BatchCreateMetastorePartitions. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest} + */ +public final class BatchCreateMetastorePartitionsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest) + BatchCreateMetastorePartitionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchCreateMetastorePartitionsRequest.newBuilder() to construct. + private BatchCreateMetastorePartitionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchCreateMetastorePartitionsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateMetastorePartitionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest.class, + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+ * Required. Reference to the table to where the metastore partitions to be + * added, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the metastore partitions to be + * added, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REQUESTS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequestOrBuilder>
+ getRequestsOrBuilderList() {
+ return requests_;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public int getRequestsCount() {
+ return requests_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest getRequests(
+ int index) {
+ return requests_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequestOrBuilder
+ getRequestsOrBuilder(int index) {
+ return requests_.get(index);
+ }
+
+ public static final int SKIP_EXISTING_PARTITIONS_FIELD_NUMBER = 3;
+ private boolean skipExistingPartitions_ = false;
+ /**
+ *
+ *
+ * + * Optional. Mimics the ifNotExists flag in IMetaStoreClient + * add_partitions(..). If the flag is set to false, the server will return + * ALREADY_EXISTS if any partition already exists. If the flag is set to true, + * the server will skip existing partitions and insert only the non-existing + * partitions. + *+ * + *
bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The skipExistingPartitions.
+ */
+ @java.lang.Override
+ public boolean getSkipExistingPartitions() {
+ return skipExistingPartitions_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ for (int i = 0; i < requests_.size(); i++) {
+ output.writeMessage(2, requests_.get(i));
+ }
+ if (skipExistingPartitions_ != false) {
+ output.writeBool(3, skipExistingPartitions_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ for (int i = 0; i < requests_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i));
+ }
+ if (skipExistingPartitions_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, skipExistingPartitions_);
+ }
+ 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.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest other =
+ (com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getRequestsList().equals(other.getRequestsList())) return false;
+ if (getSkipExistingPartitions() != other.getSkipExistingPartitions()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (getRequestsCount() > 0) {
+ hash = (37 * hash) + REQUESTS_FIELD_NUMBER;
+ hash = (53 * hash) + getRequestsList().hashCode();
+ }
+ hash = (37 * hash) + SKIP_EXISTING_PARTITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipExistingPartitions());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ 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.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ 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.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for BatchCreateMetastorePartitions. + *+ * + * Protobuf type {@code + * google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Reference to the table to where the metastore partitions to be + * added, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the metastore partitions to be + * added, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the metastore partitions to be + * added, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the metastore partitions to be + * added, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the metastore partitions to be + * added, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List<
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest>
+ requests_ = java.util.Collections.emptyList();
+
+ private void ensureRequestsIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ requests_ =
+ new java.util.ArrayList<
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest>(
+ requests_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest,
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequestOrBuilder>
+ requestsBuilder_;
+
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public int getRequestsCount() {
+ if (requestsBuilder_ == null) {
+ return requests_.size();
+ } else {
+ return requestsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest getRequests(
+ int index) {
+ if (requestsBuilder_ == null) {
+ return requests_.get(index);
+ } else {
+ return requestsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setRequests(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest value) {
+ if (requestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRequestsIsMutable();
+ requests_.set(index, value);
+ onChanged();
+ } else {
+ requestsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setRequests(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.Builder
+ builderForValue) {
+ if (requestsBuilder_ == null) {
+ ensureRequestsIsMutable();
+ requests_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ requestsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addRequests(
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest value) {
+ if (requestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRequestsIsMutable();
+ requests_.add(value);
+ onChanged();
+ } else {
+ requestsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addRequests(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest value) {
+ if (requestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRequestsIsMutable();
+ requests_.add(index, value);
+ onChanged();
+ } else {
+ requestsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addRequests(
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.Builder
+ builderForValue) {
+ if (requestsBuilder_ == null) {
+ ensureRequestsIsMutable();
+ requests_.add(builderForValue.build());
+ onChanged();
+ } else {
+ requestsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addRequests(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.Builder
+ builderForValue) {
+ if (requestsBuilder_ == null) {
+ ensureRequestsIsMutable();
+ requests_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ requestsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAllRequests(
+ java.lang.Iterable<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest>
+ values) {
+ if (requestsBuilder_ == null) {
+ ensureRequestsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_);
+ onChanged();
+ } else {
+ requestsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearRequests() {
+ if (requestsBuilder_ == null) {
+ requests_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ requestsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removeRequests(int index) {
+ if (requestsBuilder_ == null) {
+ ensureRequestsIsMutable();
+ requests_.remove(index);
+ onChanged();
+ } else {
+ requestsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.Builder
+ getRequestsBuilder(int index) {
+ return getRequestsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequestOrBuilder
+ getRequestsOrBuilder(int index) {
+ if (requestsBuilder_ == null) {
+ return requests_.get(index);
+ } else {
+ return requestsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequestOrBuilder>
+ getRequestsOrBuilderList() {
+ if (requestsBuilder_ != null) {
+ return requestsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(requests_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.Builder
+ addRequestsBuilder() {
+ return getRequestsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.Builder
+ addRequestsBuilder(int index) {
+ return getRequestsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List<
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.Builder>
+ getRequestsBuilderList() {
+ return getRequestsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest,
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequestOrBuilder>
+ getRequestsFieldBuilder() {
+ if (requestsBuilder_ == null) {
+ requestsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest,
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequestOrBuilder>(
+ requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+ requests_ = null;
+ }
+ return requestsBuilder_;
+ }
+
+ private boolean skipExistingPartitions_;
+ /**
+ *
+ *
+ * + * Optional. Mimics the ifNotExists flag in IMetaStoreClient + * add_partitions(..). If the flag is set to false, the server will return + * ALREADY_EXISTS if any partition already exists. If the flag is set to true, + * the server will skip existing partitions and insert only the non-existing + * partitions. + *+ * + *
bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The skipExistingPartitions.
+ */
+ @java.lang.Override
+ public boolean getSkipExistingPartitions() {
+ return skipExistingPartitions_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Mimics the ifNotExists flag in IMetaStoreClient + * add_partitions(..). If the flag is set to false, the server will return + * ALREADY_EXISTS if any partition already exists. If the flag is set to true, + * the server will skip existing partitions and insert only the non-existing + * partitions. + *+ * + *
bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The skipExistingPartitions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSkipExistingPartitions(boolean value) {
+
+ skipExistingPartitions_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Mimics the ifNotExists flag in IMetaStoreClient + * add_partitions(..). If the flag is set to false, the server will return + * ALREADY_EXISTS if any partition already exists. If the flag is set to true, + * the server will skip existing partitions and insert only the non-existing + * partitions. + *+ * + *
bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSkipExistingPartitions() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ skipExistingPartitions_ = false;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest)
+ private static final com.google.cloud.bigquery.storage.v1alpha
+ .BatchCreateMetastorePartitionsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Reference to the table to where the metastore partitions to be + * added, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the metastore partitions to be + * added, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List+ * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest getRequests(int index);
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getRequestsCount();
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequestOrBuilder>
+ getRequestsOrBuilderList();
+ /**
+ *
+ *
+ * + * Required. Requests to add metastore partitions to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequestOrBuilder
+ getRequestsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Mimics the ifNotExists flag in IMetaStoreClient + * add_partitions(..). If the flag is set to false, the server will return + * ALREADY_EXISTS if any partition already exists. If the flag is set to true, + * the server will skip existing partitions and insert only the non-existing + * partitions. + *+ * + *
bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The skipExistingPartitions.
+ */
+ boolean getSkipExistingPartitions();
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsResponse.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsResponse.java
new file mode 100644
index 0000000000..77222be012
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsResponse.java
@@ -0,0 +1,1011 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Response message for BatchCreateMetastorePartitions. + *+ * + * Protobuf type {@code + * google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse} + */ +public final class BatchCreateMetastorePartitionsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse) + BatchCreateMetastorePartitionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchCreateMetastorePartitionsResponse.newBuilder() to construct. + private BatchCreateMetastorePartitionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchCreateMetastorePartitionsResponse() { + partitions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateMetastorePartitionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse.class, + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse.Builder + .class); + } + + public static final int PARTITIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getPartitionsOrBuilderList() {
+ return partitions_;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ @java.lang.Override
+ public int getPartitionsCount() {
+ return partitions_.size();
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getPartitions(int index) {
+ return partitions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getPartitionsOrBuilder(int index) {
+ return partitions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < partitions_.size(); i++) {
+ output.writeMessage(1, partitions_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < partitions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, partitions_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse other =
+ (com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse) obj;
+
+ if (!getPartitionsList().equals(other.getPartitionsList())) 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 (getPartitionsCount() > 0) {
+ hash = (37 * hash) + PARTITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getPartitionsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse
+ 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.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse
+ 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.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Response message for BatchCreateMetastorePartitions. + *+ * + * Protobuf type {@code + * google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public java.util.List+ * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public int getPartitionsCount() {
+ if (partitionsBuilder_ == null) {
+ return partitions_.size();
+ } else {
+ return partitionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getPartitions(int index) {
+ if (partitionsBuilder_ == null) {
+ return partitions_.get(index);
+ } else {
+ return partitionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder setPartitions(
+ int index, com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (partitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionsIsMutable();
+ partitions_.set(index, value);
+ onChanged();
+ } else {
+ partitionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder setPartitions(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ partitions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ partitionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder addPartitions(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (partitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionsIsMutable();
+ partitions_.add(value);
+ onChanged();
+ } else {
+ partitionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder addPartitions(
+ int index, com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (partitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionsIsMutable();
+ partitions_.add(index, value);
+ onChanged();
+ } else {
+ partitionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder addPartitions(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ partitions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ partitionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder addPartitions(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ partitions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ partitionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder addAllPartitions(
+ java.lang.Iterable extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartition>
+ values) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partitions_);
+ onChanged();
+ } else {
+ partitionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder clearPartitions() {
+ if (partitionsBuilder_ == null) {
+ partitions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ partitionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder removePartitions(int index) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ partitions_.remove(index);
+ onChanged();
+ } else {
+ partitionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ getPartitionsBuilder(int index) {
+ return getPartitionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getPartitionsOrBuilder(int index) {
+ if (partitionsBuilder_ == null) {
+ return partitions_.get(index);
+ } else {
+ return partitionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getPartitionsOrBuilderList() {
+ if (partitionsBuilder_ != null) {
+ return partitionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(partitions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ addPartitionsBuilder() {
+ return getPartitionsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ addPartitionsBuilder(int index) {
+ return getPartitionsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public java.util.List+ * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ java.util.List+ * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getPartitions(int index);
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ int getPartitionsCount();
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ java.util.List extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getPartitionsOrBuilderList();
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been created. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder getPartitionsOrBuilder(
+ int index);
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchDeleteMetastorePartitionsRequest.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchDeleteMetastorePartitionsRequest.java
new file mode 100644
index 0000000000..93f320e0d7
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchDeleteMetastorePartitionsRequest.java
@@ -0,0 +1,1286 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Request message for BatchDeleteMetastorePartitions. The MetastorePartition is + * uniquely identified by values, which is an ordered list. Hence, there is no + * separate name or partition id field. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest} + */ +public final class BatchDeleteMetastorePartitionsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest) + BatchDeleteMetastorePartitionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchDeleteMetastorePartitionsRequest.newBuilder() to construct. + private BatchDeleteMetastorePartitionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchDeleteMetastorePartitionsRequest() { + parent_ = ""; + partitionValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeleteMetastorePartitionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchDeleteMetastorePartitionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchDeleteMetastorePartitionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest.class, + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+ * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARTITION_VALUES_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValuesOrBuilder>
+ getPartitionValuesOrBuilderList() {
+ return partitionValues_;
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public int getPartitionValuesCount() {
+ return partitionValues_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues getPartitionValues(
+ int index) {
+ return partitionValues_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValuesOrBuilder
+ getPartitionValuesOrBuilder(int index) {
+ return partitionValues_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ for (int i = 0; i < partitionValues_.size(); i++) {
+ output.writeMessage(2, partitionValues_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ for (int i = 0; i < partitionValues_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, partitionValues_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest other =
+ (com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getPartitionValuesList().equals(other.getPartitionValuesList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (getPartitionValuesCount() > 0) {
+ hash = (37 * hash) + PARTITION_VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getPartitionValuesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ 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.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ 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.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for BatchDeleteMetastorePartitions. The MetastorePartition is + * uniquely identified by values, which is an ordered list. Hence, there is no + * separate name or partition id field. + *+ * + * Protobuf type {@code + * google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public int getPartitionValuesCount() {
+ if (partitionValuesBuilder_ == null) {
+ return partitionValues_.size();
+ } else {
+ return partitionValuesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues getPartitionValues(
+ int index) {
+ if (partitionValuesBuilder_ == null) {
+ return partitionValues_.get(index);
+ } else {
+ return partitionValuesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setPartitionValues(
+ int index, com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues value) {
+ if (partitionValuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionValuesIsMutable();
+ partitionValues_.set(index, value);
+ onChanged();
+ } else {
+ partitionValuesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setPartitionValues(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.Builder
+ builderForValue) {
+ if (partitionValuesBuilder_ == null) {
+ ensurePartitionValuesIsMutable();
+ partitionValues_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ partitionValuesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addPartitionValues(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues value) {
+ if (partitionValuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionValuesIsMutable();
+ partitionValues_.add(value);
+ onChanged();
+ } else {
+ partitionValuesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addPartitionValues(
+ int index, com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues value) {
+ if (partitionValuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionValuesIsMutable();
+ partitionValues_.add(index, value);
+ onChanged();
+ } else {
+ partitionValuesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addPartitionValues(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.Builder
+ builderForValue) {
+ if (partitionValuesBuilder_ == null) {
+ ensurePartitionValuesIsMutable();
+ partitionValues_.add(builderForValue.build());
+ onChanged();
+ } else {
+ partitionValuesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addPartitionValues(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.Builder
+ builderForValue) {
+ if (partitionValuesBuilder_ == null) {
+ ensurePartitionValuesIsMutable();
+ partitionValues_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ partitionValuesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAllPartitionValues(
+ java.lang.Iterable<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues>
+ values) {
+ if (partitionValuesBuilder_ == null) {
+ ensurePartitionValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partitionValues_);
+ onChanged();
+ } else {
+ partitionValuesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearPartitionValues() {
+ if (partitionValuesBuilder_ == null) {
+ partitionValues_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ partitionValuesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removePartitionValues(int index) {
+ if (partitionValuesBuilder_ == null) {
+ ensurePartitionValuesIsMutable();
+ partitionValues_.remove(index);
+ onChanged();
+ } else {
+ partitionValuesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.Builder
+ getPartitionValuesBuilder(int index) {
+ return getPartitionValuesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValuesOrBuilder
+ getPartitionValuesOrBuilder(int index) {
+ if (partitionValuesBuilder_ == null) {
+ return partitionValues_.get(index);
+ } else {
+ return partitionValuesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValuesOrBuilder>
+ getPartitionValuesOrBuilderList() {
+ if (partitionValuesBuilder_ != null) {
+ return partitionValuesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(partitionValues_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.Builder
+ addPartitionValuesBuilder() {
+ return getPartitionValuesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.Builder
+ addPartitionValuesBuilder(int index) {
+ return getPartitionValuesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List<
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.Builder>
+ getPartitionValuesBuilderList() {
+ return getPartitionValuesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValuesOrBuilder>
+ getPartitionValuesFieldBuilder() {
+ if (partitionValuesBuilder_ == null) {
+ partitionValuesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValuesOrBuilder>(
+ partitionValues_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ partitionValues_ = null;
+ }
+ return partitionValuesBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest)
+ private static final com.google.cloud.bigquery.storage.v1alpha
+ .BatchDeleteMetastorePartitionsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List+ * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues getPartitionValues(int index);
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getPartitionValuesCount();
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValuesOrBuilder>
+ getPartitionValuesOrBuilderList();
+ /**
+ *
+ *
+ * + * Required. The list of metastore partitions (identified by its values) to be + * deleted. A maximum of 100 partitions can be deleted in a batch. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues partition_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValuesOrBuilder
+ getPartitionValuesOrBuilder(int index);
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchSizeTooLargeError.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchSizeTooLargeError.java
new file mode 100644
index 0000000000..4f87a0bc82
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchSizeTooLargeError.java
@@ -0,0 +1,734 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Structured custom error message for batch size too large error. + * The error can be attached as error details in the returned rpc Status for + * more structured error handling in the client. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError} + */ +public final class BatchSizeTooLargeError extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError) + BatchSizeTooLargeErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchSizeTooLargeError.newBuilder() to construct. + private BatchSizeTooLargeError(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchSizeTooLargeError() { + errorMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchSizeTooLargeError(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchSizeTooLargeError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchSizeTooLargeError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError.class, + com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError.Builder.class); + } + + public static final int MAX_BATCH_SIZE_FIELD_NUMBER = 1; + private long maxBatchSize_ = 0L; + /** + * + * + *
+ * The maximum number of items that are supported in a single batch. This is + * returned as a hint to the client to adjust the batch size. + *+ * + *
int64 max_batch_size = 1;
+ *
+ * @return The maxBatchSize.
+ */
+ @java.lang.Override
+ public long getMaxBatchSize() {
+ return maxBatchSize_;
+ }
+
+ public static final int ERROR_MESSAGE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object errorMessage_ = "";
+ /**
+ *
+ *
+ * + * Optional. The error message that is returned to the client. + *+ * + *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The errorMessage.
+ */
+ @java.lang.Override
+ public java.lang.String getErrorMessage() {
+ java.lang.Object ref = errorMessage_;
+ 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();
+ errorMessage_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The error message that is returned to the client. + *+ * + *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for errorMessage.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getErrorMessageBytes() {
+ java.lang.Object ref = errorMessage_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ errorMessage_ = 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 (maxBatchSize_ != 0L) {
+ output.writeInt64(1, maxBatchSize_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (maxBatchSize_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxBatchSize_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_);
+ }
+ 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.bigquery.storage.v1alpha.BatchSizeTooLargeError)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError other =
+ (com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError) obj;
+
+ if (getMaxBatchSize() != other.getMaxBatchSize()) return false;
+ if (!getErrorMessage().equals(other.getErrorMessage())) 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) + MAX_BATCH_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxBatchSize());
+ hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorMessage().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError 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.bigquery.storage.v1alpha.BatchSizeTooLargeError parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError 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.bigquery.storage.v1alpha.BatchSizeTooLargeError parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Structured custom error message for batch size too large error. + * The error can be attached as error details in the returned rpc Status for + * more structured error handling in the client. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The maximum number of items that are supported in a single batch. This is + * returned as a hint to the client to adjust the batch size. + *+ * + *
int64 max_batch_size = 1;
+ *
+ * @return The maxBatchSize.
+ */
+ @java.lang.Override
+ public long getMaxBatchSize() {
+ return maxBatchSize_;
+ }
+ /**
+ *
+ *
+ * + * The maximum number of items that are supported in a single batch. This is + * returned as a hint to the client to adjust the batch size. + *+ * + *
int64 max_batch_size = 1;
+ *
+ * @param value The maxBatchSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxBatchSize(long value) {
+
+ maxBatchSize_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The maximum number of items that are supported in a single batch. This is + * returned as a hint to the client to adjust the batch size. + *+ * + *
int64 max_batch_size = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxBatchSize() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ maxBatchSize_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object errorMessage_ = "";
+ /**
+ *
+ *
+ * + * Optional. The error message that is returned to the client. + *+ * + *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The errorMessage.
+ */
+ public java.lang.String getErrorMessage() {
+ java.lang.Object ref = errorMessage_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ errorMessage_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The error message that is returned to the client. + *+ * + *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for errorMessage.
+ */
+ public com.google.protobuf.ByteString getErrorMessageBytes() {
+ java.lang.Object ref = errorMessage_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ errorMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The error message that is returned to the client. + *+ * + *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The errorMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setErrorMessage(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ errorMessage_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The error message that is returned to the client. + *+ * + *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearErrorMessage() {
+ errorMessage_ = getDefaultInstance().getErrorMessage();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The error message that is returned to the client. + *+ * + *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for errorMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ errorMessage_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError)
+ private static final com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The maximum number of items that are supported in a single batch. This is + * returned as a hint to the client to adjust the batch size. + *+ * + *
int64 max_batch_size = 1;
+ *
+ * @return The maxBatchSize.
+ */
+ long getMaxBatchSize();
+
+ /**
+ *
+ *
+ * + * Optional. The error message that is returned to the client. + *+ * + *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The errorMessage.
+ */
+ java.lang.String getErrorMessage();
+ /**
+ *
+ *
+ * + * Optional. The error message that is returned to the client. + *+ * + *
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for errorMessage.
+ */
+ com.google.protobuf.ByteString getErrorMessageBytes();
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsRequest.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsRequest.java
new file mode 100644
index 0000000000..6479459fdb
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsRequest.java
@@ -0,0 +1,1262 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Request message for BatchUpdateMetastorePartitions. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest} + */ +public final class BatchUpdateMetastorePartitionsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest) + BatchUpdateMetastorePartitionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchUpdateMetastorePartitionsRequest.newBuilder() to construct. + private BatchUpdateMetastorePartitionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchUpdateMetastorePartitionsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateMetastorePartitionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest.class, + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+ * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REQUESTS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequestOrBuilder>
+ getRequestsOrBuilderList() {
+ return requests_;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public int getRequestsCount() {
+ return requests_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest getRequests(
+ int index) {
+ return requests_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequestOrBuilder
+ getRequestsOrBuilder(int index) {
+ return requests_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ for (int i = 0; i < requests_.size(); i++) {
+ output.writeMessage(2, requests_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ for (int i = 0; i < requests_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest other =
+ (com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getRequestsList().equals(other.getRequestsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (getRequestsCount() > 0) {
+ hash = (37 * hash) + REQUESTS_FIELD_NUMBER;
+ hash = (53 * hash) + getRequestsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ 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.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ 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.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for BatchUpdateMetastorePartitions. + *+ * + * Protobuf type {@code + * google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List<
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest>
+ requests_ = java.util.Collections.emptyList();
+
+ private void ensureRequestsIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ requests_ =
+ new java.util.ArrayList<
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest>(
+ requests_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest,
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequestOrBuilder>
+ requestsBuilder_;
+
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public int getRequestsCount() {
+ if (requestsBuilder_ == null) {
+ return requests_.size();
+ } else {
+ return requestsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest getRequests(
+ int index) {
+ if (requestsBuilder_ == null) {
+ return requests_.get(index);
+ } else {
+ return requestsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setRequests(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest value) {
+ if (requestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRequestsIsMutable();
+ requests_.set(index, value);
+ onChanged();
+ } else {
+ requestsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setRequests(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.Builder
+ builderForValue) {
+ if (requestsBuilder_ == null) {
+ ensureRequestsIsMutable();
+ requests_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ requestsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addRequests(
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest value) {
+ if (requestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRequestsIsMutable();
+ requests_.add(value);
+ onChanged();
+ } else {
+ requestsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addRequests(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest value) {
+ if (requestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRequestsIsMutable();
+ requests_.add(index, value);
+ onChanged();
+ } else {
+ requestsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addRequests(
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.Builder
+ builderForValue) {
+ if (requestsBuilder_ == null) {
+ ensureRequestsIsMutable();
+ requests_.add(builderForValue.build());
+ onChanged();
+ } else {
+ requestsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addRequests(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.Builder
+ builderForValue) {
+ if (requestsBuilder_ == null) {
+ ensureRequestsIsMutable();
+ requests_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ requestsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAllRequests(
+ java.lang.Iterable<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest>
+ values) {
+ if (requestsBuilder_ == null) {
+ ensureRequestsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_);
+ onChanged();
+ } else {
+ requestsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearRequests() {
+ if (requestsBuilder_ == null) {
+ requests_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ requestsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removeRequests(int index) {
+ if (requestsBuilder_ == null) {
+ ensureRequestsIsMutable();
+ requests_.remove(index);
+ onChanged();
+ } else {
+ requestsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.Builder
+ getRequestsBuilder(int index) {
+ return getRequestsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequestOrBuilder
+ getRequestsOrBuilder(int index) {
+ if (requestsBuilder_ == null) {
+ return requests_.get(index);
+ } else {
+ return requestsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequestOrBuilder>
+ getRequestsOrBuilderList() {
+ if (requestsBuilder_ != null) {
+ return requestsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(requests_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.Builder
+ addRequestsBuilder() {
+ return getRequestsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.Builder
+ addRequestsBuilder(int index) {
+ return getRequestsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List<
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.Builder>
+ getRequestsBuilderList() {
+ return getRequestsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest,
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequestOrBuilder>
+ getRequestsFieldBuilder() {
+ if (requestsBuilder_ == null) {
+ requestsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest,
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequestOrBuilder>(
+ requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+ requests_ = null;
+ }
+ return requestsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest)
+ private static final com.google.cloud.bigquery.storage.v1alpha
+ .BatchUpdateMetastorePartitionsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List+ * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest getRequests(int index);
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getRequestsCount();
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequestOrBuilder>
+ getRequestsOrBuilderList();
+ /**
+ *
+ *
+ * + * Required. Requests to update metastore partitions in the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequestOrBuilder
+ getRequestsOrBuilder(int index);
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsResponse.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsResponse.java
new file mode 100644
index 0000000000..71da7f0640
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsResponse.java
@@ -0,0 +1,1011 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Response message for BatchUpdateMetastorePartitions. + *+ * + * Protobuf type {@code + * google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse} + */ +public final class BatchUpdateMetastorePartitionsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse) + BatchUpdateMetastorePartitionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchUpdateMetastorePartitionsResponse.newBuilder() to construct. + private BatchUpdateMetastorePartitionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchUpdateMetastorePartitionsResponse() { + partitions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateMetastorePartitionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse.class, + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse.Builder + .class); + } + + public static final int PARTITIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getPartitionsOrBuilderList() {
+ return partitions_;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ @java.lang.Override
+ public int getPartitionsCount() {
+ return partitions_.size();
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getPartitions(int index) {
+ return partitions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getPartitionsOrBuilder(int index) {
+ return partitions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < partitions_.size(); i++) {
+ output.writeMessage(1, partitions_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < partitions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, partitions_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse other =
+ (com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse) obj;
+
+ if (!getPartitionsList().equals(other.getPartitionsList())) 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 (getPartitionsCount() > 0) {
+ hash = (37 * hash) + PARTITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getPartitionsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse
+ 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.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse
+ 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.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Response message for BatchUpdateMetastorePartitions. + *+ * + * Protobuf type {@code + * google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public java.util.List+ * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public int getPartitionsCount() {
+ if (partitionsBuilder_ == null) {
+ return partitions_.size();
+ } else {
+ return partitionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getPartitions(int index) {
+ if (partitionsBuilder_ == null) {
+ return partitions_.get(index);
+ } else {
+ return partitionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder setPartitions(
+ int index, com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (partitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionsIsMutable();
+ partitions_.set(index, value);
+ onChanged();
+ } else {
+ partitionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder setPartitions(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ partitions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ partitionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder addPartitions(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (partitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionsIsMutable();
+ partitions_.add(value);
+ onChanged();
+ } else {
+ partitionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder addPartitions(
+ int index, com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (partitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionsIsMutable();
+ partitions_.add(index, value);
+ onChanged();
+ } else {
+ partitionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder addPartitions(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ partitions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ partitionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder addPartitions(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ partitions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ partitionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder addAllPartitions(
+ java.lang.Iterable extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartition>
+ values) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partitions_);
+ onChanged();
+ } else {
+ partitionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder clearPartitions() {
+ if (partitionsBuilder_ == null) {
+ partitions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ partitionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public Builder removePartitions(int index) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ partitions_.remove(index);
+ onChanged();
+ } else {
+ partitionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ getPartitionsBuilder(int index) {
+ return getPartitionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getPartitionsOrBuilder(int index) {
+ if (partitionsBuilder_ == null) {
+ return partitions_.get(index);
+ } else {
+ return partitionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getPartitionsOrBuilderList() {
+ if (partitionsBuilder_ != null) {
+ return partitionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(partitions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ addPartitionsBuilder() {
+ return getPartitionsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ addPartitionsBuilder(int index) {
+ return getPartitionsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ *
+ */
+ public java.util.List+ * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ java.util.List+ * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getPartitions(int index);
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ int getPartitionsCount();
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ java.util.List extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getPartitionsOrBuilderList();
+ /**
+ *
+ *
+ * + * The list of metastore partitions that have been updated. + *+ * + *
repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1;
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder getPartitionsOrBuilder(
+ int index);
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/CreateMetastorePartitionRequest.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/CreateMetastorePartitionRequest.java
new file mode 100644
index 0000000000..44c3eb0192
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/CreateMetastorePartitionRequest.java
@@ -0,0 +1,992 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Request message for CreateMetastorePartition. The MetastorePartition is + * uniquely identified by values, which is an ordered list. Hence, there is no + * separate name or partition id field. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest} + */ +public final class CreateMetastorePartitionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest) + CreateMetastorePartitionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateMetastorePartitionRequest.newBuilder() to construct. + private CreateMetastorePartitionRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CreateMetastorePartitionRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMetastorePartitionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_CreateMetastorePartitionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_CreateMetastorePartitionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.class, + com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+ * Required. Reference to the table to where the metastore partition to be + * added, in the format of + * projects/{project}/databases/{databases}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the metastore partition to be + * added, in the format of + * projects/{project}/databases/{databases}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int METASTORE_PARTITION_FIELD_NUMBER = 2;
+ private com.google.cloud.bigquery.storage.v1alpha.MetastorePartition metastorePartition_;
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the metastorePartition field is set.
+ */
+ @java.lang.Override
+ public boolean hasMetastorePartition() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The metastorePartition.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getMetastorePartition() {
+ return metastorePartition_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance()
+ : metastorePartition_;
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getMetastorePartitionOrBuilder() {
+ return metastorePartition_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance()
+ : metastorePartition_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getMetastorePartition());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetastorePartition());
+ }
+ 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.bigquery.storage.v1alpha.CreateMetastorePartitionRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest other =
+ (com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (hasMetastorePartition() != other.hasMetastorePartition()) return false;
+ if (hasMetastorePartition()) {
+ if (!getMetastorePartition().equals(other.getMetastorePartition())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasMetastorePartition()) {
+ hash = (37 * hash) + METASTORE_PARTITION_FIELD_NUMBER;
+ hash = (53 * hash) + getMetastorePartition().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest 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.bigquery.storage.v1alpha.CreateMetastorePartitionRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest 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.bigquery.storage.v1alpha.CreateMetastorePartitionRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for CreateMetastorePartition. The MetastorePartition is + * uniquely identified by values, which is an ordered list. Hence, there is no + * separate name or partition id field. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Reference to the table to where the metastore partition to be + * added, in the format of + * projects/{project}/databases/{databases}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the metastore partition to be + * added, in the format of + * projects/{project}/databases/{databases}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the metastore partition to be + * added, in the format of + * projects/{project}/databases/{databases}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the metastore partition to be + * added, in the format of + * projects/{project}/databases/{databases}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the metastore partition to be + * added, in the format of + * projects/{project}/databases/{databases}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.bigquery.storage.v1alpha.MetastorePartition metastorePartition_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ metastorePartitionBuilder_;
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the metastorePartition field is set.
+ */
+ public boolean hasMetastorePartition() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The metastorePartition.
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getMetastorePartition() {
+ if (metastorePartitionBuilder_ == null) {
+ return metastorePartition_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance()
+ : metastorePartition_;
+ } else {
+ return metastorePartitionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setMetastorePartition(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (metastorePartitionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ metastorePartition_ = value;
+ } else {
+ metastorePartitionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setMetastorePartition(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (metastorePartitionBuilder_ == null) {
+ metastorePartition_ = builderForValue.build();
+ } else {
+ metastorePartitionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeMetastorePartition(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (metastorePartitionBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && metastorePartition_ != null
+ && metastorePartition_
+ != com.google.cloud.bigquery.storage.v1alpha.MetastorePartition
+ .getDefaultInstance()) {
+ getMetastorePartitionBuilder().mergeFrom(value);
+ } else {
+ metastorePartition_ = value;
+ }
+ } else {
+ metastorePartitionBuilder_.mergeFrom(value);
+ }
+ if (metastorePartition_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearMetastorePartition() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ metastorePartition_ = null;
+ if (metastorePartitionBuilder_ != null) {
+ metastorePartitionBuilder_.dispose();
+ metastorePartitionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ getMetastorePartitionBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getMetastorePartitionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getMetastorePartitionOrBuilder() {
+ if (metastorePartitionBuilder_ != null) {
+ return metastorePartitionBuilder_.getMessageOrBuilder();
+ } else {
+ return metastorePartition_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance()
+ : metastorePartition_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getMetastorePartitionFieldBuilder() {
+ if (metastorePartitionBuilder_ == null) {
+ metastorePartitionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>(
+ getMetastorePartition(), getParentForChildren(), isClean());
+ metastorePartition_ = null;
+ }
+ return metastorePartitionBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest)
+ private static final com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Reference to the table to where the metastore partition to be + * added, in the format of + * projects/{project}/databases/{databases}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the metastore partition to be + * added, in the format of + * projects/{project}/databases/{databases}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the metastorePartition field is set.
+ */
+ boolean hasMetastorePartition();
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The metastorePartition.
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getMetastorePartition();
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be added. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getMetastorePartitionOrBuilder();
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/FieldSchema.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/FieldSchema.java
new file mode 100644
index 0000000000..8fb8f4d2a6
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/FieldSchema.java
@@ -0,0 +1,822 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Schema description of a metastore partition column. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.FieldSchema} + */ +public final class FieldSchema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.FieldSchema) + FieldSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use FieldSchema.newBuilder() to construct. + private FieldSchema(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FieldSchema() { + name_ = ""; + type_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FieldSchema(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_FieldSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_FieldSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.FieldSchema.class, + com.google.cloud.bigquery.storage.v1alpha.FieldSchema.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+ * Required. The name of the column. + * The maximum length of the name is 1024 characters + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the column. + * The maximum length of the name is 1024 characters + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object type_ = "";
+ /**
+ *
+ *
+ * + * Required. The type of the metastore partition column. Maximum allowed + * length is 1024 characters. + *+ * + *
string type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ 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();
+ type_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The type of the metastore partition column. Maximum allowed + * length is 1024 characters. + *+ * + *
string type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for type.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_);
+ }
+ 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.bigquery.storage.v1alpha.FieldSchema)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.FieldSchema other =
+ (com.google.cloud.bigquery.storage.v1alpha.FieldSchema) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getType().equals(other.getType())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getType().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.FieldSchema parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.FieldSchema 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.bigquery.storage.v1alpha.FieldSchema parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.FieldSchema 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.bigquery.storage.v1alpha.FieldSchema parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.FieldSchema parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.FieldSchema parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.FieldSchema parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.FieldSchema parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.FieldSchema parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.FieldSchema parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.FieldSchema parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.FieldSchema prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Schema description of a metastore partition column. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.FieldSchema} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The name of the column. + * The maximum length of the name is 1024 characters + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the column. + * The maximum length of the name is 1024 characters + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the column. + * The maximum length of the name is 1024 characters + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the column. + * The maximum length of the name is 1024 characters + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the column. + * The maximum length of the name is 1024 characters + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object type_ = "";
+ /**
+ *
+ *
+ * + * Required. The type of the metastore partition column. Maximum allowed + * length is 1024 characters. + *+ * + *
string type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The type.
+ */
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ type_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The type of the metastore partition column. Maximum allowed + * length is 1024 characters. + *+ * + *
string type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for type.
+ */
+ public com.google.protobuf.ByteString getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The type of the metastore partition column. Maximum allowed + * length is 1024 characters. + *+ * + *
string type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ type_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The type of the metastore partition column. Maximum allowed + * length is 1024 characters. + *+ * + *
string type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ type_ = getDefaultInstance().getType();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The type of the metastore partition column. Maximum allowed + * length is 1024 characters. + *+ * + *
string type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ type_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.FieldSchema)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.FieldSchema)
+ private static final com.google.cloud.bigquery.storage.v1alpha.FieldSchema DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1alpha.FieldSchema();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.FieldSchema getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The name of the column. + * The maximum length of the name is 1024 characters + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. The name of the column. + * The maximum length of the name is 1024 characters + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Required. The type of the metastore partition column. Maximum allowed + * length is 1024 characters. + *+ * + *
string type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The type.
+ */
+ java.lang.String getType();
+ /**
+ *
+ *
+ * + * Required. The type of the metastore partition column. Maximum allowed + * length is 1024 characters. + *+ * + *
string type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for type.
+ */
+ com.google.protobuf.ByteString getTypeBytes();
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsRequest.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsRequest.java
new file mode 100644
index 0000000000..784ce5db0d
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsRequest.java
@@ -0,0 +1,916 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Request message for ListMetastorePartitions. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest} + */ +public final class ListMetastorePartitionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest) + ListMetastorePartitionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMetastorePartitionsRequest.newBuilder() to construct. + private ListMetastorePartitionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListMetastorePartitionsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMetastorePartitionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest.class, + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+ * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FILTER_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object filter_ = "";
+ /**
+ *
+ *
+ * + * Optional. SQL text filtering statement, similar to a WHERE clause in a + * query. Only supports single-row expressions. Aggregate functions are not + * supported. + * + * Examples: "int_field > 5" + * "date_field = CAST('2014-9-27' as DATE)" + * "nullable_field is not NULL" + * "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" + * "numeric_field BETWEEN 1.0 AND 5.0" + * Restricted to a maximum length for 1 MB. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ @java.lang.Override
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ 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();
+ filter_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. SQL text filtering statement, similar to a WHERE clause in a + * query. Only supports single-row expressions. Aggregate functions are not + * supported. + * + * Examples: "int_field > 5" + * "date_field = CAST('2014-9-27' as DATE)" + * "nullable_field is not NULL" + * "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" + * "numeric_field BETWEEN 1.0 AND 5.0" + * Restricted to a maximum length for 1 MB. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for filter.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
+ }
+ 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.bigquery.storage.v1alpha.ListMetastorePartitionsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest other =
+ (com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getFilter().equals(other.getFilter())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest 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.bigquery.storage.v1alpha.ListMetastorePartitionsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest 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.bigquery.storage.v1alpha.ListMetastorePartitionsRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for ListMetastorePartitions. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object filter_ = "";
+ /**
+ *
+ *
+ * + * Optional. SQL text filtering statement, similar to a WHERE clause in a + * query. Only supports single-row expressions. Aggregate functions are not + * supported. + * + * Examples: "int_field > 5" + * "date_field = CAST('2014-9-27' as DATE)" + * "nullable_field is not NULL" + * "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" + * "numeric_field BETWEEN 1.0 AND 5.0" + * Restricted to a maximum length for 1 MB. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. SQL text filtering statement, similar to a WHERE clause in a + * query. Only supports single-row expressions. Aggregate functions are not + * supported. + * + * Examples: "int_field > 5" + * "date_field = CAST('2014-9-27' as DATE)" + * "nullable_field is not NULL" + * "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" + * "numeric_field BETWEEN 1.0 AND 5.0" + * Restricted to a maximum length for 1 MB. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for filter.
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. SQL text filtering statement, similar to a WHERE clause in a + * query. Only supports single-row expressions. Aggregate functions are not + * supported. + * + * Examples: "int_field > 5" + * "date_field = CAST('2014-9-27' as DATE)" + * "nullable_field is not NULL" + * "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" + * "numeric_field BETWEEN 1.0 AND 5.0" + * Restricted to a maximum length for 1 MB. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ filter_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. SQL text filtering statement, similar to a WHERE clause in a + * query. Only supports single-row expressions. Aggregate functions are not + * supported. + * + * Examples: "int_field > 5" + * "date_field = CAST('2014-9-27' as DATE)" + * "nullable_field is not NULL" + * "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" + * "numeric_field BETWEEN 1.0 AND 5.0" + * Restricted to a maximum length for 1 MB. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFilter() {
+ filter_ = getDefaultInstance().getFilter();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. SQL text filtering statement, similar to a WHERE clause in a + * query. Only supports single-row expressions. Aggregate functions are not + * supported. + * + * Examples: "int_field > 5" + * "date_field = CAST('2014-9-27' as DATE)" + * "nullable_field is not NULL" + * "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" + * "numeric_field BETWEEN 1.0 AND 5.0" + * Restricted to a maximum length for 1 MB. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ filter_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest)
+ private static final com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. Reference to the table to which these metastore partitions + * belong, in the format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Optional. SQL text filtering statement, similar to a WHERE clause in a + * query. Only supports single-row expressions. Aggregate functions are not + * supported. + * + * Examples: "int_field > 5" + * "date_field = CAST('2014-9-27' as DATE)" + * "nullable_field is not NULL" + * "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" + * "numeric_field BETWEEN 1.0 AND 5.0" + * Restricted to a maximum length for 1 MB. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ java.lang.String getFilter();
+ /**
+ *
+ *
+ * + * Optional. SQL text filtering statement, similar to a WHERE clause in a + * query. Only supports single-row expressions. Aggregate functions are not + * supported. + * + * Examples: "int_field > 5" + * "date_field = CAST('2014-9-27' as DATE)" + * "nullable_field is not NULL" + * "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" + * "numeric_field BETWEEN 1.0 AND 5.0" + * Restricted to a maximum length for 1 MB. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for filter.
+ */
+ com.google.protobuf.ByteString getFilterBytes();
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsResponse.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsResponse.java
new file mode 100644
index 0000000000..38aa1f186c
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsResponse.java
@@ -0,0 +1,1146 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Response message for ListMetastorePartitions. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse} + */ +public final class ListMetastorePartitionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse) + ListMetastorePartitionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMetastorePartitionsResponse.newBuilder() to construct. + private ListMetastorePartitionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListMetastorePartitionsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMetastorePartitionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse.class, + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse.Builder + .class); + } + + private int responseCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object response_; + + public enum ResponseCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PARTITIONS(1), + STREAMS(2), + RESPONSE_NOT_SET(0); + private final int value; + + private ResponseCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResponseCase valueOf(int value) { + return forNumber(value); + } + + public static ResponseCase forNumber(int value) { + switch (value) { + case 1: + return PARTITIONS; + case 2: + return STREAMS; + case 0: + return RESPONSE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); + } + + public static final int PARTITIONS_FIELD_NUMBER = 1; + /** + * + * + *
+ * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ *
+ * @return Whether the partitions field is set.
+ */
+ @java.lang.Override
+ public boolean hasPartitions() {
+ return responseCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ *
+ * @return The partitions.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList getPartitions() {
+ if (responseCase_ == 1) {
+ return (com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) response_;
+ }
+ return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionListOrBuilder
+ getPartitionsOrBuilder() {
+ if (responseCase_ == 1) {
+ return (com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) response_;
+ }
+ return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.getDefaultInstance();
+ }
+
+ public static final int STREAMS_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ *
+ * @return Whether the streams field is set.
+ */
+ @java.lang.Override
+ public boolean hasStreams() {
+ return responseCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ *
+ * @return The streams.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.StreamList getStreams() {
+ if (responseCase_ == 2) {
+ return (com.google.cloud.bigquery.storage.v1alpha.StreamList) response_;
+ }
+ return com.google.cloud.bigquery.storage.v1alpha.StreamList.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.StreamListOrBuilder getStreamsOrBuilder() {
+ if (responseCase_ == 2) {
+ return (com.google.cloud.bigquery.storage.v1alpha.StreamList) response_;
+ }
+ return com.google.cloud.bigquery.storage.v1alpha.StreamList.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (responseCase_ == 1) {
+ output.writeMessage(
+ 1, (com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) response_);
+ }
+ if (responseCase_ == 2) {
+ output.writeMessage(2, (com.google.cloud.bigquery.storage.v1alpha.StreamList) response_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (responseCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) response_);
+ }
+ if (responseCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.cloud.bigquery.storage.v1alpha.StreamList) response_);
+ }
+ 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.bigquery.storage.v1alpha.ListMetastorePartitionsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse other =
+ (com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse) obj;
+
+ if (!getResponseCase().equals(other.getResponseCase())) return false;
+ switch (responseCase_) {
+ case 1:
+ if (!getPartitions().equals(other.getPartitions())) return false;
+ break;
+ case 2:
+ if (!getStreams().equals(other.getStreams())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (responseCase_) {
+ case 1:
+ hash = (37 * hash) + PARTITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getPartitions().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + STREAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getStreams().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse 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.bigquery.storage.v1alpha.ListMetastorePartitionsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse 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.bigquery.storage.v1alpha.ListMetastorePartitionsResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Response message for ListMetastorePartitions. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ *
+ * @return Whether the partitions field is set.
+ */
+ @java.lang.Override
+ public boolean hasPartitions() {
+ return responseCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ *
+ * @return The partitions.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList getPartitions() {
+ if (partitionsBuilder_ == null) {
+ if (responseCase_ == 1) {
+ return (com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) response_;
+ }
+ return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList
+ .getDefaultInstance();
+ } else {
+ if (responseCase_ == 1) {
+ return partitionsBuilder_.getMessage();
+ }
+ return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ */
+ public Builder setPartitions(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList value) {
+ if (partitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ response_ = value;
+ onChanged();
+ } else {
+ partitionsBuilder_.setMessage(value);
+ }
+ responseCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ */
+ public Builder setPartitions(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.Builder builderForValue) {
+ if (partitionsBuilder_ == null) {
+ response_ = builderForValue.build();
+ onChanged();
+ } else {
+ partitionsBuilder_.setMessage(builderForValue.build());
+ }
+ responseCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ */
+ public Builder mergePartitions(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList value) {
+ if (partitionsBuilder_ == null) {
+ if (responseCase_ == 1
+ && response_
+ != com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList
+ .getDefaultInstance()) {
+ response_ =
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.newBuilder(
+ (com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) response_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ response_ = value;
+ }
+ onChanged();
+ } else {
+ if (responseCase_ == 1) {
+ partitionsBuilder_.mergeFrom(value);
+ } else {
+ partitionsBuilder_.setMessage(value);
+ }
+ }
+ responseCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ */
+ public Builder clearPartitions() {
+ if (partitionsBuilder_ == null) {
+ if (responseCase_ == 1) {
+ responseCase_ = 0;
+ response_ = null;
+ onChanged();
+ }
+ } else {
+ if (responseCase_ == 1) {
+ responseCase_ = 0;
+ response_ = null;
+ }
+ partitionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.Builder
+ getPartitionsBuilder() {
+ return getPartitionsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionListOrBuilder
+ getPartitionsOrBuilder() {
+ if ((responseCase_ == 1) && (partitionsBuilder_ != null)) {
+ return partitionsBuilder_.getMessageOrBuilder();
+ } else {
+ if (responseCase_ == 1) {
+ return (com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) response_;
+ }
+ return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionListOrBuilder>
+ getPartitionsFieldBuilder() {
+ if (partitionsBuilder_ == null) {
+ if (!(responseCase_ == 1)) {
+ response_ =
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.getDefaultInstance();
+ }
+ partitionsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionListOrBuilder>(
+ (com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) response_,
+ getParentForChildren(),
+ isClean());
+ response_ = null;
+ }
+ responseCase_ = 1;
+ onChanged();
+ return partitionsBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.StreamList,
+ com.google.cloud.bigquery.storage.v1alpha.StreamList.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.StreamListOrBuilder>
+ streamsBuilder_;
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ *
+ * @return Whether the streams field is set.
+ */
+ @java.lang.Override
+ public boolean hasStreams() {
+ return responseCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ *
+ * @return The streams.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.StreamList getStreams() {
+ if (streamsBuilder_ == null) {
+ if (responseCase_ == 2) {
+ return (com.google.cloud.bigquery.storage.v1alpha.StreamList) response_;
+ }
+ return com.google.cloud.bigquery.storage.v1alpha.StreamList.getDefaultInstance();
+ } else {
+ if (responseCase_ == 2) {
+ return streamsBuilder_.getMessage();
+ }
+ return com.google.cloud.bigquery.storage.v1alpha.StreamList.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ */
+ public Builder setStreams(com.google.cloud.bigquery.storage.v1alpha.StreamList value) {
+ if (streamsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ response_ = value;
+ onChanged();
+ } else {
+ streamsBuilder_.setMessage(value);
+ }
+ responseCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ */
+ public Builder setStreams(
+ com.google.cloud.bigquery.storage.v1alpha.StreamList.Builder builderForValue) {
+ if (streamsBuilder_ == null) {
+ response_ = builderForValue.build();
+ onChanged();
+ } else {
+ streamsBuilder_.setMessage(builderForValue.build());
+ }
+ responseCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ */
+ public Builder mergeStreams(com.google.cloud.bigquery.storage.v1alpha.StreamList value) {
+ if (streamsBuilder_ == null) {
+ if (responseCase_ == 2
+ && response_
+ != com.google.cloud.bigquery.storage.v1alpha.StreamList.getDefaultInstance()) {
+ response_ =
+ com.google.cloud.bigquery.storage.v1alpha.StreamList.newBuilder(
+ (com.google.cloud.bigquery.storage.v1alpha.StreamList) response_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ response_ = value;
+ }
+ onChanged();
+ } else {
+ if (responseCase_ == 2) {
+ streamsBuilder_.mergeFrom(value);
+ } else {
+ streamsBuilder_.setMessage(value);
+ }
+ }
+ responseCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ */
+ public Builder clearStreams() {
+ if (streamsBuilder_ == null) {
+ if (responseCase_ == 2) {
+ responseCase_ = 0;
+ response_ = null;
+ onChanged();
+ }
+ } else {
+ if (responseCase_ == 2) {
+ responseCase_ = 0;
+ response_ = null;
+ }
+ streamsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.StreamList.Builder getStreamsBuilder() {
+ return getStreamsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.StreamListOrBuilder getStreamsOrBuilder() {
+ if ((responseCase_ == 2) && (streamsBuilder_ != null)) {
+ return streamsBuilder_.getMessageOrBuilder();
+ } else {
+ if (responseCase_ == 2) {
+ return (com.google.cloud.bigquery.storage.v1alpha.StreamList) response_;
+ }
+ return com.google.cloud.bigquery.storage.v1alpha.StreamList.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.StreamList,
+ com.google.cloud.bigquery.storage.v1alpha.StreamList.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.StreamListOrBuilder>
+ getStreamsFieldBuilder() {
+ if (streamsBuilder_ == null) {
+ if (!(responseCase_ == 2)) {
+ response_ = com.google.cloud.bigquery.storage.v1alpha.StreamList.getDefaultInstance();
+ }
+ streamsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.StreamList,
+ com.google.cloud.bigquery.storage.v1alpha.StreamList.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.StreamListOrBuilder>(
+ (com.google.cloud.bigquery.storage.v1alpha.StreamList) response_,
+ getParentForChildren(),
+ isClean());
+ response_ = null;
+ }
+ responseCase_ = 2;
+ onChanged();
+ return streamsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse)
+ private static final com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ *
+ * @return Whether the partitions field is set.
+ */
+ boolean hasPartitions();
+ /**
+ *
+ *
+ * + * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ *
+ * @return The partitions.
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList getPartitions();
+ /**
+ *
+ *
+ * + * The list of partitions. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList partitions = 1;
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionListOrBuilder
+ getPartitionsOrBuilder();
+
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ *
+ * @return Whether the streams field is set.
+ */
+ boolean hasStreams();
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ *
+ * @return The streams.
+ */
+ com.google.cloud.bigquery.storage.v1alpha.StreamList getStreams();
+ /**
+ *
+ *
+ * + * The list of streams. + *+ * + *
.google.cloud.bigquery.storage.v1alpha.StreamList streams = 2;
+ */
+ com.google.cloud.bigquery.storage.v1alpha.StreamListOrBuilder getStreamsOrBuilder();
+
+ com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse.ResponseCase
+ getResponseCase();
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartition.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartition.java
new file mode 100644
index 0000000000..b164b92db6
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartition.java
@@ -0,0 +1,2274 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Information about a Hive partition. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.MetastorePartition} + */ +public final class MetastorePartition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.MetastorePartition) + MetastorePartitionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetastorePartition.newBuilder() to construct. + private MetastorePartition(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private MetastorePartition() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + fields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetastorePartition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.class, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder.class); + } + + private int bitField0_; + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+ * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the values.
+ */
+ public com.google.protobuf.ProtocolStringList getValuesList() {
+ return values_;
+ }
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ public com.google.protobuf.ByteString getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+
+ public static final int CREATE_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp createTime_;
+ /**
+ *
+ *
+ * + * Output only. The creation time of the partition. + *+ * + *
.google.protobuf.Timestamp create_time = 2 [(.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. The creation time of the partition. + *+ * + *
.google.protobuf.Timestamp create_time = 2 [(.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. The creation time of the partition. + *+ * + *
.google.protobuf.Timestamp create_time = 2 [(.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 STORAGE_DESCRIPTOR_FIELD_NUMBER = 3;
+ private com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor storageDescriptor_;
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the storageDescriptor field is set.
+ */
+ @java.lang.Override
+ public boolean hasStorageDescriptor() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The storageDescriptor.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor getStorageDescriptor() {
+ return storageDescriptor_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.getDefaultInstance()
+ : storageDescriptor_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.StorageDescriptorOrBuilder
+ getStorageDescriptorOrBuilder() {
+ return storageDescriptor_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.getDefaultInstance()
+ : storageDescriptor_;
+ }
+
+ public static final int PARAMETERS_FIELD_NUMBER = 4;
+
+ private static final class ParametersDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public boolean containsParameters(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetParameters().getMap().containsKey(key);
+ }
+ /** Use {@link #getParametersMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map+ * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getParametersOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.lang.String getParametersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.bigquery.storage.v1alpha.FieldSchemaOrBuilder>
+ getFieldsOrBuilderList() {
+ return fields_;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getFieldsCount() {
+ return fields_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.FieldSchema getFields(int index) {
+ return fields_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.FieldSchemaOrBuilder getFieldsOrBuilder(
+ int index) {
+ return fields_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < values_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getCreateTime());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(3, getStorageDescriptor());
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 4);
+ for (int i = 0; i < fields_.size(); i++) {
+ output.writeMessage(5, fields_.get(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 < values_.size(); i++) {
+ dataSize += computeStringSizeNoTag(values_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getValuesList().size();
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStorageDescriptor());
+ }
+ for (java.util.Map.Entry+ * Information about a Hive partition. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.MetastorePartition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the values.
+ */
+ public com.google.protobuf.ProtocolStringList getValuesList() {
+ values_.makeImmutable();
+ return values_;
+ }
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ public com.google.protobuf.ByteString getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index to set the value at.
+ * @param value The values to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValues(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValues(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param values The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllValues(java.lang.Iterable+ * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValues() {
+ values_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes of the values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValuesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureValuesIsMutable();
+ values_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp createTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ createTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The creation time of the partition. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the partition. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 2 [(.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. The creation time of the partition. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 2 [(.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_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the partition. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the partition. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && createTime_ != null
+ && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getCreateTimeBuilder().mergeFrom(value);
+ } else {
+ createTime_ = value;
+ }
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+ if (createTime_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the partition. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearCreateTime() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
+ createTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the partition. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the partition. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the partition. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
+ }
+ return createTimeBuilder_;
+ }
+
+ private com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor storageDescriptor_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor,
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptorOrBuilder>
+ storageDescriptorBuilder_;
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the storageDescriptor field is set.
+ */
+ public boolean hasStorageDescriptor() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The storageDescriptor.
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor getStorageDescriptor() {
+ if (storageDescriptorBuilder_ == null) {
+ return storageDescriptor_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.getDefaultInstance()
+ : storageDescriptor_;
+ } else {
+ return storageDescriptorBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setStorageDescriptor(
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor value) {
+ if (storageDescriptorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ storageDescriptor_ = value;
+ } else {
+ storageDescriptorBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setStorageDescriptor(
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.Builder builderForValue) {
+ if (storageDescriptorBuilder_ == null) {
+ storageDescriptor_ = builderForValue.build();
+ } else {
+ storageDescriptorBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeStorageDescriptor(
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor value) {
+ if (storageDescriptorBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && storageDescriptor_ != null
+ && storageDescriptor_
+ != com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor
+ .getDefaultInstance()) {
+ getStorageDescriptorBuilder().mergeFrom(value);
+ } else {
+ storageDescriptor_ = value;
+ }
+ } else {
+ storageDescriptorBuilder_.mergeFrom(value);
+ }
+ if (storageDescriptor_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearStorageDescriptor() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ storageDescriptor_ = null;
+ if (storageDescriptorBuilder_ != null) {
+ storageDescriptorBuilder_.dispose();
+ storageDescriptorBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.Builder
+ getStorageDescriptorBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getStorageDescriptorFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.StorageDescriptorOrBuilder
+ getStorageDescriptorOrBuilder() {
+ if (storageDescriptorBuilder_ != null) {
+ return storageDescriptorBuilder_.getMessageOrBuilder();
+ } else {
+ return storageDescriptor_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.getDefaultInstance()
+ : storageDescriptor_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor,
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptorOrBuilder>
+ getStorageDescriptorFieldBuilder() {
+ if (storageDescriptorBuilder_ == null) {
+ storageDescriptorBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor,
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptorOrBuilder>(
+ getStorageDescriptor(), getParentForChildren(), isClean());
+ storageDescriptor_ = null;
+ }
+ return storageDescriptorBuilder_;
+ }
+
+ private com.google.protobuf.MapField+ * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public boolean containsParameters(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetParameters().getMap().containsKey(key);
+ }
+ /** Use {@link #getParametersMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map+ * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getParametersOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.lang.String getParametersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeParameters(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableParameters().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder putParameters(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableParameters().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000008;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder putAllParameters(java.util.Map+ * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getFieldsCount() {
+ if (fieldsBuilder_ == null) {
+ return fields_.size();
+ } else {
+ return fieldsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.FieldSchema getFields(int index) {
+ if (fieldsBuilder_ == null) {
+ return fields_.get(index);
+ } else {
+ return fieldsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setFields(
+ int index, com.google.cloud.bigquery.storage.v1alpha.FieldSchema value) {
+ if (fieldsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldsIsMutable();
+ fields_.set(index, value);
+ onChanged();
+ } else {
+ fieldsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setFields(
+ int index, com.google.cloud.bigquery.storage.v1alpha.FieldSchema.Builder builderForValue) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ fields_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ fieldsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addFields(com.google.cloud.bigquery.storage.v1alpha.FieldSchema value) {
+ if (fieldsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldsIsMutable();
+ fields_.add(value);
+ onChanged();
+ } else {
+ fieldsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addFields(
+ int index, com.google.cloud.bigquery.storage.v1alpha.FieldSchema value) {
+ if (fieldsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldsIsMutable();
+ fields_.add(index, value);
+ onChanged();
+ } else {
+ fieldsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addFields(
+ com.google.cloud.bigquery.storage.v1alpha.FieldSchema.Builder builderForValue) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ fields_.add(builderForValue.build());
+ onChanged();
+ } else {
+ fieldsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addFields(
+ int index, com.google.cloud.bigquery.storage.v1alpha.FieldSchema.Builder builderForValue) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ fields_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ fieldsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllFields(
+ java.lang.Iterable extends com.google.cloud.bigquery.storage.v1alpha.FieldSchema>
+ values) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_);
+ onChanged();
+ } else {
+ fieldsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearFields() {
+ if (fieldsBuilder_ == null) {
+ fields_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ } else {
+ fieldsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeFields(int index) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ fields_.remove(index);
+ onChanged();
+ } else {
+ fieldsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.FieldSchema.Builder getFieldsBuilder(
+ int index) {
+ return getFieldsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.FieldSchemaOrBuilder getFieldsOrBuilder(
+ int index) {
+ if (fieldsBuilder_ == null) {
+ return fields_.get(index);
+ } else {
+ return fieldsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.cloud.bigquery.storage.v1alpha.FieldSchemaOrBuilder>
+ getFieldsOrBuilderList() {
+ if (fieldsBuilder_ != null) {
+ return fieldsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(fields_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.FieldSchema.Builder addFieldsBuilder() {
+ return getFieldsFieldBuilder()
+ .addBuilder(com.google.cloud.bigquery.storage.v1alpha.FieldSchema.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.FieldSchema.Builder addFieldsBuilder(
+ int index) {
+ return getFieldsFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.bigquery.storage.v1alpha.FieldSchema.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * List of metastore partitions. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.MetastorePartitionList} + */ +public final class MetastorePartitionList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) + MetastorePartitionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetastorePartitionList.newBuilder() to construct. + private MetastorePartitionList(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private MetastorePartitionList() { + partitions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetastorePartitionList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.class, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.Builder.class); + } + + public static final int PARTITIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getPartitionsOrBuilderList() {
+ return partitions_;
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public int getPartitionsCount() {
+ return partitions_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getPartitions(int index) {
+ return partitions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getPartitionsOrBuilder(int index) {
+ return partitions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < partitions_.size(); i++) {
+ output.writeMessage(1, partitions_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < partitions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, partitions_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList other =
+ (com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) obj;
+
+ if (!getPartitionsList().equals(other.getPartitionsList())) 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 (getPartitionsCount() > 0) {
+ hash = (37 * hash) + PARTITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getPartitionsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList 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.bigquery.storage.v1alpha.MetastorePartitionList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList 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.bigquery.storage.v1alpha.MetastorePartitionList parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * List of metastore partitions. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.MetastorePartitionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public int getPartitionsCount() {
+ if (partitionsBuilder_ == null) {
+ return partitions_.size();
+ } else {
+ return partitionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getPartitions(int index) {
+ if (partitionsBuilder_ == null) {
+ return partitions_.get(index);
+ } else {
+ return partitionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setPartitions(
+ int index, com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (partitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionsIsMutable();
+ partitions_.set(index, value);
+ onChanged();
+ } else {
+ partitionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setPartitions(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ partitions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ partitionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addPartitions(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (partitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionsIsMutable();
+ partitions_.add(value);
+ onChanged();
+ } else {
+ partitionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addPartitions(
+ int index, com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (partitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionsIsMutable();
+ partitions_.add(index, value);
+ onChanged();
+ } else {
+ partitionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addPartitions(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ partitions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ partitionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addPartitions(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ partitions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ partitionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAllPartitions(
+ java.lang.Iterable extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartition>
+ values) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partitions_);
+ onChanged();
+ } else {
+ partitionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearPartitions() {
+ if (partitionsBuilder_ == null) {
+ partitions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ partitionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removePartitions(int index) {
+ if (partitionsBuilder_ == null) {
+ ensurePartitionsIsMutable();
+ partitions_.remove(index);
+ onChanged();
+ } else {
+ partitionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ getPartitionsBuilder(int index) {
+ return getPartitionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getPartitionsOrBuilder(int index) {
+ if (partitionsBuilder_ == null) {
+ return partitions_.get(index);
+ } else {
+ return partitionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getPartitionsOrBuilderList() {
+ if (partitionsBuilder_ != null) {
+ return partitionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(partitions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ addPartitionsBuilder() {
+ return getPartitionsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ addPartitionsBuilder(int index) {
+ return getPartitionsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List+ * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getPartitions(int index);
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getPartitionsCount();
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getPartitionsOrBuilderList();
+ /**
+ *
+ *
+ * + * Required. List of partitions. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder getPartitionsOrBuilder(
+ int index);
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionOrBuilder.java
new file mode 100644
index 0000000000..591e2391e0
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionOrBuilder.java
@@ -0,0 +1,298 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+public interface MetastorePartitionOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.MetastorePartition)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the values.
+ */
+ java.util.List+ * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of values.
+ */
+ int getValuesCount();
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ java.lang.String getValues(int index);
+ /**
+ *
+ *
+ * + * Required. Represents the values of the partition keys, where each value + * corresponds to a specific partition key in the order in which the keys are + * defined. Each value is limited to 1024 characters. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ com.google.protobuf.ByteString getValuesBytes(int index);
+
+ /**
+ *
+ *
+ * + * Output only. The creation time of the partition. + *+ * + *
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ boolean hasCreateTime();
+ /**
+ *
+ *
+ * + * Output only. The creation time of the partition. + *+ * + *
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The createTime.
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ *
+ *
+ * + * Output only. The creation time of the partition. + *+ * + *
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the storageDescriptor field is set.
+ */
+ boolean hasStorageDescriptor();
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The storageDescriptor.
+ */
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor getStorageDescriptor();
+ /**
+ *
+ *
+ * + * Optional. Contains information about the physical storage of the data in + * the partition. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptorOrBuilder
+ getStorageDescriptorOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getParametersCount();
+ /**
+ *
+ *
+ * + * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ boolean containsParameters(java.lang.String key);
+ /** Use {@link #getParametersMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.Map+ * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ /* nullable */
+ java.lang.String getParametersOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue);
+ /**
+ *
+ *
+ * + * Optional. Additional parameters or metadata associated with the partition. + * Maximum size 10 KiB. + *+ * + *
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.lang.String getParametersOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.FieldSchema getFields(int index);
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getFieldsCount();
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.bigquery.storage.v1alpha.FieldSchemaOrBuilder>
+ getFieldsOrBuilderList();
+ /**
+ *
+ *
+ * + * Optional. List of columns. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.FieldSchemaOrBuilder getFieldsOrBuilder(int index);
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionProto.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionProto.java
new file mode 100644
index 0000000000..e5162526d6
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionProto.java
@@ -0,0 +1,228 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+public final class MetastorePartitionProto {
+ private MetastorePartitionProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_FieldSchema_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_FieldSchema_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_StorageDescriptor_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_StorageDescriptor_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_ParametersEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_ParametersEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_ParametersEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_ParametersEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionList_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionList_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_ReadStream_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_ReadStream_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamList_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamList_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionValues_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionValues_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n5google/cloud/bigquery/storage/v1alpha/"
+ + "partition.proto\022%google.cloud.bigquery.s"
+ + "torage.v1alpha\032\037google/api/field_behavio"
+ + "r.proto\032\031google/api/resource.proto\032\037goog"
+ + "le/protobuf/timestamp.proto\"3\n\013FieldSche"
+ + "ma\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\021\n\004type\030\002 \001(\tB\003\340A\002"
+ + "\"\260\001\n\021StorageDescriptor\022\031\n\014location_uri\030\001"
+ + " \001(\tB\003\340A\001\022\031\n\014input_format\030\002 \001(\tB\003\340A\001\022\032\n\r"
+ + "output_format\030\003 \001(\tB\003\340A\001\022I\n\nserde_info\030\004"
+ + " \001(\01320.google.cloud.bigquery.storage.v1a"
+ + "lpha.SerDeInfoB\003\340A\001\"\320\001\n\tSerDeInfo\022\021\n\004nam"
+ + "e\030\001 \001(\tB\003\340A\001\022\"\n\025serialization_library\030\002 "
+ + "\001(\tB\003\340A\002\022Y\n\nparameters\030\003 \003(\0132@.google.cl"
+ + "oud.bigquery.storage.v1alpha.SerDeInfo.P"
+ + "arametersEntryB\003\340A\001\0321\n\017ParametersEntry\022\013"
+ + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\003\n\022Metas"
+ + "torePartition\022\023\n\006values\030\001 \003(\tB\003\340A\002\0224\n\013cr"
+ + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest"
+ + "ampB\003\340A\003\022Y\n\022storage_descriptor\030\003 \001(\01328.g"
+ + "oogle.cloud.bigquery.storage.v1alpha.Sto"
+ + "rageDescriptorB\003\340A\001\022b\n\nparameters\030\004 \003(\0132"
+ + "I.google.cloud.bigquery.storage.v1alpha."
+ + "MetastorePartition.ParametersEntryB\003\340A\001\022"
+ + "G\n\006fields\030\005 \003(\01322.google.cloud.bigquery."
+ + "storage.v1alpha.FieldSchemaB\003\340A\001\0321\n\017Para"
+ + "metersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
+ + "\0028\001\"l\n\026MetastorePartitionList\022R\n\npartiti"
+ + "ons\030\001 \003(\01329.google.cloud.bigquery.storag"
+ + "e.v1alpha.MetastorePartitionB\003\340A\002\"\272\001\n\nRe"
+ + "adStream\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\010:\225\001\352A\221\001\n)b"
+ + "igquerystorage.googleapis.com/ReadStream"
+ + "\022Kprojects/{project}/locations/{location"
+ + "}/sessions/{session}/streams/{stream}*\013r"
+ + "eadStreams2\nreadStream\"U\n\nStreamList\022G\n\007"
+ + "streams\030\001 \003(\01321.google.cloud.bigquery.st"
+ + "orage.v1alpha.ReadStreamB\003\340A\003\"/\n\030Metasto"
+ + "rePartitionValues\022\023\n\006values\030\001 \003(\tB\003\340A\002B\333"
+ + "\001\n)com.google.cloud.bigquery.storage.v1a"
+ + "lphaB\027MetastorePartitionProtoP\001ZCcloud.g"
+ + "oogle.com/go/bigquery/storage/apiv1alpha"
+ + "/storagepb;storagepb\252\002%Google.Cloud.BigQ"
+ + "uery.Storage.V1Alpha\312\002%Google\\Cloud\\BigQ"
+ + "uery\\Storage\\V1alphab\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_FieldSchema_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_bigquery_storage_v1alpha_FieldSchema_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_FieldSchema_descriptor,
+ new java.lang.String[] {
+ "Name", "Type",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_StorageDescriptor_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_bigquery_storage_v1alpha_StorageDescriptor_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_StorageDescriptor_descriptor,
+ new java.lang.String[] {
+ "LocationUri", "InputFormat", "OutputFormat", "SerdeInfo",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_descriptor,
+ new java.lang.String[] {
+ "Name", "SerializationLibrary", "Parameters",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_ParametersEntry_descriptor =
+ internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_ParametersEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_ParametersEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_descriptor,
+ new java.lang.String[] {
+ "Values", "CreateTime", "StorageDescriptor", "Parameters", "Fields",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_ParametersEntry_descriptor =
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_ParametersEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_ParametersEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionList_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionList_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionList_descriptor,
+ new java.lang.String[] {
+ "Partitions",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_ReadStream_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_cloud_bigquery_storage_v1alpha_ReadStream_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_ReadStream_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamList_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamList_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamList_descriptor,
+ new java.lang.String[] {
+ "Streams",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionValues_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionValues_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionValues_descriptor,
+ new java.lang.String[] {
+ "Values",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.ResourceProto.resource);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceProto.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceProto.java
new file mode 100644
index 0000000000..88eeac59a1
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceProto.java
@@ -0,0 +1,319 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+public final class MetastorePartitionServiceProto {
+ private MetastorePartitionServiceProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_CreateMetastorePartitionRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_CreateMetastorePartitionRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchDeleteMetastorePartitionsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchDeleteMetastorePartitionsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_UpdateMetastorePartitionRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_UpdateMetastorePartitionRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchSizeTooLargeError_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchSizeTooLargeError_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n?google/cloud/bigquery/storage/v1alpha/"
+ + "metastore_partition.proto\022%google.cloud."
+ + "bigquery.storage.v1alpha\032\034google/api/ann"
+ + "otations.proto\032\027google/api/client.proto\032"
+ + "\037google/api/field_behavior.proto\032\031google"
+ + "/api/resource.proto\0325google/cloud/bigque"
+ + "ry/storage/v1alpha/partition.proto\032\033goog"
+ + "le/protobuf/empty.proto\032 google/protobuf"
+ + "/field_mask.proto\"\265\001\n\037CreateMetastorePar"
+ + "titionRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035b"
+ + "igquery.googleapis.com/Table\022[\n\023metastor"
+ + "e_partition\030\002 \001(\01329.google.cloud.bigquer"
+ + "y.storage.v1alpha.MetastorePartitionB\003\340A"
+ + "\002\"\344\001\n%BatchCreateMetastorePartitionsRequ"
+ + "est\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035bigquery.go"
+ + "ogleapis.com/Table\022]\n\010requests\030\002 \003(\0132F.g"
+ + "oogle.cloud.bigquery.storage.v1alpha.Cre"
+ + "ateMetastorePartitionRequestB\003\340A\002\022%\n\030ski"
+ + "p_existing_partitions\030\003 \001(\010B\003\340A\001\"w\n&Batc"
+ + "hCreateMetastorePartitionsResponse\022M\n\npa"
+ + "rtitions\030\001 \003(\01329.google.cloud.bigquery.s"
+ + "torage.v1alpha.MetastorePartition\"\276\001\n%Ba"
+ + "tchDeleteMetastorePartitionsRequest\0225\n\006p"
+ + "arent\030\001 \001(\tB%\340A\002\372A\037\n\035bigquery.googleapis"
+ + ".com/Table\022^\n\020partition_values\030\002 \003(\0132?.g"
+ + "oogle.cloud.bigquery.storage.v1alpha.Met"
+ + "astorePartitionValuesB\003\340A\002\"\264\001\n\037UpdateMet"
+ + "astorePartitionRequest\022[\n\023metastore_part"
+ + "ition\030\001 \001(\01329.google.cloud.bigquery.stor"
+ + "age.v1alpha.MetastorePartitionB\003\340A\002\0224\n\013u"
+ + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field"
+ + "MaskB\003\340A\001\"\275\001\n%BatchUpdateMetastorePartit"
+ + "ionsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035big"
+ + "query.googleapis.com/Table\022]\n\010requests\030\002"
+ + " \003(\0132F.google.cloud.bigquery.storage.v1a"
+ + "lpha.UpdateMetastorePartitionRequestB\003\340A"
+ + "\002\"w\n&BatchUpdateMetastorePartitionsRespo"
+ + "nse\022M\n\npartitions\030\001 \003(\01329.google.cloud.b"
+ + "igquery.storage.v1alpha.MetastorePartiti"
+ + "on\"l\n\036ListMetastorePartitionsRequest\0225\n\006"
+ + "parent\030\001 \001(\tB%\340A\002\372A\037\n\035bigquery.googleapi"
+ + "s.com/Table\022\023\n\006filter\030\002 \001(\tB\003\340A\001\"\310\001\n\037Lis"
+ + "tMetastorePartitionsResponse\022S\n\npartitio"
+ + "ns\030\001 \001(\0132=.google.cloud.bigquery.storage"
+ + ".v1alpha.MetastorePartitionListH\000\022D\n\007str"
+ + "eams\030\002 \001(\01321.google.cloud.bigquery.stora"
+ + "ge.v1alpha.StreamListH\000B\n\n\010response\"\336\001\n "
+ + "StreamMetastorePartitionsRequest\0225\n\006pare"
+ + "nt\030\001 \001(\tB%\340A\002\372A\037\n\035bigquery.googleapis.co"
+ + "m/Table\022\\\n\024metastore_partitions\030\002 \003(\01329."
+ + "google.cloud.bigquery.storage.v1alpha.Me"
+ + "tastorePartitionB\003\340A\001\022%\n\030skip_existing_p"
+ + "artitions\030\003 \001(\010B\003\340A\001\"u\n!StreamMetastoreP"
+ + "artitionsResponse\022\'\n\037total_partitions_st"
+ + "reamed_count\030\002 \001(\003\022\'\n\037total_partitions_i"
+ + "nserted_count\030\003 \001(\003\"L\n\026BatchSizeTooLarge"
+ + "Error\022\026\n\016max_batch_size\030\001 \001(\003\022\032\n\rerror_m"
+ + "essage\030\002 \001(\tB\003\340A\0012\202\013\n\031MetastorePartition"
+ + "Service\022\235\002\n\036BatchCreateMetastorePartitio"
+ + "ns\022L.google.cloud.bigquery.storage.v1alp"
+ + "ha.BatchCreateMetastorePartitionsRequest"
+ + "\032M.google.cloud.bigquery.storage.v1alpha"
+ + ".BatchCreateMetastorePartitionsResponse\""
+ + "^\202\323\344\223\002X\"S/v1alpha/{parent=projects/*/loc"
+ + "ations/*/datasets/*/tables/*}/partitions"
+ + ":batchCreate:\001*\022\346\001\n\036BatchDeleteMetastore"
+ + "Partitions\022L.google.cloud.bigquery.stora"
+ + "ge.v1alpha.BatchDeleteMetastorePartition"
+ + "sRequest\032\026.google.protobuf.Empty\"^\202\323\344\223\002X"
+ + "\"S/v1alpha/{parent=projects/*/locations/"
+ + "*/datasets/*/tables/*}/partitions:batchD"
+ + "elete:\001*\022\235\002\n\036BatchUpdateMetastorePartiti"
+ + "ons\022L.google.cloud.bigquery.storage.v1al"
+ + "pha.BatchUpdateMetastorePartitionsReques"
+ + "t\032M.google.cloud.bigquery.storage.v1alph"
+ + "a.BatchUpdateMetastorePartitionsResponse"
+ + "\"^\202\323\344\223\002X\"S/v1alpha/{parent=projects/*/lo"
+ + "cations/*/datasets/*/tables/*}/partition"
+ + "s:batchUpdate:\001*\022\207\002\n\027ListMetastorePartit"
+ + "ions\022E.google.cloud.bigquery.storage.v1a"
+ + "lpha.ListMetastorePartitionsRequest\032F.go"
+ + "ogle.cloud.bigquery.storage.v1alpha.List"
+ + "MetastorePartitionsResponse\"]\332A\006parent\202\323"
+ + "\344\223\002N\022L/v1alpha/{parent=projects/*/locati"
+ + "ons/*/datasets/*/tables/*}/partitions:li"
+ + "st\022\264\001\n\031StreamMetastorePartitions\022G.googl"
+ + "e.cloud.bigquery.storage.v1alpha.StreamM"
+ + "etastorePartitionsRequest\032H.google.cloud"
+ + ".bigquery.storage.v1alpha.StreamMetastor"
+ + "ePartitionsResponse\"\000(\0010\001\032{\312A\036bigqueryst"
+ + "orage.googleapis.com\322AWhttps://www.googl"
+ + "eapis.com/auth/bigquery,https://www.goog"
+ + "leapis.com/auth/cloud-platformB\272\002\n)com.g"
+ + "oogle.cloud.bigquery.storage.v1alphaB\036Me"
+ + "tastorePartitionServiceProtoP\001ZCcloud.go"
+ + "ogle.com/go/bigquery/storage/apiv1alpha/"
+ + "storagepb;storagepb\252\002%Google.Cloud.BigQu"
+ + "ery.Storage.V1Alpha\312\002%Google\\Cloud\\BigQu"
+ + "ery\\Storage\\V1alpha\352AU\n\035bigquery.googlea"
+ + "pis.com/Table\0224projects/{project}/datase"
+ + "ts/{dataset}/tables/{table}b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ClientProto.getDescriptor(),
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto.getDescriptor(),
+ com.google.protobuf.EmptyProto.getDescriptor(),
+ com.google.protobuf.FieldMaskProto.getDescriptor(),
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_CreateMetastorePartitionRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_bigquery_storage_v1alpha_CreateMetastorePartitionRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_CreateMetastorePartitionRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "MetastorePartition",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Requests", "SkipExistingPartitions",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsResponse_descriptor,
+ new java.lang.String[] {
+ "Partitions",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchDeleteMetastorePartitionsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchDeleteMetastorePartitionsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchDeleteMetastorePartitionsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "PartitionValues",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_UpdateMetastorePartitionRequest_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_cloud_bigquery_storage_v1alpha_UpdateMetastorePartitionRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_UpdateMetastorePartitionRequest_descriptor,
+ new java.lang.String[] {
+ "MetastorePartition", "UpdateMask",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Requests",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsResponse_descriptor,
+ new java.lang.String[] {
+ "Partitions",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Filter",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsResponse_descriptor,
+ new java.lang.String[] {
+ "Partitions", "Streams", "Response",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "MetastorePartitions", "SkipExistingPartitions",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsResponse_descriptor,
+ new java.lang.String[] {
+ "TotalPartitionsStreamedCount", "TotalPartitionsInsertedCount",
+ });
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchSizeTooLargeError_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchSizeTooLargeError_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1alpha_BatchSizeTooLargeError_descriptor,
+ new java.lang.String[] {
+ "MaxBatchSize", "ErrorMessage",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.ClientProto.defaultHost);
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.AnnotationsProto.http);
+ registry.add(com.google.api.ClientProto.methodSignature);
+ registry.add(com.google.api.ClientProto.oauthScopes);
+ registry.add(com.google.api.ResourceProto.resourceDefinition);
+ registry.add(com.google.api.ResourceProto.resourceReference);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ClientProto.getDescriptor();
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto.getDescriptor();
+ com.google.protobuf.EmptyProto.getDescriptor();
+ com.google.protobuf.FieldMaskProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionValues.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionValues.java
new file mode 100644
index 0000000000..03fd062854
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionValues.java
@@ -0,0 +1,745 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Represents the values of a metastore partition. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues} + */ +public final class MetastorePartitionValues extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues) + MetastorePartitionValuesOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetastorePartitionValues.newBuilder() to construct. + private MetastorePartitionValues(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private MetastorePartitionValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetastorePartitionValues(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.class, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+ * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the values.
+ */
+ public com.google.protobuf.ProtocolStringList getValuesList() {
+ return values_;
+ }
+ /**
+ *
+ *
+ * + * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ public com.google.protobuf.ByteString getValuesBytes(int index) {
+ return values_.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 < values_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.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 < values_.size(); i++) {
+ dataSize += computeStringSizeNoTag(values_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getValuesList().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.bigquery.storage.v1alpha.MetastorePartitionValues)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues other =
+ (com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues) obj;
+
+ if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) {
+ hash = (37 * hash) + VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getValuesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues 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.bigquery.storage.v1alpha.MetastorePartitionValues parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues 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.bigquery.storage.v1alpha.MetastorePartitionValues parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Represents the values of a metastore partition. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the values.
+ */
+ public com.google.protobuf.ProtocolStringList getValuesList() {
+ values_.makeImmutable();
+ return values_;
+ }
+ /**
+ *
+ *
+ * + * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ public com.google.protobuf.ByteString getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index to set the value at.
+ * @param value The values to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValues(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValues(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param values The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllValues(java.lang.Iterable+ * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValues() {
+ values_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes of the values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValuesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureValuesIsMutable();
+ values_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues)
+ private static final com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the values.
+ */
+ java.util.List+ * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of values.
+ */
+ int getValuesCount();
+ /**
+ *
+ *
+ * + * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ java.lang.String getValues(int index);
+ /**
+ *
+ *
+ * + * Required. The values of the partition keys, where each value corresponds to + * a specific partition key in the order in which the keys are defined. + *+ * + *
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ com.google.protobuf.ByteString getValuesBytes(int index);
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ReadStream.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ReadStream.java
new file mode 100644
index 0000000000..c2f405a1c0
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ReadStream.java
@@ -0,0 +1,646 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Information about a single stream that is used to read partitions. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.ReadStream} + */ +public final class ReadStream extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.ReadStream) + ReadStreamOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadStream.newBuilder() to construct. + private ReadStream(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ReadStream() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadStream(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_ReadStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_ReadStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.ReadStream.class, + com.google.cloud.bigquery.storage.v1alpha.ReadStream.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+ * Output only. Identifier. Name of the stream, in the form + * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. Identifier. Name of the stream, in the form + * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.bigquery.storage.v1alpha.ReadStream)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.ReadStream other =
+ (com.google.cloud.bigquery.storage.v1alpha.ReadStream) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ReadStream parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ReadStream 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.bigquery.storage.v1alpha.ReadStream parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ReadStream 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.bigquery.storage.v1alpha.ReadStream parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ReadStream parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ReadStream parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ReadStream parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ReadStream parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ReadStream parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ReadStream parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ReadStream parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.bigquery.storage.v1alpha.ReadStream prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Information about a single stream that is used to read partitions. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.ReadStream} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. Identifier. Name of the stream, in the form + * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Identifier. Name of the stream, in the form + * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Identifier. Name of the stream, in the form + * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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;
+ }
+ /**
+ *
+ *
+ * + * Output only. Identifier. Name of the stream, in the form + * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Identifier. Name of the stream, in the form + * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.ReadStream)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.ReadStream)
+ private static final com.google.cloud.bigquery.storage.v1alpha.ReadStream DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1alpha.ReadStream();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.ReadStream getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Output only. Identifier. Name of the stream, in the form + * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ *
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Output only. Identifier. Name of the stream, in the form + * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ *
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/SerDeInfo.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/SerDeInfo.java
new file mode 100644
index 0000000000..9d079adbad
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/SerDeInfo.java
@@ -0,0 +1,1206 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Serializer and deserializer information. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.SerDeInfo} + */ +public final class SerDeInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.SerDeInfo) + SerDeInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use SerDeInfo.newBuilder() to construct. + private SerDeInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private SerDeInfo() { + name_ = ""; + serializationLibrary_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SerDeInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.class, + com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+ * Optional. Name of the SerDe. + * The maximum length is 256 characters. + *+ * + *
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Name of the SerDe. + * The maximum length is 256 characters. + *+ * + *
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @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 SERIALIZATION_LIBRARY_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object serializationLibrary_ = "";
+ /**
+ *
+ *
+ * + * Required. Specifies a fully-qualified class name of the serialization + * library that is responsible for the translation of data between table + * representation and the underlying low-level input and output format + * structures. The maximum length is 256 characters. + *+ * + *
string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The serializationLibrary.
+ */
+ @java.lang.Override
+ public java.lang.String getSerializationLibrary() {
+ java.lang.Object ref = serializationLibrary_;
+ 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();
+ serializationLibrary_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Specifies a fully-qualified class name of the serialization + * library that is responsible for the translation of data between table + * representation and the underlying low-level input and output format + * structures. The maximum length is 256 characters. + *+ * + *
string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for serializationLibrary.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSerializationLibraryBytes() {
+ java.lang.Object ref = serializationLibrary_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serializationLibrary_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARAMETERS_FIELD_NUMBER = 3;
+
+ private static final class ParametersDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public boolean containsParameters(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetParameters().getMap().containsKey(key);
+ }
+ /** Use {@link #getParametersMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map+ * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getParametersOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.lang.String getParametersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Serializer and deserializer information. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.SerDeInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. Name of the SerDe. + * The maximum length is 256 characters. + *+ * + *
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Name of the SerDe. + * The maximum length is 256 characters. + *+ * + *
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Name of the SerDe. + * The maximum length is 256 characters. + *+ * + *
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @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;
+ }
+ /**
+ *
+ *
+ * + * Optional. Name of the SerDe. + * The maximum length is 256 characters. + *+ * + *
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Name of the SerDe. + * The maximum length is 256 characters. + *+ * + *
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serializationLibrary_ = "";
+ /**
+ *
+ *
+ * + * Required. Specifies a fully-qualified class name of the serialization + * library that is responsible for the translation of data between table + * representation and the underlying low-level input and output format + * structures. The maximum length is 256 characters. + *+ * + *
string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The serializationLibrary.
+ */
+ public java.lang.String getSerializationLibrary() {
+ java.lang.Object ref = serializationLibrary_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serializationLibrary_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Specifies a fully-qualified class name of the serialization + * library that is responsible for the translation of data between table + * representation and the underlying low-level input and output format + * structures. The maximum length is 256 characters. + *+ * + *
string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for serializationLibrary.
+ */
+ public com.google.protobuf.ByteString getSerializationLibraryBytes() {
+ java.lang.Object ref = serializationLibrary_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serializationLibrary_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Specifies a fully-qualified class name of the serialization + * library that is responsible for the translation of data between table + * representation and the underlying low-level input and output format + * structures. The maximum length is 256 characters. + *+ * + *
string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The serializationLibrary to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSerializationLibrary(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ serializationLibrary_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Specifies a fully-qualified class name of the serialization + * library that is responsible for the translation of data between table + * representation and the underlying low-level input and output format + * structures. The maximum length is 256 characters. + *+ * + *
string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSerializationLibrary() {
+ serializationLibrary_ = getDefaultInstance().getSerializationLibrary();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Specifies a fully-qualified class name of the serialization + * library that is responsible for the translation of data between table + * representation and the underlying low-level input and output format + * structures. The maximum length is 256 characters. + *+ * + *
string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for serializationLibrary to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSerializationLibraryBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ serializationLibrary_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField+ * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public boolean containsParameters(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetParameters().getMap().containsKey(key);
+ }
+ /** Use {@link #getParametersMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map+ * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getParametersOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.lang.String getParametersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeParameters(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableParameters().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder putParameters(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableParameters().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder putAllParameters(java.util.Map+ * Optional. Name of the SerDe. + * The maximum length is 256 characters. + *+ * + *
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Optional. Name of the SerDe. + * The maximum length is 256 characters. + *+ * + *
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Required. Specifies a fully-qualified class name of the serialization + * library that is responsible for the translation of data between table + * representation and the underlying low-level input and output format + * structures. The maximum length is 256 characters. + *+ * + *
string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The serializationLibrary.
+ */
+ java.lang.String getSerializationLibrary();
+ /**
+ *
+ *
+ * + * Required. Specifies a fully-qualified class name of the serialization + * library that is responsible for the translation of data between table + * representation and the underlying low-level input and output format + * structures. The maximum length is 256 characters. + *+ * + *
string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for serializationLibrary.
+ */
+ com.google.protobuf.ByteString getSerializationLibraryBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getParametersCount();
+ /**
+ *
+ *
+ * + * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ boolean containsParameters(java.lang.String key);
+ /** Use {@link #getParametersMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.Map+ * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ /* nullable */
+ java.lang.String getParametersOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue);
+ /**
+ *
+ *
+ * + * Optional. Key-value pairs that define the initialization parameters for the + * serialization library. + * Maximum size 10 Kib. + *+ * + *
map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.lang.String getParametersOrThrow(java.lang.String key);
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StorageDescriptor.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StorageDescriptor.java
new file mode 100644
index 0000000000..4e2a5ab1e2
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StorageDescriptor.java
@@ -0,0 +1,1339 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * Contains information about the physical storage of the data in the metastore + * partition. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.StorageDescriptor} + */ +public final class StorageDescriptor extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.StorageDescriptor) + StorageDescriptorOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageDescriptor.newBuilder() to construct. + private StorageDescriptor(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StorageDescriptor() { + locationUri_ = ""; + inputFormat_ = ""; + outputFormat_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StorageDescriptor(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_StorageDescriptor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_StorageDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.class, + com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.Builder.class); + } + + private int bitField0_; + public static final int LOCATION_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object locationUri_ = ""; + /** + * + * + *
+ * Optional. The physical location of the metastore partition + * (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or + * 'gs://spark-dataproc-data/pangea-data/*'). + *+ * + *
string location_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The locationUri.
+ */
+ @java.lang.Override
+ public java.lang.String getLocationUri() {
+ java.lang.Object ref = locationUri_;
+ 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();
+ locationUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The physical location of the metastore partition + * (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or + * 'gs://spark-dataproc-data/pangea-data/*'). + *+ * + *
string location_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for locationUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLocationUriBytes() {
+ java.lang.Object ref = locationUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ locationUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INPUT_FORMAT_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object inputFormat_ = "";
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the InputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). + * The maximum length is 128 characters. + *+ * + *
string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The inputFormat.
+ */
+ @java.lang.Override
+ public java.lang.String getInputFormat() {
+ java.lang.Object ref = inputFormat_;
+ 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();
+ inputFormat_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the InputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). + * The maximum length is 128 characters. + *+ * + *
string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for inputFormat.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInputFormatBytes() {
+ java.lang.Object ref = inputFormat_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputFormat_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OUTPUT_FORMAT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object outputFormat_ = "";
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the OutputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). + * The maximum length is 128 characters. + *+ * + *
string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The outputFormat.
+ */
+ @java.lang.Override
+ public java.lang.String getOutputFormat() {
+ java.lang.Object ref = outputFormat_;
+ 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();
+ outputFormat_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the OutputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). + * The maximum length is 128 characters. + *+ * + *
string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for outputFormat.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOutputFormatBytes() {
+ java.lang.Object ref = outputFormat_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputFormat_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERDE_INFO_FIELD_NUMBER = 4;
+ private com.google.cloud.bigquery.storage.v1alpha.SerDeInfo serdeInfo_;
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the serdeInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasSerdeInfo() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The serdeInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.SerDeInfo getSerdeInfo() {
+ return serdeInfo_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.getDefaultInstance()
+ : serdeInfo_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.SerDeInfoOrBuilder getSerdeInfoOrBuilder() {
+ return serdeInfo_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.getDefaultInstance()
+ : serdeInfo_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, locationUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputFormat_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputFormat_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputFormat_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputFormat_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(4, getSerdeInfo());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, locationUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputFormat_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputFormat_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputFormat_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputFormat_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSerdeInfo());
+ }
+ 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.bigquery.storage.v1alpha.StorageDescriptor)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor other =
+ (com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor) obj;
+
+ if (!getLocationUri().equals(other.getLocationUri())) return false;
+ if (!getInputFormat().equals(other.getInputFormat())) return false;
+ if (!getOutputFormat().equals(other.getOutputFormat())) return false;
+ if (hasSerdeInfo() != other.hasSerdeInfo()) return false;
+ if (hasSerdeInfo()) {
+ if (!getSerdeInfo().equals(other.getSerdeInfo())) 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) + LOCATION_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getLocationUri().hashCode();
+ hash = (37 * hash) + INPUT_FORMAT_FIELD_NUMBER;
+ hash = (53 * hash) + getInputFormat().hashCode();
+ hash = (37 * hash) + OUTPUT_FORMAT_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputFormat().hashCode();
+ if (hasSerdeInfo()) {
+ hash = (37 * hash) + SERDE_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getSerdeInfo().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor 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.bigquery.storage.v1alpha.StorageDescriptor parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor 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.bigquery.storage.v1alpha.StorageDescriptor parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Contains information about the physical storage of the data in the metastore + * partition. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.StorageDescriptor} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. The physical location of the metastore partition + * (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or + * 'gs://spark-dataproc-data/pangea-data/*'). + *+ * + *
string location_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The locationUri.
+ */
+ public java.lang.String getLocationUri() {
+ java.lang.Object ref = locationUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ locationUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The physical location of the metastore partition + * (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or + * 'gs://spark-dataproc-data/pangea-data/*'). + *+ * + *
string location_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for locationUri.
+ */
+ public com.google.protobuf.ByteString getLocationUriBytes() {
+ java.lang.Object ref = locationUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ locationUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The physical location of the metastore partition + * (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or + * 'gs://spark-dataproc-data/pangea-data/*'). + *+ * + *
string location_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The locationUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocationUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ locationUri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The physical location of the metastore partition + * (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or + * 'gs://spark-dataproc-data/pangea-data/*'). + *+ * + *
string location_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLocationUri() {
+ locationUri_ = getDefaultInstance().getLocationUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The physical location of the metastore partition + * (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or + * 'gs://spark-dataproc-data/pangea-data/*'). + *+ * + *
string location_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for locationUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocationUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ locationUri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object inputFormat_ = "";
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the InputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). + * The maximum length is 128 characters. + *+ * + *
string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The inputFormat.
+ */
+ public java.lang.String getInputFormat() {
+ java.lang.Object ref = inputFormat_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ inputFormat_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the InputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). + * The maximum length is 128 characters. + *+ * + *
string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for inputFormat.
+ */
+ public com.google.protobuf.ByteString getInputFormatBytes() {
+ java.lang.Object ref = inputFormat_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputFormat_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the InputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). + * The maximum length is 128 characters. + *+ * + *
string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The inputFormat to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputFormat(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ inputFormat_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the InputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). + * The maximum length is 128 characters. + *+ * + *
string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInputFormat() {
+ inputFormat_ = getDefaultInstance().getInputFormat();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the InputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). + * The maximum length is 128 characters. + *+ * + *
string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for inputFormat to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputFormatBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ inputFormat_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object outputFormat_ = "";
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the OutputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). + * The maximum length is 128 characters. + *+ * + *
string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The outputFormat.
+ */
+ public java.lang.String getOutputFormat() {
+ java.lang.Object ref = outputFormat_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputFormat_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the OutputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). + * The maximum length is 128 characters. + *+ * + *
string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for outputFormat.
+ */
+ public com.google.protobuf.ByteString getOutputFormatBytes() {
+ java.lang.Object ref = outputFormat_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputFormat_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the OutputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). + * The maximum length is 128 characters. + *+ * + *
string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The outputFormat to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputFormat(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputFormat_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the OutputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). + * The maximum length is 128 characters. + *+ * + *
string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOutputFormat() {
+ outputFormat_ = getDefaultInstance().getOutputFormat();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the OutputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). + * The maximum length is 128 characters. + *+ * + *
string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for outputFormat to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputFormatBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ outputFormat_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.bigquery.storage.v1alpha.SerDeInfo serdeInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.SerDeInfo,
+ com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.SerDeInfoOrBuilder>
+ serdeInfoBuilder_;
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the serdeInfo field is set.
+ */
+ public boolean hasSerdeInfo() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The serdeInfo.
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.SerDeInfo getSerdeInfo() {
+ if (serdeInfoBuilder_ == null) {
+ return serdeInfo_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.getDefaultInstance()
+ : serdeInfo_;
+ } else {
+ return serdeInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSerdeInfo(com.google.cloud.bigquery.storage.v1alpha.SerDeInfo value) {
+ if (serdeInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ serdeInfo_ = value;
+ } else {
+ serdeInfoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSerdeInfo(
+ com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.Builder builderForValue) {
+ if (serdeInfoBuilder_ == null) {
+ serdeInfo_ = builderForValue.build();
+ } else {
+ serdeInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeSerdeInfo(com.google.cloud.bigquery.storage.v1alpha.SerDeInfo value) {
+ if (serdeInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && serdeInfo_ != null
+ && serdeInfo_
+ != com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.getDefaultInstance()) {
+ getSerdeInfoBuilder().mergeFrom(value);
+ } else {
+ serdeInfo_ = value;
+ }
+ } else {
+ serdeInfoBuilder_.mergeFrom(value);
+ }
+ if (serdeInfo_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearSerdeInfo() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ serdeInfo_ = null;
+ if (serdeInfoBuilder_ != null) {
+ serdeInfoBuilder_.dispose();
+ serdeInfoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.Builder getSerdeInfoBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getSerdeInfoFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.SerDeInfoOrBuilder getSerdeInfoOrBuilder() {
+ if (serdeInfoBuilder_ != null) {
+ return serdeInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return serdeInfo_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.getDefaultInstance()
+ : serdeInfo_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.SerDeInfo,
+ com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.SerDeInfoOrBuilder>
+ getSerdeInfoFieldBuilder() {
+ if (serdeInfoBuilder_ == null) {
+ serdeInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.SerDeInfo,
+ com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.SerDeInfoOrBuilder>(
+ getSerdeInfo(), getParentForChildren(), isClean());
+ serdeInfo_ = null;
+ }
+ return serdeInfoBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.StorageDescriptor)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.StorageDescriptor)
+ private static final com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. The physical location of the metastore partition + * (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or + * 'gs://spark-dataproc-data/pangea-data/*'). + *+ * + *
string location_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The locationUri.
+ */
+ java.lang.String getLocationUri();
+ /**
+ *
+ *
+ * + * Optional. The physical location of the metastore partition + * (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or + * 'gs://spark-dataproc-data/pangea-data/*'). + *+ * + *
string location_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for locationUri.
+ */
+ com.google.protobuf.ByteString getLocationUriBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the InputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). + * The maximum length is 128 characters. + *+ * + *
string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The inputFormat.
+ */
+ java.lang.String getInputFormat();
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the InputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). + * The maximum length is 128 characters. + *+ * + *
string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for inputFormat.
+ */
+ com.google.protobuf.ByteString getInputFormatBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the OutputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). + * The maximum length is 128 characters. + *+ * + *
string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The outputFormat.
+ */
+ java.lang.String getOutputFormat();
+ /**
+ *
+ *
+ * + * Optional. Specifies the fully qualified class name of the OutputFormat + * (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). + * The maximum length is 128 characters. + *+ * + *
string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for outputFormat.
+ */
+ com.google.protobuf.ByteString getOutputFormatBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the serdeInfo field is set.
+ */
+ boolean hasSerdeInfo();
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The serdeInfo.
+ */
+ com.google.cloud.bigquery.storage.v1alpha.SerDeInfo getSerdeInfo();
+ /**
+ *
+ *
+ * + * Optional. Serializer and deserializer information. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.SerDeInfoOrBuilder getSerdeInfoOrBuilder();
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamList.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamList.java
new file mode 100644
index 0000000000..01517aeb7f
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamList.java
@@ -0,0 +1,992 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * List of streams. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.StreamList} + */ +public final class StreamList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.StreamList) + StreamListOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamList.newBuilder() to construct. + private StreamList(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StreamList() { + streams_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_StreamList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_StreamList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.StreamList.class, + com.google.cloud.bigquery.storage.v1alpha.StreamList.Builder.class); + } + + public static final int STREAMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.bigquery.storage.v1alpha.ReadStreamOrBuilder>
+ getStreamsOrBuilderList() {
+ return streams_;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getStreamsCount() {
+ return streams_.size();
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.ReadStream getStreams(int index) {
+ return streams_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.ReadStreamOrBuilder getStreamsOrBuilder(
+ int index) {
+ return streams_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < streams_.size(); i++) {
+ output.writeMessage(1, streams_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < streams_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, streams_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.bigquery.storage.v1alpha.StreamList)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.StreamList other =
+ (com.google.cloud.bigquery.storage.v1alpha.StreamList) obj;
+
+ if (!getStreamsList().equals(other.getStreamsList())) 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 (getStreamsCount() > 0) {
+ hash = (37 * hash) + STREAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getStreamsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamList parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamList 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.bigquery.storage.v1alpha.StreamList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamList 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.bigquery.storage.v1alpha.StreamList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamList parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamList parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamList parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamList parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamList parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamList parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamList parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.bigquery.storage.v1alpha.StreamList prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * List of streams. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.StreamList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getStreamsCount() {
+ if (streamsBuilder_ == null) {
+ return streams_.size();
+ } else {
+ return streamsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.ReadStream getStreams(int index) {
+ if (streamsBuilder_ == null) {
+ return streams_.get(index);
+ } else {
+ return streamsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setStreams(
+ int index, com.google.cloud.bigquery.storage.v1alpha.ReadStream value) {
+ if (streamsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStreamsIsMutable();
+ streams_.set(index, value);
+ onChanged();
+ } else {
+ streamsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setStreams(
+ int index, com.google.cloud.bigquery.storage.v1alpha.ReadStream.Builder builderForValue) {
+ if (streamsBuilder_ == null) {
+ ensureStreamsIsMutable();
+ streams_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ streamsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addStreams(com.google.cloud.bigquery.storage.v1alpha.ReadStream value) {
+ if (streamsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStreamsIsMutable();
+ streams_.add(value);
+ onChanged();
+ } else {
+ streamsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addStreams(
+ int index, com.google.cloud.bigquery.storage.v1alpha.ReadStream value) {
+ if (streamsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStreamsIsMutable();
+ streams_.add(index, value);
+ onChanged();
+ } else {
+ streamsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addStreams(
+ com.google.cloud.bigquery.storage.v1alpha.ReadStream.Builder builderForValue) {
+ if (streamsBuilder_ == null) {
+ ensureStreamsIsMutable();
+ streams_.add(builderForValue.build());
+ onChanged();
+ } else {
+ streamsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addStreams(
+ int index, com.google.cloud.bigquery.storage.v1alpha.ReadStream.Builder builderForValue) {
+ if (streamsBuilder_ == null) {
+ ensureStreamsIsMutable();
+ streams_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ streamsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllStreams(
+ java.lang.Iterable extends com.google.cloud.bigquery.storage.v1alpha.ReadStream> values) {
+ if (streamsBuilder_ == null) {
+ ensureStreamsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_);
+ onChanged();
+ } else {
+ streamsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearStreams() {
+ if (streamsBuilder_ == null) {
+ streams_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ streamsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeStreams(int index) {
+ if (streamsBuilder_ == null) {
+ ensureStreamsIsMutable();
+ streams_.remove(index);
+ onChanged();
+ } else {
+ streamsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.ReadStream.Builder getStreamsBuilder(
+ int index) {
+ return getStreamsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.ReadStreamOrBuilder getStreamsOrBuilder(
+ int index) {
+ if (streamsBuilder_ == null) {
+ return streams_.get(index);
+ } else {
+ return streamsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.cloud.bigquery.storage.v1alpha.ReadStreamOrBuilder>
+ getStreamsOrBuilderList() {
+ if (streamsBuilder_ != null) {
+ return streamsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(streams_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.ReadStream.Builder addStreamsBuilder() {
+ return getStreamsFieldBuilder()
+ .addBuilder(com.google.cloud.bigquery.storage.v1alpha.ReadStream.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.ReadStream.Builder addStreamsBuilder(
+ int index) {
+ return getStreamsFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.bigquery.storage.v1alpha.ReadStream.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List+ * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.ReadStream getStreams(int index);
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getStreamsCount();
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.cloud.bigquery.storage.v1alpha.ReadStreamOrBuilder>
+ getStreamsOrBuilderList();
+ /**
+ *
+ *
+ * + * Output only. List of streams. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.ReadStreamOrBuilder getStreamsOrBuilder(int index);
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsRequest.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsRequest.java
new file mode 100644
index 0000000000..dfd5114625
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsRequest.java
@@ -0,0 +1,1371 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * The top-level message sent by the client to the + * [Partitions.StreamMetastorePartitions]() method. + * Follows the default gRPC streaming maximum size of 4 MB. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest} + */ +public final class StreamMetastorePartitionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest) + StreamMetastorePartitionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamMetastorePartitionsRequest.newBuilder() to construct. + private StreamMetastorePartitionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StreamMetastorePartitionsRequest() { + parent_ = ""; + metastorePartitions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamMetastorePartitionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest.class, + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+ * Required. Reference to the table to where the partition to be added, in the + * format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the partition to be added, in the + * format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int METASTORE_PARTITIONS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getMetastorePartitionsOrBuilderList() {
+ return metastorePartitions_;
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getMetastorePartitionsCount() {
+ return metastorePartitions_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getMetastorePartitions(
+ int index) {
+ return metastorePartitions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getMetastorePartitionsOrBuilder(int index) {
+ return metastorePartitions_.get(index);
+ }
+
+ public static final int SKIP_EXISTING_PARTITIONS_FIELD_NUMBER = 3;
+ private boolean skipExistingPartitions_ = false;
+ /**
+ *
+ *
+ * + * Optional. Mimics the ifNotExists flag in IMetaStoreClient + * add_partitions(..). If the flag is set to false, the server will return + * ALREADY_EXISTS on commit if any partition already exists. If the flag is + * set to true: + * 1) the server will skip existing partitions + * insert only the non-existing partitions as part of the commit. + * 2) The client must set the `skip_existing_partitions` field to true for + * all requests in the stream. + *+ * + *
bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The skipExistingPartitions.
+ */
+ @java.lang.Override
+ public boolean getSkipExistingPartitions() {
+ return skipExistingPartitions_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ for (int i = 0; i < metastorePartitions_.size(); i++) {
+ output.writeMessage(2, metastorePartitions_.get(i));
+ }
+ if (skipExistingPartitions_ != false) {
+ output.writeBool(3, skipExistingPartitions_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ for (int i = 0; i < metastorePartitions_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(2, metastorePartitions_.get(i));
+ }
+ if (skipExistingPartitions_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, skipExistingPartitions_);
+ }
+ 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.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest other =
+ (com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getMetastorePartitionsList().equals(other.getMetastorePartitionsList())) return false;
+ if (getSkipExistingPartitions() != other.getSkipExistingPartitions()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (getMetastorePartitionsCount() > 0) {
+ hash = (37 * hash) + METASTORE_PARTITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getMetastorePartitionsList().hashCode();
+ }
+ hash = (37 * hash) + SKIP_EXISTING_PARTITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipExistingPartitions());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ 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.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ 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.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The top-level message sent by the client to the + * [Partitions.StreamMetastorePartitions]() method. + * Follows the default gRPC streaming maximum size of 4 MB. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Reference to the table to where the partition to be added, in the + * format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the partition to be added, in the + * format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the partition to be added, in the + * format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the partition to be added, in the + * format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the partition to be added, in the + * format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getMetastorePartitionsCount() {
+ if (metastorePartitionsBuilder_ == null) {
+ return metastorePartitions_.size();
+ } else {
+ return metastorePartitionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getMetastorePartitions(
+ int index) {
+ if (metastorePartitionsBuilder_ == null) {
+ return metastorePartitions_.get(index);
+ } else {
+ return metastorePartitionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setMetastorePartitions(
+ int index, com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (metastorePartitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMetastorePartitionsIsMutable();
+ metastorePartitions_.set(index, value);
+ onChanged();
+ } else {
+ metastorePartitionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setMetastorePartitions(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (metastorePartitionsBuilder_ == null) {
+ ensureMetastorePartitionsIsMutable();
+ metastorePartitions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ metastorePartitionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addMetastorePartitions(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (metastorePartitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMetastorePartitionsIsMutable();
+ metastorePartitions_.add(value);
+ onChanged();
+ } else {
+ metastorePartitionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addMetastorePartitions(
+ int index, com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (metastorePartitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMetastorePartitionsIsMutable();
+ metastorePartitions_.add(index, value);
+ onChanged();
+ } else {
+ metastorePartitionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addMetastorePartitions(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (metastorePartitionsBuilder_ == null) {
+ ensureMetastorePartitionsIsMutable();
+ metastorePartitions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ metastorePartitionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addMetastorePartitions(
+ int index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (metastorePartitionsBuilder_ == null) {
+ ensureMetastorePartitionsIsMutable();
+ metastorePartitions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ metastorePartitionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllMetastorePartitions(
+ java.lang.Iterable extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartition>
+ values) {
+ if (metastorePartitionsBuilder_ == null) {
+ ensureMetastorePartitionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metastorePartitions_);
+ onChanged();
+ } else {
+ metastorePartitionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearMetastorePartitions() {
+ if (metastorePartitionsBuilder_ == null) {
+ metastorePartitions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ metastorePartitionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeMetastorePartitions(int index) {
+ if (metastorePartitionsBuilder_ == null) {
+ ensureMetastorePartitionsIsMutable();
+ metastorePartitions_.remove(index);
+ onChanged();
+ } else {
+ metastorePartitionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ getMetastorePartitionsBuilder(int index) {
+ return getMetastorePartitionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getMetastorePartitionsOrBuilder(int index) {
+ if (metastorePartitionsBuilder_ == null) {
+ return metastorePartitions_.get(index);
+ } else {
+ return metastorePartitionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getMetastorePartitionsOrBuilderList() {
+ if (metastorePartitionsBuilder_ != null) {
+ return metastorePartitionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(metastorePartitions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ addMetastorePartitionsBuilder() {
+ return getMetastorePartitionsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ addMetastorePartitionsBuilder(int index) {
+ return getMetastorePartitionsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. Mimics the ifNotExists flag in IMetaStoreClient + * add_partitions(..). If the flag is set to false, the server will return + * ALREADY_EXISTS on commit if any partition already exists. If the flag is + * set to true: + * 1) the server will skip existing partitions + * insert only the non-existing partitions as part of the commit. + * 2) The client must set the `skip_existing_partitions` field to true for + * all requests in the stream. + *+ * + *
bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The skipExistingPartitions.
+ */
+ @java.lang.Override
+ public boolean getSkipExistingPartitions() {
+ return skipExistingPartitions_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Mimics the ifNotExists flag in IMetaStoreClient + * add_partitions(..). If the flag is set to false, the server will return + * ALREADY_EXISTS on commit if any partition already exists. If the flag is + * set to true: + * 1) the server will skip existing partitions + * insert only the non-existing partitions as part of the commit. + * 2) The client must set the `skip_existing_partitions` field to true for + * all requests in the stream. + *+ * + *
bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The skipExistingPartitions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSkipExistingPartitions(boolean value) {
+
+ skipExistingPartitions_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Mimics the ifNotExists flag in IMetaStoreClient + * add_partitions(..). If the flag is set to false, the server will return + * ALREADY_EXISTS on commit if any partition already exists. If the flag is + * set to true: + * 1) the server will skip existing partitions + * insert only the non-existing partitions as part of the commit. + * 2) The client must set the `skip_existing_partitions` field to true for + * all requests in the stream. + *+ * + *
bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSkipExistingPartitions() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ skipExistingPartitions_ = false;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest)
+ private static final com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Reference to the table to where the partition to be added, in the + * format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. Reference to the table to where the partition to be added, in the + * format of + * projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getMetastorePartitions(int index);
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getMetastorePartitionsCount();
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getMetastorePartitionsOrBuilderList();
+ /**
+ *
+ *
+ * + * Optional. A list of metastore partitions to be added to the table. + *+ * + *
+ * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getMetastorePartitionsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Mimics the ifNotExists flag in IMetaStoreClient + * add_partitions(..). If the flag is set to false, the server will return + * ALREADY_EXISTS on commit if any partition already exists. If the flag is + * set to true: + * 1) the server will skip existing partitions + * insert only the non-existing partitions as part of the commit. + * 2) The client must set the `skip_existing_partitions` field to true for + * all requests in the stream. + *+ * + *
bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The skipExistingPartitions.
+ */
+ boolean getSkipExistingPartitions();
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsResponse.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsResponse.java
new file mode 100644
index 0000000000..2c34fe176b
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsResponse.java
@@ -0,0 +1,677 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
+
+// Protobuf Java Version: 3.25.4
+package com.google.cloud.bigquery.storage.v1alpha;
+
+/**
+ *
+ *
+ * + * This is the response message sent by the server + * to the client for the [Partitions.StreamMetastorePartitions]() method when + * the commit is successful. Server will close the stream after sending this + * message. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse} + */ +public final class StreamMetastorePartitionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse) + StreamMetastorePartitionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamMetastorePartitionsResponse.newBuilder() to construct. + private StreamMetastorePartitionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StreamMetastorePartitionsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamMetastorePartitionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse.class, + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse.Builder + .class); + } + + public static final int TOTAL_PARTITIONS_STREAMED_COUNT_FIELD_NUMBER = 2; + private long totalPartitionsStreamedCount_ = 0L; + /** + * + * + *
+ * Total count of partitions streamed by the client during the lifetime of the + * stream. This is only set in the final response message before closing the + * stream. + *+ * + *
int64 total_partitions_streamed_count = 2;
+ *
+ * @return The totalPartitionsStreamedCount.
+ */
+ @java.lang.Override
+ public long getTotalPartitionsStreamedCount() {
+ return totalPartitionsStreamedCount_;
+ }
+
+ public static final int TOTAL_PARTITIONS_INSERTED_COUNT_FIELD_NUMBER = 3;
+ private long totalPartitionsInsertedCount_ = 0L;
+ /**
+ *
+ *
+ * + * Total count of partitions inserted by the server during the lifetime of the + * stream. This is only set in the final response message before closing the + * stream. + *+ * + *
int64 total_partitions_inserted_count = 3;
+ *
+ * @return The totalPartitionsInsertedCount.
+ */
+ @java.lang.Override
+ public long getTotalPartitionsInsertedCount() {
+ return totalPartitionsInsertedCount_;
+ }
+
+ 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 (totalPartitionsStreamedCount_ != 0L) {
+ output.writeInt64(2, totalPartitionsStreamedCount_);
+ }
+ if (totalPartitionsInsertedCount_ != 0L) {
+ output.writeInt64(3, totalPartitionsInsertedCount_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (totalPartitionsStreamedCount_ != 0L) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalPartitionsStreamedCount_);
+ }
+ if (totalPartitionsInsertedCount_ != 0L) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt64Size(3, totalPartitionsInsertedCount_);
+ }
+ 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.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse other =
+ (com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse) obj;
+
+ if (getTotalPartitionsStreamedCount() != other.getTotalPartitionsStreamedCount()) return false;
+ if (getTotalPartitionsInsertedCount() != other.getTotalPartitionsInsertedCount()) 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) + TOTAL_PARTITIONS_STREAMED_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPartitionsStreamedCount());
+ hash = (37 * hash) + TOTAL_PARTITIONS_INSERTED_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPartitionsInsertedCount());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ 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.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ 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.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * This is the response message sent by the server + * to the client for the [Partitions.StreamMetastorePartitions]() method when + * the commit is successful. Server will close the stream after sending this + * message. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Total count of partitions streamed by the client during the lifetime of the + * stream. This is only set in the final response message before closing the + * stream. + *+ * + *
int64 total_partitions_streamed_count = 2;
+ *
+ * @return The totalPartitionsStreamedCount.
+ */
+ @java.lang.Override
+ public long getTotalPartitionsStreamedCount() {
+ return totalPartitionsStreamedCount_;
+ }
+ /**
+ *
+ *
+ * + * Total count of partitions streamed by the client during the lifetime of the + * stream. This is only set in the final response message before closing the + * stream. + *+ * + *
int64 total_partitions_streamed_count = 2;
+ *
+ * @param value The totalPartitionsStreamedCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalPartitionsStreamedCount(long value) {
+
+ totalPartitionsStreamedCount_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Total count of partitions streamed by the client during the lifetime of the + * stream. This is only set in the final response message before closing the + * stream. + *+ * + *
int64 total_partitions_streamed_count = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalPartitionsStreamedCount() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ totalPartitionsStreamedCount_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long totalPartitionsInsertedCount_;
+ /**
+ *
+ *
+ * + * Total count of partitions inserted by the server during the lifetime of the + * stream. This is only set in the final response message before closing the + * stream. + *+ * + *
int64 total_partitions_inserted_count = 3;
+ *
+ * @return The totalPartitionsInsertedCount.
+ */
+ @java.lang.Override
+ public long getTotalPartitionsInsertedCount() {
+ return totalPartitionsInsertedCount_;
+ }
+ /**
+ *
+ *
+ * + * Total count of partitions inserted by the server during the lifetime of the + * stream. This is only set in the final response message before closing the + * stream. + *+ * + *
int64 total_partitions_inserted_count = 3;
+ *
+ * @param value The totalPartitionsInsertedCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalPartitionsInsertedCount(long value) {
+
+ totalPartitionsInsertedCount_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Total count of partitions inserted by the server during the lifetime of the + * stream. This is only set in the final response message before closing the + * stream. + *+ * + *
int64 total_partitions_inserted_count = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalPartitionsInsertedCount() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ totalPartitionsInsertedCount_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse)
+ private static final com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Total count of partitions streamed by the client during the lifetime of the + * stream. This is only set in the final response message before closing the + * stream. + *+ * + *
int64 total_partitions_streamed_count = 2;
+ *
+ * @return The totalPartitionsStreamedCount.
+ */
+ long getTotalPartitionsStreamedCount();
+
+ /**
+ *
+ *
+ * + * Total count of partitions inserted by the server during the lifetime of the + * stream. This is only set in the final response message before closing the + * stream. + *+ * + *
int64 total_partitions_inserted_count = 3;
+ *
+ * @return The totalPartitionsInsertedCount.
+ */
+ long getTotalPartitionsInsertedCount();
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/TableName.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/TableName.java
new file mode 100644
index 0000000000..9cd725b8ac
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/TableName.java
@@ -0,0 +1,217 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.bigquery.storage.v1alpha;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
+public class TableName implements ResourceName {
+ private static final PathTemplate PROJECT_DATASET_TABLE =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}/datasets/{dataset}/tables/{table}");
+ private volatile Map+ * Request message for UpdateMetastorePartition. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest} + */ +public final class UpdateMetastorePartitionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest) + UpdateMetastorePartitionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateMetastorePartitionRequest.newBuilder() to construct. + private UpdateMetastorePartitionRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private UpdateMetastorePartitionRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateMetastorePartitionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_UpdateMetastorePartitionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_UpdateMetastorePartitionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.class, + com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.Builder + .class); + } + + private int bitField0_; + public static final int METASTORE_PARTITION_FIELD_NUMBER = 1; + private com.google.cloud.bigquery.storage.v1alpha.MetastorePartition metastorePartition_; + /** + * + * + *
+ * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the metastorePartition field is set.
+ */
+ @java.lang.Override
+ public boolean hasMetastorePartition() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The metastorePartition.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getMetastorePartition() {
+ return metastorePartition_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance()
+ : metastorePartition_;
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getMetastorePartitionOrBuilder() {
+ return metastorePartition_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance()
+ : metastorePartition_;
+ }
+
+ public static final int UPDATE_MASK_FIELD_NUMBER = 2;
+ private com.google.protobuf.FieldMask updateMask_;
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the updateMask field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateMask() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The updateMask.
+ */
+ @java.lang.Override
+ public com.google.protobuf.FieldMask getUpdateMask() {
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+ }
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getMetastorePartition());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getUpdateMask());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetastorePartition());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest other =
+ (com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest) obj;
+
+ if (hasMetastorePartition() != other.hasMetastorePartition()) return false;
+ if (hasMetastorePartition()) {
+ if (!getMetastorePartition().equals(other.getMetastorePartition())) return false;
+ }
+ if (hasUpdateMask() != other.hasUpdateMask()) return false;
+ if (hasUpdateMask()) {
+ if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasMetastorePartition()) {
+ hash = (37 * hash) + METASTORE_PARTITION_FIELD_NUMBER;
+ hash = (53 * hash) + getMetastorePartition().hashCode();
+ }
+ if (hasUpdateMask()) {
+ hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateMask().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest 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.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest 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.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for UpdateMetastorePartition. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the metastorePartition field is set.
+ */
+ public boolean hasMetastorePartition() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The metastorePartition.
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getMetastorePartition() {
+ if (metastorePartitionBuilder_ == null) {
+ return metastorePartition_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance()
+ : metastorePartition_;
+ } else {
+ return metastorePartitionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setMetastorePartition(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (metastorePartitionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ metastorePartition_ = value;
+ } else {
+ metastorePartitionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setMetastorePartition(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder builderForValue) {
+ if (metastorePartitionBuilder_ == null) {
+ metastorePartition_ = builderForValue.build();
+ } else {
+ metastorePartitionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeMetastorePartition(
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition value) {
+ if (metastorePartitionBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && metastorePartition_ != null
+ && metastorePartition_
+ != com.google.cloud.bigquery.storage.v1alpha.MetastorePartition
+ .getDefaultInstance()) {
+ getMetastorePartitionBuilder().mergeFrom(value);
+ } else {
+ metastorePartition_ = value;
+ }
+ } else {
+ metastorePartitionBuilder_.mergeFrom(value);
+ }
+ if (metastorePartition_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearMetastorePartition() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ metastorePartition_ = null;
+ if (metastorePartitionBuilder_ != null) {
+ metastorePartitionBuilder_.dispose();
+ metastorePartitionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder
+ getMetastorePartitionBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getMetastorePartitionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getMetastorePartitionOrBuilder() {
+ if (metastorePartitionBuilder_ != null) {
+ return metastorePartitionBuilder_.getMessageOrBuilder();
+ } else {
+ return metastorePartition_ == null
+ ? com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance()
+ : metastorePartition_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>
+ getMetastorePartitionFieldBuilder() {
+ if (metastorePartitionBuilder_ == null) {
+ metastorePartitionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder,
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>(
+ getMetastorePartition(), getParentForChildren(), isClean());
+ metastorePartition_ = null;
+ }
+ return metastorePartitionBuilder_;
+ }
+
+ private com.google.protobuf.FieldMask updateMask_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.FieldMask,
+ com.google.protobuf.FieldMask.Builder,
+ com.google.protobuf.FieldMaskOrBuilder>
+ updateMaskBuilder_;
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the updateMask field is set.
+ */
+ public boolean hasUpdateMask() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The updateMask.
+ */
+ public com.google.protobuf.FieldMask getUpdateMask() {
+ if (updateMaskBuilder_ == null) {
+ return updateMask_ == null
+ ? com.google.protobuf.FieldMask.getDefaultInstance()
+ : updateMask_;
+ } else {
+ return updateMaskBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
+ if (updateMaskBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateMask_ = value;
+ } else {
+ updateMaskBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+ if (updateMaskBuilder_ == null) {
+ updateMask_ = builderForValue.build();
+ } else {
+ updateMaskBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
+ if (updateMaskBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && updateMask_ != null
+ && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+ getUpdateMaskBuilder().mergeFrom(value);
+ } else {
+ updateMask_ = value;
+ }
+ } else {
+ updateMaskBuilder_.mergeFrom(value);
+ }
+ if (updateMask_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearUpdateMask() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ updateMask_ = null;
+ if (updateMaskBuilder_ != null) {
+ updateMaskBuilder_.dispose();
+ updateMaskBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getUpdateMaskFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
+ if (updateMaskBuilder_ != null) {
+ return updateMaskBuilder_.getMessageOrBuilder();
+ } else {
+ return updateMask_ == null
+ ? com.google.protobuf.FieldMask.getDefaultInstance()
+ : updateMask_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.FieldMask,
+ com.google.protobuf.FieldMask.Builder,
+ com.google.protobuf.FieldMaskOrBuilder>
+ getUpdateMaskFieldBuilder() {
+ if (updateMaskBuilder_ == null) {
+ updateMaskBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.FieldMask,
+ com.google.protobuf.FieldMask.Builder,
+ com.google.protobuf.FieldMaskOrBuilder>(
+ getUpdateMask(), getParentForChildren(), isClean());
+ updateMask_ = null;
+ }
+ return updateMaskBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest)
+ private static final com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the metastorePartition field is set.
+ */
+ boolean hasMetastorePartition();
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The metastorePartition.
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getMetastorePartition();
+ /**
+ *
+ *
+ * + * Required. The metastore partition to be updated. + *+ * + *
+ * .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partition = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder
+ getMetastorePartitionOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the updateMask field is set.
+ */
+ boolean hasUpdateMask();
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The updateMask.
+ */
+ com.google.protobuf.FieldMask getUpdateMask();
+ /**
+ *
+ *
+ * + * Optional. The list of fields to update. + *+ * + *
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/proto/google/cloud/bigquery/storage/v1alpha/metastore_partition.proto b/proto-google-cloud-bigquerystorage-v1alpha/src/main/proto/google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
new file mode 100644
index 0000000000..0cf3ade11b
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/proto/google/cloud/bigquery/storage/v1alpha/metastore_partition.proto
@@ -0,0 +1,282 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.storage.v1alpha;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/bigquery/storage/v1alpha/partition.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+
+option csharp_namespace = "Google.Cloud.BigQuery.Storage.V1Alpha";
+option go_package = "cloud.google.com/go/bigquery/storage/apiv1alpha/storagepb;storagepb";
+option java_multiple_files = true;
+option java_outer_classname = "MetastorePartitionServiceProto";
+option java_package = "com.google.cloud.bigquery.storage.v1alpha";
+option php_namespace = "Google\\Cloud\\BigQuery\\Storage\\V1alpha";
+option (google.api.resource_definition) = {
+ type: "bigquery.googleapis.com/Table"
+ pattern: "projects/{project}/datasets/{dataset}/tables/{table}"
+};
+
+// BigQuery Metastore Partition Service API.
+// This service is used for managing metastore partitions in BigQuery metastore.
+// The service supports only batch operations for write.
+service MetastorePartitionService {
+ option (google.api.default_host) = "bigquerystorage.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/bigquery,"
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Adds metastore partitions to a table.
+ rpc BatchCreateMetastorePartitions(BatchCreateMetastorePartitionsRequest)
+ returns (BatchCreateMetastorePartitionsResponse) {
+ option (google.api.http) = {
+ post: "/v1alpha/{parent=projects/*/locations/*/datasets/*/tables/*}/partitions:batchCreate"
+ body: "*"
+ };
+ }
+
+ // Deletes metastore partitions from a table.
+ rpc BatchDeleteMetastorePartitions(BatchDeleteMetastorePartitionsRequest)
+ returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/v1alpha/{parent=projects/*/locations/*/datasets/*/tables/*}/partitions:batchDelete"
+ body: "*"
+ };
+ }
+
+ // Updates metastore partitions in a table.
+ rpc BatchUpdateMetastorePartitions(BatchUpdateMetastorePartitionsRequest)
+ returns (BatchUpdateMetastorePartitionsResponse) {
+ option (google.api.http) = {
+ post: "/v1alpha/{parent=projects/*/locations/*/datasets/*/tables/*}/partitions:batchUpdate"
+ body: "*"
+ };
+ }
+
+ // Gets metastore partitions from a table.
+ rpc ListMetastorePartitions(ListMetastorePartitionsRequest)
+ returns (ListMetastorePartitionsResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/locations/*/datasets/*/tables/*}/partitions:list"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // This is a bi-di streaming rpc method that allows the client to send
+ // a stream of partitions and commit all of them atomically at the end.
+ // If the commit is successful, the server will return a
+ // response and close the stream. If the commit fails (due to duplicate
+ // partitions or other reason), the server will close the stream with an
+ // error. This method is only available via the gRPC API (not REST).
+ rpc StreamMetastorePartitions(stream StreamMetastorePartitionsRequest)
+ returns (stream StreamMetastorePartitionsResponse) {}
+}
+
+// Request message for CreateMetastorePartition. The MetastorePartition is
+// uniquely identified by values, which is an ordered list. Hence, there is no
+// separate name or partition id field.
+message CreateMetastorePartitionRequest {
+ // Required. Reference to the table to where the metastore partition to be
+ // added, in the format of
+ // projects/{project}/databases/{databases}/tables/{table}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "bigquery.googleapis.com/Table" }
+ ];
+
+ // Required. The metastore partition to be added.
+ MetastorePartition metastore_partition = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for BatchCreateMetastorePartitions.
+message BatchCreateMetastorePartitionsRequest {
+ // Required. Reference to the table to where the metastore partitions to be
+ // added, in the format of
+ // projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "bigquery.googleapis.com/Table" }
+ ];
+
+ // Required. Requests to add metastore partitions to the table.
+ repeated CreateMetastorePartitionRequest requests = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Mimics the ifNotExists flag in IMetaStoreClient
+ // add_partitions(..). If the flag is set to false, the server will return
+ // ALREADY_EXISTS if any partition already exists. If the flag is set to true,
+ // the server will skip existing partitions and insert only the non-existing
+ // partitions.
+ bool skip_existing_partitions = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for BatchCreateMetastorePartitions.
+message BatchCreateMetastorePartitionsResponse {
+ // The list of metastore partitions that have been created.
+ repeated MetastorePartition partitions = 1;
+}
+
+// Request message for BatchDeleteMetastorePartitions. The MetastorePartition is
+// uniquely identified by values, which is an ordered list. Hence, there is no
+// separate name or partition id field.
+message BatchDeleteMetastorePartitionsRequest {
+ // Required. Reference to the table to which these metastore partitions
+ // belong, in the format of
+ // projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "bigquery.googleapis.com/Table" }
+ ];
+
+ // Required. The list of metastore partitions (identified by its values) to be
+ // deleted. A maximum of 100 partitions can be deleted in a batch.
+ repeated MetastorePartitionValues partition_values = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for UpdateMetastorePartition.
+message UpdateMetastorePartitionRequest {
+ // Required. The metastore partition to be updated.
+ MetastorePartition metastore_partition = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The list of fields to update.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for BatchUpdateMetastorePartitions.
+message BatchUpdateMetastorePartitionsRequest {
+ // Required. Reference to the table to which these metastore partitions
+ // belong, in the format of
+ // projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "bigquery.googleapis.com/Table" }
+ ];
+
+ // Required. Requests to update metastore partitions in the table.
+ repeated UpdateMetastorePartitionRequest requests = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Response message for BatchUpdateMetastorePartitions.
+message BatchUpdateMetastorePartitionsResponse {
+ // The list of metastore partitions that have been updated.
+ repeated MetastorePartition partitions = 1;
+}
+
+// Request message for ListMetastorePartitions.
+message ListMetastorePartitionsRequest {
+ // Required. Reference to the table to which these metastore partitions
+ // belong, in the format of
+ // projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "bigquery.googleapis.com/Table" }
+ ];
+
+ // Optional. SQL text filtering statement, similar to a WHERE clause in a
+ // query. Only supports single-row expressions. Aggregate functions are not
+ // supported.
+ //
+ // Examples: "int_field > 5"
+ // "date_field = CAST('2014-9-27' as DATE)"
+ // "nullable_field is not NULL"
+ // "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))"
+ // "numeric_field BETWEEN 1.0 AND 5.0"
+ // Restricted to a maximum length for 1 MB.
+ string filter = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for ListMetastorePartitions.
+message ListMetastorePartitionsResponse {
+ // The response depends on the number of metastore partitions to be returned;
+ // it can be a list of partitions or a list of
+ // [ReadStream]((https://cloud.google.com/bigquery/docs/reference/storage/rpc/google.cloud.bigquery.storage.v1#readstream))
+ // objects. For the second situation, the BigQuery [Read API
+ // ReadRows](https://cloud.google.com/bigquery/docs/reference/storage#read_from_a_session_stream)
+ // method must be used to stream the data and convert it into a list of
+ // partitions.
+ oneof response {
+ // The list of partitions.
+ MetastorePartitionList partitions = 1;
+
+ // The list of streams.
+ StreamList streams = 2;
+ }
+}
+
+// The top-level message sent by the client to the
+// [Partitions.StreamMetastorePartitions]() method.
+// Follows the default gRPC streaming maximum size of 4 MB.
+message StreamMetastorePartitionsRequest {
+ // Required. Reference to the table to where the partition to be added, in the
+ // format of
+ // projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "bigquery.googleapis.com/Table" }
+ ];
+
+ // Optional. A list of metastore partitions to be added to the table.
+ repeated MetastorePartition metastore_partitions = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Mimics the ifNotExists flag in IMetaStoreClient
+ // add_partitions(..). If the flag is set to false, the server will return
+ // ALREADY_EXISTS on commit if any partition already exists. If the flag is
+ // set to true:
+ // 1) the server will skip existing partitions
+ // insert only the non-existing partitions as part of the commit.
+ // 2) The client must set the `skip_existing_partitions` field to true for
+ // all requests in the stream.
+ bool skip_existing_partitions = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// This is the response message sent by the server
+// to the client for the [Partitions.StreamMetastorePartitions]() method when
+// the commit is successful. Server will close the stream after sending this
+// message.
+message StreamMetastorePartitionsResponse {
+ // Total count of partitions streamed by the client during the lifetime of the
+ // stream. This is only set in the final response message before closing the
+ // stream.
+ int64 total_partitions_streamed_count = 2;
+
+ // Total count of partitions inserted by the server during the lifetime of the
+ // stream. This is only set in the final response message before closing the
+ // stream.
+ int64 total_partitions_inserted_count = 3;
+}
+
+// Structured custom error message for batch size too large error.
+// The error can be attached as error details in the returned rpc Status for
+// more structured error handling in the client.
+message BatchSizeTooLargeError {
+ // The maximum number of items that are supported in a single batch. This is
+ // returned as a hint to the client to adjust the batch size.
+ int64 max_batch_size = 1;
+
+ // Optional. The error message that is returned to the client.
+ string error_message = 2 [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/proto/google/cloud/bigquery/storage/v1alpha/partition.proto b/proto-google-cloud-bigquerystorage-v1alpha/src/main/proto/google/cloud/bigquery/storage/v1alpha/partition.proto
new file mode 100644
index 0000000000..0fe87de83f
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/proto/google/cloud/bigquery/storage/v1alpha/partition.proto
@@ -0,0 +1,140 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.storage.v1alpha;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.BigQuery.Storage.V1Alpha";
+option go_package = "cloud.google.com/go/bigquery/storage/apiv1alpha/storagepb;storagepb";
+option java_multiple_files = true;
+option java_outer_classname = "MetastorePartitionProto";
+option java_package = "com.google.cloud.bigquery.storage.v1alpha";
+option php_namespace = "Google\\Cloud\\BigQuery\\Storage\\V1alpha";
+
+// Schema description of a metastore partition column.
+message FieldSchema {
+ // Required. The name of the column.
+ // The maximum length of the name is 1024 characters
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The type of the metastore partition column. Maximum allowed
+ // length is 1024 characters.
+ string type = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Contains information about the physical storage of the data in the metastore
+// partition.
+message StorageDescriptor {
+ // Optional. The physical location of the metastore partition
+ // (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or
+ // 'gs://spark-dataproc-data/pangea-data/*').
+ string location_uri = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the fully qualified class name of the InputFormat
+ // (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat").
+ // The maximum length is 128 characters.
+ string input_format = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the fully qualified class name of the OutputFormat
+ // (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat").
+ // The maximum length is 128 characters.
+ string output_format = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Serializer and deserializer information.
+ SerDeInfo serde_info = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Serializer and deserializer information.
+message SerDeInfo {
+ // Optional. Name of the SerDe.
+ // The maximum length is 256 characters.
+ string name = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Specifies a fully-qualified class name of the serialization
+ // library that is responsible for the translation of data between table
+ // representation and the underlying low-level input and output format
+ // structures. The maximum length is 256 characters.
+ string serialization_library = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Key-value pairs that define the initialization parameters for the
+ // serialization library.
+ // Maximum size 10 Kib.
+ map