From 061691ccdfe56ae0813e376b8f1946cd2a41617b Mon Sep 17 00:00:00 2001 From: Phong Chuong <147636638+PhongChuong@users.noreply.github.com> Date: Mon, 26 Aug 2024 20:36:19 -0400 Subject: [PATCH] feat: v1alpha client generation (#2615) Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/java-bigquerystorage/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) --- .../hermetic_library_generation.yaml | 2 +- README.md | 10 +- generation_config.yaml | 1 + google-cloud-bigquerystorage-bom/pom.xml | 10 + google-cloud-bigquerystorage/pom.xml | 9 + .../MetastorePartitionServiceClient.java | 625 +++++ .../MetastorePartitionServiceSettings.java | 253 ++ .../storage/v1alpha/gapic_metadata.json | 33 + .../storage/v1alpha/package-info.java | 52 + ...astorePartitionServiceCallableFactory.java | 115 + .../GrpcMetastorePartitionServiceStub.java | 341 +++ .../stub/MetastorePartitionServiceStub.java | 77 + ...MetastorePartitionServiceStubSettings.java | 433 ++++ .../reflect-config.json | 1541 +++++++++++ .../MetastorePartitionServiceClientTest.java | 367 +++ .../MockMetastorePartitionService.java | 59 + .../MockMetastorePartitionServiceImpl.java | 185 ++ .../pom.xml | 64 + .../MetastorePartitionServiceGrpc.java | 938 +++++++ pom.xml | 12 + .../bigquery/storage/v1/AnnotationsProto.java | 2 +- .../storage/v1/AppendRowsRequest.java | 2 +- .../v1/AppendRowsRequestOrBuilder.java | 2 +- .../storage/v1/AppendRowsResponse.java | 2 +- .../v1/AppendRowsResponseOrBuilder.java | 2 +- .../cloud/bigquery/storage/v1/ArrowProto.java | 2 +- .../bigquery/storage/v1/ArrowRecordBatch.java | 2 +- .../storage/v1/ArrowRecordBatchOrBuilder.java | 2 +- .../bigquery/storage/v1/ArrowSchema.java | 2 +- .../storage/v1/ArrowSchemaOrBuilder.java | 2 +- .../storage/v1/ArrowSerializationOptions.java | 2 +- .../ArrowSerializationOptionsOrBuilder.java | 2 +- .../cloud/bigquery/storage/v1/AvroProto.java | 2 +- .../cloud/bigquery/storage/v1/AvroRows.java | 2 +- .../storage/v1/AvroRowsOrBuilder.java | 2 +- .../cloud/bigquery/storage/v1/AvroSchema.java | 2 +- .../storage/v1/AvroSchemaOrBuilder.java | 2 +- .../storage/v1/AvroSerializationOptions.java | 2 +- .../v1/AvroSerializationOptionsOrBuilder.java | 2 +- .../v1/BatchCommitWriteStreamsRequest.java | 2 +- ...tchCommitWriteStreamsRequestOrBuilder.java | 2 +- .../v1/BatchCommitWriteStreamsResponse.java | 2 +- ...chCommitWriteStreamsResponseOrBuilder.java | 2 +- .../storage/v1/CreateReadSessionRequest.java | 2 +- .../v1/CreateReadSessionRequestOrBuilder.java | 2 +- .../storage/v1/CreateWriteStreamRequest.java | 2 +- .../v1/CreateWriteStreamRequestOrBuilder.java | 2 +- .../cloud/bigquery/storage/v1/DataFormat.java | 2 +- .../v1/FinalizeWriteStreamRequest.java | 2 +- .../FinalizeWriteStreamRequestOrBuilder.java | 2 +- .../v1/FinalizeWriteStreamResponse.java | 2 +- .../FinalizeWriteStreamResponseOrBuilder.java | 2 +- .../bigquery/storage/v1/FlushRowsRequest.java | 2 +- .../storage/v1/FlushRowsRequestOrBuilder.java | 2 +- .../storage/v1/FlushRowsResponse.java | 2 +- .../v1/FlushRowsResponseOrBuilder.java | 2 +- .../storage/v1/GetWriteStreamRequest.java | 2 +- .../v1/GetWriteStreamRequestOrBuilder.java | 2 +- .../bigquery/storage/v1/ProtoBufProto.java | 2 +- .../cloud/bigquery/storage/v1/ProtoRows.java | 2 +- .../storage/v1/ProtoRowsOrBuilder.java | 2 +- .../bigquery/storage/v1/ProtoSchema.java | 2 +- .../storage/v1/ProtoSchemaOrBuilder.java | 2 +- .../bigquery/storage/v1/ReadRowsRequest.java | 2 +- .../storage/v1/ReadRowsRequestOrBuilder.java | 2 +- .../bigquery/storage/v1/ReadRowsResponse.java | 2 +- .../storage/v1/ReadRowsResponseOrBuilder.java | 2 +- .../bigquery/storage/v1/ReadSession.java | 2 +- .../storage/v1/ReadSessionOrBuilder.java | 2 +- .../cloud/bigquery/storage/v1/ReadStream.java | 2 +- .../storage/v1/ReadStreamOrBuilder.java | 2 +- .../cloud/bigquery/storage/v1/RowError.java | 2 +- .../storage/v1/RowErrorOrBuilder.java | 2 +- .../storage/v1/SplitReadStreamRequest.java | 2 +- .../v1/SplitReadStreamRequestOrBuilder.java | 2 +- .../storage/v1/SplitReadStreamResponse.java | 2 +- .../v1/SplitReadStreamResponseOrBuilder.java | 2 +- .../bigquery/storage/v1/StorageError.java | 2 +- .../storage/v1/StorageErrorOrBuilder.java | 2 +- .../bigquery/storage/v1/StorageProto.java | 2 +- .../bigquery/storage/v1/StreamProto.java | 2 +- .../bigquery/storage/v1/StreamStats.java | 2 +- .../storage/v1/StreamStatsOrBuilder.java | 2 +- .../bigquery/storage/v1/TableFieldSchema.java | 2 +- .../storage/v1/TableFieldSchemaOrBuilder.java | 2 +- .../cloud/bigquery/storage/v1/TableProto.java | 2 +- .../bigquery/storage/v1/TableSchema.java | 2 +- .../storage/v1/TableSchemaOrBuilder.java | 2 +- .../bigquery/storage/v1/ThrottleState.java | 2 +- .../storage/v1/ThrottleStateOrBuilder.java | 2 +- .../bigquery/storage/v1/WriteStream.java | 2 +- .../storage/v1/WriteStreamOrBuilder.java | 2 +- .../bigquery/storage/v1/WriteStreamView.java | 2 +- .../clirr-ignored-differences.xml | 19 + .../pom.xml | 41 + ...BatchCreateMetastorePartitionsRequest.java | 1371 ++++++++++ ...teMetastorePartitionsRequestOrBuilder.java | 142 + ...atchCreateMetastorePartitionsResponse.java | 1011 ++++++++ ...eMetastorePartitionsResponseOrBuilder.java | 79 + ...BatchDeleteMetastorePartitionsRequest.java | 1286 ++++++++++ ...teMetastorePartitionsRequestOrBuilder.java | 129 + .../v1alpha/BatchSizeTooLargeError.java | 734 ++++++ .../BatchSizeTooLargeErrorOrBuilder.java | 65 + ...BatchUpdateMetastorePartitionsRequest.java | 1262 +++++++++ ...teMetastorePartitionsRequestOrBuilder.java | 125 + ...atchUpdateMetastorePartitionsResponse.java | 1011 ++++++++ ...eMetastorePartitionsResponseOrBuilder.java | 79 + .../CreateMetastorePartitionRequest.java | 992 +++++++ ...ateMetastorePartitionRequestOrBuilder.java | 101 + .../bigquery/storage/v1alpha/FieldSchema.java | 822 ++++++ .../storage/v1alpha/FieldSchemaOrBuilder.java | 80 + .../ListMetastorePartitionsRequest.java | 916 +++++++ ...stMetastorePartitionsRequestOrBuilder.java | 102 + .../ListMetastorePartitionsResponse.java | 1146 +++++++++ ...tMetastorePartitionsResponseOrBuilder.java | 100 + .../storage/v1alpha/MetastorePartition.java | 2274 +++++++++++++++++ .../v1alpha/MetastorePartitionList.java | 1012 ++++++++ .../MetastorePartitionListOrBuilder.java | 89 + .../v1alpha/MetastorePartitionOrBuilder.java | 298 +++ .../v1alpha/MetastorePartitionProto.java | 228 ++ .../MetastorePartitionServiceProto.java | 319 +++ .../v1alpha/MetastorePartitionValues.java | 745 ++++++ .../MetastorePartitionValuesOrBuilder.java | 81 + .../bigquery/storage/v1alpha/ReadStream.java | 646 +++++ .../storage/v1alpha/ReadStreamOrBuilder.java | 57 + .../bigquery/storage/v1alpha/SerDeInfo.java | 1206 +++++++++ .../storage/v1alpha/SerDeInfoOrBuilder.java | 157 ++ .../storage/v1alpha/StorageDescriptor.java | 1339 ++++++++++ .../v1alpha/StorageDescriptorOrBuilder.java | 154 ++ .../bigquery/storage/v1alpha/StreamList.java | 992 +++++++ .../storage/v1alpha/StreamListOrBuilder.java | 88 + .../StreamMetastorePartitionsRequest.java | 1371 ++++++++++ ...amMetastorePartitionsRequestOrBuilder.java | 143 ++ .../StreamMetastorePartitionsResponse.java | 677 +++++ ...mMetastorePartitionsResponseOrBuilder.java | 56 + .../bigquery/storage/v1alpha/TableName.java | 217 ++ .../UpdateMetastorePartitionRequest.java | 1053 ++++++++ ...ateMetastorePartitionRequestOrBuilder.java | 106 + .../storage/v1alpha/metastore_partition.proto | 282 ++ .../bigquery/storage/v1alpha/partition.proto | 140 + .../bigquery/storage/v1beta1/ArrowProto.java | 2 +- .../bigquery/storage/v1beta1/AvroProto.java | 2 +- .../bigquery/storage/v1beta1/ReadOptions.java | 2 +- .../bigquery/storage/v1beta1/Storage.java | 2 +- .../storage/v1beta1/TableReferenceProto.java | 2 +- .../storage/v1beta2/AppendRowsRequest.java | 2 +- .../v1beta2/AppendRowsRequestOrBuilder.java | 2 +- .../storage/v1beta2/AppendRowsResponse.java | 2 +- .../v1beta2/AppendRowsResponseOrBuilder.java | 2 +- .../bigquery/storage/v1beta2/ArrowProto.java | 2 +- .../storage/v1beta2/ArrowRecordBatch.java | 2 +- .../v1beta2/ArrowRecordBatchOrBuilder.java | 2 +- .../bigquery/storage/v1beta2/ArrowSchema.java | 2 +- .../storage/v1beta2/ArrowSchemaOrBuilder.java | 2 +- .../v1beta2/ArrowSerializationOptions.java | 2 +- .../ArrowSerializationOptionsOrBuilder.java | 2 +- .../bigquery/storage/v1beta2/AvroProto.java | 2 +- .../bigquery/storage/v1beta2/AvroRows.java | 2 +- .../storage/v1beta2/AvroRowsOrBuilder.java | 2 +- .../bigquery/storage/v1beta2/AvroSchema.java | 2 +- .../storage/v1beta2/AvroSchemaOrBuilder.java | 2 +- .../BatchCommitWriteStreamsRequest.java | 2 +- ...tchCommitWriteStreamsRequestOrBuilder.java | 2 +- .../BatchCommitWriteStreamsResponse.java | 2 +- ...chCommitWriteStreamsResponseOrBuilder.java | 2 +- .../v1beta2/CreateReadSessionRequest.java | 2 +- .../CreateReadSessionRequestOrBuilder.java | 2 +- .../v1beta2/CreateWriteStreamRequest.java | 2 +- .../CreateWriteStreamRequestOrBuilder.java | 2 +- .../bigquery/storage/v1beta2/DataFormat.java | 2 +- .../v1beta2/FinalizeWriteStreamRequest.java | 2 +- .../FinalizeWriteStreamRequestOrBuilder.java | 2 +- .../v1beta2/FinalizeWriteStreamResponse.java | 2 +- .../FinalizeWriteStreamResponseOrBuilder.java | 2 +- .../storage/v1beta2/FlushRowsRequest.java | 2 +- .../v1beta2/FlushRowsRequestOrBuilder.java | 2 +- .../storage/v1beta2/FlushRowsResponse.java | 2 +- .../v1beta2/FlushRowsResponseOrBuilder.java | 2 +- .../v1beta2/GetWriteStreamRequest.java | 2 +- .../GetWriteStreamRequestOrBuilder.java | 2 +- .../storage/v1beta2/ProtoBufProto.java | 2 +- .../bigquery/storage/v1beta2/ProtoRows.java | 2 +- .../storage/v1beta2/ProtoRowsOrBuilder.java | 2 +- .../bigquery/storage/v1beta2/ProtoSchema.java | 2 +- .../storage/v1beta2/ProtoSchemaOrBuilder.java | 2 +- .../storage/v1beta2/ReadRowsRequest.java | 2 +- .../v1beta2/ReadRowsRequestOrBuilder.java | 2 +- .../storage/v1beta2/ReadRowsResponse.java | 2 +- .../v1beta2/ReadRowsResponseOrBuilder.java | 2 +- .../bigquery/storage/v1beta2/ReadSession.java | 2 +- .../storage/v1beta2/ReadSessionOrBuilder.java | 2 +- .../bigquery/storage/v1beta2/ReadStream.java | 2 +- .../storage/v1beta2/ReadStreamOrBuilder.java | 2 +- .../v1beta2/SplitReadStreamRequest.java | 2 +- .../SplitReadStreamRequestOrBuilder.java | 2 +- .../v1beta2/SplitReadStreamResponse.java | 2 +- .../SplitReadStreamResponseOrBuilder.java | 2 +- .../storage/v1beta2/StorageError.java | 2 +- .../v1beta2/StorageErrorOrBuilder.java | 2 +- .../storage/v1beta2/StorageProto.java | 2 +- .../bigquery/storage/v1beta2/StreamProto.java | 2 +- .../bigquery/storage/v1beta2/StreamStats.java | 2 +- .../storage/v1beta2/StreamStatsOrBuilder.java | 2 +- .../storage/v1beta2/TableFieldSchema.java | 2 +- .../v1beta2/TableFieldSchemaOrBuilder.java | 2 +- .../bigquery/storage/v1beta2/TableProto.java | 2 +- .../bigquery/storage/v1beta2/TableSchema.java | 2 +- .../storage/v1beta2/TableSchemaOrBuilder.java | 2 +- .../storage/v1beta2/ThrottleState.java | 2 +- .../v1beta2/ThrottleStateOrBuilder.java | 2 +- .../bigquery/storage/v1beta2/WriteStream.java | 2 +- .../storage/v1beta2/WriteStreamOrBuilder.java | 2 +- versions.txt | 2 + 213 files changed, 30611 insertions(+), 151 deletions(-) create mode 100644 google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceClient.java create mode 100644 google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceSettings.java create mode 100644 google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/gapic_metadata.json create mode 100644 google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/package-info.java create mode 100644 google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/GrpcMetastorePartitionServiceCallableFactory.java create mode 100644 google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/GrpcMetastorePartitionServiceStub.java create mode 100644 google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/MetastorePartitionServiceStub.java create mode 100644 google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/MetastorePartitionServiceStubSettings.java create mode 100644 google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1alpha/reflect-config.json create mode 100644 google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceClientTest.java create mode 100644 google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MockMetastorePartitionService.java create mode 100644 google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MockMetastorePartitionServiceImpl.java create mode 100644 grpc-google-cloud-bigquerystorage-v1alpha/pom.xml create mode 100644 grpc-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceGrpc.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/clirr-ignored-differences.xml create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/pom.xml create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsRequest.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsRequestOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsResponse.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsResponseOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchDeleteMetastorePartitionsRequest.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchDeleteMetastorePartitionsRequestOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchSizeTooLargeError.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchSizeTooLargeErrorOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsRequest.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsRequestOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsResponse.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsResponseOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/CreateMetastorePartitionRequest.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/CreateMetastorePartitionRequestOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/FieldSchema.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/FieldSchemaOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsRequest.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsRequestOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsResponse.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsResponseOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartition.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionList.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionListOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionProto.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceProto.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionValues.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionValuesOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ReadStream.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ReadStreamOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/SerDeInfo.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/SerDeInfoOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StorageDescriptor.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StorageDescriptorOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamList.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamListOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsRequest.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsRequestOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsResponse.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsResponseOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/TableName.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/UpdateMetastorePartitionRequest.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/UpdateMetastorePartitionRequestOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/proto/google/cloud/bigquery/storage/v1alpha/metastore_partition.proto create mode 100644 proto-google-cloud-bigquerystorage-v1alpha/src/main/proto/google/cloud/bigquery/storage/v1alpha/partition.proto diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 7b982df899..16b577b1e1 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -24,7 +24,7 @@ env: jobs: library_generation: # skip pull requests coming from a forked repository - if: github.env.REPO_FULL_NAME == github.repository + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index d7cfc3dc7b..046114f8a8 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.43.0 + 26.44.0 pom import @@ -42,7 +42,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerystorage - 3.8.0 + 3.8.1 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-bigquerystorage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerystorage:3.8.0' +implementation 'com.google.cloud:google-cloud-bigquerystorage:3.8.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.8.1" ``` @@ -219,7 +219,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerystorage/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerystorage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.8.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/generation_config.yaml b/generation_config.yaml index bbec46fe0e..aa22a3d8cc 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -21,5 +21,6 @@ libraries: recommended_package: com.google.cloud.bigquery.storage.v1 GAPICs: - proto_path: google/cloud/bigquery/storage/v1 + - proto_path: google/cloud/bigquery/storage/v1alpha - proto_path: google/cloud/bigquery/storage/v1beta1 - proto_path: google/cloud/bigquery/storage/v1beta2 diff --git a/google-cloud-bigquerystorage-bom/pom.xml b/google-cloud-bigquerystorage-bom/pom.xml index 06113b98ff..09528fc1de 100644 --- a/google-cloud-bigquerystorage-bom/pom.xml +++ b/google-cloud-bigquerystorage-bom/pom.xml @@ -69,6 +69,11 @@ grpc-google-cloud-bigquerystorage-v1 3.8.2-SNAPSHOT + + com.google.api.grpc + grpc-google-cloud-bigquerystorage-v1alpha + 3.8.2-SNAPSHOT + com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 @@ -84,6 +89,11 @@ proto-google-cloud-bigquerystorage-v1 3.8.2-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-bigquerystorage-v1alpha + 3.8.2-SNAPSHOT + diff --git a/google-cloud-bigquerystorage/pom.xml b/google-cloud-bigquerystorage/pom.xml index 7dbe616f35..53c16102c2 100644 --- a/google-cloud-bigquerystorage/pom.xml +++ b/google-cloud-bigquerystorage/pom.xml @@ -98,6 +98,10 @@ com.google.api.grpc proto-google-common-protos + + com.google.api.grpc + proto-google-cloud-bigquerystorage-v1alpha + com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 @@ -241,6 +245,11 @@ com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 + + com.google.api.grpc + grpc-google-cloud-bigquerystorage-v1alpha + test + com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta2 diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceClient.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceClient.java new file mode 100644 index 0000000000..188db87eb6 --- /dev/null +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceClient.java @@ -0,0 +1,625 @@ +/* + * 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.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.bigquery.storage.v1alpha.stub.MetastorePartitionServiceStub; +import com.google.cloud.bigquery.storage.v1alpha.stub.MetastorePartitionServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * 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. + * + *

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(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod 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.

+ *
    + *
  • batchCreateMetastorePartitions(BatchCreateMetastorePartitionsRequest request) + *

+ *

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

+ *
    + *
  • batchCreateMetastorePartitionsCallable() + *

+ *

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.

+ *
    + *
  • batchDeleteMetastorePartitions(BatchDeleteMetastorePartitionsRequest request) + *

+ *

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

+ *
    + *
  • batchDeleteMetastorePartitionsCallable() + *

+ *

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.

+ *
    + *
  • batchUpdateMetastorePartitions(BatchUpdateMetastorePartitionsRequest request) + *

+ *

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

+ *
    + *
  • batchUpdateMetastorePartitionsCallable() + *

+ *

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.

+ *
    + *
  • listMetastorePartitions(ListMetastorePartitionsRequest request) + *

+ *

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

+ *
    + *
  • listMetastorePartitions(TableName parent) + *

  • listMetastorePartitions(String parent) + *

+ *

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

+ *
    + *
  • listMetastorePartitionsCallable() + *

+ *

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.

+ *
    + *
  • streamMetastorePartitionsCallable() + *

+ *
+ * + *

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())
+   *           .setSkipExistingPartitions(true)
+   *           .build();
+   *   BatchCreateMetastorePartitionsResponse response =
+   *       metastorePartitionServiceClient.batchCreateMetastorePartitions(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 BatchCreateMetastorePartitionsResponse batchCreateMetastorePartitions( + BatchCreateMetastorePartitionsRequest request) { + return batchCreateMetastorePartitionsCallable().call(request); + } + + // 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())
+   *           .setSkipExistingPartitions(true)
+   *           .build();
+   *   ApiFuture future =
+   *       metastorePartitionServiceClient
+   *           .batchCreateMetastorePartitionsCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   BatchCreateMetastorePartitionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse> + batchCreateMetastorePartitionsCallable() { + return stub.batchCreateMetastorePartitionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes 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()) {
+   *   BatchDeleteMetastorePartitionsRequest request =
+   *       BatchDeleteMetastorePartitionsRequest.newBuilder()
+   *           .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
+   *           .addAllPartitionValues(new ArrayList())
+   *           .build();
+   *   metastorePartitionServiceClient.batchDeleteMetastorePartitions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void batchDeleteMetastorePartitions(BatchDeleteMetastorePartitionsRequest request) { + batchDeleteMetastorePartitionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes 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()) {
+   *   BatchDeleteMetastorePartitionsRequest request =
+   *       BatchDeleteMetastorePartitionsRequest.newBuilder()
+   *           .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
+   *           .addAllPartitionValues(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       metastorePartitionServiceClient
+   *           .batchDeleteMetastorePartitionsCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchDeleteMetastorePartitionsCallable() { + return stub.batchDeleteMetastorePartitionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates metastore partitions in 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()) {
+   *   BatchUpdateMetastorePartitionsRequest request =
+   *       BatchUpdateMetastorePartitionsRequest.newBuilder()
+   *           .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchUpdateMetastorePartitionsResponse response =
+   *       metastorePartitionServiceClient.batchUpdateMetastorePartitions(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 BatchUpdateMetastorePartitionsResponse batchUpdateMetastorePartitions( + BatchUpdateMetastorePartitionsRequest request) { + return batchUpdateMetastorePartitionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates metastore partitions in 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()) {
+   *   BatchUpdateMetastorePartitionsRequest request =
+   *       BatchUpdateMetastorePartitionsRequest.newBuilder()
+   *           .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       metastorePartitionServiceClient
+   *           .batchUpdateMetastorePartitionsCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   BatchUpdateMetastorePartitionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitionsCallable() { + return stub.batchUpdateMetastorePartitionsCallable(); + } + + // 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()) {
+   *   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 future =
+   *       metastorePartitionServiceClient.listMetastorePartitionsCallable().futureCall(request);
+   *   // Do something.
+   *   ListMetastorePartitionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + listMetastorePartitionsCallable() { + return stub.listMetastorePartitionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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). + * + *

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 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.
+   *   }
+   * }
+   * }
+ */ + 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}. + * + *

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

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

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

For example, to set the 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 { + + /** Returns the object with the settings used for calls to batchCreateMetastorePartitions. */ + public UnaryCallSettings< + BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse> + batchCreateMetastorePartitionsSettings() { + return ((MetastorePartitionServiceStubSettings) getStubSettings()) + .batchCreateMetastorePartitionsSettings(); + } + + /** Returns the object with the settings used for calls to batchDeleteMetastorePartitions. */ + public UnaryCallSettings + batchDeleteMetastorePartitionsSettings() { + return ((MetastorePartitionServiceStubSettings) getStubSettings()) + .batchDeleteMetastorePartitionsSettings(); + } + + /** Returns the object with the settings used for calls to batchUpdateMetastorePartitions. */ + public UnaryCallSettings< + BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitionsSettings() { + return ((MetastorePartitionServiceStubSettings) getStubSettings()) + .batchUpdateMetastorePartitionsSettings(); + } + + /** Returns the object with the settings used for calls to listMetastorePartitions. */ + public UnaryCallSettings + listMetastorePartitionsSettings() { + return ((MetastorePartitionServiceStubSettings) getStubSettings()) + .listMetastorePartitionsSettings(); + } + + /** Returns the object with the settings used for calls to streamMetastorePartitions. */ + public StreamingCallSettings + streamMetastorePartitionsSettings() { + return ((MetastorePartitionServiceStubSettings) getStubSettings()) + .streamMetastorePartitionsSettings(); + } + + public static final MetastorePartitionServiceSettings create( + MetastorePartitionServiceStubSettings stub) throws IOException { + return new MetastorePartitionServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return MetastorePartitionServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return MetastorePartitionServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return MetastorePartitionServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return MetastorePartitionServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return MetastorePartitionServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return MetastorePartitionServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MetastorePartitionServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MetastorePartitionServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for MetastorePartitionServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(MetastorePartitionServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(MetastorePartitionServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(MetastorePartitionServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(MetastorePartitionServiceStubSettings.newBuilder()); + } + + public MetastorePartitionServiceStubSettings.Builder getStubSettingsBuilder() { + return ((MetastorePartitionServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to batchCreateMetastorePartitions. */ + public UnaryCallSettings.Builder< + BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse> + batchCreateMetastorePartitionsSettings() { + return getStubSettingsBuilder().batchCreateMetastorePartitionsSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeleteMetastorePartitions. */ + public UnaryCallSettings.Builder + batchDeleteMetastorePartitionsSettings() { + return getStubSettingsBuilder().batchDeleteMetastorePartitionsSettings(); + } + + /** Returns the builder for the settings used for calls to batchUpdateMetastorePartitions. */ + public UnaryCallSettings.Builder< + BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitionsSettings() { + return getStubSettingsBuilder().batchUpdateMetastorePartitionsSettings(); + } + + /** Returns the builder for the settings used for calls to listMetastorePartitions. */ + public UnaryCallSettings.Builder< + ListMetastorePartitionsRequest, ListMetastorePartitionsResponse> + listMetastorePartitionsSettings() { + return getStubSettingsBuilder().listMetastorePartitionsSettings(); + } + + /** Returns the builder for the settings used for calls to streamMetastorePartitions. */ + public StreamingCallSettings.Builder< + StreamMetastorePartitionsRequest, StreamMetastorePartitionsResponse> + streamMetastorePartitionsSettings() { + return getStubSettingsBuilder().streamMetastorePartitionsSettings(); + } + + @Override + public MetastorePartitionServiceSettings build() throws IOException { + return new MetastorePartitionServiceSettings(this); + } + } +} diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/gapic_metadata.json b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/gapic_metadata.json new file mode 100644 index 0000000000..05d6ab2749 --- /dev/null +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/gapic_metadata.json @@ -0,0 +1,33 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.bigquery.storage.v1alpha", + "libraryPackage": "com.google.cloud.bigquery.storage.v1alpha", + "services": { + "MetastorePartitionService": { + "clients": { + "grpc": { + "libraryClient": "MetastorePartitionServiceClient", + "rpcs": { + "BatchCreateMetastorePartitions": { + "methods": ["batchCreateMetastorePartitions", "batchCreateMetastorePartitionsCallable"] + }, + "BatchDeleteMetastorePartitions": { + "methods": ["batchDeleteMetastorePartitions", "batchDeleteMetastorePartitionsCallable"] + }, + "BatchUpdateMetastorePartitions": { + "methods": ["batchUpdateMetastorePartitions", "batchUpdateMetastorePartitionsCallable"] + }, + "ListMetastorePartitions": { + "methods": ["listMetastorePartitions", "listMetastorePartitions", "listMetastorePartitions", "listMetastorePartitionsCallable"] + }, + "StreamMetastorePartitions": { + "methods": ["streamMetastorePartitionsCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/package-info.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/package-info.java new file mode 100644 index 0000000000..102982029f --- /dev/null +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/package-info.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +/** + * A client to BigQuery Storage API + * + *

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: + * + *

{@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);
+ * }
+ * }
+ */ +@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. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcMetastorePartitionServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/GrpcMetastorePartitionServiceStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/GrpcMetastorePartitionServiceStub.java new file mode 100644 index 0000000000..3f05b365a8 --- /dev/null +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/GrpcMetastorePartitionServiceStub.java @@ -0,0 +1,341 @@ +/* + * 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.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse; +import com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse; +import com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse; +import com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the MetastorePartitionService service API. + * + *

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 + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService/BatchCreateMetastorePartitions") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchCreateMetastorePartitionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + BatchCreateMetastorePartitionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchDeleteMetastorePartitionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService/BatchDeleteMetastorePartitions") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchDeleteMetastorePartitionsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitionsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService/BatchUpdateMetastorePartitions") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchUpdateMetastorePartitionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + BatchUpdateMetastorePartitionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListMetastorePartitionsRequest, ListMetastorePartitionsResponse> + listMetastorePartitionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService/ListMetastorePartitions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMetastorePartitionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMetastorePartitionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + StreamMetastorePartitionsRequest, StreamMetastorePartitionsResponse> + streamMetastorePartitionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName( + "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService/StreamMetastorePartitions") + .setRequestMarshaller( + ProtoUtils.marshaller(StreamMetastorePartitionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(StreamMetastorePartitionsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable< + BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse> + batchCreateMetastorePartitionsCallable; + private final UnaryCallable + batchDeleteMetastorePartitionsCallable; + private final UnaryCallable< + BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitionsCallable; + private final UnaryCallable + listMetastorePartitionsCallable; + private final BidiStreamingCallable< + StreamMetastorePartitionsRequest, StreamMetastorePartitionsResponse> + streamMetastorePartitionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcMetastorePartitionServiceStub create( + MetastorePartitionServiceStubSettings settings) throws IOException { + return new GrpcMetastorePartitionServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcMetastorePartitionServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcMetastorePartitionServiceStub( + MetastorePartitionServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcMetastorePartitionServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcMetastorePartitionServiceStub( + MetastorePartitionServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcMetastorePartitionServiceStub, 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 GrpcMetastorePartitionServiceStub( + MetastorePartitionServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcMetastorePartitionServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcMetastorePartitionServiceStub, 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 GrpcMetastorePartitionServiceStub( + MetastorePartitionServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + batchCreateMetastorePartitionsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(batchCreateMetastorePartitionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + batchDeleteMetastorePartitionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteMetastorePartitionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + batchUpdateMetastorePartitionsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(batchUpdateMetastorePartitionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listMetastorePartitionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listMetastorePartitionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + streamMetastorePartitionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(streamMetastorePartitionsMethodDescriptor) + .build(); + + this.batchCreateMetastorePartitionsCallable = + callableFactory.createUnaryCallable( + batchCreateMetastorePartitionsTransportSettings, + settings.batchCreateMetastorePartitionsSettings(), + clientContext); + this.batchDeleteMetastorePartitionsCallable = + callableFactory.createUnaryCallable( + batchDeleteMetastorePartitionsTransportSettings, + settings.batchDeleteMetastorePartitionsSettings(), + clientContext); + this.batchUpdateMetastorePartitionsCallable = + callableFactory.createUnaryCallable( + batchUpdateMetastorePartitionsTransportSettings, + settings.batchUpdateMetastorePartitionsSettings(), + clientContext); + this.listMetastorePartitionsCallable = + callableFactory.createUnaryCallable( + listMetastorePartitionsTransportSettings, + settings.listMetastorePartitionsSettings(), + clientContext); + this.streamMetastorePartitionsCallable = + callableFactory.createBidiStreamingCallable( + streamMetastorePartitionsTransportSettings, + settings.streamMetastorePartitionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable< + BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse> + batchCreateMetastorePartitionsCallable() { + return batchCreateMetastorePartitionsCallable; + } + + @Override + public UnaryCallable + batchDeleteMetastorePartitionsCallable() { + return batchDeleteMetastorePartitionsCallable; + } + + @Override + public UnaryCallable< + BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitionsCallable() { + return batchUpdateMetastorePartitionsCallable; + } + + @Override + public UnaryCallable + listMetastorePartitionsCallable() { + return listMetastorePartitionsCallable; + } + + @Override + public BidiStreamingCallable + streamMetastorePartitionsCallable() { + return streamMetastorePartitionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/MetastorePartitionServiceStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/MetastorePartitionServiceStub.java new file mode 100644 index 0000000000..0a86d78533 --- /dev/null +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/MetastorePartitionServiceStub.java @@ -0,0 +1,77 @@ +/* + * 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.core.BackgroundResource; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse; +import com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse; +import com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse; +import com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the MetastorePartitionService service API. + * + *

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 + batchDeleteMetastorePartitionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchDeleteMetastorePartitionsCallable()"); + } + + public UnaryCallable< + BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchUpdateMetastorePartitionsCallable()"); + } + + public UnaryCallable + listMetastorePartitionsCallable() { + throw new UnsupportedOperationException("Not implemented: listMetastorePartitionsCallable()"); + } + + public BidiStreamingCallable + streamMetastorePartitionsCallable() { + throw new UnsupportedOperationException("Not implemented: streamMetastorePartitionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/MetastorePartitionServiceStubSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/MetastorePartitionServiceStubSettings.java new file mode 100644 index 0000000000..d6b0fd9a06 --- /dev/null +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/MetastorePartitionServiceStubSettings.java @@ -0,0 +1,433 @@ +/* + * 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.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse; +import com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse; +import com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse; +import com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest; +import com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MetastorePartitionServiceStub}. + * + *

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

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

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

For example, to set the 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
+ * 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 { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/bigquery") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings< + BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse> + batchCreateMetastorePartitionsSettings; + private final UnaryCallSettings + batchDeleteMetastorePartitionsSettings; + private final UnaryCallSettings< + BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitionsSettings; + private final UnaryCallSettings + listMetastorePartitionsSettings; + private final StreamingCallSettings< + StreamMetastorePartitionsRequest, StreamMetastorePartitionsResponse> + streamMetastorePartitionsSettings; + + /** Returns the object with the settings used for calls to batchCreateMetastorePartitions. */ + public UnaryCallSettings< + BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse> + batchCreateMetastorePartitionsSettings() { + return batchCreateMetastorePartitionsSettings; + } + + /** Returns the object with the settings used for calls to batchDeleteMetastorePartitions. */ + public UnaryCallSettings + batchDeleteMetastorePartitionsSettings() { + return batchDeleteMetastorePartitionsSettings; + } + + /** Returns the object with the settings used for calls to batchUpdateMetastorePartitions. */ + public UnaryCallSettings< + BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitionsSettings() { + return batchUpdateMetastorePartitionsSettings; + } + + /** Returns the object with the settings used for calls to listMetastorePartitions. */ + public UnaryCallSettings + listMetastorePartitionsSettings() { + return listMetastorePartitionsSettings; + } + + /** Returns the object with the settings used for calls to streamMetastorePartitions. */ + public StreamingCallSettings + streamMetastorePartitionsSettings() { + return streamMetastorePartitionsSettings; + } + + public MetastorePartitionServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcMetastorePartitionServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "bigquerystorage"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "bigquerystorage.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "bigquerystorage.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(MetastorePartitionServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MetastorePartitionServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + batchCreateMetastorePartitionsSettings = + settingsBuilder.batchCreateMetastorePartitionsSettings().build(); + batchDeleteMetastorePartitionsSettings = + settingsBuilder.batchDeleteMetastorePartitionsSettings().build(); + batchUpdateMetastorePartitionsSettings = + settingsBuilder.batchUpdateMetastorePartitionsSettings().build(); + listMetastorePartitionsSettings = settingsBuilder.listMetastorePartitionsSettings().build(); + streamMetastorePartitionsSettings = settingsBuilder.streamMetastorePartitionsSettings().build(); + } + + /** Builder for MetastorePartitionServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder< + BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse> + batchCreateMetastorePartitionsSettings; + private final UnaryCallSettings.Builder + batchDeleteMetastorePartitionsSettings; + private final UnaryCallSettings.Builder< + BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitionsSettings; + private final UnaryCallSettings.Builder< + ListMetastorePartitionsRequest, ListMetastorePartitionsResponse> + listMetastorePartitionsSettings; + private final StreamingCallSettings.Builder< + StreamMetastorePartitionsRequest, StreamMetastorePartitionsResponse> + streamMetastorePartitionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(120000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(120000L)) + .setTotalTimeout(Duration.ofMillis(120000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(120000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(120000L)) + .setTotalTimeout(Duration.ofMillis(120000L)) + .build(); + definitions.put("no_retry_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + batchCreateMetastorePartitionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchDeleteMetastorePartitionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchUpdateMetastorePartitionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMetastorePartitionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + streamMetastorePartitionsSettings = StreamingCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + batchCreateMetastorePartitionsSettings, + batchDeleteMetastorePartitionsSettings, + batchUpdateMetastorePartitionsSettings, + listMetastorePartitionsSettings); + initDefaults(this); + } + + protected Builder(MetastorePartitionServiceStubSettings settings) { + super(settings); + + batchCreateMetastorePartitionsSettings = + settings.batchCreateMetastorePartitionsSettings.toBuilder(); + batchDeleteMetastorePartitionsSettings = + settings.batchDeleteMetastorePartitionsSettings.toBuilder(); + batchUpdateMetastorePartitionsSettings = + settings.batchUpdateMetastorePartitionsSettings.toBuilder(); + listMetastorePartitionsSettings = settings.listMetastorePartitionsSettings.toBuilder(); + streamMetastorePartitionsSettings = settings.streamMetastorePartitionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + batchCreateMetastorePartitionsSettings, + batchDeleteMetastorePartitionsSettings, + batchUpdateMetastorePartitionsSettings, + listMetastorePartitionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .batchCreateMetastorePartitionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .batchDeleteMetastorePartitionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .batchUpdateMetastorePartitionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listMetastorePartitionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to batchCreateMetastorePartitions. */ + public UnaryCallSettings.Builder< + BatchCreateMetastorePartitionsRequest, BatchCreateMetastorePartitionsResponse> + batchCreateMetastorePartitionsSettings() { + return batchCreateMetastorePartitionsSettings; + } + + /** Returns the builder for the settings used for calls to batchDeleteMetastorePartitions. */ + public UnaryCallSettings.Builder + batchDeleteMetastorePartitionsSettings() { + return batchDeleteMetastorePartitionsSettings; + } + + /** Returns the builder for the settings used for calls to batchUpdateMetastorePartitions. */ + public UnaryCallSettings.Builder< + BatchUpdateMetastorePartitionsRequest, BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitionsSettings() { + return batchUpdateMetastorePartitionsSettings; + } + + /** Returns the builder for the settings used for calls to listMetastorePartitions. */ + public UnaryCallSettings.Builder< + ListMetastorePartitionsRequest, ListMetastorePartitionsResponse> + listMetastorePartitionsSettings() { + return listMetastorePartitionsSettings; + } + + /** Returns the builder for the settings used for calls to streamMetastorePartitions. */ + public StreamingCallSettings.Builder< + StreamMetastorePartitionsRequest, StreamMetastorePartitionsResponse> + streamMetastorePartitionsSettings() { + return streamMetastorePartitionsSettings; + } + + @Override + public MetastorePartitionServiceStubSettings build() throws IOException { + return new MetastorePartitionServiceStubSettings(this); + } + } +} diff --git a/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1alpha/reflect-config.json b/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1alpha/reflect-config.json new file mode 100644 index 0000000000..25482a2616 --- /dev/null +++ b/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1alpha/reflect-config.json @@ -0,0 +1,1541 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.FieldSchema", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.FieldSchema$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.MetastorePartition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.MetastorePartition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.ReadStream", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.ReadStream$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.SerDeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.SerDeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.StreamList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.StreamList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceClientTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceClientTest.java new file mode 100644 index 0000000000..56a5df6446 --- /dev/null +++ b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceClientTest.java @@ -0,0 +1,367 @@ +/* + * 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.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class MetastorePartitionServiceClientTest { + private static MockMetastorePartitionService mockMetastorePartitionService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private MetastorePartitionServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockMetastorePartitionService = new MockMetastorePartitionService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockMetastorePartitionService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + MetastorePartitionServiceSettings settings = + MetastorePartitionServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = MetastorePartitionServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void batchCreateMetastorePartitionsTest() throws Exception { + BatchCreateMetastorePartitionsResponse expectedResponse = + BatchCreateMetastorePartitionsResponse.newBuilder() + .addAllPartitions(new ArrayList()) + .build(); + mockMetastorePartitionService.addResponse(expectedResponse); + + BatchCreateMetastorePartitionsRequest request = + BatchCreateMetastorePartitionsRequest.newBuilder() + .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + .addAllRequests(new ArrayList()) + .setSkipExistingPartitions(true) + .build(); + + BatchCreateMetastorePartitionsResponse actualResponse = + client.batchCreateMetastorePartitions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetastorePartitionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchCreateMetastorePartitionsRequest actualRequest = + ((BatchCreateMetastorePartitionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertEquals( + request.getSkipExistingPartitions(), actualRequest.getSkipExistingPartitions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchCreateMetastorePartitionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetastorePartitionService.addException(exception); + + try { + BatchCreateMetastorePartitionsRequest request = + BatchCreateMetastorePartitionsRequest.newBuilder() + .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + .addAllRequests(new ArrayList()) + .setSkipExistingPartitions(true) + .build(); + client.batchCreateMetastorePartitions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteMetastorePartitionsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockMetastorePartitionService.addResponse(expectedResponse); + + BatchDeleteMetastorePartitionsRequest request = + BatchDeleteMetastorePartitionsRequest.newBuilder() + .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + .addAllPartitionValues(new ArrayList()) + .build(); + + client.batchDeleteMetastorePartitions(request); + + List actualRequests = mockMetastorePartitionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeleteMetastorePartitionsRequest actualRequest = + ((BatchDeleteMetastorePartitionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getPartitionValuesList(), actualRequest.getPartitionValuesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchDeleteMetastorePartitionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetastorePartitionService.addException(exception); + + try { + BatchDeleteMetastorePartitionsRequest request = + BatchDeleteMetastorePartitionsRequest.newBuilder() + .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + .addAllPartitionValues(new ArrayList()) + .build(); + client.batchDeleteMetastorePartitions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateMetastorePartitionsTest() throws Exception { + BatchUpdateMetastorePartitionsResponse expectedResponse = + BatchUpdateMetastorePartitionsResponse.newBuilder() + .addAllPartitions(new ArrayList()) + .build(); + mockMetastorePartitionService.addResponse(expectedResponse); + + BatchUpdateMetastorePartitionsRequest request = + BatchUpdateMetastorePartitionsRequest.newBuilder() + .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + BatchUpdateMetastorePartitionsResponse actualResponse = + client.batchUpdateMetastorePartitions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetastorePartitionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchUpdateMetastorePartitionsRequest actualRequest = + ((BatchUpdateMetastorePartitionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchUpdateMetastorePartitionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetastorePartitionService.addException(exception); + + try { + BatchUpdateMetastorePartitionsRequest request = + BatchUpdateMetastorePartitionsRequest.newBuilder() + .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchUpdateMetastorePartitions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMetastorePartitionsTest() throws Exception { + ListMetastorePartitionsResponse expectedResponse = + ListMetastorePartitionsResponse.newBuilder().build(); + mockMetastorePartitionService.addResponse(expectedResponse); + + TableName parent = TableName.of("[PROJECT]", "[DATASET]", "[TABLE]"); + + ListMetastorePartitionsResponse actualResponse = client.listMetastorePartitions(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetastorePartitionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMetastorePartitionsRequest actualRequest = + ((ListMetastorePartitionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMetastorePartitionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetastorePartitionService.addException(exception); + + try { + TableName parent = TableName.of("[PROJECT]", "[DATASET]", "[TABLE]"); + client.listMetastorePartitions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMetastorePartitionsTest2() throws Exception { + ListMetastorePartitionsResponse expectedResponse = + ListMetastorePartitionsResponse.newBuilder().build(); + mockMetastorePartitionService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMetastorePartitionsResponse actualResponse = client.listMetastorePartitions(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetastorePartitionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMetastorePartitionsRequest actualRequest = + ((ListMetastorePartitionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMetastorePartitionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetastorePartitionService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMetastorePartitions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void streamMetastorePartitionsTest() throws Exception { + StreamMetastorePartitionsResponse expectedResponse = + StreamMetastorePartitionsResponse.newBuilder() + .setTotalPartitionsStreamedCount(-1442980886) + .setTotalPartitionsInsertedCount(-1900870109) + .build(); + mockMetastorePartitionService.addResponse(expectedResponse); + StreamMetastorePartitionsRequest request = + StreamMetastorePartitionsRequest.newBuilder() + .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + .addAllMetastorePartitions(new ArrayList()) + .setSkipExistingPartitions(true) + .build(); + + MockStreamObserver responseObserver = + new MockStreamObserver<>(); + + BidiStreamingCallable + callable = client.streamMetastorePartitionsCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamMetastorePartitionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetastorePartitionService.addException(exception); + StreamMetastorePartitionsRequest request = + StreamMetastorePartitionsRequest.newBuilder() + .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString()) + .addAllMetastorePartitions(new ArrayList()) + .setSkipExistingPartitions(true) + .build(); + + MockStreamObserver responseObserver = + new MockStreamObserver<>(); + + BidiStreamingCallable + callable = client.streamMetastorePartitionsCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MockMetastorePartitionService.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MockMetastorePartitionService.java new file mode 100644 index 0000000000..dd1066ca4b --- /dev/null +++ b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MockMetastorePartitionService.java @@ -0,0 +1,59 @@ +/* + * 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.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockMetastorePartitionService implements MockGrpcService { + private final MockMetastorePartitionServiceImpl serviceImpl; + + public MockMetastorePartitionService() { + serviceImpl = new MockMetastorePartitionServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MockMetastorePartitionServiceImpl.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MockMetastorePartitionServiceImpl.java new file mode 100644 index 0000000000..6b0243148d --- /dev/null +++ b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MockMetastorePartitionServiceImpl.java @@ -0,0 +1,185 @@ +/* + * 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.BetaApi; +import com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceGrpc.MetastorePartitionServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockMetastorePartitionServiceImpl extends MetastorePartitionServiceImplBase { + private List requests; + private Queue responses; + + public MockMetastorePartitionServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void batchCreateMetastorePartitions( + BatchCreateMetastorePartitionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchCreateMetastorePartitionsResponse) { + requests.add(request); + responseObserver.onNext(((BatchCreateMetastorePartitionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchCreateMetastorePartitions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchCreateMetastorePartitionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchDeleteMetastorePartitions( + BatchDeleteMetastorePartitionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchDeleteMetastorePartitions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchUpdateMetastorePartitions( + BatchUpdateMetastorePartitionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchUpdateMetastorePartitionsResponse) { + requests.add(request); + responseObserver.onNext(((BatchUpdateMetastorePartitionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchUpdateMetastorePartitions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchUpdateMetastorePartitionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMetastorePartitions( + ListMetastorePartitionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMetastorePartitionsResponse) { + requests.add(request); + responseObserver.onNext(((ListMetastorePartitionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListMetastorePartitions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMetastorePartitionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public StreamObserver streamMetastorePartitions( + final StreamObserver responseObserver) { + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(StreamMetastorePartitionsRequest value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof StreamMetastorePartitionsResponse) { + responseObserver.onNext(((StreamMetastorePartitionsResponse) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StreamMetastorePartitions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StreamMetastorePartitionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } +} diff --git a/grpc-google-cloud-bigquerystorage-v1alpha/pom.xml b/grpc-google-cloud-bigquerystorage-v1alpha/pom.xml new file mode 100644 index 0000000000..308a4c7f34 --- /dev/null +++ b/grpc-google-cloud-bigquerystorage-v1alpha/pom.xml @@ -0,0 +1,64 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-bigquerystorage-v1alpha + 3.8.2-SNAPSHOT + grpc-google-cloud-bigquerystorage-v1alpha + GRPC library for google-cloud-bigquerystorage + + com.google.cloud + google-cloud-bigquerystorage-parent + 3.8.2-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-cloud-bigquerystorage-v1alpha + + + com.google.guava + guava + + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/grpc-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceGrpc.java b/grpc-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceGrpc.java new file mode 100644 index 0000000000..e79498224f --- /dev/null +++ b/grpc-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceGrpc.java @@ -0,0 +1,938 @@ +/* + * 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 static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * BigQuery Metastore Partition Service API.
+ * This service is used for managing metastore partitions in BigQuery metastore.
+ * The service supports only batch operations for write.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class MetastorePartitionServiceGrpc { + + private MetastorePartitionServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse> + getBatchCreateMetastorePartitionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchCreateMetastorePartitions", + requestType = + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest.class, + responseType = + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse> + getBatchCreateMetastorePartitionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse> + getBatchCreateMetastorePartitionsMethod; + if ((getBatchCreateMetastorePartitionsMethod = + MetastorePartitionServiceGrpc.getBatchCreateMetastorePartitionsMethod) + == null) { + synchronized (MetastorePartitionServiceGrpc.class) { + if ((getBatchCreateMetastorePartitionsMethod = + MetastorePartitionServiceGrpc.getBatchCreateMetastorePartitionsMethod) + == null) { + MetastorePartitionServiceGrpc.getBatchCreateMetastorePartitionsMethod = + getBatchCreateMetastorePartitionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchCreateMetastorePartitions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1alpha + .BatchCreateMetastorePartitionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1alpha + .BatchCreateMetastorePartitionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MetastorePartitionServiceMethodDescriptorSupplier( + "BatchCreateMetastorePartitions")) + .build(); + } + } + } + return getBatchCreateMetastorePartitionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest, + com.google.protobuf.Empty> + getBatchDeleteMetastorePartitionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchDeleteMetastorePartitions", + requestType = + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest, + com.google.protobuf.Empty> + getBatchDeleteMetastorePartitionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest, + com.google.protobuf.Empty> + getBatchDeleteMetastorePartitionsMethod; + if ((getBatchDeleteMetastorePartitionsMethod = + MetastorePartitionServiceGrpc.getBatchDeleteMetastorePartitionsMethod) + == null) { + synchronized (MetastorePartitionServiceGrpc.class) { + if ((getBatchDeleteMetastorePartitionsMethod = + MetastorePartitionServiceGrpc.getBatchDeleteMetastorePartitionsMethod) + == null) { + MetastorePartitionServiceGrpc.getBatchDeleteMetastorePartitionsMethod = + getBatchDeleteMetastorePartitionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchDeleteMetastorePartitions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1alpha + .BatchDeleteMetastorePartitionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new MetastorePartitionServiceMethodDescriptorSupplier( + "BatchDeleteMetastorePartitions")) + .build(); + } + } + } + return getBatchDeleteMetastorePartitionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse> + getBatchUpdateMetastorePartitionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchUpdateMetastorePartitions", + requestType = + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest.class, + responseType = + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse> + getBatchUpdateMetastorePartitionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse> + getBatchUpdateMetastorePartitionsMethod; + if ((getBatchUpdateMetastorePartitionsMethod = + MetastorePartitionServiceGrpc.getBatchUpdateMetastorePartitionsMethod) + == null) { + synchronized (MetastorePartitionServiceGrpc.class) { + if ((getBatchUpdateMetastorePartitionsMethod = + MetastorePartitionServiceGrpc.getBatchUpdateMetastorePartitionsMethod) + == null) { + MetastorePartitionServiceGrpc.getBatchUpdateMetastorePartitionsMethod = + getBatchUpdateMetastorePartitionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchUpdateMetastorePartitions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1alpha + .BatchUpdateMetastorePartitionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1alpha + .BatchUpdateMetastorePartitionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MetastorePartitionServiceMethodDescriptorSupplier( + "BatchUpdateMetastorePartitions")) + .build(); + } + } + } + return getBatchUpdateMetastorePartitionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse> + getListMetastorePartitionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMetastorePartitions", + requestType = com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest.class, + responseType = + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse> + getListMetastorePartitionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse> + getListMetastorePartitionsMethod; + if ((getListMetastorePartitionsMethod = + MetastorePartitionServiceGrpc.getListMetastorePartitionsMethod) + == null) { + synchronized (MetastorePartitionServiceGrpc.class) { + if ((getListMetastorePartitionsMethod = + MetastorePartitionServiceGrpc.getListMetastorePartitionsMethod) + == null) { + MetastorePartitionServiceGrpc.getListMetastorePartitionsMethod = + getListMetastorePartitionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMetastorePartitions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1alpha + .ListMetastorePartitionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1alpha + .ListMetastorePartitionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MetastorePartitionServiceMethodDescriptorSupplier( + "ListMetastorePartitions")) + .build(); + } + } + } + return getListMetastorePartitionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse> + getStreamMetastorePartitionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamMetastorePartitions", + requestType = + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest.class, + responseType = + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse> + getStreamMetastorePartitionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse> + getStreamMetastorePartitionsMethod; + if ((getStreamMetastorePartitionsMethod = + MetastorePartitionServiceGrpc.getStreamMetastorePartitionsMethod) + == null) { + synchronized (MetastorePartitionServiceGrpc.class) { + if ((getStreamMetastorePartitionsMethod = + MetastorePartitionServiceGrpc.getStreamMetastorePartitionsMethod) + == null) { + MetastorePartitionServiceGrpc.getStreamMetastorePartitionsMethod = + getStreamMetastorePartitionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "StreamMetastorePartitions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1alpha + .StreamMetastorePartitionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1alpha + .StreamMetastorePartitionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MetastorePartitionServiceMethodDescriptorSupplier( + "StreamMetastorePartitions")) + .build(); + } + } + } + return getStreamMetastorePartitionsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static MetastorePartitionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetastorePartitionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetastorePartitionServiceStub(channel, callOptions); + } + }; + return MetastorePartitionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MetastorePartitionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetastorePartitionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetastorePartitionServiceBlockingStub(channel, callOptions); + } + }; + return MetastorePartitionServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static MetastorePartitionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetastorePartitionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetastorePartitionServiceFutureStub(channel, callOptions); + } + }; + return MetastorePartitionServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * BigQuery Metastore Partition Service API.
+   * This service is used for managing metastore partitions in BigQuery metastore.
+   * The service supports only batch operations for write.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Adds metastore partitions to a table.
+     * 
+ */ + default void batchCreateMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCreateMetastorePartitionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes metastore partitions from a table.
+     * 
+ */ + default void batchDeleteMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeleteMetastorePartitionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates metastore partitions in a table.
+     * 
+ */ + default void batchUpdateMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchUpdateMetastorePartitionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets metastore partitions from a table.
+     * 
+ */ + default void listMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMetastorePartitionsMethod(), responseObserver); + } + + /** + * + * + *
+     * 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).
+     * 
+ */ + default io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest> + streamMetastorePartitions( + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse> + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamMetastorePartitionsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service MetastorePartitionService. + * + *
+   * BigQuery Metastore Partition Service API.
+   * This service is used for managing metastore partitions in BigQuery metastore.
+   * The service supports only batch operations for write.
+   * 
+ */ + public abstract static class MetastorePartitionServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return MetastorePartitionServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service MetastorePartitionService. + * + *
+   * BigQuery Metastore Partition Service API.
+   * This service is used for managing metastore partitions in BigQuery metastore.
+   * The service supports only batch operations for write.
+   * 
+ */ + public static final class MetastorePartitionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private MetastorePartitionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetastorePartitionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetastorePartitionServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Adds metastore partitions to a table.
+     * 
+ */ + public void batchCreateMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchCreateMetastorePartitionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes metastore partitions from a table.
+     * 
+ */ + public void batchDeleteMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchDeleteMetastorePartitionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates metastore partitions in a table.
+     * 
+ */ + public void batchUpdateMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchUpdateMetastorePartitionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets metastore partitions from a table.
+     * 
+ */ + public void listMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMetastorePartitionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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).
+     * 
+ */ + public io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest> + streamMetastorePartitions( + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse> + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamMetastorePartitionsMethod(), getCallOptions()), + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service MetastorePartitionService. + * + *
+   * BigQuery Metastore Partition Service API.
+   * This service is used for managing metastore partitions in BigQuery metastore.
+   * The service supports only batch operations for write.
+   * 
+ */ + public static final class MetastorePartitionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private MetastorePartitionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetastorePartitionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetastorePartitionServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Adds metastore partitions to a table.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse + batchCreateMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchCreateMetastorePartitionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes metastore partitions from a table.
+     * 
+ */ + public com.google.protobuf.Empty batchDeleteMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchDeleteMetastorePartitionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates metastore partitions in a table.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse + batchUpdateMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchUpdateMetastorePartitionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets metastore partitions from a table.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse + listMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMetastorePartitionsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * MetastorePartitionService. + * + *
+   * BigQuery Metastore Partition Service API.
+   * This service is used for managing metastore partitions in BigQuery metastore.
+   * The service supports only batch operations for write.
+   * 
+ */ + public static final class MetastorePartitionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private MetastorePartitionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetastorePartitionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetastorePartitionServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Adds metastore partitions to a table.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse> + batchCreateMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchCreateMetastorePartitionsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes metastore partitions from a table.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchDeleteMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchDeleteMetastorePartitionsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Updates metastore partitions in a table.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse> + batchUpdateMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchUpdateMetastorePartitionsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets metastore partitions from a table.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse> + listMetastorePartitions( + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMetastorePartitionsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_BATCH_CREATE_METASTORE_PARTITIONS = 0; + private static final int METHODID_BATCH_DELETE_METASTORE_PARTITIONS = 1; + private static final int METHODID_BATCH_UPDATE_METASTORE_PARTITIONS = 2; + private static final int METHODID_LIST_METASTORE_PARTITIONS = 3; + private static final int METHODID_STREAM_METASTORE_PARTITIONS = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_BATCH_CREATE_METASTORE_PARTITIONS: + serviceImpl.batchCreateMetastorePartitions( + (com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha + .BatchCreateMetastorePartitionsResponse>) + responseObserver); + break; + case METHODID_BATCH_DELETE_METASTORE_PARTITIONS: + serviceImpl.batchDeleteMetastorePartitions( + (com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_UPDATE_METASTORE_PARTITIONS: + serviceImpl.batchUpdateMetastorePartitions( + (com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha + .BatchUpdateMetastorePartitionsResponse>) + responseObserver); + break; + case METHODID_LIST_METASTORE_PARTITIONS: + serviceImpl.listMetastorePartitions( + (com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAM_METASTORE_PARTITIONS: + return (io.grpc.stub.StreamObserver) + serviceImpl.streamMetastorePartitions( + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1alpha + .StreamMetastorePartitionsResponse>) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getBatchCreateMetastorePartitionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha + .BatchCreateMetastorePartitionsResponse>( + service, METHODID_BATCH_CREATE_METASTORE_PARTITIONS))) + .addMethod( + getBatchDeleteMetastorePartitionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest, + com.google.protobuf.Empty>( + service, METHODID_BATCH_DELETE_METASTORE_PARTITIONS))) + .addMethod( + getBatchUpdateMetastorePartitionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha + .BatchUpdateMetastorePartitionsResponse>( + service, METHODID_BATCH_UPDATE_METASTORE_PARTITIONS))) + .addMethod( + getListMetastorePartitionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse>( + service, METHODID_LIST_METASTORE_PARTITIONS))) + .addMethod( + getStreamMetastorePartitionsMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest, + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse>( + service, METHODID_STREAM_METASTORE_PARTITIONS))) + .build(); + } + + private abstract static class MetastorePartitionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MetastorePartitionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("MetastorePartitionService"); + } + } + + private static final class MetastorePartitionServiceFileDescriptorSupplier + extends MetastorePartitionServiceBaseDescriptorSupplier { + MetastorePartitionServiceFileDescriptorSupplier() {} + } + + private static final class MetastorePartitionServiceMethodDescriptorSupplier + extends MetastorePartitionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + MetastorePartitionServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (MetastorePartitionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MetastorePartitionServiceFileDescriptorSupplier()) + .addMethod(getBatchCreateMetastorePartitionsMethod()) + .addMethod(getBatchDeleteMetastorePartitionsMethod()) + .addMethod(getBatchUpdateMetastorePartitionsMethod()) + .addMethod(getListMetastorePartitionsMethod()) + .addMethod(getStreamMetastorePartitionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/pom.xml b/pom.xml index 7a402cdb9e..0230cd036b 100644 --- a/pom.xml +++ b/pom.xml @@ -80,6 +80,16 @@ pom import + + com.google.api.grpc + proto-google-cloud-bigquerystorage-v1alpha + 3.8.2-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-bigquerystorage-v1alpha + 3.8.2-SNAPSHOT + com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 @@ -184,9 +194,11 @@ grpc-google-cloud-bigquerystorage-v1beta1 grpc-google-cloud-bigquerystorage-v1beta2 grpc-google-cloud-bigquerystorage-v1 + grpc-google-cloud-bigquerystorage-v1alpha proto-google-cloud-bigquerystorage-v1beta1 proto-google-cloud-bigquerystorage-v1beta2 proto-google-cloud-bigquerystorage-v1 + proto-google-cloud-bigquerystorage-v1alpha google-cloud-bigquerystorage-bom diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java index a7f0ab266d..6806ef1e19 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/annotations.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public final class AnnotationsProto { diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java index 91cd99eded..c89de2dd7b 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java index 7849bde8f8..3f05eabf9b 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface AppendRowsRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java index 2096429a05..6c69516d13 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java index 256e1ac2eb..d9f25bc776 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface AppendRowsResponseOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java index 08704d4404..c1a5505b33 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public final class ArrowProto { diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java index 1b9a632fe1..22dfdb45c2 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java index cbbdf768ce..d3ea2ceb6b 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface ArrowRecordBatchOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java index b6c6d15386..9fd0880a10 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java index 8c7e76d856..2e0010e2bb 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface ArrowSchemaOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java index 90e88f55cd..00374913b1 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java index ca70f0e243..7e6e6758bb 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface ArrowSerializationOptionsOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java index 3c409a97c5..67dc0162bb 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public final class AvroProto { diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java index 97a74e7a64..1b569f75d2 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java index b3ab8956a7..b3cfe1eccc 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface AvroRowsOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java index ef7c51a21c..a41af66ab7 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java index 35559f50b6..13a59108aa 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface AvroSchemaOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java index 97f5f7d060..2618c30e66 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java index 36b25df7fa..52c0f4f804 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface AvroSerializationOptionsOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java index e6823c9eee..12c607da8f 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java index 8415e96942..6200ca0464 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface BatchCommitWriteStreamsRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java index 71c44e5b0d..1e171185dd 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java index 8110b2da63..c105e984b6 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface BatchCommitWriteStreamsResponseOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java index 491571249b..95bd5c3ce2 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java index dc6103f462..095e44882c 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface CreateReadSessionRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java index a33cb3b199..56d03e717f 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java index 266c90361e..408e972c54 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface CreateWriteStreamRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java index cd02035686..4a0f2b3e95 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java index 3faf230940..cb67d27dd5 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java index ab0673a26e..7a6be260c8 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface FinalizeWriteStreamRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java index dd8ae01b27..668bb85f84 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java index fc3fef30f9..a79faf2d76 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface FinalizeWriteStreamResponseOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java index 21414e5348..074774aae4 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java index 74e2283a6e..8b9016e0cb 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface FlushRowsRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java index 0caf4651f6..19f76e0b6a 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java index f855ba78c6..20b177ff06 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface FlushRowsResponseOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java index b5df94fa21..0c5d63c961 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java index fbbf17a972..d394c645ea 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface GetWriteStreamRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java index 46408f370f..3bed506a0a 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/protobuf.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public final class ProtoBufProto { diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java index a87d739dd0..3647e157e5 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/protobuf.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoRows} */ diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java index c5b82826b6..5478842dcb 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/protobuf.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface ProtoRowsOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java index b0a5755696..cd89a1efe7 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/protobuf.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java index c1146958f8..e4c4b20bf8 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/protobuf.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface ProtoSchemaOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java index 608ade61ae..c62c36950a 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java index 3858ec0a94..eccdfb0640 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface ReadRowsRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java index eb2fbbe13c..a633a0fb56 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java index 06c1481225..c4b52b3f4a 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface ReadRowsResponseOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java index d5c2c45544..52eec44d20 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java index bae6d8a049..01a98c96c6 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface ReadSessionOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java index aa744c1651..9d1ff84a3a 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java index e83b107b54..cc76892dae 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface ReadStreamOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java index 0babebd9ec..9431a19a45 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java index cda5f6d24c..344307f8ab 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface RowErrorOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java index 848eeb2a86..a341f50d67 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java index 5c1a4d2e27..64d95abbed 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface SplitReadStreamRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java index 0de1e630e2..4f9195dbf2 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java index b8c69dbbed..1c23bf752d 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface SplitReadStreamResponseOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java index bdde89be28..2379303294 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java index fe28b130c7..b009ad61f6 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface StorageErrorOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java index 53e05b58e8..272575b4e8 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public final class StorageProto { diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java index b543bd9ec7..abc8af7a6a 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public final class StreamProto { diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java index 1f5c754bc1..a31675400f 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java index fbcf0a76a1..62f8aa5998 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface StreamStatsOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java index f5b70fe852..4058926696 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java index 51044e8cc4..c7363d03f8 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface TableFieldSchemaOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java index 20eb908aa7..dad69ee46f 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public final class TableProto { diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java index 2050225451..9c89f3695f 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java index 2c424e50cc..dbd8cdd36e 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface TableSchemaOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java index 325b6f9fab..7108b1c632 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java index d19c3a67de..2e83ca160e 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface ThrottleStateOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java index 17d5f54ed2..af782b8abc 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java index fbf77f0416..7545b8a55c 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; public interface WriteStreamOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java index e1525ffc2d..ec63c1f7d7 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1; /** diff --git a/proto-google-cloud-bigquerystorage-v1alpha/clirr-ignored-differences.xml b/proto-google-cloud-bigquerystorage-v1alpha/clirr-ignored-differences.xml new file mode 100644 index 0000000000..22bf9de1da --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/bigquery/storage/v1alpha/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/bigquery/storage/v1alpha/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/bigquery/storage/v1alpha/*OrBuilder + boolean has*(*) + + diff --git a/proto-google-cloud-bigquerystorage-v1alpha/pom.xml b/proto-google-cloud-bigquerystorage-v1alpha/pom.xml new file mode 100644 index 0000000000..879c954aa8 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/pom.xml @@ -0,0 +1,41 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-bigquerystorage-v1alpha + 3.8.2-SNAPSHOT + proto-google-cloud-bigquerystorage-v1alpha + Proto library for google-cloud-bigquerystorage + + com.google.cloud + google-cloud-bigquerystorage-parent + 3.8.2-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api + api-common + + + com.google.guava + guava + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsRequest.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsRequest.java new file mode 100644 index 0000000000..5028f3c35e --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsRequest.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; + +/** + * + * + *
+ * 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 + 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 java.util.List + getRequestsList() { + 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 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest) + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequestOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + skipExistingPartitions_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest build() { + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest + buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest result = + new com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.skipExistingPartitions_ = skipExistingPartitions_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + if (other.getSkipExistingPartitions() != false) { + setSkipExistingPartitions(other.getSkipExistingPartitions()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest m = + input.readMessage( + com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest + .parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + skipExistingPartitions_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. 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 + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateMetastorePartitionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsRequestOrBuilder.java new file mode 100644 index 0000000000..f70a675604 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsRequestOrBuilder.java @@ -0,0 +1,142 @@ +/* + * 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 interface BatchCreateMetastorePartitionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 + getRequestsList(); + /** + * + * + *
+   * 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 partitions_; + /** + * + * + *
+   * 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 + getPartitionsList() { + return partitions_; + } + /** + * + * + *
+   * 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse) + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponseOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (partitionsBuilder_ == null) { + partitions_ = java.util.Collections.emptyList(); + } else { + partitions_ = null; + partitionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchCreateMetastorePartitionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse + build() { + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse + buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse result = + new com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse result) { + if (partitionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + partitions_ = java.util.Collections.unmodifiableList(partitions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.partitions_ = partitions_; + } else { + result.partitions_ = partitionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse + .getDefaultInstance()) return this; + if (partitionsBuilder_ == null) { + if (!other.partitions_.isEmpty()) { + if (partitions_.isEmpty()) { + partitions_ = other.partitions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePartitionsIsMutable(); + partitions_.addAll(other.partitions_); + } + onChanged(); + } + } else { + if (!other.partitions_.isEmpty()) { + if (partitionsBuilder_.isEmpty()) { + partitionsBuilder_.dispose(); + partitionsBuilder_ = null; + partitions_ = other.partitions_; + bitField0_ = (bitField0_ & ~0x00000001); + partitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartitionsFieldBuilder() + : null; + } else { + partitionsBuilder_.addAllMessages(other.partitions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition m = + input.readMessage( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.parser(), + extensionRegistry); + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + partitions_.add(m); + } else { + partitionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + partitions_ = java.util.Collections.emptyList(); + + private void ensurePartitionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + partitions_ = + new java.util.ArrayList( + partitions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder> + partitionsBuilder_; + + /** + * + * + *
+     * The list of metastore partitions that have been created.
+     * 
+ * + * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1; + * + */ + public java.util.List + getPartitionsList() { + if (partitionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(partitions_); + } else { + return partitionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 + 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 + getPartitionsBuilderList() { + return getPartitionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder> + getPartitionsFieldBuilder() { + if (partitionsBuilder_ == null) { + partitionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>( + partitions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + partitions_ = null; + } + return partitionsBuilder_; + } + + @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.BatchCreateMetastorePartitionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse) + private static final com.google.cloud.bigquery.storage.v1alpha + .BatchCreateMetastorePartitionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse(); + } + + public static com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateMetastorePartitionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsResponseOrBuilder.java new file mode 100644 index 0000000000..86d6d823a0 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchCreateMetastorePartitionsResponseOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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 interface BatchCreateMetastorePartitionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of metastore partitions that have been created.
+   * 
+ * + * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1; + */ + java.util.List getPartitionsList(); + /** + * + * + *
+   * 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 + 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 + 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 java.util.List + getPartitionValuesList() { + 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 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest) + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequestOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (partitionValuesBuilder_ == null) { + partitionValues_ = java.util.Collections.emptyList(); + } else { + partitionValues_ = null; + partitionValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchDeleteMetastorePartitionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest build() { + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest + buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest result = + new com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest result) { + if (partitionValuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + partitionValues_ = java.util.Collections.unmodifiableList(partitionValues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.partitionValues_ = partitionValues_; + } else { + result.partitionValues_ = partitionValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (partitionValuesBuilder_ == null) { + if (!other.partitionValues_.isEmpty()) { + if (partitionValues_.isEmpty()) { + partitionValues_ = other.partitionValues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePartitionValuesIsMutable(); + partitionValues_.addAll(other.partitionValues_); + } + onChanged(); + } + } else { + if (!other.partitionValues_.isEmpty()) { + if (partitionValuesBuilder_.isEmpty()) { + partitionValuesBuilder_.dispose(); + partitionValuesBuilder_ = null; + partitionValues_ = other.partitionValues_; + bitField0_ = (bitField0_ & ~0x00000002); + partitionValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartitionValuesFieldBuilder() + : null; + } else { + partitionValuesBuilder_.addAllMessages(other.partitionValues_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues m = + input.readMessage( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.parser(), + extensionRegistry); + if (partitionValuesBuilder_ == null) { + ensurePartitionValuesIsMutable(); + partitionValues_.add(m); + } else { + partitionValuesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. 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 + partitionValues_ = java.util.Collections.emptyList(); + + private void ensurePartitionValuesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + partitionValues_ = + new java.util.ArrayList< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues>( + partitionValues_); + bitField0_ |= 0x00000002; + } + } + + 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> + partitionValuesBuilder_; + + /** + * + * + *
+     * 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 + getPartitionValuesList() { + if (partitionValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(partitionValues_); + } else { + return partitionValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeleteMetastorePartitionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchDeleteMetastorePartitionsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchDeleteMetastorePartitionsRequestOrBuilder.java new file mode 100644 index 0000000000..d5debb9ee4 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchDeleteMetastorePartitionsRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * 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 interface BatchDeleteMetastorePartitionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.BatchDeleteMetastorePartitionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 + getPartitionValuesList(); + /** + * + * + *
+   * 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError) + com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeErrorOrBuilder { + 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); + } + + // Construct using com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxBatchSize_ = 0L; + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchSizeTooLargeError_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError build() { + com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError result = + new com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxBatchSize_ = maxBatchSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError) { + return mergeFrom((com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError.getDefaultInstance()) + return this; + if (other.getMaxBatchSize() != 0L) { + setMaxBatchSize(other.getMaxBatchSize()); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxBatchSize_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long 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; + * + * @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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchSizeTooLargeError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchSizeTooLargeErrorOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchSizeTooLargeErrorOrBuilder.java new file mode 100644 index 0000000000..d596d734bc --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchSizeTooLargeErrorOrBuilder.java @@ -0,0 +1,65 @@ +/* + * 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 interface BatchSizeTooLargeErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 + 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 java.util.List + getRequestsList() { + 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 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest) + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequestOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest build() { + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest + buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest result = + new com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest m = + input.readMessage( + com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest + .parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. 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 + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateMetastorePartitionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsRequestOrBuilder.java new file mode 100644 index 0000000000..52b9ad845d --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * 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 interface BatchUpdateMetastorePartitionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 + getRequestsList(); + /** + * + * + *
+   * 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 partitions_; + /** + * + * + *
+   * 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 + getPartitionsList() { + return partitions_; + } + /** + * + * + *
+   * 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse) + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponseOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (partitionsBuilder_ == null) { + partitions_ = java.util.Collections.emptyList(); + } else { + partitions_ = null; + partitionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_BatchUpdateMetastorePartitionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse + build() { + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse + buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse result = + new com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse result) { + if (partitionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + partitions_ = java.util.Collections.unmodifiableList(partitions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.partitions_ = partitions_; + } else { + result.partitions_ = partitionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse + .getDefaultInstance()) return this; + if (partitionsBuilder_ == null) { + if (!other.partitions_.isEmpty()) { + if (partitions_.isEmpty()) { + partitions_ = other.partitions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePartitionsIsMutable(); + partitions_.addAll(other.partitions_); + } + onChanged(); + } + } else { + if (!other.partitions_.isEmpty()) { + if (partitionsBuilder_.isEmpty()) { + partitionsBuilder_.dispose(); + partitionsBuilder_ = null; + partitions_ = other.partitions_; + bitField0_ = (bitField0_ & ~0x00000001); + partitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartitionsFieldBuilder() + : null; + } else { + partitionsBuilder_.addAllMessages(other.partitions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition m = + input.readMessage( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.parser(), + extensionRegistry); + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + partitions_.add(m); + } else { + partitionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + partitions_ = java.util.Collections.emptyList(); + + private void ensurePartitionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + partitions_ = + new java.util.ArrayList( + partitions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder> + partitionsBuilder_; + + /** + * + * + *
+     * The list of metastore partitions that have been updated.
+     * 
+ * + * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1; + * + */ + public java.util.List + getPartitionsList() { + if (partitionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(partitions_); + } else { + return partitionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 + 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 + getPartitionsBuilderList() { + return getPartitionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder> + getPartitionsFieldBuilder() { + if (partitionsBuilder_ == null) { + partitionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>( + partitions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + partitions_ = null; + } + return partitionsBuilder_; + } + + @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.BatchUpdateMetastorePartitionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse) + private static final com.google.cloud.bigquery.storage.v1alpha + .BatchUpdateMetastorePartitionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse(); + } + + public static com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateMetastorePartitionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsResponseOrBuilder.java new file mode 100644 index 0000000000..ab9ce949c9 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchUpdateMetastorePartitionsResponseOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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 interface BatchUpdateMetastorePartitionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of metastore partitions that have been updated.
+   * 
+ * + * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1; + */ + java.util.List getPartitionsList(); + /** + * + * + *
+   * 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 + 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest) + com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequestOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetastorePartitionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + metastorePartition_ = null; + if (metastorePartitionBuilder_ != null) { + metastorePartitionBuilder_.dispose(); + metastorePartitionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_CreateMetastorePartitionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest build() { + com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest + buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest result = + new com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metastorePartition_ = + metastorePartitionBuilder_ == null + ? metastorePartition_ + : metastorePartitionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMetastorePartition()) { + mergeMetastorePartition(other.getMetastorePartition()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getMetastorePartitionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMetastorePartitionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/CreateMetastorePartitionRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/CreateMetastorePartitionRequestOrBuilder.java new file mode 100644 index 0000000000..98673098dd --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/CreateMetastorePartitionRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * 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 interface CreateMetastorePartitionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.FieldSchema) + com.google.cloud.bigquery.storage.v1alpha.FieldSchemaOrBuilder { + 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); + } + + // Construct using com.google.cloud.bigquery.storage.v1alpha.FieldSchema.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_FieldSchema_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.FieldSchema getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.FieldSchema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.FieldSchema build() { + com.google.cloud.bigquery.storage.v1alpha.FieldSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.FieldSchema buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.FieldSchema result = + new com.google.cloud.bigquery.storage.v1alpha.FieldSchema(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.storage.v1alpha.FieldSchema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1alpha.FieldSchema) { + return mergeFrom((com.google.cloud.bigquery.storage.v1alpha.FieldSchema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1alpha.FieldSchema other) { + if (other == com.google.cloud.bigquery.storage.v1alpha.FieldSchema.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.FieldSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/FieldSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/FieldSchemaOrBuilder.java new file mode 100644 index 0000000000..5417ccec48 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/FieldSchemaOrBuilder.java @@ -0,0 +1,80 @@ +/* + * 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 FieldSchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.FieldSchema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest) + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequestOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest build() { + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest result = + new com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object 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. + */ + 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMetastorePartitionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsRequestOrBuilder.java new file mode 100644 index 0000000000..c282642ed4 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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 interface ListMetastorePartitionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse) + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponseOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (partitionsBuilder_ != null) { + partitionsBuilder_.clear(); + } + if (streamsBuilder_ != null) { + streamsBuilder_.clear(); + } + responseCase_ = 0; + response_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_ListMetastorePartitionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse build() { + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse + buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse result = + new com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse result) { + result.responseCase_ = responseCase_; + result.response_ = this.response_; + if (responseCase_ == 1 && partitionsBuilder_ != null) { + result.response_ = partitionsBuilder_.build(); + } + if (responseCase_ == 2 && streamsBuilder_ != null) { + result.response_ = streamsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse + .getDefaultInstance()) return this; + switch (other.getResponseCase()) { + case PARTITIONS: + { + mergePartitions(other.getPartitions()); + break; + } + case STREAMS: + { + mergeStreams(other.getStreams()); + break; + } + case RESPONSE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getPartitionsFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getStreamsFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int responseCase_ = 0; + private java.lang.Object response_; + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); + } + + public Builder clearResponse() { + responseCase_ = 0; + response_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + 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> + partitionsBuilder_; + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMetastorePartitionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsResponseOrBuilder.java new file mode 100644 index 0000000000..cc65ce2574 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ListMetastorePartitionsResponseOrBuilder.java @@ -0,0 +1,100 @@ +/* + * 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 interface ListMetastorePartitionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField parameters_; + + private com.google.protobuf.MapField internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField(ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + * + * + *
+   * 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 getParameters() { + return getParametersMap(); + } + /** + * + * + *
+   * 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 getParametersMap() { + return internalGetParameters().getMap(); + } + /** + * + * + *
+   * 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 map = internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : 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.Override + public java.lang.String getParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int FIELDS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List fields_; + /** + * + * + *
+   * 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 getFieldsList() { + return fields_; + } + /** + * + * + *
+   * 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 + 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 entry : + internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry parameters__ = + ParametersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, parameters__); + } + for (int i = 0; i < fields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, fields_.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.MetastorePartition)) { + return super.equals(obj); + } + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition other = + (com.google.cloud.bigquery.storage.v1alpha.MetastorePartition) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasStorageDescriptor() != other.hasStorageDescriptor()) return false; + if (hasStorageDescriptor()) { + if (!getStorageDescriptor().equals(other.getStorageDescriptor())) return false; + } + if (!internalGetParameters().equals(other.internalGetParameters())) return false; + if (!getFieldsList().equals(other.getFieldsList())) 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(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasStorageDescriptor()) { + hash = (37 * hash) + STORAGE_DESCRIPTOR_FIELD_NUMBER; + hash = (53 * hash) + getStorageDescriptor().hashCode(); + } + if (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + if (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartition 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.MetastorePartition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartition 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.MetastorePartition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartition 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.MetastorePartition 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.MetastorePartition 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.MetastorePartition 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.MetastorePartition 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.MetastorePartition 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.MetastorePartition 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.MetastorePartition 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 Hive partition.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.MetastorePartition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.MetastorePartition) + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder { + 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"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableParameters(); + 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); + } + + // Construct using com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getStorageDescriptorFieldBuilder(); + getFieldsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + storageDescriptor_ = null; + if (storageDescriptorBuilder_ != null) { + storageDescriptorBuilder_.dispose(); + storageDescriptorBuilder_ = null; + } + internalGetMutableParameters().clear(); + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + } else { + fields_ = null; + fieldsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartition_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition build() { + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition result = + new com.google.cloud.bigquery.storage.v1alpha.MetastorePartition(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition result) { + if (fieldsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.fields_ = fields_; + } else { + result.fields_ = fieldsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.storageDescriptor_ = + storageDescriptorBuilder_ == null + ? storageDescriptor_ + : storageDescriptorBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1alpha.MetastorePartition) { + return mergeFrom((com.google.cloud.bigquery.storage.v1alpha.MetastorePartition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1alpha.MetastorePartition other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasStorageDescriptor()) { + mergeStorageDescriptor(other.getStorageDescriptor()); + } + internalGetMutableParameters().mergeFrom(other.internalGetParameters()); + bitField0_ |= 0x00000008; + if (fieldsBuilder_ == null) { + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + } else { + if (!other.fields_.isEmpty()) { + if (fieldsBuilder_.isEmpty()) { + fieldsBuilder_.dispose(); + fieldsBuilder_ = null; + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000010); + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; + } else { + fieldsBuilder_.addAllMessages(other.fields_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getStorageDescriptorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry parameters__ = + input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableParameters() + .getMutableMap() + .put(parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.bigquery.storage.v1alpha.FieldSchema m = + input.readMessage( + com.google.cloud.bigquery.storage.v1alpha.FieldSchema.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+     * 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 values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + 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]; + * + * @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 parameters_; + + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + private com.google.protobuf.MapField + internalGetMutableParameters() { + if (parameters_ == null) { + parameters_ = + com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); + } + if (!parameters_.isMutable()) { + parameters_ = parameters_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + * + * + *
+     * 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 getParameters() { + return getParametersMap(); + } + /** + * + * + *
+     * 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 getParametersMap() { + return internalGetParameters().getMap(); + } + /** + * + * + *
+     * 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 map = internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : 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.Override + public java.lang.String getParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableParameters().getMutableMap().clear(); + 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 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 getMutableParameters() { + bitField0_ |= 0x00000008; + return internalGetMutableParameters().getMutableMap(); + } + /** + * + * + *
+     * 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 values) { + internalGetMutableParameters().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.util.List fields_ = + java.util.Collections.emptyList(); + + private void ensureFieldsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + fields_ = + new java.util.ArrayList(fields_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.FieldSchema, + com.google.cloud.bigquery.storage.v1alpha.FieldSchema.Builder, + com.google.cloud.bigquery.storage.v1alpha.FieldSchemaOrBuilder> + fieldsBuilder_; + + /** + * + * + *
+     * Optional. List of columns.
+     * 
+ * + * + * repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFieldsList() { + if (fieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fields_); + } else { + return fieldsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 + 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 + 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 + getFieldsBuilderList() { + return getFieldsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.FieldSchema, + com.google.cloud.bigquery.storage.v1alpha.FieldSchema.Builder, + com.google.cloud.bigquery.storage.v1alpha.FieldSchemaOrBuilder> + getFieldsFieldBuilder() { + if (fieldsBuilder_ == null) { + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.FieldSchema, + com.google.cloud.bigquery.storage.v1alpha.FieldSchema.Builder, + com.google.cloud.bigquery.storage.v1alpha.FieldSchemaOrBuilder>( + fields_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + fields_ = null; + } + return fieldsBuilder_; + } + + @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.MetastorePartition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.MetastorePartition) + private static final com.google.cloud.bigquery.storage.v1alpha.MetastorePartition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1alpha.MetastorePartition(); + } + + public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetastorePartition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.MetastorePartition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionList.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionList.java new file mode 100644 index 0000000000..23e5ee4ec8 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionList.java @@ -0,0 +1,1012 @@ +/* + * 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 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 partitions_; + /** + * + * + *
+   * 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 + getPartitionsList() { + return partitions_; + } + /** + * + * + *
+   * 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionListOrBuilder { + 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); + } + + // Construct using com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (partitionsBuilder_ == null) { + partitions_ = java.util.Collections.emptyList(); + } else { + partitions_ = null; + partitionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionList_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList build() { + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList result = + new com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList result) { + if (partitionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + partitions_ = java.util.Collections.unmodifiableList(partitions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.partitions_ = partitions_; + } else { + result.partitions_ = partitionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) { + return mergeFrom((com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList.getDefaultInstance()) + return this; + if (partitionsBuilder_ == null) { + if (!other.partitions_.isEmpty()) { + if (partitions_.isEmpty()) { + partitions_ = other.partitions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePartitionsIsMutable(); + partitions_.addAll(other.partitions_); + } + onChanged(); + } + } else { + if (!other.partitions_.isEmpty()) { + if (partitionsBuilder_.isEmpty()) { + partitionsBuilder_.dispose(); + partitionsBuilder_ = null; + partitions_ = other.partitions_; + bitField0_ = (bitField0_ & ~0x00000001); + partitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartitionsFieldBuilder() + : null; + } else { + partitionsBuilder_.addAllMessages(other.partitions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition m = + input.readMessage( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.parser(), + extensionRegistry); + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + partitions_.add(m); + } else { + partitionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + partitions_ = java.util.Collections.emptyList(); + + private void ensurePartitionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + partitions_ = + new java.util.ArrayList( + partitions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder> + partitionsBuilder_; + + /** + * + * + *
+     * Required. List of partitions.
+     * 
+ * + * + * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getPartitionsList() { + if (partitionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(partitions_); + } else { + return partitionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 + 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 + getPartitionsBuilderList() { + return getPartitionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder> + getPartitionsFieldBuilder() { + if (partitionsBuilder_ == null) { + partitionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>( + partitions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + partitions_ = null; + } + return partitionsBuilder_; + } + + @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.MetastorePartitionList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) + private static final com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList(); + } + + public static com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetastorePartitionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionListOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionListOrBuilder.java new file mode 100644 index 0000000000..746245dd82 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionListOrBuilder.java @@ -0,0 +1,89 @@ +/* + * 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 MetastorePartitionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.MetastorePartitionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. List of partitions.
+   * 
+ * + * + * repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition partitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getPartitionsList(); + /** + * + * + *
+   * 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 + 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 getValuesList(); + /** + * + * + *
+   * 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 getParameters(); + /** + * + * + *
+   * 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 getParametersMap(); + /** + * + * + *
+   * 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 getFieldsList(); + /** + * + * + *
+   * 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 + 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues) + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValuesOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_MetastorePartitionValues_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues build() { + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues result = + new com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues + .getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+     * 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 values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + 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]; + * + * @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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetastorePartitionValues parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionValuesOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionValuesOrBuilder.java new file mode 100644 index 0000000000..0f6c84900b --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionValuesOrBuilder.java @@ -0,0 +1,81 @@ +/* + * 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 MetastorePartitionValuesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.MetastorePartitionValues) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 getValuesList(); + /** + * + * + *
+   * 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.ReadStream) + com.google.cloud.bigquery.storage.v1alpha.ReadStreamOrBuilder { + 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); + } + + // Construct using com.google.cloud.bigquery.storage.v1alpha.ReadStream.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_ReadStream_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.ReadStream getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.ReadStream.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.ReadStream build() { + com.google.cloud.bigquery.storage.v1alpha.ReadStream result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.ReadStream buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.ReadStream result = + new com.google.cloud.bigquery.storage.v1alpha.ReadStream(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.storage.v1alpha.ReadStream result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1alpha.ReadStream) { + return mergeFrom((com.google.cloud.bigquery.storage.v1alpha.ReadStream) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1alpha.ReadStream other) { + if (other == com.google.cloud.bigquery.storage.v1alpha.ReadStream.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.ReadStream getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ReadStreamOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ReadStreamOrBuilder.java new file mode 100644 index 0000000000..f17538169e --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ReadStreamOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// 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 ReadStreamOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.ReadStream) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField parameters_; + + private com.google.protobuf.MapField internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField(ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + * + * + *
+   * 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 getParameters() { + return getParametersMap(); + } + /** + * + * + *
+   * 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 getParametersMap() { + return internalGetParameters().getMap(); + } + /** + * + * + *
+   * 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 map = internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : 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.Override + public java.lang.String getParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serializationLibrary_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serializationLibrary_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 3); + 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(serializationLibrary_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serializationLibrary_); + } + for (java.util.Map.Entry entry : + internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry parameters__ = + ParametersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, parameters__); + } + 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.SerDeInfo)) { + return super.equals(obj); + } + com.google.cloud.bigquery.storage.v1alpha.SerDeInfo other = + (com.google.cloud.bigquery.storage.v1alpha.SerDeInfo) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSerializationLibrary().equals(other.getSerializationLibrary())) return false; + if (!internalGetParameters().equals(other.internalGetParameters())) 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) + SERIALIZATION_LIBRARY_FIELD_NUMBER; + hash = (53 * hash) + getSerializationLibrary().hashCode(); + if (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.storage.v1alpha.SerDeInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1alpha.SerDeInfo 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.SerDeInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1alpha.SerDeInfo 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.SerDeInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1alpha.SerDeInfo 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.SerDeInfo 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.SerDeInfo 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.SerDeInfo 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.SerDeInfo 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.SerDeInfo 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.SerDeInfo 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.SerDeInfo 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; + } + /** + * + * + *
+   * Serializer and deserializer information.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1alpha.SerDeInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.SerDeInfo) + com.google.cloud.bigquery.storage.v1alpha.SerDeInfoOrBuilder { + 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"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetMutableParameters(); + 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); + } + + // Construct using com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + serializationLibrary_ = ""; + internalGetMutableParameters().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_SerDeInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.SerDeInfo getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.SerDeInfo build() { + com.google.cloud.bigquery.storage.v1alpha.SerDeInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.SerDeInfo buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.SerDeInfo result = + new com.google.cloud.bigquery.storage.v1alpha.SerDeInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.storage.v1alpha.SerDeInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serializationLibrary_ = serializationLibrary_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1alpha.SerDeInfo) { + return mergeFrom((com.google.cloud.bigquery.storage.v1alpha.SerDeInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1alpha.SerDeInfo other) { + if (other == com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSerializationLibrary().isEmpty()) { + serializationLibrary_ = other.serializationLibrary_; + bitField0_ |= 0x00000002; + onChanged(); + } + internalGetMutableParameters().mergeFrom(other.internalGetParameters()); + bitField0_ |= 0x00000004; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + serializationLibrary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry parameters__ = + input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableParameters() + .getMutableMap() + .put(parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * 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 parameters_; + + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + private com.google.protobuf.MapField + internalGetMutableParameters() { + if (parameters_ == null) { + parameters_ = + com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); + } + if (!parameters_.isMutable()) { + parameters_ = parameters_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + * + * + *
+     * 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 getParameters() { + return getParametersMap(); + } + /** + * + * + *
+     * 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 getParametersMap() { + return internalGetParameters().getMap(); + } + /** + * + * + *
+     * 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 map = internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : 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.Override + public java.lang.String getParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableParameters().getMutableMap().clear(); + 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 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 getMutableParameters() { + bitField0_ |= 0x00000004; + return internalGetMutableParameters().getMutableMap(); + } + /** + * + * + *
+     * 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 values) { + internalGetMutableParameters().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + 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.SerDeInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.SerDeInfo) + private static final com.google.cloud.bigquery.storage.v1alpha.SerDeInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1alpha.SerDeInfo(); + } + + public static com.google.cloud.bigquery.storage.v1alpha.SerDeInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SerDeInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.SerDeInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/SerDeInfoOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/SerDeInfoOrBuilder.java new file mode 100644 index 0000000000..3f02e790af --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/SerDeInfoOrBuilder.java @@ -0,0 +1,157 @@ +/* + * 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 SerDeInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.SerDeInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 getParameters(); + /** + * + * + *
+   * 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 getParametersMap(); + /** + * + * + *
+   * 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.StorageDescriptor) + com.google.cloud.bigquery.storage.v1alpha.StorageDescriptorOrBuilder { + 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); + } + + // Construct using com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSerdeInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + locationUri_ = ""; + inputFormat_ = ""; + outputFormat_ = ""; + serdeInfo_ = null; + if (serdeInfoBuilder_ != null) { + serdeInfoBuilder_.dispose(); + serdeInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_StorageDescriptor_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor build() { + com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor result = + new com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.locationUri_ = locationUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputFormat_ = inputFormat_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputFormat_ = outputFormat_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serdeInfo_ = serdeInfoBuilder_ == null ? serdeInfo_ : serdeInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor) { + return mergeFrom((com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor other) { + if (other == com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor.getDefaultInstance()) + return this; + if (!other.getLocationUri().isEmpty()) { + locationUri_ = other.locationUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInputFormat().isEmpty()) { + inputFormat_ = other.inputFormat_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOutputFormat().isEmpty()) { + outputFormat_ = other.outputFormat_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSerdeInfo()) { + mergeSerdeInfo(other.getSerdeInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + locationUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + inputFormat_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + outputFormat_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getSerdeInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object 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. + */ + 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StorageDescriptor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StorageDescriptorOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StorageDescriptorOrBuilder.java new file mode 100644 index 0000000000..fb56509c9b --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StorageDescriptorOrBuilder.java @@ -0,0 +1,154 @@ +/* + * 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 StorageDescriptorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.StorageDescriptor) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 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 java.util.List getStreamsList() { + 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 java.util.List + 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.StreamList) + com.google.cloud.bigquery.storage.v1alpha.StreamListOrBuilder { + 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); + } + + // Construct using com.google.cloud.bigquery.storage.v1alpha.StreamList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (streamsBuilder_ == null) { + streams_ = java.util.Collections.emptyList(); + } else { + streams_ = null; + streamsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionProto + .internal_static_google_cloud_bigquery_storage_v1alpha_StreamList_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StreamList getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.StreamList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StreamList build() { + com.google.cloud.bigquery.storage.v1alpha.StreamList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StreamList buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.StreamList result = + new com.google.cloud.bigquery.storage.v1alpha.StreamList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1alpha.StreamList result) { + if (streamsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + streams_ = java.util.Collections.unmodifiableList(streams_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.streams_ = streams_; + } else { + result.streams_ = streamsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.bigquery.storage.v1alpha.StreamList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1alpha.StreamList) { + return mergeFrom((com.google.cloud.bigquery.storage.v1alpha.StreamList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1alpha.StreamList other) { + if (other == com.google.cloud.bigquery.storage.v1alpha.StreamList.getDefaultInstance()) + return this; + if (streamsBuilder_ == null) { + if (!other.streams_.isEmpty()) { + if (streams_.isEmpty()) { + streams_ = other.streams_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStreamsIsMutable(); + streams_.addAll(other.streams_); + } + onChanged(); + } + } else { + if (!other.streams_.isEmpty()) { + if (streamsBuilder_.isEmpty()) { + streamsBuilder_.dispose(); + streamsBuilder_ = null; + streams_ = other.streams_; + bitField0_ = (bitField0_ & ~0x00000001); + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStreamsFieldBuilder() + : null; + } else { + streamsBuilder_.addAllMessages(other.streams_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.bigquery.storage.v1alpha.ReadStream m = + input.readMessage( + com.google.cloud.bigquery.storage.v1alpha.ReadStream.parser(), + extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List streams_ = + java.util.Collections.emptyList(); + + private void ensureStreamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + streams_ = + new java.util.ArrayList(streams_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.ReadStream, + com.google.cloud.bigquery.storage.v1alpha.ReadStream.Builder, + com.google.cloud.bigquery.storage.v1alpha.ReadStreamOrBuilder> + streamsBuilder_; + + /** + * + * + *
+     * Output only. List of streams.
+     * 
+ * + * + * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getStreamsList() { + if (streamsBuilder_ == null) { + return java.util.Collections.unmodifiableList(streams_); + } else { + return streamsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 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 + 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 + getStreamsBuilderList() { + return getStreamsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.ReadStream, + com.google.cloud.bigquery.storage.v1alpha.ReadStream.Builder, + com.google.cloud.bigquery.storage.v1alpha.ReadStreamOrBuilder> + getStreamsFieldBuilder() { + if (streamsBuilder_ == null) { + streamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.ReadStream, + com.google.cloud.bigquery.storage.v1alpha.ReadStream.Builder, + com.google.cloud.bigquery.storage.v1alpha.ReadStreamOrBuilder>( + streams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + streams_ = null; + } + 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.StreamList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1alpha.StreamList) + private static final com.google.cloud.bigquery.storage.v1alpha.StreamList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1alpha.StreamList(); + } + + public static com.google.cloud.bigquery.storage.v1alpha.StreamList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StreamList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamListOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamListOrBuilder.java new file mode 100644 index 0000000000..cbc6bd89c6 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamListOrBuilder.java @@ -0,0 +1,88 @@ +/* + * 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 StreamListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.StreamList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. List of streams.
+   * 
+ * + * + * repeated .google.cloud.bigquery.storage.v1alpha.ReadStream streams = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getStreamsList(); + /** + * + * + *
+   * 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 + 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 + 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 java.util.List + getMetastorePartitionsList() { + 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 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest) + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequestOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (metastorePartitionsBuilder_ == null) { + metastorePartitions_ = java.util.Collections.emptyList(); + } else { + metastorePartitions_ = null; + metastorePartitionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + skipExistingPartitions_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest build() { + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest + buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest result = + new com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest result) { + if (metastorePartitionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + metastorePartitions_ = java.util.Collections.unmodifiableList(metastorePartitions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.metastorePartitions_ = metastorePartitions_; + } else { + result.metastorePartitions_ = metastorePartitionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.skipExistingPartitions_ = skipExistingPartitions_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (metastorePartitionsBuilder_ == null) { + if (!other.metastorePartitions_.isEmpty()) { + if (metastorePartitions_.isEmpty()) { + metastorePartitions_ = other.metastorePartitions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMetastorePartitionsIsMutable(); + metastorePartitions_.addAll(other.metastorePartitions_); + } + onChanged(); + } + } else { + if (!other.metastorePartitions_.isEmpty()) { + if (metastorePartitionsBuilder_.isEmpty()) { + metastorePartitionsBuilder_.dispose(); + metastorePartitionsBuilder_ = null; + metastorePartitions_ = other.metastorePartitions_; + bitField0_ = (bitField0_ & ~0x00000002); + metastorePartitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetastorePartitionsFieldBuilder() + : null; + } else { + metastorePartitionsBuilder_.addAllMessages(other.metastorePartitions_); + } + } + } + if (other.getSkipExistingPartitions() != false) { + setSkipExistingPartitions(other.getSkipExistingPartitions()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition m = + input.readMessage( + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.parser(), + extensionRegistry); + if (metastorePartitionsBuilder_ == null) { + ensureMetastorePartitionsIsMutable(); + metastorePartitions_.add(m); + } else { + metastorePartitionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + skipExistingPartitions_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. 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 + metastorePartitions_ = java.util.Collections.emptyList(); + + private void ensureMetastorePartitionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + metastorePartitions_ = + new java.util.ArrayList( + metastorePartitions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder> + metastorePartitionsBuilder_; + + /** + * + * + *
+     * 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 + getMetastorePartitionsList() { + if (metastorePartitionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metastorePartitions_); + } else { + return metastorePartitionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 + 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 + getMetastorePartitionsBuilderList() { + return getMetastorePartitionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder> + getMetastorePartitionsFieldBuilder() { + if (metastorePartitionsBuilder_ == null) { + metastorePartitionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartition.Builder, + com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>( + metastorePartitions_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + metastorePartitions_ = null; + } + return metastorePartitionsBuilder_; + } + + 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 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamMetastorePartitionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsRequestOrBuilder.java new file mode 100644 index 0000000000..4cba61d066 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * 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 interface StreamMetastorePartitionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 + getMetastorePartitionsList(); + /** + * + * + *
+   * 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 + 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse) + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponseOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalPartitionsStreamedCount_ = 0L; + totalPartitionsInsertedCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_StreamMetastorePartitionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse build() { + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse + buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse result = + new com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalPartitionsStreamedCount_ = totalPartitionsStreamedCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalPartitionsInsertedCount_ = totalPartitionsInsertedCount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse + .getDefaultInstance()) return this; + if (other.getTotalPartitionsStreamedCount() != 0L) { + setTotalPartitionsStreamedCount(other.getTotalPartitionsStreamedCount()); + } + if (other.getTotalPartitionsInsertedCount() != 0L) { + setTotalPartitionsInsertedCount(other.getTotalPartitionsInsertedCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + totalPartitionsStreamedCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 24: + { + totalPartitionsInsertedCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long 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; + * + * @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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamMetastorePartitionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsResponseOrBuilder.java new file mode 100644 index 0000000000..dc8c4f1985 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsResponseOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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 interface StreamMetastorePartitionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 fieldValuesMap; + private final String project; + private final String dataset; + private final String table; + + @Deprecated + protected TableName() { + project = null; + dataset = null; + table = null; + } + + private TableName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + dataset = Preconditions.checkNotNull(builder.getDataset()); + table = Preconditions.checkNotNull(builder.getTable()); + } + + public String getProject() { + return project; + } + + public String getDataset() { + return dataset; + } + + public String getTable() { + return table; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TableName of(String project, String dataset, String table) { + return newBuilder().setProject(project).setDataset(dataset).setTable(table).build(); + } + + public static String format(String project, String dataset, String table) { + return newBuilder().setProject(project).setDataset(dataset).setTable(table).build().toString(); + } + + public static TableName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_DATASET_TABLE.validatedMatch( + formattedString, "TableName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("dataset"), matchMap.get("table")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (TableName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_DATASET_TABLE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (dataset != null) { + fieldMapBuilder.put("dataset", dataset); + } + if (table != null) { + fieldMapBuilder.put("table", table); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_DATASET_TABLE.instantiate( + "project", project, "dataset", dataset, "table", table); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + TableName that = ((TableName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.dataset, that.dataset) + && Objects.equals(this.table, that.table); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(dataset); + h *= 1000003; + h ^= Objects.hashCode(table); + return h; + } + + /** Builder for projects/{project}/datasets/{dataset}/tables/{table}. */ + public static class Builder { + private String project; + private String dataset; + private String table; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getDataset() { + return dataset; + } + + public String getTable() { + return table; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setDataset(String dataset) { + this.dataset = dataset; + return this; + } + + public Builder setTable(String table) { + this.table = table; + return this; + } + + private Builder(TableName tableName) { + this.project = tableName.project; + this.dataset = tableName.dataset; + this.table = tableName.table; + } + + public TableName build() { + return new TableName(this); + } + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/UpdateMetastorePartitionRequest.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/UpdateMetastorePartitionRequest.java new file mode 100644 index 0000000000..cde92ffb12 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/UpdateMetastorePartitionRequest.java @@ -0,0 +1,1053 @@ +/* + * 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 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest) + com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequestOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetastorePartitionFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metastorePartition_ = null; + if (metastorePartitionBuilder_ != null) { + metastorePartitionBuilder_.dispose(); + metastorePartitionBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceProto + .internal_static_google_cloud_bigquery_storage_v1alpha_UpdateMetastorePartitionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest build() { + com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest + buildPartial() { + com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest result = + new com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metastorePartition_ = + metastorePartitionBuilder_ == null + ? metastorePartition_ + : metastorePartitionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest + .getDefaultInstance()) return this; + if (other.hasMetastorePartition()) { + mergeMetastorePartition(other.getMetastorePartition()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getMetastorePartitionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.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 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMetastorePartitionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/UpdateMetastorePartitionRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/UpdateMetastorePartitionRequestOrBuilder.java new file mode 100644 index 0000000000..858f6a86af --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/UpdateMetastorePartitionRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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 interface UpdateMetastorePartitionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.UpdateMetastorePartitionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 parameters = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Information about a Hive partition. +message MetastorePartition { + // 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]; + + // Output only. The creation time of the partition. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Contains information about the physical storage of the data in + // the partition. + StorageDescriptor storage_descriptor = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Additional parameters or metadata associated with the partition. + // Maximum size 10 KiB. + map parameters = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of columns. + repeated FieldSchema fields = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of metastore partitions. +message MetastorePartitionList { + // Required. List of partitions. + repeated MetastorePartition partitions = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// Information about a single stream that is used to read partitions. +message ReadStream { + option (google.api.resource) = { + type: "bigquerystorage.googleapis.com/ReadStream" + pattern: "projects/{project}/locations/{location}/sessions/{session}/streams/{stream}" + plural: "readStreams" + singular: "readStream" + }; + + // 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 + ]; +} + +// List of streams. +message StreamList { + // Output only. List of streams. + repeated ReadStream streams = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents the values of a metastore partition. +message MetastorePartitionValues { + // 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]; +} diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java index 10edc93a69..a12efe0968 100644 --- a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java +++ b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta1/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta1; public final class ArrowProto { diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java index 0622182c9c..cdfa45d191 100644 --- a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java +++ b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta1/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta1; public final class AvroProto { diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java index 03a83dd37b..a76912331c 100644 --- a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java +++ b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta1/read_options.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta1; public final class ReadOptions { diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java index fe5d23ea8b..2bda5e5c00 100644 --- a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java +++ b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta1/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta1; public final class Storage { diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java index ace6f1b3c1..4fde59f758 100644 --- a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java +++ b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta1/table_reference.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta1; public final class TableReferenceProto { diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java index 38fe637d03..9e48acf7b5 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java index bfabce2f4e..d5503e83cc 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface AppendRowsRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java index e3dd8def1c..22c056645b 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java index 1f9b3ad2b9..475a14be15 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface AppendRowsResponseOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java index e3b086598e..7f45f9ac80 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public final class ArrowProto { diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java index 220b9d68be..f8a5dbc172 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java index 7551500085..4116e5a0af 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface ArrowRecordBatchOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java index 9eb85b007a..9cdfafc318 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java index 26990dba42..4e9360763f 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface ArrowSchemaOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java index 34bc2ac8bc..307609c1a0 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java index d88d30f9d3..bc579348fb 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface ArrowSerializationOptionsOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java index 9859623bcf..3a8c7017b2 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public final class AvroProto { diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java index a9920725fa..ed7cc60526 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java index 1d0be9aa3a..f88519d11e 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface AvroRowsOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java index bf9a16b7f6..5dc967644b 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java index ddd80a2816..4ee403d162 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/avro.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface AvroSchemaOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java index a1c98fd8f1..f78b522824 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java index b8e2c2ea70..48997d8cc8 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface BatchCommitWriteStreamsRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java index 19b490d79c..4e42d012a1 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java index 2467bb79e6..cfadc23ab8 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface BatchCommitWriteStreamsResponseOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java index 7b73a785f1..1310f336b5 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java index a0cd1ca544..9f50535c8d 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface CreateReadSessionRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java index 86d5fee647..2d3ac35809 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java index ff5805d501..338e092f62 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface CreateWriteStreamRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java index 376dd5eb5c..d0eae7b902 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java index fc00768803..fcbd91760a 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java index 668e5b51a7..cd5c8e45b2 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface FinalizeWriteStreamRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java index 476f4fd12f..9d4d865a44 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java index 628360a497..d0b0c8cd26 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface FinalizeWriteStreamResponseOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java index 0fb27a714e..cbd08f29bb 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java index 424adc5a9b..e08cf4a6aa 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface FlushRowsRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java index 0e17bfbd3e..4ff506b150 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java index 8a71aba3e1..99f338c5be 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface FlushRowsResponseOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java index 0ca3c00627..ba770dba83 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java index 835b6f4d91..e137e1075f 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface GetWriteStreamRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java index 4e1e44337b..2cfc30b178 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public final class ProtoBufProto { diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java index f64df8e43e..97ce652e4d 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoRows} */ diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java index 9d649ca22b..130ed97bf9 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface ProtoRowsOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java index cab54751dd..bb1cfceff6 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java index e50d292785..6041742747 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface ProtoSchemaOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java index fe0d188a0a..5f5a2b7bb0 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java index 2f9ece8440..97055ea5cb 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface ReadRowsRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java index e9ef032c6c..886721bb1d 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java index 5dc0786c70..cec781dd41 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface ReadRowsResponseOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java index ceee9324cf..280b2a95aa 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java index 92249c8488..733e0d61c1 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface ReadSessionOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java index bc2efbd56f..6ce71b7e9d 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java index a4f65b9214..3ccea9d80b 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface ReadStreamOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java index 77127af762..2d12bb035f 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java index 12efb713a1..54a0e155b9 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface SplitReadStreamRequestOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java index dbaf34c600..bad30932f5 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse} */ diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java index 01bd47dda5..5b4104fc7d 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface SplitReadStreamResponseOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java index 348a301c1c..01851926da 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java index 71aa51d974..169b7ffd0a 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface StorageErrorOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java index 12849b2ad0..a98bd90132 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public final class StorageProto { diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java index 97ae00bdf9..6d68e030ac 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public final class StreamProto { diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java index a19ffddbd7..61c41f2e59 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java index a96e298d26..c56107d9f0 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface StreamStatsOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java index 6a3f2d229b..f625e3cf62 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java index f0972a7e18..aea3a9bdcd 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface TableFieldSchemaOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java index 857dfbc9b1..328ad06a91 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public final class TableProto { diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java index 155e1afe29..a933e733e2 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java index 55ece91b38..d5f50e820b 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface TableSchemaOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java index cf5d40592c..c9f4d89d21 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java index 964f3bbede..5f27cd3ed9 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface ThrottleStateOrBuilder diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java index 9062ddf958..7665b3f870 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; /** diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java index 26940794e3..d8263fb7d5 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.cloud.bigquery.storage.v1beta2; public interface WriteStreamOrBuilder diff --git a/versions.txt b/versions.txt index cc432b6e26..b20e0a2551 100644 --- a/versions.txt +++ b/versions.txt @@ -8,3 +8,5 @@ grpc-google-cloud-bigquerystorage-v1:3.8.1:3.8.2-SNAPSHOT proto-google-cloud-bigquerystorage-v1beta1:0.180.1:0.180.2-SNAPSHOT proto-google-cloud-bigquerystorage-v1beta2:0.180.1:0.180.2-SNAPSHOT proto-google-cloud-bigquerystorage-v1:3.8.1:3.8.2-SNAPSHOT +grpc-google-cloud-bigquerystorage-v1alpha:3.8.0:3.8.2-SNAPSHOT +proto-google-cloud-bigquerystorage-v1alpha:3.8.0:3.8.2-SNAPSHOT