├── .cloudbuild └── samples_build.yaml ├── .github ├── .OwlBot-hermetic.yaml ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── feature_request.md │ └── support_request.md ├── PULL_REQUEST_TEMPLATE.md ├── auto-label.yaml ├── blunderbuss.yml ├── dependabot.yml ├── generated-files-bot.yml ├── release-please.yml ├── release-trigger.yml ├── scripts │ └── update_generation_config.sh ├── snippet-bot.yml ├── sync-repo-settings.yaml ├── trusted-contribution.yml └── workflows │ ├── approve-readme.yaml │ ├── auto-release.yaml │ ├── ci.yaml │ ├── hermetic_library_generation.yaml │ ├── renovate_config_check.yaml │ ├── samples.yaml │ ├── unmanaged_dependency_check.yaml │ └── update_generation_config.yaml ├── .gitignore ├── .kokoro ├── build.bat ├── build.sh ├── coerce_logs.sh ├── common.cfg ├── common.sh ├── continuous │ ├── common.cfg │ ├── graalvm-native-a.cfg │ ├── graalvm-native-b.cfg │ ├── graalvm-native-c.cfg │ ├── java8.cfg │ └── propose_release.sh ├── dependencies.sh ├── nightly │ ├── common.cfg │ ├── integration.cfg │ ├── java11-integration.cfg │ ├── java11.cfg │ ├── java7.cfg │ ├── java8-osx.cfg │ ├── java8-win.cfg │ ├── java8.cfg │ ├── retry_non_quota.cfg │ ├── retry_quota.cfg │ └── samples.cfg ├── populate-secrets.sh ├── presubmit │ ├── clirr.cfg │ ├── common.cfg │ ├── dependencies.cfg │ ├── integration.cfg │ ├── java11.cfg │ ├── java7.cfg │ ├── java8-osx.cfg │ ├── java8-win.cfg │ ├── java8.cfg │ ├── linkage-monitor.cfg │ ├── lint.cfg │ └── samples.cfg ├── readme.sh ├── requirements.in └── trampoline.sh ├── .readme-partials.yaml ├── .repo-metadata.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── codecov.yaml ├── generation_config.yaml ├── google-cloud-bigquerystorage-bom └── pom.xml ├── google-cloud-bigquerystorage ├── clirr-ignored-differences.xml ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── google │ │ │ └── cloud │ │ │ └── bigquery │ │ │ └── storage │ │ │ ├── util │ │ │ ├── Errors.java │ │ │ └── TimeConversionUtils.java │ │ │ ├── v1 │ │ │ ├── BQTableSchemaToProtoDescriptor.java │ │ │ ├── BaseBigQueryReadClient.java │ │ │ ├── BaseBigQueryReadSettings.java │ │ │ ├── BigDecimalByteStringEncoder.java │ │ │ ├── BigQueryReadClient.java │ │ │ ├── BigQueryReadSettings.java │ │ │ ├── BigQuerySchemaUtil.java │ │ │ ├── BigQueryWriteClient.java │ │ │ ├── BigQueryWriteSettings.java │ │ │ ├── CivilTimeEncoder.java │ │ │ ├── ConnectionWorker.java │ │ │ ├── ConnectionWorkerPool.java │ │ │ ├── Exceptions.java │ │ │ ├── JsonStreamWriter.java │ │ │ ├── JsonToProtoMessage.java │ │ │ ├── ProtoSchemaConverter.java │ │ │ ├── RequestProfiler.java │ │ │ ├── SchemaAwareStreamWriter.java │ │ │ ├── Singletons.java │ │ │ ├── StreamConnection.java │ │ │ ├── StreamWriter.java │ │ │ ├── TelemetryMetrics.java │ │ │ ├── ToProtoConverter.java │ │ │ ├── gapic_metadata.json │ │ │ ├── package-info.java │ │ │ └── stub │ │ │ │ ├── BigQueryReadStub.java │ │ │ │ ├── BigQueryReadStubSettings.java │ │ │ │ ├── BigQueryWriteStub.java │ │ │ │ ├── BigQueryWriteStubSettings.java │ │ │ │ ├── EnhancedBigQueryReadStub.java │ │ │ │ ├── EnhancedBigQueryReadStubSettings.java │ │ │ │ ├── GrpcBigQueryReadCallableFactory.java │ │ │ │ ├── GrpcBigQueryReadStub.java │ │ │ │ ├── GrpcBigQueryWriteCallableFactory.java │ │ │ │ ├── GrpcBigQueryWriteStub.java │ │ │ │ └── readrows │ │ │ │ ├── ApiResultRetryAlgorithm.java │ │ │ │ ├── ReadRowsAttemptCallable.java │ │ │ │ ├── ReadRowsResumptionStrategy.java │ │ │ │ ├── ReadRowsRetryingCallable.java │ │ │ │ └── package-info.java │ │ │ ├── v1alpha │ │ │ ├── MetastorePartitionServiceClient.java │ │ │ ├── MetastorePartitionServiceSettings.java │ │ │ ├── gapic_metadata.json │ │ │ ├── package-info.java │ │ │ └── stub │ │ │ │ ├── GrpcMetastorePartitionServiceCallableFactory.java │ │ │ │ ├── GrpcMetastorePartitionServiceStub.java │ │ │ │ ├── MetastorePartitionServiceStub.java │ │ │ │ └── MetastorePartitionServiceStubSettings.java │ │ │ ├── v1beta │ │ │ ├── MetastorePartitionServiceClient.java │ │ │ ├── MetastorePartitionServiceSettings.java │ │ │ ├── gapic_metadata.json │ │ │ ├── package-info.java │ │ │ └── stub │ │ │ │ ├── GrpcMetastorePartitionServiceCallableFactory.java │ │ │ │ ├── GrpcMetastorePartitionServiceStub.java │ │ │ │ ├── MetastorePartitionServiceStub.java │ │ │ │ └── MetastorePartitionServiceStubSettings.java │ │ │ ├── v1beta1 │ │ │ ├── BaseBigQueryStorageClient.java │ │ │ ├── BaseBigQueryStorageSettings.java │ │ │ ├── BigQueryStorageClient.java │ │ │ ├── BigQueryStorageSettings.java │ │ │ ├── gapic_metadata.json │ │ │ ├── package-info.java │ │ │ └── stub │ │ │ │ ├── BigQueryStorageStub.java │ │ │ │ ├── BigQueryStorageStubSettings.java │ │ │ │ ├── EnhancedBigQueryStorageStub.java │ │ │ │ ├── EnhancedBigQueryStorageStubSettings.java │ │ │ │ ├── GrpcBigQueryStorageCallableFactory.java │ │ │ │ ├── GrpcBigQueryStorageStub.java │ │ │ │ └── readrows │ │ │ │ ├── ApiResultRetryAlgorithm.java │ │ │ │ ├── ReadRowsAttemptCallable.java │ │ │ │ ├── ReadRowsResumptionStrategy.java │ │ │ │ ├── ReadRowsRetryingCallable.java │ │ │ │ └── package-info.java │ │ │ └── v1beta2 │ │ │ ├── BQTableSchemaToProtoDescriptor.java │ │ │ ├── BaseBigQueryReadClient.java │ │ │ ├── BaseBigQueryReadSettings.java │ │ │ ├── BigDecimalByteStringEncoder.java │ │ │ ├── BigQueryReadClient.java │ │ │ ├── BigQueryReadSettings.java │ │ │ ├── BigQueryWriteClient.java │ │ │ ├── BigQueryWriteSettings.java │ │ │ ├── CivilTimeEncoder.java │ │ │ ├── JsonStreamWriter.java │ │ │ ├── JsonToProtoMessage.java │ │ │ ├── ProtoSchemaConverter.java │ │ │ ├── StreamConnection.java │ │ │ ├── StreamWriterV2.java │ │ │ ├── Waiter.java │ │ │ ├── gapic_metadata.json │ │ │ ├── package-info.java │ │ │ └── stub │ │ │ ├── BigQueryReadStub.java │ │ │ ├── BigQueryReadStubSettings.java │ │ │ ├── BigQueryWriteStub.java │ │ │ ├── BigQueryWriteStubSettings.java │ │ │ ├── EnhancedBigQueryReadStub.java │ │ │ ├── EnhancedBigQueryReadStubSettings.java │ │ │ ├── GrpcBigQueryReadCallableFactory.java │ │ │ ├── GrpcBigQueryReadStub.java │ │ │ ├── GrpcBigQueryWriteCallableFactory.java │ │ │ ├── GrpcBigQueryWriteStub.java │ │ │ └── readrows │ │ │ ├── ApiResultRetryAlgorithm.java │ │ │ ├── ReadRowsAttemptCallable.java │ │ │ ├── ReadRowsResumptionStrategy.java │ │ │ ├── ReadRowsRetryingCallable.java │ │ │ └── package-info.java │ └── resources │ │ └── META-INF │ │ └── native-image │ │ ├── com.google.cloud.bigquery.storage.v1 │ │ └── reflect-config.json │ │ ├── com.google.cloud.bigquery.storage.v1alpha │ │ └── reflect-config.json │ │ ├── com.google.cloud.bigquery.storage.v1beta │ │ └── reflect-config.json │ │ ├── com.google.cloud.bigquery.storage.v1beta1 │ │ └── reflect-config.json │ │ ├── com.google.cloud.bigquery.storage.v1beta2 │ │ └── reflect-config.json │ │ └── com.google.cloud │ │ └── google-cloud-bigquerystorage │ │ └── reflect-config.json │ └── test │ ├── java │ └── com │ │ └── google │ │ └── cloud │ │ └── bigquery │ │ └── storage │ │ ├── util │ │ └── ErrorsTest.java │ │ ├── v1 │ │ ├── BQTableSchemaToProtoDescriptorTest.java │ │ ├── BaseBigQueryReadClientTest.java │ │ ├── BigQueryReadClientTest.java │ │ ├── BigQuerySchemaUtilTest.java │ │ ├── BigQueryWriteClientTest.java │ │ ├── ConnectionWorkerPoolTest.java │ │ ├── ConnectionWorkerTest.java │ │ ├── FakeBigQueryWrite.java │ │ ├── FakeBigQueryWriteImpl.java │ │ ├── FakeClock.java │ │ ├── FakeScheduledExecutorService.java │ │ ├── JsonStreamWriterTest.java │ │ ├── JsonToProtoMessageTest.java │ │ ├── MockBigQueryRead.java │ │ ├── MockBigQueryReadImpl.java │ │ ├── MockBigQueryWrite.java │ │ ├── MockBigQueryWriteImpl.java │ │ ├── ProtoSchemaConverterTest.java │ │ ├── RequestProfilerTest.java │ │ ├── StreamWriterTest.java │ │ ├── it │ │ │ ├── BigQueryResource.java │ │ │ ├── ITBigQueryBigDecimalByteStringEncoderTest.java │ │ │ ├── ITBigQueryStorageLongRunningTest.java │ │ │ ├── ITBigQueryStorageTest.java │ │ │ ├── ITBigQueryTimeEncoderTest.java │ │ │ ├── ITBigQueryWriteManualClientTest.java │ │ │ ├── ITBigQueryWriteNonQuotaRetryTest.java │ │ │ ├── ITBigQueryWriteQuotaRetryTest.java │ │ │ ├── SimpleRowReaderArrow.java │ │ │ ├── SimpleRowReaderAvro.java │ │ │ └── WriteRetryTestUtil.java │ │ └── stub │ │ │ ├── EnhancedBigQueryReadStubSettingsTest.java │ │ │ ├── ResourceHeaderTest.java │ │ │ ├── WriteHeaderTest.java │ │ │ └── readrows │ │ │ └── ReadRowsRetryTest.java │ │ ├── v1alpha │ │ ├── MetastorePartitionServiceClientTest.java │ │ ├── MockMetastorePartitionService.java │ │ └── MockMetastorePartitionServiceImpl.java │ │ ├── v1beta │ │ ├── MetastorePartitionServiceClientTest.java │ │ ├── MockMetastorePartitionService.java │ │ └── MockMetastorePartitionServiceImpl.java │ │ ├── v1beta1 │ │ ├── BaseBigQueryStorageClientTest.java │ │ ├── BigQueryStorageClientTest.java │ │ ├── MockBigQueryStorage.java │ │ ├── MockBigQueryStorageImpl.java │ │ ├── it │ │ │ ├── ITBigQueryStorageLongRunningTest.java │ │ │ ├── ITBigQueryStorageTest.java │ │ │ └── SimpleRowReader.java │ │ └── stub │ │ │ ├── EnhancedBigQueryStorageStubSettingsTest.java │ │ │ ├── ResourceHeaderTest.java │ │ │ └── readrows │ │ │ └── ReadRowsRetryTest.java │ │ └── v1beta2 │ │ ├── BQTableSchemaToProtoDescriptorTest.java │ │ ├── BaseBigQueryReadClientTest.java │ │ ├── BigDecimalByteStringEncoderTest.java │ │ ├── BigQueryReadClientTest.java │ │ ├── BigQueryWriteClientTest.java │ │ ├── CivilTimeEncoderTest.java │ │ ├── FakeBigQueryWrite.java │ │ ├── FakeBigQueryWriteImpl.java │ │ ├── FakeClock.java │ │ ├── FakeScheduledExecutorService.java │ │ ├── JsonStreamWriterTest.java │ │ ├── JsonToProtoMessageTest.java │ │ ├── MockBigQueryRead.java │ │ ├── MockBigQueryReadImpl.java │ │ ├── MockBigQueryWrite.java │ │ ├── MockBigQueryWriteImpl.java │ │ ├── ProtoSchemaConverterTest.java │ │ ├── StreamWriterV2Test.java │ │ ├── it │ │ ├── BigQueryResource.java │ │ ├── ITBigQueryStorageLongRunningTest.java │ │ ├── ITBigQueryStorageTest.java │ │ └── SimpleRowReader.java │ │ └── stub │ │ ├── EnhancedBigQueryReadStubSettingsTest.java │ │ ├── ResourceHeaderTest.java │ │ └── readrows │ │ └── ReadRowsRetryTest.java │ └── proto │ ├── jsonTest.proto │ ├── optionalTest.proto │ ├── schemaTest.proto │ └── test.proto ├── grpc-google-cloud-bigquerystorage-v1 ├── pom.xml └── src │ └── main │ └── java │ └── com │ └── google │ └── cloud │ └── bigquery │ └── storage │ └── v1 │ ├── BigQueryReadGrpc.java │ └── BigQueryWriteGrpc.java ├── grpc-google-cloud-bigquerystorage-v1alpha ├── pom.xml └── src │ └── main │ └── java │ └── com │ └── google │ └── cloud │ └── bigquery │ └── storage │ └── v1alpha │ └── MetastorePartitionServiceGrpc.java ├── grpc-google-cloud-bigquerystorage-v1beta ├── pom.xml └── src │ └── main │ └── java │ └── com │ └── google │ └── cloud │ └── bigquery │ └── storage │ └── v1beta │ └── MetastorePartitionServiceGrpc.java ├── grpc-google-cloud-bigquerystorage-v1beta1 ├── pom.xml └── src │ └── main │ └── java │ └── com │ └── google │ └── cloud │ └── bigquery │ └── storage │ └── v1beta1 │ └── BigQueryStorageGrpc.java ├── grpc-google-cloud-bigquerystorage-v1beta2 ├── pom.xml └── src │ └── main │ └── java │ └── com │ └── google │ └── cloud │ └── bigquery │ └── storage │ └── v1beta2 │ ├── BigQueryReadGrpc.java │ └── BigQueryWriteGrpc.java ├── java.header ├── license-checks.xml ├── owlbot.py ├── pom.xml ├── proto-google-cloud-bigquerystorage-v1 ├── clirr-ignored-differences.xml ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── google │ │ └── cloud │ │ └── bigquery │ │ └── storage │ │ └── v1 │ │ ├── AnnotationsProto.java │ │ ├── AppendRowsRequest.java │ │ ├── AppendRowsRequestOrBuilder.java │ │ ├── AppendRowsResponse.java │ │ ├── AppendRowsResponseOrBuilder.java │ │ ├── ArrowProto.java │ │ ├── ArrowRecordBatch.java │ │ ├── ArrowRecordBatchOrBuilder.java │ │ ├── ArrowSchema.java │ │ ├── ArrowSchemaOrBuilder.java │ │ ├── ArrowSerializationOptions.java │ │ ├── ArrowSerializationOptionsOrBuilder.java │ │ ├── AvroProto.java │ │ ├── AvroRows.java │ │ ├── AvroRowsOrBuilder.java │ │ ├── AvroSchema.java │ │ ├── AvroSchemaOrBuilder.java │ │ ├── AvroSerializationOptions.java │ │ ├── AvroSerializationOptionsOrBuilder.java │ │ ├── BatchCommitWriteStreamsRequest.java │ │ ├── BatchCommitWriteStreamsRequestOrBuilder.java │ │ ├── BatchCommitWriteStreamsResponse.java │ │ ├── BatchCommitWriteStreamsResponseOrBuilder.java │ │ ├── CreateReadSessionRequest.java │ │ ├── CreateReadSessionRequestOrBuilder.java │ │ ├── CreateWriteStreamRequest.java │ │ ├── CreateWriteStreamRequestOrBuilder.java │ │ ├── DataFormat.java │ │ ├── FinalizeWriteStreamRequest.java │ │ ├── FinalizeWriteStreamRequestOrBuilder.java │ │ ├── FinalizeWriteStreamResponse.java │ │ ├── FinalizeWriteStreamResponseOrBuilder.java │ │ ├── FlushRowsRequest.java │ │ ├── FlushRowsRequestOrBuilder.java │ │ ├── FlushRowsResponse.java │ │ ├── FlushRowsResponseOrBuilder.java │ │ ├── GetWriteStreamRequest.java │ │ ├── GetWriteStreamRequestOrBuilder.java │ │ ├── ProjectName.java │ │ ├── ProtoBufProto.java │ │ ├── ProtoRows.java │ │ ├── ProtoRowsOrBuilder.java │ │ ├── ProtoSchema.java │ │ ├── ProtoSchemaOrBuilder.java │ │ ├── ReadRowsRequest.java │ │ ├── ReadRowsRequestOrBuilder.java │ │ ├── ReadRowsResponse.java │ │ ├── ReadRowsResponseOrBuilder.java │ │ ├── ReadSession.java │ │ ├── ReadSessionOrBuilder.java │ │ ├── ReadStream.java │ │ ├── ReadStreamName.java │ │ ├── ReadStreamOrBuilder.java │ │ ├── RowError.java │ │ ├── RowErrorOrBuilder.java │ │ ├── SplitReadStreamRequest.java │ │ ├── SplitReadStreamRequestOrBuilder.java │ │ ├── SplitReadStreamResponse.java │ │ ├── SplitReadStreamResponseOrBuilder.java │ │ ├── StorageError.java │ │ ├── StorageErrorOrBuilder.java │ │ ├── StorageProto.java │ │ ├── StreamProto.java │ │ ├── StreamStats.java │ │ ├── StreamStatsOrBuilder.java │ │ ├── TableFieldSchema.java │ │ ├── TableFieldSchemaOrBuilder.java │ │ ├── TableName.java │ │ ├── TableProto.java │ │ ├── TableSchema.java │ │ ├── TableSchemaOrBuilder.java │ │ ├── ThrottleState.java │ │ ├── ThrottleStateOrBuilder.java │ │ ├── WriteStream.java │ │ ├── WriteStreamName.java │ │ ├── WriteStreamOrBuilder.java │ │ └── WriteStreamView.java │ └── proto │ └── google │ └── cloud │ └── bigquery │ └── storage │ └── v1 │ ├── annotations.proto │ ├── arrow.proto │ ├── avro.proto │ ├── protobuf.proto │ ├── storage.proto │ ├── stream.proto │ └── table.proto ├── proto-google-cloud-bigquerystorage-v1alpha ├── clirr-ignored-differences.xml ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── google │ │ └── cloud │ │ └── bigquery │ │ └── storage │ │ └── v1alpha │ │ ├── BatchCreateMetastorePartitionsRequest.java │ │ ├── BatchCreateMetastorePartitionsRequestOrBuilder.java │ │ ├── BatchCreateMetastorePartitionsResponse.java │ │ ├── BatchCreateMetastorePartitionsResponseOrBuilder.java │ │ ├── BatchDeleteMetastorePartitionsRequest.java │ │ ├── BatchDeleteMetastorePartitionsRequestOrBuilder.java │ │ ├── BatchSizeTooLargeError.java │ │ ├── BatchSizeTooLargeErrorOrBuilder.java │ │ ├── BatchUpdateMetastorePartitionsRequest.java │ │ ├── BatchUpdateMetastorePartitionsRequestOrBuilder.java │ │ ├── BatchUpdateMetastorePartitionsResponse.java │ │ ├── BatchUpdateMetastorePartitionsResponseOrBuilder.java │ │ ├── CreateMetastorePartitionRequest.java │ │ ├── CreateMetastorePartitionRequestOrBuilder.java │ │ ├── FieldSchema.java │ │ ├── FieldSchemaOrBuilder.java │ │ ├── ListMetastorePartitionsRequest.java │ │ ├── ListMetastorePartitionsRequestOrBuilder.java │ │ ├── ListMetastorePartitionsResponse.java │ │ ├── ListMetastorePartitionsResponseOrBuilder.java │ │ ├── MetastorePartition.java │ │ ├── MetastorePartitionList.java │ │ ├── MetastorePartitionListOrBuilder.java │ │ ├── MetastorePartitionOrBuilder.java │ │ ├── MetastorePartitionProto.java │ │ ├── MetastorePartitionServiceProto.java │ │ ├── MetastorePartitionValues.java │ │ ├── MetastorePartitionValuesOrBuilder.java │ │ ├── ReadStream.java │ │ ├── ReadStreamOrBuilder.java │ │ ├── SerDeInfo.java │ │ ├── SerDeInfoOrBuilder.java │ │ ├── StorageDescriptor.java │ │ ├── StorageDescriptorOrBuilder.java │ │ ├── StreamList.java │ │ ├── StreamListOrBuilder.java │ │ ├── StreamMetastorePartitionsRequest.java │ │ ├── StreamMetastorePartitionsRequestOrBuilder.java │ │ ├── StreamMetastorePartitionsResponse.java │ │ ├── StreamMetastorePartitionsResponseOrBuilder.java │ │ ├── TableName.java │ │ ├── UpdateMetastorePartitionRequest.java │ │ └── UpdateMetastorePartitionRequestOrBuilder.java │ └── proto │ └── google │ └── cloud │ └── bigquery │ └── storage │ └── v1alpha │ ├── metastore_partition.proto │ └── partition.proto ├── proto-google-cloud-bigquerystorage-v1beta ├── clirr-ignored-differences.xml ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── google │ │ └── cloud │ │ └── bigquery │ │ └── storage │ │ └── v1beta │ │ ├── BatchCreateMetastorePartitionsRequest.java │ │ ├── BatchCreateMetastorePartitionsRequestOrBuilder.java │ │ ├── BatchCreateMetastorePartitionsResponse.java │ │ ├── BatchCreateMetastorePartitionsResponseOrBuilder.java │ │ ├── BatchDeleteMetastorePartitionsRequest.java │ │ ├── BatchDeleteMetastorePartitionsRequestOrBuilder.java │ │ ├── BatchSizeTooLargeError.java │ │ ├── BatchSizeTooLargeErrorOrBuilder.java │ │ ├── BatchUpdateMetastorePartitionsRequest.java │ │ ├── BatchUpdateMetastorePartitionsRequestOrBuilder.java │ │ ├── BatchUpdateMetastorePartitionsResponse.java │ │ ├── BatchUpdateMetastorePartitionsResponseOrBuilder.java │ │ ├── CreateMetastorePartitionRequest.java │ │ ├── CreateMetastorePartitionRequestOrBuilder.java │ │ ├── FieldSchema.java │ │ ├── FieldSchemaOrBuilder.java │ │ ├── ListMetastorePartitionsRequest.java │ │ ├── ListMetastorePartitionsRequestOrBuilder.java │ │ ├── ListMetastorePartitionsResponse.java │ │ ├── ListMetastorePartitionsResponseOrBuilder.java │ │ ├── MetastorePartition.java │ │ ├── MetastorePartitionList.java │ │ ├── MetastorePartitionListOrBuilder.java │ │ ├── MetastorePartitionOrBuilder.java │ │ ├── MetastorePartitionProto.java │ │ ├── MetastorePartitionServiceProto.java │ │ ├── MetastorePartitionValues.java │ │ ├── MetastorePartitionValuesOrBuilder.java │ │ ├── ReadStream.java │ │ ├── ReadStreamOrBuilder.java │ │ ├── SerDeInfo.java │ │ ├── SerDeInfoOrBuilder.java │ │ ├── StorageDescriptor.java │ │ ├── StorageDescriptorOrBuilder.java │ │ ├── StreamList.java │ │ ├── StreamListOrBuilder.java │ │ ├── StreamMetastorePartitionsRequest.java │ │ ├── StreamMetastorePartitionsRequestOrBuilder.java │ │ ├── StreamMetastorePartitionsResponse.java │ │ ├── StreamMetastorePartitionsResponseOrBuilder.java │ │ ├── TableName.java │ │ ├── UpdateMetastorePartitionRequest.java │ │ └── UpdateMetastorePartitionRequestOrBuilder.java │ └── proto │ └── google │ └── cloud │ └── bigquery │ └── storage │ └── v1beta │ ├── metastore_partition.proto │ └── partition.proto ├── proto-google-cloud-bigquerystorage-v1beta1 ├── clirr-ignored-differences.xml ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── google │ │ └── cloud │ │ └── bigquery │ │ └── storage │ │ └── v1beta1 │ │ ├── ArrowProto.java │ │ ├── AvroProto.java │ │ ├── ProjectName.java │ │ ├── ReadOptions.java │ │ ├── Storage.java │ │ └── TableReferenceProto.java │ └── proto │ └── google │ └── cloud │ └── bigquery │ └── storage │ └── v1beta1 │ ├── arrow.proto │ ├── avro.proto │ ├── read_options.proto │ ├── storage.proto │ └── table_reference.proto ├── proto-google-cloud-bigquerystorage-v1beta2 ├── clirr-ignored-differences.xml ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── google │ │ └── cloud │ │ └── bigquery │ │ └── storage │ │ └── v1beta2 │ │ ├── AppendRowsRequest.java │ │ ├── AppendRowsRequestOrBuilder.java │ │ ├── AppendRowsResponse.java │ │ ├── AppendRowsResponseOrBuilder.java │ │ ├── ArrowProto.java │ │ ├── ArrowRecordBatch.java │ │ ├── ArrowRecordBatchOrBuilder.java │ │ ├── ArrowSchema.java │ │ ├── ArrowSchemaOrBuilder.java │ │ ├── ArrowSerializationOptions.java │ │ ├── ArrowSerializationOptionsOrBuilder.java │ │ ├── AvroProto.java │ │ ├── AvroRows.java │ │ ├── AvroRowsOrBuilder.java │ │ ├── AvroSchema.java │ │ ├── AvroSchemaOrBuilder.java │ │ ├── BatchCommitWriteStreamsRequest.java │ │ ├── BatchCommitWriteStreamsRequestOrBuilder.java │ │ ├── BatchCommitWriteStreamsResponse.java │ │ ├── BatchCommitWriteStreamsResponseOrBuilder.java │ │ ├── CreateReadSessionRequest.java │ │ ├── CreateReadSessionRequestOrBuilder.java │ │ ├── CreateWriteStreamRequest.java │ │ ├── CreateWriteStreamRequestOrBuilder.java │ │ ├── DataFormat.java │ │ ├── FinalizeWriteStreamRequest.java │ │ ├── FinalizeWriteStreamRequestOrBuilder.java │ │ ├── FinalizeWriteStreamResponse.java │ │ ├── FinalizeWriteStreamResponseOrBuilder.java │ │ ├── FlushRowsRequest.java │ │ ├── FlushRowsRequestOrBuilder.java │ │ ├── FlushRowsResponse.java │ │ ├── FlushRowsResponseOrBuilder.java │ │ ├── GetWriteStreamRequest.java │ │ ├── GetWriteStreamRequestOrBuilder.java │ │ ├── ProjectName.java │ │ ├── ProtoBufProto.java │ │ ├── ProtoRows.java │ │ ├── ProtoRowsOrBuilder.java │ │ ├── ProtoSchema.java │ │ ├── ProtoSchemaOrBuilder.java │ │ ├── ReadRowsRequest.java │ │ ├── ReadRowsRequestOrBuilder.java │ │ ├── ReadRowsResponse.java │ │ ├── ReadRowsResponseOrBuilder.java │ │ ├── ReadSession.java │ │ ├── ReadSessionOrBuilder.java │ │ ├── ReadStream.java │ │ ├── ReadStreamName.java │ │ ├── ReadStreamOrBuilder.java │ │ ├── SplitReadStreamRequest.java │ │ ├── SplitReadStreamRequestOrBuilder.java │ │ ├── SplitReadStreamResponse.java │ │ ├── SplitReadStreamResponseOrBuilder.java │ │ ├── StorageError.java │ │ ├── StorageErrorOrBuilder.java │ │ ├── StorageProto.java │ │ ├── StreamProto.java │ │ ├── StreamStats.java │ │ ├── StreamStatsOrBuilder.java │ │ ├── TableFieldSchema.java │ │ ├── TableFieldSchemaOrBuilder.java │ │ ├── TableName.java │ │ ├── TableProto.java │ │ ├── TableSchema.java │ │ ├── TableSchemaOrBuilder.java │ │ ├── ThrottleState.java │ │ ├── ThrottleStateOrBuilder.java │ │ ├── WriteStream.java │ │ ├── WriteStreamName.java │ │ └── WriteStreamOrBuilder.java │ └── proto │ └── google │ └── cloud │ └── bigquery │ └── storage │ └── v1beta2 │ ├── arrow.proto │ ├── avro.proto │ ├── protobuf.proto │ ├── storage.proto │ ├── stream.proto │ └── table.proto ├── renovate.json ├── samples ├── install-without-bom │ └── pom.xml ├── pom.xml ├── snapshot │ └── pom.xml └── snippets │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── bigquerystorage │ │ │ ├── ExportOpenTelemetry.java │ │ │ ├── JsonWriterStreamCdc.java │ │ │ ├── ParallelWriteCommittedStream.java │ │ │ ├── StorageArrowSample.java │ │ │ ├── StorageSample.java │ │ │ ├── WriteBufferedStream.java │ │ │ ├── WriteCommittedStream.java │ │ │ ├── WriteNestedProto.java │ │ │ ├── WritePendingStream.java │ │ │ └── WriteToDefaultStream.java │ └── proto │ │ ├── nested.proto │ │ └── separate.proto │ └── test │ ├── java │ └── com │ │ └── example │ │ └── bigquerystorage │ │ ├── ExportOpenTelemetryIT.java │ │ ├── JsonWriterStreamCdcIT.java │ │ ├── ParallelWriteCommittedStreamIT.java │ │ ├── QuickstartArrowSampleIT.java │ │ ├── QuickstartSampleIT.java │ │ ├── WriteBufferedStreamIT.java │ │ ├── WriteCommittedStreamIT.java │ │ ├── WriteNestedProtoIT.java │ │ ├── WritePendingStreamIT.java │ │ └── WriteToDefaultStreamIT.java │ └── resources │ ├── ModifiedCustomers.json │ └── NewCustomers.json ├── synth.metadata └── versions.txt /.cloudbuild/samples_build.yaml: -------------------------------------------------------------------------------- 1 | steps: 2 | - name: gcr.io/cloud-devrel-public-resources/java8 3 | entrypoint: ls 4 | args: [ 5 | '-alt', 6 | ] 7 | - name: gcr.io/cloud-devrel-public-resources/java8 8 | entrypoint: curl 9 | args: [ 10 | '--header', 11 | 'Metadata-Flavor: Google', 12 | 'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email' 13 | ] 14 | - name: gcr.io/cloud-devrel-public-resources/java8 15 | entrypoint: pwd 16 | - name: gcr.io/cloud-devrel-public-resources/java8 17 | entrypoint: bash 18 | args: [ 19 | '.kokoro/build.sh' 20 | ] 21 | env: 22 | - 'JOB_TYPE=samples' 23 | - 'GOOGLE_CLOUD_PROJECT=cloud-java-ci-sample' 24 | - 'BIGTABLE_TESTING_INSTANCE=instance' 25 | - name: gcr.io/cloud-devrel-public-resources/java8 26 | entrypoint: echo 27 | args: [ 28 | 'Sample job succeeded', 29 | ] 30 | timeout: 3600s 31 | options: 32 | defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET 33 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Code owners file. 2 | # This file controls who is tagged for review for any given pull request. 3 | 4 | # For syntax help see: 5 | # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax 6 | 7 | # The @googleapis/api-bigquery is the default owner for changes in this repo 8 | * @googleapis/yoshi-java @googleapis/api-bigquery 9 | 10 | # for handwritten libraries, keep codeowner_team in .repo-metadata.json as owner 11 | **/*.java @googleapis/api-bigquery 12 | 13 | 14 | # The java-samples-reviewers team is the default owner for samples changes 15 | samples/**/*.java @googleapis/java-samples-reviewers 16 | 17 | # Generated snippets should not be owned by samples reviewers 18 | samples/snippets/generated/ @googleapis/yoshi-java 19 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | 5 | --- 6 | 7 | Thanks for stopping by to let us know something could be better! 8 | 9 | **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. 10 | 11 | Please run down the following list and make sure you've tried the usual "quick fixes": 12 | 13 | - Search the issues already opened: https://github.com/googleapis/java-bigquerystorage/issues 14 | - Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform 15 | 16 | If you are still having issues, please include as much information as possible: 17 | 18 | #### Environment details 19 | 20 | 1. Specify the API at the beginning of the title. For example, "BigQuery: ..."). 21 | General, Core, and Other are also allowed as types 22 | 2. OS type and version: 23 | 3. Java version: 24 | 4. version(s): 25 | 26 | #### Steps to reproduce 27 | 28 | 1. ? 29 | 2. ? 30 | 31 | #### Code example 32 | 33 | ```java 34 | // example 35 | ``` 36 | 37 | #### Stack trace 38 | ``` 39 | Any relevant stacktrace here. 40 | ``` 41 | 42 | #### External references such as API reference guides 43 | 44 | - ? 45 | 46 | #### Any additional information below 47 | 48 | 49 | Following these steps guarantees the quickest resolution possible. 50 | 51 | Thanks! 52 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this library 4 | 5 | --- 6 | 7 | Thanks for stopping by to let us know something could be better! 8 | 9 | **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. 10 | 11 | **Is your feature request related to a problem? Please describe.** 12 | What the problem is. Example: I'm always frustrated when [...] 13 | 14 | **Describe the solution you'd like** 15 | What you want to happen. 16 | 17 | **Describe alternatives you've considered** 18 | Any alternative solutions or features you've considered. 19 | 20 | **Additional context** 21 | Any other context or screenshots about the feature request. 22 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/support_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Support request 3 | about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. 4 | 5 | --- 6 | 7 | **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. 8 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 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: 2 | - [ ] Make sure to open an issue as a [bug/issue](https://github.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 3 | - [ ] Ensure the tests and linter pass 4 | - [ ] Code coverage does not decrease (if any source code was changed) 5 | - [ ] Appropriate docs were updated (if necessary) 6 | 7 | Fixes # ☕️ 8 | 9 | If you write sample code, please follow the [samples format]( 10 | https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). 11 | -------------------------------------------------------------------------------- /.github/auto-label.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Google LLC 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | requestsize: 15 | enabled: true 16 | -------------------------------------------------------------------------------- /.github/blunderbuss.yml: -------------------------------------------------------------------------------- 1 | # Configuration for the Blunderbuss GitHub app. For more info see 2 | # https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss 3 | assign_prs_by: 4 | - labels: 5 | - samples 6 | to: 7 | - googleapis/java-samples-reviewers -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "maven" 4 | directory: "/" 5 | schedule: 6 | interval: "daily" 7 | # Disable version updates for Maven dependencies 8 | # we use renovate-bot as well as shared-dependencies BOM to update maven dependencies. 9 | ignore: 10 | - dependency-name: "*" 11 | - package-ecosystem: "pip" 12 | directory: "/" 13 | schedule: 14 | interval: "daily" 15 | # Disable version updates for pip dependencies 16 | # If a security vulnerability comes in, we will be notified about 17 | # it via template in the synthtool repository. 18 | ignore: 19 | - dependency-name: "*" 20 | -------------------------------------------------------------------------------- /.github/generated-files-bot.yml: -------------------------------------------------------------------------------- 1 | externalManifests: 2 | - type: json 3 | file: 'synth.metadata' 4 | jsonpath: '$.generatedFiles[*]' 5 | - type: json 6 | file: '.github/readme/synth.metadata/synth.metadata' 7 | jsonpath: '$.generatedFiles[*]' 8 | ignoreAuthors: 9 | - 'cloud-java-bot' 10 | - 'renovate-bot' 11 | - 'yoshi-automation' 12 | - 'release-please[bot]' 13 | - 'gcf-owl-bot[bot]' 14 | -------------------------------------------------------------------------------- /.github/release-please.yml: -------------------------------------------------------------------------------- 1 | bumpMinorPreMajor: true 2 | handleGHRelease: true 3 | releaseType: java-yoshi 4 | branches: 5 | - bumpMinorPreMajor: true 6 | handleGHRelease: true 7 | releaseType: java-yoshi 8 | branch: java7 9 | - bumpMinorPreMajor: true 10 | handleGHRelease: true 11 | releaseType: java-backport 12 | branch: 2.4.x 13 | - bumpMinorPreMajor: true 14 | handleGHRelease: true 15 | releaseType: java-backport 16 | branch: 2.12.x 17 | - bumpMinorPreMajor: true 18 | handleGHRelease: true 19 | releaseType: java-backport 20 | branch: 2.25.x 21 | - bumpMinorPreMajor: true 22 | handleGHRelease: true 23 | releaseType: java-backport 24 | branch: 2.38.x 25 | - bumpMinorPreMajor: true 26 | handleGHRelease: true 27 | releaseType: java-backport 28 | branch: 2.47.x 29 | - bumpMinorPreMajor: true 30 | handleGHRelease: true 31 | releaseType: java-backport 32 | branch: 3.5.x 33 | - bumpMinorPreMajor: true 34 | handleGHRelease: true 35 | releaseType: java-backport 36 | branch: 3.11.x 37 | -------------------------------------------------------------------------------- /.github/release-trigger.yml: -------------------------------------------------------------------------------- 1 | enabled: true 2 | multiScmName: java-bigquerystorage 3 | -------------------------------------------------------------------------------- /.github/snippet-bot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googleapis/java-bigquerystorage/d4820ff93a25f208d961123e384e7348264656f7/.github/snippet-bot.yml -------------------------------------------------------------------------------- /.github/trusted-contribution.yml: -------------------------------------------------------------------------------- 1 | trustedContributors: 2 | - renovate-bot 3 | - gcf-owl-bot[bot] 4 | 5 | annotations: 6 | - type: comment 7 | text: "/gcbrun" 8 | - type: label 9 | text: "kokoro:force-run" 10 | -------------------------------------------------------------------------------- /.github/workflows/approve-readme.yaml: -------------------------------------------------------------------------------- 1 | on: 2 | pull_request: 3 | paths-ignore: 4 | - 'tutorials/**' 5 | name: auto-merge-readme 6 | jobs: 7 | approve: 8 | runs-on: ubuntu-latest 9 | if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' 10 | steps: 11 | - uses: actions/github-script@v7 12 | with: 13 | github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} 14 | script: | 15 | // only approve PRs from yoshi-automation 16 | if (context.payload.pull_request.user.login !== "yoshi-automation") { 17 | return; 18 | } 19 | 20 | // only approve PRs like "chore: release " 21 | if (!context.payload.pull_request.title === "chore: regenerate README") { 22 | return; 23 | } 24 | 25 | // only approve PRs with README.md and synth.metadata changes 26 | const files = new Set( 27 | ( 28 | await github.paginate( 29 | github.pulls.listFiles.endpoint({ 30 | owner: context.repo.owner, 31 | repo: context.repo.repo, 32 | pull_number: context.payload.pull_request.number, 33 | }) 34 | ) 35 | ).map(file => file.filename) 36 | ); 37 | if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) { 38 | return; 39 | } 40 | 41 | // approve README regeneration PR 42 | await github.pulls.createReview({ 43 | owner: context.repo.owner, 44 | repo: context.repo.repo, 45 | body: 'Rubber stamped PR!', 46 | pull_number: context.payload.pull_request.number, 47 | event: 'APPROVE' 48 | }); 49 | 50 | // attach automerge label 51 | await github.issues.addLabels({ 52 | owner: context.repo.owner, 53 | repo: context.repo.repo, 54 | issue_number: context.payload.pull_request.number, 55 | labels: ['automerge'] 56 | }); 57 | -------------------------------------------------------------------------------- /.github/workflows/hermetic_library_generation.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 Google LLC 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # GitHub action job to test core java library features on 15 | # downstream client libraries before they are released. 16 | name: Hermetic library generation upon generation config change through pull requests 17 | on: 18 | pull_request: 19 | 20 | env: 21 | REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }} 22 | GITHUB_REPOSITORY: ${{ github.repository }} 23 | jobs: 24 | library_generation: 25 | runs-on: ubuntu-latest 26 | steps: 27 | - name: Determine whether the pull request comes from a fork 28 | run: | 29 | if [[ "${GITHUB_REPOSITORY}" != "${REPO_FULL_NAME}" ]]; then 30 | echo "This PR comes from a fork. Skip library generation." 31 | echo "SHOULD_RUN=false" >> $GITHUB_ENV 32 | else 33 | echo "SHOULD_RUN=true" >> $GITHUB_ENV 34 | fi 35 | - uses: actions/checkout@v4 36 | if: env.SHOULD_RUN == 'true' 37 | with: 38 | fetch-depth: 0 39 | token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} 40 | - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 41 | if: env.SHOULD_RUN == 'true' 42 | with: 43 | base_ref: ${{ github.base_ref }} 44 | head_ref: ${{ github.head_ref }} 45 | token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} 46 | -------------------------------------------------------------------------------- /.github/workflows/renovate_config_check.yaml: -------------------------------------------------------------------------------- 1 | name: Renovate Bot Config Validation 2 | 3 | on: 4 | pull_request: 5 | paths: 6 | - 'renovate.json' 7 | 8 | jobs: 9 | renovate_bot_config_validation: 10 | runs-on: ubuntu-24.04 11 | 12 | steps: 13 | - name: Checkout code 14 | uses: actions/checkout@v4 15 | 16 | - name: Set up Node.js 17 | uses: actions/setup-node@v4 18 | with: 19 | node-version: '22' 20 | 21 | - name: Install Renovate and Config Validator 22 | run: | 23 | npm install -g npm@latest 24 | npm install --global renovate 25 | renovate-config-validator 26 | -------------------------------------------------------------------------------- /.github/workflows/samples.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2022 Google LLC 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # Github action job to test core java library features on 15 | # downstream client libraries before they are released. 16 | on: 17 | pull_request: 18 | name: samples 19 | jobs: 20 | checkstyle: 21 | runs-on: ubuntu-latest 22 | steps: 23 | - uses: actions/checkout@v4 24 | - uses: actions/setup-java@v4 25 | with: 26 | distribution: temurin 27 | java-version: 17 28 | - name: Run checkstyle 29 | run: mvn -P lint --quiet --batch-mode checkstyle:check 30 | working-directory: samples/snippets 31 | -------------------------------------------------------------------------------- /.github/workflows/unmanaged_dependency_check.yaml: -------------------------------------------------------------------------------- 1 | on: 2 | pull_request: 3 | name: Unmanaged dependency check 4 | jobs: 5 | unmanaged_dependency_check: 6 | runs-on: ubuntu-latest 7 | steps: 8 | - uses: actions/checkout@v3 9 | - uses: actions/setup-java@v3 10 | with: 11 | distribution: temurin 12 | java-version: 11 13 | - name: Install modules 14 | shell: bash 15 | run: | 16 | # No argument to build.sh installs the modules in local Maven 17 | # repository 18 | .kokoro/build.sh 19 | - name: Unmanaged dependency check 20 | uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.49.0 21 | with: 22 | bom-path: google-cloud-bigquerystorage-bom/pom.xml 23 | -------------------------------------------------------------------------------- /.github/workflows/update_generation_config.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 Google LLC 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # GitHub action job to test core java library features on 15 | # downstream client libraries before they are released. 16 | name: Update generation configuration 17 | on: 18 | schedule: 19 | - cron: '0 2 * * *' 20 | workflow_dispatch: 21 | 22 | jobs: 23 | update-generation-config: 24 | runs-on: ubuntu-24.04 25 | env: 26 | # the branch into which the pull request is merged 27 | base_branch: main 28 | steps: 29 | - uses: actions/checkout@v4 30 | with: 31 | fetch-depth: 0 32 | token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} 33 | - name: Update params in generation config to latest 34 | shell: bash 35 | run: | 36 | set -x 37 | [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" 38 | [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" 39 | bash .github/scripts/update_generation_config.sh \ 40 | --base_branch "${base_branch}" \ 41 | --repo ${{ github.repository }} 42 | env: 43 | GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} 44 | 45 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Maven 2 | target/ 3 | 4 | # Eclipse 5 | .classpath 6 | .project 7 | .settings 8 | 9 | # Intellij 10 | *.iml 11 | .idea/ 12 | .vscode/ 13 | 14 | # python utilities 15 | *.pyc 16 | __pycache__ 17 | 18 | .flattened-pom.xml -------------------------------------------------------------------------------- /.kokoro/build.bat: -------------------------------------------------------------------------------- 1 | :: Copyright 2022 Google LLC 2 | :: 3 | :: Licensed under the Apache License, Version 2.0 (the "License"); 4 | :: you may not use this file except in compliance with the License. 5 | :: You may obtain a copy of the License at 6 | :: 7 | :: http://www.apache.org/licenses/LICENSE-2.0 8 | :: 9 | :: Unless required by applicable law or agreed to in writing, software 10 | :: distributed under the License is distributed on an "AS IS" BASIS, 11 | :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | :: See the License for the specific language governing permissions and 13 | :: limitations under the License. 14 | :: Github action job to test core java library features on 15 | :: downstream client libraries before they are released. 16 | :: See documentation in type-shell-output.bat 17 | 18 | "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh 19 | -------------------------------------------------------------------------------- /.kokoro/coerce_logs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2019 Google LLC 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # This script finds and moves sponge logs so that they can be found by placer 17 | # and are not flagged as flaky by sponge. 18 | 19 | set -eo pipefail 20 | 21 | ## Get the directory of the build script 22 | scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) 23 | ## cd to the parent directory, i.e. the root of the git repo 24 | cd ${scriptDir}/.. 25 | 26 | job=$(basename ${KOKORO_JOB_NAME}) 27 | 28 | echo "coercing sponge logs..." 29 | for xml in `find . -name *-sponge_log.xml` 30 | do 31 | class=$(basename ${xml} | cut -d- -f2) 32 | dir=$(dirname ${xml})/${job}/${class} 33 | text=$(dirname ${xml})/${class}-sponge_log.txt 34 | mkdir -p ${dir} 35 | mv ${xml} ${dir}/sponge_log.xml 36 | mv ${text} ${dir}/sponge_log.txt 37 | done 38 | -------------------------------------------------------------------------------- /.kokoro/common.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Download trampoline resources. These will be in ${KOKORO_GFILE_DIR} 4 | gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" 5 | 6 | # All builds use the trampoline script to run in docker. 7 | build_file: "java-bigquerystorage/.kokoro/trampoline.sh" 8 | 9 | # Tell the trampoline which build file to use. 10 | env_vars: { 11 | key: "TRAMPOLINE_BUILD_FILE" 12 | value: "github/java-bigquerystorage/.kokoro/build.sh" 13 | } 14 | -------------------------------------------------------------------------------- /.kokoro/common.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2020 Google LLC 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | function retry_with_backoff { 17 | attempts_left=$1 18 | sleep_seconds=$2 19 | shift 2 20 | command=$@ 21 | 22 | 23 | # store current flag state 24 | flags=$- 25 | 26 | # allow a failures to continue 27 | set +e 28 | ${command} 29 | exit_code=$? 30 | 31 | # restore "e" flag 32 | if [[ ${flags} =~ e ]] 33 | then set -e 34 | else set +e 35 | fi 36 | 37 | if [[ $exit_code == 0 ]] 38 | then 39 | return 0 40 | fi 41 | 42 | # failure 43 | if [[ ${attempts_left} > 0 ]] 44 | then 45 | echo "failure (${exit_code}), sleeping ${sleep_seconds}..." 46 | sleep ${sleep_seconds} 47 | new_attempts=$((${attempts_left} - 1)) 48 | new_sleep=$((${sleep_seconds} * 2)) 49 | retry_with_backoff ${new_attempts} ${new_sleep} ${command} 50 | fi 51 | 52 | return $exit_code 53 | } 54 | 55 | ## Helper functionss 56 | function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } 57 | function msg() { println "$*" >&2; } 58 | function println() { printf '%s\n' "$(now) $*"; } 59 | 60 | ## Helper comment to trigger updated repo dependency release -------------------------------------------------------------------------------- /.kokoro/continuous/common.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Build logs will be here 4 | action { 5 | define_artifacts { 6 | regex: "**/*sponge_log.xml" 7 | regex: "**/*sponge_log.txt" 8 | } 9 | } 10 | 11 | # Download trampoline resources. 12 | gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" 13 | 14 | # Use the trampoline script to run in docker. 15 | build_file: "java-bigquerystorage/.kokoro/trampoline.sh" 16 | 17 | env_vars: { 18 | key: "TRAMPOLINE_BUILD_FILE" 19 | value: "github/java-bigquerystorage/.kokoro/build.sh" 20 | } 21 | 22 | env_vars: { 23 | key: "JOB_TYPE" 24 | value: "test" 25 | } 26 | -------------------------------------------------------------------------------- /.kokoro/continuous/graalvm-native-a.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} 7 | } 8 | 9 | env_vars: { 10 | key: "JOB_TYPE" 11 | value: "graalvm" 12 | } 13 | 14 | # TODO: remove this after we've migrated all tests and scripts 15 | env_vars: { 16 | key: "GCLOUD_PROJECT" 17 | value: "gcloud-devel" 18 | } 19 | 20 | env_vars: { 21 | key: "GOOGLE_CLOUD_PROJECT" 22 | value: "gcloud-devel" 23 | } 24 | 25 | env_vars: { 26 | key: "GOOGLE_APPLICATION_CREDENTIALS" 27 | value: "secret_manager/java-it-service-account" 28 | } 29 | 30 | env_vars: { 31 | key: "SECRET_MANAGER_KEYS" 32 | value: "java-it-service-account" 33 | } 34 | 35 | env_vars: { 36 | key: "IT_SERVICE_ACCOUNT_EMAIL" 37 | value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" 38 | } -------------------------------------------------------------------------------- /.kokoro/continuous/graalvm-native-b.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} 7 | } 8 | 9 | env_vars: { 10 | key: "JOB_TYPE" 11 | value: "graalvm" 12 | } 13 | 14 | # TODO: remove this after we've migrated all tests and scripts 15 | env_vars: { 16 | key: "GCLOUD_PROJECT" 17 | value: "gcloud-devel" 18 | } 19 | 20 | env_vars: { 21 | key: "GOOGLE_CLOUD_PROJECT" 22 | value: "gcloud-devel" 23 | } 24 | 25 | env_vars: { 26 | key: "GOOGLE_APPLICATION_CREDENTIALS" 27 | value: "secret_manager/java-it-service-account" 28 | } 29 | 30 | env_vars: { 31 | key: "SECRET_MANAGER_KEYS" 32 | value: "java-it-service-account" 33 | } 34 | 35 | env_vars: { 36 | key: "IT_SERVICE_ACCOUNT_EMAIL" 37 | value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" 38 | } -------------------------------------------------------------------------------- /.kokoro/continuous/graalvm-native-c.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} 7 | } 8 | 9 | env_vars: { 10 | key: "JOB_TYPE" 11 | value: "graalvm" 12 | } 13 | 14 | # TODO: remove this after we've migrated all tests and scripts 15 | env_vars: { 16 | key: "GCLOUD_PROJECT" 17 | value: "gcloud-devel" 18 | } 19 | 20 | env_vars: { 21 | key: "GOOGLE_CLOUD_PROJECT" 22 | value: "gcloud-devel" 23 | } 24 | 25 | env_vars: { 26 | key: "GOOGLE_APPLICATION_CREDENTIALS" 27 | value: "secret_manager/java-it-service-account" 28 | } 29 | 30 | env_vars: { 31 | key: "SECRET_MANAGER_KEYS" 32 | value: "java-it-service-account" 33 | } 34 | 35 | env_vars: { 36 | key: "IT_SERVICE_ACCOUNT_EMAIL" 37 | value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" 38 | } -------------------------------------------------------------------------------- /.kokoro/continuous/java8.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 7 | } 8 | 9 | env_vars: { 10 | key: "REPORT_COVERAGE" 11 | value: "true" 12 | } 13 | -------------------------------------------------------------------------------- /.kokoro/continuous/propose_release.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright 2019 Google LLC 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | set -eo pipefail 18 | 19 | export NPM_CONFIG_PREFIX=/home/node/.npm-global 20 | 21 | if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then 22 | # Groom the release PR as new commits are merged. 23 | npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ 24 | --repo-url=googleapis/java-bigquerystorage \ 25 | --package-name="bigquerystorage" \ 26 | --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ 27 | --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ 28 | --release-type=java-yoshi 29 | fi 30 | -------------------------------------------------------------------------------- /.kokoro/dependencies.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2019 Google LLC 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | set -eo pipefail 17 | shopt -s nullglob 18 | 19 | ## Get the directory of the build script 20 | scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) 21 | ## cd to the parent directory, i.e. the root of the git repo 22 | cd ${scriptDir}/.. 23 | 24 | # include common functions 25 | source ${scriptDir}/common.sh 26 | 27 | # Print out Java 28 | java -version 29 | echo $JOB_TYPE 30 | 31 | function determineMavenOpts() { 32 | local javaVersion=$( 33 | # filter down to the version line, then pull out the version between quotes, 34 | # then trim the version number down to its minimal number (removing any 35 | # update or suffix number). 36 | java -version 2>&1 | grep "version" \ 37 | | sed -E 's/^.*"(.*?)".*$/\1/g' \ 38 | | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' 39 | ) 40 | 41 | if [[ $javaVersion == 17* ]] 42 | then 43 | # MaxPermSize is no longer supported as of jdk 17 44 | echo -n "-Xmx1024m" 45 | else 46 | echo -n "-Xmx1024m -XX:MaxPermSize=128m" 47 | fi 48 | } 49 | 50 | export MAVEN_OPTS=$(determineMavenOpts) 51 | 52 | # this should run maven enforcer 53 | retry_with_backoff 3 10 \ 54 | mvn install -B -V -ntp \ 55 | -DskipTests=true \ 56 | -Dmaven.javadoc.skip=true \ 57 | -Dclirr.skip=true 58 | 59 | mvn -B dependency:analyze -DfailOnWarning=true 60 | -------------------------------------------------------------------------------- /.kokoro/nightly/common.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Build logs will be here 4 | action { 5 | define_artifacts { 6 | regex: "**/*sponge_log.xml" 7 | regex: "**/*sponge_log.txt" 8 | } 9 | } 10 | 11 | # Download trampoline resources. 12 | gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" 13 | 14 | # Use the trampoline script to run in docker. 15 | build_file: "java-bigquerystorage/.kokoro/trampoline.sh" 16 | 17 | env_vars: { 18 | key: "TRAMPOLINE_BUILD_FILE" 19 | value: "github/java-bigquerystorage/.kokoro/build.sh" 20 | } 21 | 22 | env_vars: { 23 | key: "JOB_TYPE" 24 | value: "test" 25 | } 26 | -------------------------------------------------------------------------------- /.kokoro/nightly/integration.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 7 | } 8 | 9 | env_vars: { 10 | key: "JOB_TYPE" 11 | value: "integration" 12 | } 13 | # TODO: remove this after we've migrated all tests and scripts 14 | env_vars: { 15 | key: "GCLOUD_PROJECT" 16 | value: "java-docs-samples-testing" 17 | } 18 | 19 | env_vars: { 20 | key: "GOOGLE_CLOUD_PROJECT" 21 | value: "java-docs-samples-testing" 22 | } 23 | 24 | env_vars: { 25 | key: "ENABLE_FLAKYBOT" 26 | value: "true" 27 | } 28 | 29 | env_vars: { 30 | key: "GOOGLE_APPLICATION_CREDENTIALS" 31 | value: "secret_manager/java-it-service-account" 32 | } 33 | 34 | env_vars: { 35 | key: "SECRET_MANAGER_KEYS" 36 | value: "java-it-service-account" 37 | } 38 | 39 | -------------------------------------------------------------------------------- /.kokoro/nightly/java11-integration.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-public-resources/java11014" 7 | } 8 | 9 | env_vars: { 10 | key: "JOB_TYPE" 11 | value: "integration" 12 | } 13 | # TODO: remove this after we've migrated all tests and scripts 14 | env_vars: { 15 | key: "GCLOUD_PROJECT" 16 | value: "gcloud-devel" 17 | } 18 | 19 | env_vars: { 20 | key: "GOOGLE_CLOUD_PROJECT" 21 | value: "gcloud-devel" 22 | } 23 | 24 | env_vars: { 25 | key: "ENABLE_FLAKYBOT" 26 | value: "true" 27 | } 28 | 29 | env_vars: { 30 | key: "GOOGLE_APPLICATION_CREDENTIALS" 31 | value: "secret_manager/java-it-service-account" 32 | } 33 | 34 | env_vars: { 35 | key: "SECRET_MANAGER_KEYS" 36 | value: "java-it-service-account" 37 | } 38 | 39 | -------------------------------------------------------------------------------- /.kokoro/nightly/java11.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java11" 7 | } 8 | -------------------------------------------------------------------------------- /.kokoro/nightly/java7.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java7" 7 | } 8 | -------------------------------------------------------------------------------- /.kokoro/nightly/java8-osx.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | build_file: "java-bigquerystorage/.kokoro/build.sh" 4 | -------------------------------------------------------------------------------- /.kokoro/nightly/java8-win.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | build_file: "java-bigquerystorage/.kokoro/build.bat" 4 | -------------------------------------------------------------------------------- /.kokoro/nightly/java8.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 7 | } 8 | 9 | env_vars: { 10 | key: "REPORT_COVERAGE" 11 | value: "true" 12 | } 13 | -------------------------------------------------------------------------------- /.kokoro/nightly/retry_non_quota.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | env_vars: { 4 | key: "TRAMPOLINE_IMAGE" 5 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 6 | } 7 | 8 | # TODO: remove this after we've migrated all tests and scripts 9 | env_vars: { 10 | key: "GCLOUD_PROJECT" 11 | value: "bq-write-api-java-retry-test" 12 | } 13 | 14 | env_vars: { 15 | key: "GOOGLE_CLOUD_PROJECT" 16 | value: "bq-write-api-java-retry-test" 17 | } 18 | 19 | env_vars: { 20 | key: "JOB_TYPE" 21 | value: "retry_non_quota" 22 | } 23 | 24 | env_vars: { 25 | key: "ENABLE_FLAKYBOT" 26 | value: "true" 27 | } 28 | 29 | env_vars: { 30 | key: "GOOGLE_APPLICATION_CREDENTIALS" 31 | value: "secret_manager/java-it-service-account" 32 | } 33 | 34 | env_vars: { 35 | key: "SECRET_MANAGER_KEYS" 36 | value: "java-it-service-account" 37 | } 38 | -------------------------------------------------------------------------------- /.kokoro/nightly/retry_quota.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | env_vars: { 4 | key: "TRAMPOLINE_IMAGE" 5 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 6 | } 7 | 8 | # TODO: remove this after we've migrated all tests and scripts 9 | env_vars: { 10 | key: "GCLOUD_PROJECT" 11 | value: "bq-writeapi-java-quota-retry" 12 | } 13 | 14 | env_vars: { 15 | key: "GOOGLE_CLOUD_PROJECT" 16 | value: "bq-writeapi-java-quota-retry" 17 | } 18 | 19 | env_vars: { 20 | key: "JOB_TYPE" 21 | value: "retry_quota" 22 | } 23 | 24 | env_vars: { 25 | key: "ENABLE_FLAKYBOT" 26 | value: "true" 27 | } 28 | 29 | env_vars: { 30 | key: "GOOGLE_APPLICATION_CREDENTIALS" 31 | value: "secret_manager/java-it-service-account" 32 | } 33 | 34 | env_vars: { 35 | key: "SECRET_MANAGER_KEYS" 36 | value: "java-it-service-account" 37 | } 38 | -------------------------------------------------------------------------------- /.kokoro/nightly/samples.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 7 | } 8 | 9 | env_vars: { 10 | key: "JOB_TYPE" 11 | value: "samples" 12 | } 13 | 14 | # TODO: remove this after we've migrated all tests and scripts 15 | env_vars: { 16 | key: "GCLOUD_PROJECT" 17 | value: "java-docs-samples-testing" 18 | } 19 | 20 | env_vars: { 21 | key: "GOOGLE_CLOUD_PROJECT" 22 | value: "java-docs-samples-testing" 23 | } 24 | 25 | env_vars: { 26 | key: "GOOGLE_APPLICATION_CREDENTIALS" 27 | value: "secret_manager/java-docs-samples-service-account" 28 | } 29 | 30 | env_vars: { 31 | key: "SECRET_MANAGER_KEYS" 32 | value: "java-docs-samples-service-account, java-bigquerystorage-samples-secrets" 33 | } 34 | 35 | env_vars: { 36 | key: "ENABLE_BUILD_COP" 37 | value: "true" 38 | } 39 | -------------------------------------------------------------------------------- /.kokoro/populate-secrets.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2020 Google LLC. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | set -eo pipefail 17 | 18 | function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;} 19 | function msg { println "$*" >&2 ;} 20 | function println { printf '%s\n' "$(now) $*" ;} 21 | 22 | 23 | # Populates requested secrets set in SECRET_MANAGER_KEYS from service account: 24 | # kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com 25 | SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager" 26 | msg "Creating folder on disk for secrets: ${SECRET_LOCATION}" 27 | mkdir -p ${SECRET_LOCATION} 28 | for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g") 29 | do 30 | msg "Retrieving secret ${key}" 31 | docker run --entrypoint=gcloud \ 32 | --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \ 33 | gcr.io/google.com/cloudsdktool/cloud-sdk \ 34 | secrets versions access latest \ 35 | --project cloud-devrel-kokoro-resources \ 36 | --secret ${key} > \ 37 | "${SECRET_LOCATION}/${key}" 38 | if [[ $? == 0 ]]; then 39 | msg "Secret written to ${SECRET_LOCATION}/${key}" 40 | else 41 | msg "Error retrieving secret ${key}" 42 | fi 43 | done 44 | -------------------------------------------------------------------------------- /.kokoro/presubmit/clirr.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | 5 | env_vars: { 6 | key: "TRAMPOLINE_IMAGE" 7 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 8 | } 9 | 10 | env_vars: { 11 | key: "JOB_TYPE" 12 | value: "clirr" 13 | } -------------------------------------------------------------------------------- /.kokoro/presubmit/common.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Build logs will be here 4 | action { 5 | define_artifacts { 6 | regex: "**/*sponge_log.xml" 7 | regex: "**/*sponge_log.txt" 8 | } 9 | } 10 | 11 | # Download trampoline resources. 12 | gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" 13 | 14 | # Use the trampoline script to run in docker. 15 | build_file: "java-bigquerystorage/.kokoro/trampoline.sh" 16 | 17 | env_vars: { 18 | key: "TRAMPOLINE_BUILD_FILE" 19 | value: "github/java-bigquerystorage/.kokoro/build.sh" 20 | } 21 | 22 | env_vars: { 23 | key: "JOB_TYPE" 24 | value: "test" 25 | } 26 | 27 | before_action { 28 | fetch_keystore { 29 | keystore_resource { 30 | keystore_config_id: 73713 31 | keyname: "dpebot_codecov_token" 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /.kokoro/presubmit/dependencies.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 7 | } 8 | 9 | env_vars: { 10 | key: "TRAMPOLINE_BUILD_FILE" 11 | value: "github/java-bigquerystorage/.kokoro/dependencies.sh" 12 | } 13 | -------------------------------------------------------------------------------- /.kokoro/presubmit/integration.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 7 | } 8 | 9 | env_vars: { 10 | key: "JOB_TYPE" 11 | value: "integration" 12 | } 13 | 14 | # TODO: remove this after we've migrated all tests and scripts 15 | env_vars: { 16 | key: "GCLOUD_PROJECT" 17 | value: "gcloud-devel" 18 | } 19 | 20 | env_vars: { 21 | key: "GOOGLE_CLOUD_PROJECT" 22 | value: "gcloud-devel" 23 | } 24 | 25 | env_vars: { 26 | key: "GOOGLE_APPLICATION_CREDENTIALS" 27 | value: "secret_manager/java-it-service-account" 28 | } 29 | 30 | env_vars: { 31 | key: "SECRET_MANAGER_KEYS" 32 | value: "java-it-service-account" 33 | } 34 | 35 | -------------------------------------------------------------------------------- /.kokoro/presubmit/java11.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java11" 7 | } 8 | -------------------------------------------------------------------------------- /.kokoro/presubmit/java7.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java7" 7 | } 8 | -------------------------------------------------------------------------------- /.kokoro/presubmit/java8-osx.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | build_file: "java-bigquerystorage/.kokoro/build.sh" 4 | -------------------------------------------------------------------------------- /.kokoro/presubmit/java8-win.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | build_file: "java-bigquerystorage/.kokoro/build.bat" 4 | -------------------------------------------------------------------------------- /.kokoro/presubmit/java8.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 7 | } 8 | 9 | env_vars: { 10 | key: "REPORT_COVERAGE" 11 | value: "true" 12 | } 13 | -------------------------------------------------------------------------------- /.kokoro/presubmit/linkage-monitor.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 7 | } 8 | 9 | env_vars: { 10 | key: "TRAMPOLINE_BUILD_FILE" 11 | value: "github/java-bigquerystorage/.kokoro/linkage-monitor.sh" 12 | } -------------------------------------------------------------------------------- /.kokoro/presubmit/lint.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | 5 | env_vars: { 6 | key: "TRAMPOLINE_IMAGE" 7 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 8 | } 9 | 10 | env_vars: { 11 | key: "JOB_TYPE" 12 | value: "lint" 13 | } -------------------------------------------------------------------------------- /.kokoro/presubmit/samples.cfg: -------------------------------------------------------------------------------- 1 | # Format: //devtools/kokoro/config/proto/build.proto 2 | 3 | # Configure the docker image for kokoro-trampoline. 4 | env_vars: { 5 | key: "TRAMPOLINE_IMAGE" 6 | value: "gcr.io/cloud-devrel-kokoro-resources/java8" 7 | } 8 | 9 | env_vars: { 10 | key: "JOB_TYPE" 11 | value: "samples" 12 | } 13 | 14 | # TODO: remove this after we've migrated all tests and scripts 15 | env_vars: { 16 | key: "GCLOUD_PROJECT" 17 | value: "java-docs-samples-testing" 18 | } 19 | 20 | env_vars: { 21 | key: "GOOGLE_CLOUD_PROJECT" 22 | value: "java-docs-samples-testing" 23 | } 24 | 25 | env_vars: { 26 | key: "GOOGLE_APPLICATION_CREDENTIALS" 27 | value: "secret_manager/java-docs-samples-service-account" 28 | } 29 | 30 | env_vars: { 31 | key: "SECRET_MANAGER_KEYS" 32 | value: "java-docs-samples-service-account, java-bigquerystorage-samples-secrets" 33 | } -------------------------------------------------------------------------------- /.kokoro/readme.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2020 Google LLC 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | set -eo pipefail 17 | 18 | cd ${KOKORO_ARTIFACTS_DIR}/github/java-bigquerystorage 19 | 20 | # Disable buffering, so that the logs stream through. 21 | export PYTHONUNBUFFERED=1 22 | 23 | # Kokoro exposes this as a file, but the scripts expect just a plain variable. 24 | export GITHUB_TOKEN=$(cat ${KOKORO_KEYSTORE_DIR}/73713_yoshi-automation-github-key) 25 | 26 | # Setup git credentials 27 | echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials 28 | git config --global credential.helper 'store --file ~/.git-credentials' 29 | 30 | python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool 31 | 32 | set +e 33 | python3.6 -m autosynth.synth \ 34 | --repository=googleapis/java-bigquerystorage \ 35 | --synth-file-name=.github/readme/synth.py \ 36 | --metadata-path=.github/readme/synth.metadata \ 37 | --pr-title="chore: regenerate README" \ 38 | --branch-suffix="readme" 39 | 40 | # autosynth returns 28 to signal there are no changes 41 | RETURN_CODE=$? 42 | if [[ ${RETURN_CODE} -ne 0 && ${RETURN_CODE} -ne 28 ]] 43 | then 44 | exit ${RETURN_CODE} 45 | fi 46 | -------------------------------------------------------------------------------- /.kokoro/requirements.in: -------------------------------------------------------------------------------- 1 | gcp-docuploader 2 | gcp-releasetool>=1.10.5 # required for compatibility with cryptography>=39.x 3 | wheel 4 | setuptools 5 | typing-extensions 6 | click<8.1.0 -------------------------------------------------------------------------------- /.kokoro/trampoline.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2018 Google LLC 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | set -eo pipefail 16 | # Always run the cleanup script, regardless of the success of bouncing into 17 | # the container. 18 | function cleanup() { 19 | chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh 20 | ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh 21 | echo "cleanup"; 22 | } 23 | trap cleanup EXIT 24 | 25 | $(dirname $0)/populate-secrets.sh # Secret Manager secrets. 26 | python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" 27 | -------------------------------------------------------------------------------- /.repo-metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "api_shortname": "bigquerystorage", 3 | "name_pretty": "BigQuery Storage", 4 | "product_documentation": "https://cloud.google.com/bigquery/docs/reference/storage/", 5 | "api_description": "is an API for reading data stored in BigQuery. This API provides direct, high-throughput read access to existing BigQuery tables, supports parallel access with automatic liquid sharding, and allows fine-grained control over what data is returned.", 6 | "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/history", 7 | "release_level": "stable", 8 | "transport": "grpc", 9 | "language": "java", 10 | "repo": "googleapis/java-bigquerystorage", 11 | "repo_short": "java-bigquerystorage", 12 | "distribution_name": "com.google.cloud:google-cloud-bigquerystorage", 13 | "api_id": "bigquerystorage.googleapis.com", 14 | "library_type": "GAPIC_COMBO", 15 | "requires_billing": true, 16 | "codeowner_team": "@googleapis/api-bigquery", 17 | "issue_tracker": "https://issuetracker.google.com/savedsearches/559654", 18 | "recommended_package": "com.google.cloud.bigquery.storage.v1" 19 | } -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | To report a security issue, please use [g.co/vulnz](https://g.co/vulnz). 4 | 5 | The Google Security Team will respond within 5 working days of your report on g.co/vulnz. 6 | 7 | We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue. 8 | -------------------------------------------------------------------------------- /codecov.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | codecov: 3 | ci: 4 | - source.cloud.google.com 5 | -------------------------------------------------------------------------------- /generation_config.yaml: -------------------------------------------------------------------------------- 1 | gapic_generator_version: 2.59.0 2 | googleapis_commitish: f1859b90227eb09ecd2fa85c96e89b60dbf688b5 3 | libraries_bom_version: 26.61.0 4 | libraries: 5 | - api_shortname: bigquerystorage 6 | name_pretty: BigQuery Storage 7 | product_documentation: https://cloud.google.com/bigquery/docs/reference/storage/ 8 | client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/history 9 | api_description: is an API for reading data stored in BigQuery. This API provides direct, high-throughput read access to existing BigQuery tables, supports parallel access with automatic liquid sharding, and allows fine-grained control over what data is returned. 10 | issue_tracker: https://issuetracker.google.com/savedsearches/559654 11 | release_level: stable 12 | language: java 13 | repo: googleapis/java-bigquerystorage 14 | repo_short: java-bigquerystorage 15 | distribution_name: com.google.cloud:google-cloud-bigquerystorage 16 | codeowner_team: '@googleapis/api-bigquery' 17 | api_id: bigquerystorage.googleapis.com 18 | transport: grpc 19 | requires_billing: true 20 | library_type: GAPIC_COMBO 21 | recommended_package: com.google.cloud.bigquery.storage.v1 22 | GAPICs: 23 | - proto_path: google/cloud/bigquery/storage/v1 24 | - proto_path: google/cloud/bigquery/storage/v1alpha 25 | - proto_path: google/cloud/bigquery/storage/v1beta1 26 | - proto_path: google/cloud/bigquery/storage/v1beta2 27 | - proto_path: google/cloud/bigquery/storage/v1beta 28 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/util/TimeConversionUtils.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2024 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.cloud.bigquery.storage.util; 18 | 19 | import com.google.api.core.InternalApi; 20 | 21 | /** 22 | * Convenience methods for conversions between {@link java.time} and {@link org.threeten.bp} 23 | * objects. This will be kept until this issue is solved. 25 | */ 26 | @InternalApi("https://github.com/googleapis/sdk-platform-java/issues/3412") 27 | public class TimeConversionUtils { 28 | public static java.time.LocalDateTime toJavaTimeLocalDateTime( 29 | org.threeten.bp.LocalDateTime result) { 30 | return java.time.LocalDateTime.of( 31 | result.getYear(), 32 | java.time.Month.of(result.getMonth().getValue()), 33 | result.getDayOfMonth(), 34 | result.getHour(), 35 | result.getMinute(), 36 | result.getSecond(), 37 | result.getNano()); 38 | } 39 | 40 | public static org.threeten.bp.LocalDateTime toThreetenLocalDateTime( 41 | java.time.LocalDateTime result) { 42 | return org.threeten.bp.LocalDateTime.of( 43 | result.getYear(), 44 | org.threeten.bp.Month.of(result.getMonth().getValue()), 45 | result.getDayOfMonth(), 46 | result.getHour(), 47 | result.getMinute(), 48 | result.getSecond(), 49 | result.getNano()); 50 | } 51 | 52 | public static java.time.LocalTime toJavaTimeLocalTime(org.threeten.bp.LocalTime result) { 53 | return java.time.LocalTime.of( 54 | result.getHour(), result.getMinute(), result.getSecond(), result.getNano()); 55 | } 56 | 57 | public static org.threeten.bp.LocalTime toThreetenLocalTime(java.time.LocalTime result) { 58 | return org.threeten.bp.LocalTime.of( 59 | result.getHour(), result.getMinute(), result.getSecond(), result.getNano()); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/Singletons.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2024 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.google.cloud.bigquery.storage.v1; 17 | 18 | import io.opentelemetry.api.GlobalOpenTelemetry; 19 | import io.opentelemetry.api.OpenTelemetry; 20 | import java.util.logging.Logger; 21 | 22 | /** Container for global singleton objects. */ 23 | public class Singletons { 24 | 25 | private static final Logger log = Logger.getLogger(Singletons.class.getName()); 26 | 27 | // Global OpenTelemetry instance 28 | private static OpenTelemetry openTelemetry = null; 29 | 30 | public static OpenTelemetry getOpenTelemetry() { 31 | if (openTelemetry == null) { 32 | openTelemetry = GlobalOpenTelemetry.get(); 33 | log.info("BigQueryStorage initialized Open Telemetry"); 34 | } 35 | return openTelemetry; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ToProtoConverter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2021 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.google.cloud.bigquery.storage.v1; 17 | 18 | import com.google.protobuf.Descriptors; 19 | import com.google.protobuf.DynamicMessage; 20 | import java.util.List; 21 | 22 | public interface ToProtoConverter { 23 | List convertToProtoMessage( 24 | Descriptors.Descriptor protoSchema, 25 | TableSchema tableSchema, 26 | Iterable inputObject, 27 | boolean ignoreUnknownFields); 28 | } 29 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/gapic_metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "schema": "1.0", 3 | "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", 4 | "language": "java", 5 | "protoPackage": "google.cloud.bigquery.storage.v1", 6 | "libraryPackage": "com.google.cloud.bigquery.storage.v1", 7 | "services": { 8 | "BigQueryRead": { 9 | "clients": { 10 | "grpc": { 11 | "libraryClient": "BaseBigQueryReadClient", 12 | "rpcs": { 13 | "CreateReadSession": { 14 | "methods": ["createReadSession", "createReadSession", "createReadSession", "createReadSessionCallable"] 15 | }, 16 | "ReadRows": { 17 | "methods": ["readRowsCallable"] 18 | }, 19 | "SplitReadStream": { 20 | "methods": ["splitReadStream", "splitReadStreamCallable"] 21 | } 22 | } 23 | } 24 | } 25 | }, 26 | "BigQueryWrite": { 27 | "clients": { 28 | "grpc": { 29 | "libraryClient": "BigQueryWriteClient", 30 | "rpcs": { 31 | "AppendRows": { 32 | "methods": ["appendRowsCallable"] 33 | }, 34 | "BatchCommitWriteStreams": { 35 | "methods": ["batchCommitWriteStreams", "batchCommitWriteStreams", "batchCommitWriteStreams", "batchCommitWriteStreamsCallable"] 36 | }, 37 | "CreateWriteStream": { 38 | "methods": ["createWriteStream", "createWriteStream", "createWriteStream", "createWriteStreamCallable"] 39 | }, 40 | "FinalizeWriteStream": { 41 | "methods": ["finalizeWriteStream", "finalizeWriteStream", "finalizeWriteStream", "finalizeWriteStreamCallable"] 42 | }, 43 | "FlushRows": { 44 | "methods": ["flushRows", "flushRows", "flushRows", "flushRowsCallable"] 45 | }, 46 | "GetWriteStream": { 47 | "methods": ["getWriteStream", "getWriteStream", "getWriteStream", "getWriteStreamCallable"] 48 | } 49 | } 50 | } 51 | } 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStub.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.cloud.bigquery.storage.v1.stub; 18 | 19 | import com.google.api.gax.core.BackgroundResource; 20 | import com.google.api.gax.rpc.ServerStreamingCallable; 21 | import com.google.api.gax.rpc.UnaryCallable; 22 | import com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest; 23 | import com.google.cloud.bigquery.storage.v1.ReadRowsRequest; 24 | import com.google.cloud.bigquery.storage.v1.ReadRowsResponse; 25 | import com.google.cloud.bigquery.storage.v1.ReadSession; 26 | import com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest; 27 | import com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse; 28 | import javax.annotation.Generated; 29 | 30 | // AUTO-GENERATED DOCUMENTATION AND CLASS. 31 | /** 32 | * Base stub class for the BigQueryRead service API. 33 | * 34 | *

This class is for advanced usage and reflects the underlying API directly. 35 | */ 36 | @Generated("by gapic-generator-java") 37 | public abstract class BigQueryReadStub implements BackgroundResource { 38 | 39 | public UnaryCallable createReadSessionCallable() { 40 | throw new UnsupportedOperationException("Not implemented: createReadSessionCallable()"); 41 | } 42 | 43 | public ServerStreamingCallable readRowsCallable() { 44 | throw new UnsupportedOperationException("Not implemented: readRowsCallable()"); 45 | } 46 | 47 | public UnaryCallable splitReadStreamCallable() { 48 | throw new UnsupportedOperationException("Not implemented: splitReadStreamCallable()"); 49 | } 50 | 51 | @Override 52 | public abstract void close(); 53 | } 54 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/readrows/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.google.cloud.bigquery.storage.v1.stub.readrows; 17 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/gapic_metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "schema": "1.0", 3 | "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", 4 | "language": "java", 5 | "protoPackage": "google.cloud.bigquery.storage.v1alpha", 6 | "libraryPackage": "com.google.cloud.bigquery.storage.v1alpha", 7 | "services": { 8 | "MetastorePartitionService": { 9 | "clients": { 10 | "grpc": { 11 | "libraryClient": "MetastorePartitionServiceClient", 12 | "rpcs": { 13 | "BatchCreateMetastorePartitions": { 14 | "methods": ["batchCreateMetastorePartitions", "batchCreateMetastorePartitionsCallable"] 15 | }, 16 | "BatchDeleteMetastorePartitions": { 17 | "methods": ["batchDeleteMetastorePartitions", "batchDeleteMetastorePartitionsCallable"] 18 | }, 19 | "BatchUpdateMetastorePartitions": { 20 | "methods": ["batchUpdateMetastorePartitions", "batchUpdateMetastorePartitionsCallable"] 21 | }, 22 | "ListMetastorePartitions": { 23 | "methods": ["listMetastorePartitions", "listMetastorePartitions", "listMetastorePartitions", "listMetastorePartitionsCallable"] 24 | }, 25 | "StreamMetastorePartitions": { 26 | "methods": ["streamMetastorePartitionsCallable"] 27 | } 28 | } 29 | } 30 | } 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * A client to BigQuery Storage API 19 | * 20 | *

The interfaces provided are listed below, along with usage samples. 21 | * 22 | *

======================= MetastorePartitionServiceClient ======================= 23 | * 24 | *

Service Description: BigQuery Metastore Partition Service API. This service is used for 25 | * managing metastore partitions in BigQuery metastore. The service supports only batch operations 26 | * for write. 27 | * 28 | *

Sample for MetastorePartitionServiceClient: 29 | * 30 | *

{@code
31 |  * // This snippet has been automatically generated and should be regarded as a code template only.
32 |  * // It will require modifications to work:
33 |  * // - It may require correct/in-range values for request initialization.
34 |  * // - It may require specifying regional endpoints when creating the service client as shown in
35 |  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
36 |  * try (MetastorePartitionServiceClient metastorePartitionServiceClient =
37 |  *     MetastorePartitionServiceClient.create()) {
38 |  *   BatchCreateMetastorePartitionsRequest request =
39 |  *       BatchCreateMetastorePartitionsRequest.newBuilder()
40 |  *           .setParent(TableName.of("[PROJECT]", "[DATASET]", "[TABLE]").toString())
41 |  *           .addAllRequests(new ArrayList())
42 |  *           .setSkipExistingPartitions(true)
43 |  *           .setTraceId("traceId-1067401920")
44 |  *           .build();
45 |  *   BatchCreateMetastorePartitionsResponse response =
46 |  *       metastorePartitionServiceClient.batchCreateMetastorePartitions(request);
47 |  * }
48 |  * }
49 | */ 50 | @Generated("by gapic-generator-java") 51 | package com.google.cloud.bigquery.storage.v1alpha; 52 | 53 | import javax.annotation.Generated; 54 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/gapic_metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "schema": "1.0", 3 | "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", 4 | "language": "java", 5 | "protoPackage": "google.cloud.bigquery.storage.v1beta", 6 | "libraryPackage": "com.google.cloud.bigquery.storage.v1beta", 7 | "services": { 8 | "MetastorePartitionService": { 9 | "clients": { 10 | "grpc": { 11 | "libraryClient": "MetastorePartitionServiceClient", 12 | "rpcs": { 13 | "BatchCreateMetastorePartitions": { 14 | "methods": ["batchCreateMetastorePartitions", "batchCreateMetastorePartitionsCallable"] 15 | }, 16 | "BatchDeleteMetastorePartitions": { 17 | "methods": ["batchDeleteMetastorePartitions", "batchDeleteMetastorePartitionsCallable"] 18 | }, 19 | "BatchUpdateMetastorePartitions": { 20 | "methods": ["batchUpdateMetastorePartitions", "batchUpdateMetastorePartitionsCallable"] 21 | }, 22 | "ListMetastorePartitions": { 23 | "methods": ["listMetastorePartitions", "listMetastorePartitions", "listMetastorePartitions", "listMetastorePartitionsCallable"] 24 | }, 25 | "StreamMetastorePartitions": { 26 | "methods": ["streamMetastorePartitionsCallable"] 27 | } 28 | } 29 | } 30 | } 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/gapic_metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "schema": "1.0", 3 | "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", 4 | "language": "java", 5 | "protoPackage": "google.cloud.bigquery.storage.v1beta1", 6 | "libraryPackage": "com.google.cloud.bigquery.storage.v1beta1", 7 | "services": { 8 | "BigQueryStorage": { 9 | "clients": { 10 | "grpc": { 11 | "libraryClient": "BaseBigQueryStorageClient", 12 | "rpcs": { 13 | "BatchCreateReadSessionStreams": { 14 | "methods": ["batchCreateReadSessionStreams", "batchCreateReadSessionStreams", "batchCreateReadSessionStreamsCallable"] 15 | }, 16 | "CreateReadSession": { 17 | "methods": ["createReadSession", "createReadSession", "createReadSession", "createReadSessionCallable"] 18 | }, 19 | "FinalizeStream": { 20 | "methods": ["finalizeStream", "finalizeStream", "finalizeStreamCallable"] 21 | }, 22 | "ReadRows": { 23 | "methods": ["readRowsCallable"] 24 | }, 25 | "SplitReadStream": { 26 | "methods": ["splitReadStream", "splitReadStream", "splitReadStreamCallable"] 27 | } 28 | } 29 | } 30 | } 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * A client to BigQuery Storage API 19 | * 20 | *

The interfaces provided are listed below, along with usage samples. 21 | * 22 | *

======================= BaseBigQueryStorageClient ======================= 23 | * 24 | *

Service Description: BigQuery storage API. 25 | * 26 | *

The BigQuery storage API can be used to read data stored in BigQuery. 27 | * 28 | *

The v1beta1 API is not yet officially deprecated, and will go through a full deprecation cycle 29 | * (https://cloud.google.com/products#product-launch-stages) before the service is turned down. 30 | * However, new code should use the v1 API going forward. 31 | * 32 | *

Sample for BaseBigQueryStorageClient: 33 | * 34 | *

{@code
35 |  * // This snippet has been automatically generated and should be regarded as a code template only.
36 |  * // It will require modifications to work:
37 |  * // - It may require correct/in-range values for request initialization.
38 |  * // - It may require specifying regional endpoints when creating the service client as shown in
39 |  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
40 |  * try (BaseBigQueryStorageClient baseBigQueryStorageClient = BaseBigQueryStorageClient.create()) {
41 |  *   TableReferenceProto.TableReference tableReference =
42 |  *       TableReferenceProto.TableReference.newBuilder().build();
43 |  *   ProjectName parent = ProjectName.of("[PROJECT]");
44 |  *   int requestedStreams = 1017221410;
45 |  *   Storage.ReadSession response =
46 |  *       baseBigQueryStorageClient.createReadSession(tableReference, parent, requestedStreams);
47 |  * }
48 |  * }
49 | */ 50 | @Generated("by gapic-generator-java") 51 | package com.google.cloud.bigquery.storage.v1beta1; 52 | 53 | import javax.annotation.Generated; 54 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/readrows/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.google.cloud.bigquery.storage.v1beta1.stub.readrows; 17 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/gapic_metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "schema": "1.0", 3 | "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", 4 | "language": "java", 5 | "protoPackage": "google.cloud.bigquery.storage.v1beta2", 6 | "libraryPackage": "com.google.cloud.bigquery.storage.v1beta2", 7 | "services": { 8 | "BigQueryRead": { 9 | "clients": { 10 | "grpc": { 11 | "libraryClient": "BaseBigQueryReadClient", 12 | "rpcs": { 13 | "CreateReadSession": { 14 | "methods": ["createReadSession", "createReadSession", "createReadSession", "createReadSessionCallable"] 15 | }, 16 | "ReadRows": { 17 | "methods": ["readRowsCallable"] 18 | }, 19 | "SplitReadStream": { 20 | "methods": ["splitReadStream", "splitReadStreamCallable"] 21 | } 22 | } 23 | } 24 | } 25 | }, 26 | "BigQueryWrite": { 27 | "clients": { 28 | "grpc": { 29 | "libraryClient": "BigQueryWriteClient", 30 | "rpcs": { 31 | "AppendRows": { 32 | "methods": ["appendRowsCallable"] 33 | }, 34 | "BatchCommitWriteStreams": { 35 | "methods": ["batchCommitWriteStreams", "batchCommitWriteStreams", "batchCommitWriteStreamsCallable"] 36 | }, 37 | "CreateWriteStream": { 38 | "methods": ["createWriteStream", "createWriteStream", "createWriteStream", "createWriteStreamCallable"] 39 | }, 40 | "FinalizeWriteStream": { 41 | "methods": ["finalizeWriteStream", "finalizeWriteStream", "finalizeWriteStream", "finalizeWriteStreamCallable"] 42 | }, 43 | "FlushRows": { 44 | "methods": ["flushRows", "flushRows", "flushRows", "flushRowsCallable"] 45 | }, 46 | "GetWriteStream": { 47 | "methods": ["getWriteStream", "getWriteStream", "getWriteStream", "getWriteStreamCallable"] 48 | } 49 | } 50 | } 51 | } 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStub.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.cloud.bigquery.storage.v1beta2.stub; 18 | 19 | import com.google.api.core.BetaApi; 20 | import com.google.api.gax.core.BackgroundResource; 21 | import com.google.api.gax.rpc.ServerStreamingCallable; 22 | import com.google.api.gax.rpc.UnaryCallable; 23 | import com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest; 24 | import com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest; 25 | import com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse; 26 | import com.google.cloud.bigquery.storage.v1beta2.ReadSession; 27 | import com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest; 28 | import com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse; 29 | import javax.annotation.Generated; 30 | 31 | // AUTO-GENERATED DOCUMENTATION AND CLASS. 32 | /** 33 | * Base stub class for the BigQueryRead service API. 34 | * 35 | *

This class is for advanced usage and reflects the underlying API directly. 36 | */ 37 | @BetaApi 38 | @Generated("by gapic-generator-java") 39 | public abstract class BigQueryReadStub implements BackgroundResource { 40 | 41 | public UnaryCallable createReadSessionCallable() { 42 | throw new UnsupportedOperationException("Not implemented: createReadSessionCallable()"); 43 | } 44 | 45 | public ServerStreamingCallable readRowsCallable() { 46 | throw new UnsupportedOperationException("Not implemented: readRowsCallable()"); 47 | } 48 | 49 | public UnaryCallable splitReadStreamCallable() { 50 | throw new UnsupportedOperationException("Not implemented: splitReadStreamCallable()"); 51 | } 52 | 53 | @Override 54 | public abstract void close(); 55 | } 56 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/readrows/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.google.cloud.bigquery.storage.v1beta2.stub.readrows; 17 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-bigquerystorage/reflect-config.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name":"java.lang.Object", 4 | "allDeclaredFields":true, 5 | "queryAllDeclaredMethods":true, 6 | "methods":[{"name":"","parameterTypes":[] }]}, 7 | { 8 | "name": "com.google.rpc.RetryInfo", 9 | "queryAllDeclaredConstructors": true, 10 | "queryAllPublicConstructors": true, 11 | "queryAllDeclaredMethods": true, 12 | "allPublicMethods": true, 13 | "allDeclaredClasses": true, 14 | "allPublicClasses": true 15 | }, 16 | { 17 | "name": "com.google.rpc.RetryInfo$Builder", 18 | "queryAllDeclaredConstructors": true, 19 | "queryAllPublicConstructors": true, 20 | "queryAllDeclaredMethods": true, 21 | "allPublicMethods": true, 22 | "allDeclaredClasses": true, 23 | "allPublicClasses": true 24 | } 25 | ] -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/FakeClock.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.google.cloud.bigquery.storage.v1; 17 | 18 | import com.google.api.core.ApiClock; 19 | import java.util.concurrent.TimeUnit; 20 | import java.util.concurrent.atomic.AtomicLong; 21 | 22 | /** A Clock to help with testing time-based logic. */ 23 | public class FakeClock implements ApiClock { 24 | 25 | private final AtomicLong millis = new AtomicLong(); 26 | 27 | // Advances the clock value by {@code time} in {@code timeUnit}. 28 | public void advance(long time, TimeUnit timeUnit) { 29 | millis.addAndGet(timeUnit.toMillis(time)); 30 | } 31 | 32 | @Override 33 | public long nanoTime() { 34 | return millisTime() * 1000_000L; 35 | } 36 | 37 | @Override 38 | public long millisTime() { 39 | return millis.get(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryRead.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.cloud.bigquery.storage.v1; 18 | 19 | import com.google.api.core.BetaApi; 20 | import com.google.api.gax.grpc.testing.MockGrpcService; 21 | import com.google.protobuf.AbstractMessage; 22 | import io.grpc.ServerServiceDefinition; 23 | import java.util.List; 24 | import javax.annotation.Generated; 25 | 26 | @BetaApi 27 | @Generated("by gapic-generator-java") 28 | public class MockBigQueryRead implements MockGrpcService { 29 | private final MockBigQueryReadImpl serviceImpl; 30 | 31 | public MockBigQueryRead() { 32 | serviceImpl = new MockBigQueryReadImpl(); 33 | } 34 | 35 | @Override 36 | public List getRequests() { 37 | return serviceImpl.getRequests(); 38 | } 39 | 40 | @Override 41 | public void addResponse(AbstractMessage response) { 42 | serviceImpl.addResponse(response); 43 | } 44 | 45 | @Override 46 | public void addException(Exception exception) { 47 | serviceImpl.addException(exception); 48 | } 49 | 50 | @Override 51 | public ServerServiceDefinition getServiceDefinition() { 52 | return serviceImpl.bindService(); 53 | } 54 | 55 | @Override 56 | public void reset() { 57 | serviceImpl.reset(); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWrite.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.cloud.bigquery.storage.v1; 18 | 19 | import com.google.api.core.BetaApi; 20 | import com.google.api.gax.grpc.testing.MockGrpcService; 21 | import com.google.protobuf.AbstractMessage; 22 | import io.grpc.ServerServiceDefinition; 23 | import java.util.List; 24 | import javax.annotation.Generated; 25 | 26 | @BetaApi 27 | @Generated("by gapic-generator-java") 28 | public class MockBigQueryWrite implements MockGrpcService { 29 | private final MockBigQueryWriteImpl serviceImpl; 30 | 31 | public MockBigQueryWrite() { 32 | serviceImpl = new MockBigQueryWriteImpl(); 33 | } 34 | 35 | @Override 36 | public List getRequests() { 37 | return serviceImpl.getRequests(); 38 | } 39 | 40 | @Override 41 | public void addResponse(AbstractMessage response) { 42 | serviceImpl.addResponse(response); 43 | } 44 | 45 | @Override 46 | public void addException(Exception exception) { 47 | serviceImpl.addException(exception); 48 | } 49 | 50 | @Override 51 | public ServerServiceDefinition getServiceDefinition() { 52 | return serviceImpl.bindService(); 53 | } 54 | 55 | @Override 56 | public void reset() { 57 | serviceImpl.reset(); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/BigQueryResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.cloud.bigquery.storage.v1.it; 18 | 19 | /** Test helper class to generate BigQuery resource paths. */ 20 | public class BigQueryResource { 21 | 22 | /** 23 | * Returns a BigQuery table resource path from the provided parameters into the following format: 24 | * projects/{projectId}/datasets/{datasetId}/tables/{tableId} 25 | * 26 | * @param projectId 27 | * @param datasetId 28 | * @param tableId 29 | * @return a path to a table resource. 30 | */ 31 | public static String FormatTableResource(String projectId, String datasetId, String tableId) { 32 | return String.format("projects/%s/datasets/%s/tables/%s", projectId, datasetId, tableId); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha/MockMetastorePartitionService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.cloud.bigquery.storage.v1alpha; 18 | 19 | import com.google.api.core.BetaApi; 20 | import com.google.api.gax.grpc.testing.MockGrpcService; 21 | import com.google.protobuf.AbstractMessage; 22 | import io.grpc.ServerServiceDefinition; 23 | import java.util.List; 24 | import javax.annotation.Generated; 25 | 26 | @BetaApi 27 | @Generated("by gapic-generator-java") 28 | public class MockMetastorePartitionService implements MockGrpcService { 29 | private final MockMetastorePartitionServiceImpl serviceImpl; 30 | 31 | public MockMetastorePartitionService() { 32 | serviceImpl = new MockMetastorePartitionServiceImpl(); 33 | } 34 | 35 | @Override 36 | public List getRequests() { 37 | return serviceImpl.getRequests(); 38 | } 39 | 40 | @Override 41 | public void addResponse(AbstractMessage response) { 42 | serviceImpl.addResponse(response); 43 | } 44 | 45 | @Override 46 | public void addException(Exception exception) { 47 | serviceImpl.addException(exception); 48 | } 49 | 50 | @Override 51 | public ServerServiceDefinition getServiceDefinition() { 52 | return serviceImpl.bindService(); 53 | } 54 | 55 | @Override 56 | public void reset() { 57 | serviceImpl.reset(); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta/MockMetastorePartitionService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.cloud.bigquery.storage.v1beta; 18 | 19 | import com.google.api.core.BetaApi; 20 | import com.google.api.gax.grpc.testing.MockGrpcService; 21 | import com.google.protobuf.AbstractMessage; 22 | import io.grpc.ServerServiceDefinition; 23 | import java.util.List; 24 | import javax.annotation.Generated; 25 | 26 | @BetaApi 27 | @Generated("by gapic-generator-java") 28 | public class MockMetastorePartitionService implements MockGrpcService { 29 | private final MockMetastorePartitionServiceImpl serviceImpl; 30 | 31 | public MockMetastorePartitionService() { 32 | serviceImpl = new MockMetastorePartitionServiceImpl(); 33 | } 34 | 35 | @Override 36 | public List getRequests() { 37 | return serviceImpl.getRequests(); 38 | } 39 | 40 | @Override 41 | public void addResponse(AbstractMessage response) { 42 | serviceImpl.addResponse(response); 43 | } 44 | 45 | @Override 46 | public void addException(Exception exception) { 47 | serviceImpl.addException(exception); 48 | } 49 | 50 | @Override 51 | public ServerServiceDefinition getServiceDefinition() { 52 | return serviceImpl.bindService(); 53 | } 54 | 55 | @Override 56 | public void reset() { 57 | serviceImpl.reset(); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.cloud.bigquery.storage.v1beta1; 18 | 19 | import com.google.api.core.BetaApi; 20 | import com.google.api.gax.grpc.testing.MockGrpcService; 21 | import com.google.protobuf.AbstractMessage; 22 | import io.grpc.ServerServiceDefinition; 23 | import java.util.List; 24 | import javax.annotation.Generated; 25 | 26 | @BetaApi 27 | @Generated("by gapic-generator-java") 28 | public class MockBigQueryStorage implements MockGrpcService { 29 | private final MockBigQueryStorageImpl serviceImpl; 30 | 31 | public MockBigQueryStorage() { 32 | serviceImpl = new MockBigQueryStorageImpl(); 33 | } 34 | 35 | @Override 36 | public List getRequests() { 37 | return serviceImpl.getRequests(); 38 | } 39 | 40 | @Override 41 | public void addResponse(AbstractMessage response) { 42 | serviceImpl.addResponse(response); 43 | } 44 | 45 | @Override 46 | public void addException(Exception exception) { 47 | serviceImpl.addException(exception); 48 | } 49 | 50 | @Override 51 | public ServerServiceDefinition getServiceDefinition() { 52 | return serviceImpl.bindService(); 53 | } 54 | 55 | @Override 56 | public void reset() { 57 | serviceImpl.reset(); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/FakeClock.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.google.cloud.bigquery.storage.v1beta2; 17 | 18 | import com.google.api.core.ApiClock; 19 | import java.util.concurrent.TimeUnit; 20 | import java.util.concurrent.atomic.AtomicLong; 21 | 22 | /** A Clock to help with testing time-based logic. */ 23 | public class FakeClock implements ApiClock { 24 | 25 | private final AtomicLong millis = new AtomicLong(); 26 | 27 | // Advances the clock value by {@code time} in {@code timeUnit}. 28 | public void advance(long time, TimeUnit timeUnit) { 29 | millis.addAndGet(timeUnit.toMillis(time)); 30 | } 31 | 32 | @Override 33 | public long nanoTime() { 34 | return millisTime() * 1000_000L; 35 | } 36 | 37 | @Override 38 | public long millisTime() { 39 | return millis.get(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryRead.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.cloud.bigquery.storage.v1beta2; 18 | 19 | import com.google.api.core.BetaApi; 20 | import com.google.api.gax.grpc.testing.MockGrpcService; 21 | import com.google.protobuf.AbstractMessage; 22 | import io.grpc.ServerServiceDefinition; 23 | import java.util.List; 24 | import javax.annotation.Generated; 25 | 26 | @BetaApi 27 | @Generated("by gapic-generator-java") 28 | public class MockBigQueryRead implements MockGrpcService { 29 | private final MockBigQueryReadImpl serviceImpl; 30 | 31 | public MockBigQueryRead() { 32 | serviceImpl = new MockBigQueryReadImpl(); 33 | } 34 | 35 | @Override 36 | public List getRequests() { 37 | return serviceImpl.getRequests(); 38 | } 39 | 40 | @Override 41 | public void addResponse(AbstractMessage response) { 42 | serviceImpl.addResponse(response); 43 | } 44 | 45 | @Override 46 | public void addException(Exception exception) { 47 | serviceImpl.addException(exception); 48 | } 49 | 50 | @Override 51 | public ServerServiceDefinition getServiceDefinition() { 52 | return serviceImpl.bindService(); 53 | } 54 | 55 | @Override 56 | public void reset() { 57 | serviceImpl.reset(); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWrite.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.cloud.bigquery.storage.v1beta2; 18 | 19 | import com.google.api.core.BetaApi; 20 | import com.google.api.gax.grpc.testing.MockGrpcService; 21 | import com.google.protobuf.AbstractMessage; 22 | import io.grpc.ServerServiceDefinition; 23 | import java.util.List; 24 | import javax.annotation.Generated; 25 | 26 | @BetaApi 27 | @Generated("by gapic-generator-java") 28 | public class MockBigQueryWrite implements MockGrpcService { 29 | private final MockBigQueryWriteImpl serviceImpl; 30 | 31 | public MockBigQueryWrite() { 32 | serviceImpl = new MockBigQueryWriteImpl(); 33 | } 34 | 35 | @Override 36 | public List getRequests() { 37 | return serviceImpl.getRequests(); 38 | } 39 | 40 | @Override 41 | public void addResponse(AbstractMessage response) { 42 | serviceImpl.addResponse(response); 43 | } 44 | 45 | @Override 46 | public void addException(Exception exception) { 47 | serviceImpl.addException(exception); 48 | } 49 | 50 | @Override 51 | public ServerServiceDefinition getServiceDefinition() { 52 | return serviceImpl.bindService(); 53 | } 54 | 55 | @Override 56 | public void reset() { 57 | serviceImpl.reset(); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/it/BigQueryResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.cloud.bigquery.storage.v1beta2.it; 18 | 19 | /** Test helper class to generate BigQuery resource paths. */ 20 | public class BigQueryResource { 21 | 22 | /** 23 | * Returns a BigQuery table resource path from the provided parameters into the following format: 24 | * projects/{projectId}/datasets/{datasetId}/tables/{tableId} 25 | * 26 | * @param projectId 27 | * @param datasetId 28 | * @param tableId 29 | * @return a path to a table resource. 30 | */ 31 | public static String FormatTableResource(String projectId, String datasetId, String tableId) { 32 | return String.format("projects/%s/datasets/%s/tables/%s", projectId, datasetId, tableId); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /google-cloud-bigquerystorage/src/test/proto/optionalTest.proto: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2023 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | syntax = "proto3"; 17 | 18 | package com.google.cloud.bigquery.storage.test; 19 | 20 | option java_package = "com.google.cloud.bigquery.storage.test"; 21 | option java_outer_classname = "TestOptional"; 22 | 23 | message FooOptionalType { 24 | optional string foo = 1; 25 | } 26 | 27 | -------------------------------------------------------------------------------- /grpc-google-cloud-bigquerystorage-v1/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | com.google.api.grpc 6 | grpc-google-cloud-bigquerystorage-v1 7 | 3.15.1-SNAPSHOT 8 | grpc-google-cloud-bigquerystorage-v1 9 | GRPC library for grpc-google-cloud-bigquerystorage-v1 10 | 11 | com.google.cloud 12 | google-cloud-bigquerystorage-parent 13 | 3.15.1-SNAPSHOT 14 | 15 | 16 | 17 | io.grpc 18 | grpc-api 19 | 20 | 21 | io.grpc 22 | grpc-stub 23 | 24 | 25 | io.grpc 26 | grpc-protobuf 27 | 28 | 29 | com.google.protobuf 30 | protobuf-java 31 | 32 | 33 | com.google.api.grpc 34 | proto-google-cloud-bigquerystorage-v1 35 | 36 | 37 | com.google.guava 38 | guava 39 | 40 | 41 | 42 | 43 | 44 | 45 | org.codehaus.mojo 46 | flatten-maven-plugin 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /grpc-google-cloud-bigquerystorage-v1alpha/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | com.google.api.grpc 6 | grpc-google-cloud-bigquerystorage-v1alpha 7 | 3.15.1-SNAPSHOT 8 | grpc-google-cloud-bigquerystorage-v1alpha 9 | GRPC library for google-cloud-bigquerystorage 10 | 11 | com.google.cloud 12 | google-cloud-bigquerystorage-parent 13 | 3.15.1-SNAPSHOT 14 | 15 | 16 | 17 | io.grpc 18 | grpc-api 19 | 20 | 21 | io.grpc 22 | grpc-stub 23 | 24 | 25 | io.grpc 26 | grpc-protobuf 27 | 28 | 29 | com.google.protobuf 30 | protobuf-java 31 | 32 | 33 | com.google.api.grpc 34 | proto-google-cloud-bigquerystorage-v1alpha 35 | 36 | 37 | com.google.guava 38 | guava 39 | 40 | 41 | 42 | 43 | java9 44 | 45 | [9,) 46 | 47 | 48 | 49 | javax.annotation 50 | javax.annotation-api 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | org.codehaus.mojo 60 | flatten-maven-plugin 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /grpc-google-cloud-bigquerystorage-v1beta/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | com.google.api.grpc 6 | grpc-google-cloud-bigquerystorage-v1beta 7 | 3.15.1-SNAPSHOT 8 | grpc-google-cloud-bigquerystorage-v1beta 9 | GRPC library for google-cloud-bigquerystorage 10 | 11 | com.google.cloud 12 | google-cloud-bigquerystorage-parent 13 | 3.15.1-SNAPSHOT 14 | 15 | 16 | 17 | io.grpc 18 | grpc-api 19 | 20 | 21 | io.grpc 22 | grpc-stub 23 | 24 | 25 | io.grpc 26 | grpc-protobuf 27 | 28 | 29 | com.google.protobuf 30 | protobuf-java 31 | 32 | 33 | com.google.api.grpc 34 | proto-google-cloud-bigquerystorage-v1beta 35 | 36 | 37 | com.google.guava 38 | guava 39 | 40 | 41 | 42 | 43 | java9 44 | 45 | [9,) 46 | 47 | 48 | 49 | javax.annotation 50 | javax.annotation-api 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | org.codehaus.mojo 60 | flatten-maven-plugin 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /grpc-google-cloud-bigquerystorage-v1beta1/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | com.google.api.grpc 6 | grpc-google-cloud-bigquerystorage-v1beta1 7 | 0.187.1-SNAPSHOT 8 | grpc-google-cloud-bigquerystorage-v1beta1 9 | GRPC library for grpc-google-cloud-bigquerystorage-v1beta1 10 | 11 | com.google.cloud 12 | google-cloud-bigquerystorage-parent 13 | 3.15.1-SNAPSHOT 14 | 15 | 16 | 17 | io.grpc 18 | grpc-api 19 | 20 | 21 | io.grpc 22 | grpc-stub 23 | 24 | 25 | io.grpc 26 | grpc-protobuf 27 | 28 | 29 | com.google.protobuf 30 | protobuf-java 31 | 32 | 33 | com.google.api.grpc 34 | proto-google-cloud-bigquerystorage-v1beta1 35 | 36 | 37 | com.google.guava 38 | guava 39 | 40 | 41 | 42 | 43 | 44 | 45 | org.codehaus.mojo 46 | flatten-maven-plugin 47 | 48 | 49 | 50 | 51 | 52 | 53 | java9 54 | 55 | [9,) 56 | 57 | 58 | 59 | javax.annotation 60 | javax.annotation-api 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /grpc-google-cloud-bigquerystorage-v1beta2/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | com.google.api.grpc 6 | grpc-google-cloud-bigquerystorage-v1beta2 7 | 0.187.1-SNAPSHOT 8 | grpc-google-cloud-bigquerystorage-v1beta2 9 | GRPC library for grpc-google-cloud-bigquerystorage-v1beta2 10 | 11 | com.google.cloud 12 | google-cloud-bigquerystorage-parent 13 | 3.15.1-SNAPSHOT 14 | 15 | 16 | 17 | io.grpc 18 | grpc-api 19 | 20 | 21 | io.grpc 22 | grpc-stub 23 | 24 | 25 | io.grpc 26 | grpc-protobuf 27 | 28 | 29 | com.google.protobuf 30 | protobuf-java 31 | 32 | 33 | com.google.api.grpc 34 | proto-google-cloud-bigquerystorage-v1beta2 35 | 36 | 37 | com.google.guava 38 | guava 39 | 40 | 41 | 42 | 43 | 44 | 45 | org.codehaus.mojo 46 | flatten-maven-plugin 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /java.header: -------------------------------------------------------------------------------- 1 | ^/\*$ 2 | ^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)$ 3 | ^ \*$ 4 | ^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ 5 | ^ \* you may not use this file except in compliance with the License\.$ 6 | ^ \* You may obtain a copy of the License at$ 7 | ^ \*$ 8 | ^ \*[ ]+https?://www.apache.org/licenses/LICENSE-2\.0$ 9 | ^ \*$ 10 | ^ \* Unless required by applicable law or agreed to in writing, software$ 11 | ^ \* distributed under the License is distributed on an "AS IS" BASIS,$ 12 | ^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$ 13 | ^ \* See the License for the specific language governing permissions and$ 14 | ^ \* limitations under the License\.$ 15 | ^ \*/$ 16 | -------------------------------------------------------------------------------- /license-checks.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /owlbot.py: -------------------------------------------------------------------------------- 1 | # Copyright 2021 Google LLC 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # https://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | import synthtool as s 16 | from synthtool.languages import java 17 | 18 | 19 | for library in s.get_staging_dirs(): 20 | # put any special-case replacements here 21 | s.move(library) 22 | 23 | s.remove_staging_dirs() 24 | java.common_templates( 25 | excludes=[ 26 | "renovate.json", 27 | ".kokoro/build.sh", 28 | ".kokoro/nightly/retry_non_quota.cfg", 29 | ".kokoro/nightly/retry_quota.cfg", 30 | ".kokoro/nightly/samples.cfg", 31 | ".kokoro/presubmit/samples.cfg", 32 | ".kokoro/presubmit/graalvm-native-17.cfg", 33 | ".kokoro/presubmit/graalvm-native.cfg", 34 | ".kokoro/presubmit/graalvm-native-a.cfg", 35 | ".kokoro/presubmit/graalvm-native-b.cfg", 36 | ".kokoro/presubmit/graalvm-native-c.cfg", 37 | ".kokoro/dependencies.sh", 38 | ".github/workflows/approve-readme.yaml", 39 | ".github/workflows/auto-release.yaml", 40 | ".github/workflows/ci.yaml", 41 | ".github/workflows/samples.yaml" 42 | ".kokoro/requirements.in", 43 | ".kokoro/requirements.txt" 44 | ] 45 | ) 46 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | com.google.api.grpc 6 | proto-google-cloud-bigquerystorage-v1 7 | 3.15.1-SNAPSHOT 8 | proto-google-cloud-bigquerystorage-v1 9 | PROTO library for proto-google-cloud-bigquerystorage-v1 10 | 11 | com.google.cloud 12 | google-cloud-bigquerystorage-parent 13 | 3.15.1-SNAPSHOT 14 | 15 | 16 | 17 | com.google.protobuf 18 | protobuf-java 19 | 20 | 21 | com.google.api.grpc 22 | proto-google-common-protos 23 | 24 | 25 | com.google.api 26 | api-common 27 | 28 | 29 | com.google.guava 30 | guava 31 | 32 | 33 | 34 | 35 | 36 | 37 | org.codehaus.mojo 38 | flatten-maven-plugin 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/arrow.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface ArrowRecordBatchOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowRecordBatch) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *

31 |    * IPC-serialized Arrow RecordBatch.
32 |    * 
33 | * 34 | * bytes serialized_record_batch = 1; 35 | * 36 | * @return The serializedRecordBatch. 37 | */ 38 | com.google.protobuf.ByteString getSerializedRecordBatch(); 39 | 40 | /** 41 | * 42 | * 43 | *
44 |    * [Deprecated] The count of rows in `serialized_record_batch`.
45 |    * Please use the format-independent ReadRowsResponse.row_count instead.
46 |    * 
47 | * 48 | * int64 row_count = 2 [deprecated = true]; 49 | * 50 | * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See 51 | * google/cloud/bigquery/storage/v1/arrow.proto;l=43 52 | * @return The rowCount. 53 | */ 54 | @java.lang.Deprecated 55 | long getRowCount(); 56 | } 57 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/arrow.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface ArrowSchemaOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowSchema) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * IPC serialized Arrow schema.
32 |    * 
33 | * 34 | * bytes serialized_schema = 1; 35 | * 36 | * @return The serializedSchema. 37 | */ 38 | com.google.protobuf.ByteString getSerializedSchema(); 39 | } 40 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/arrow.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface ArrowSerializationOptionsOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * The compression codec to use for Arrow buffers in serialized record
32 |    * batches.
33 |    * 
34 | * 35 | * 36 | * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; 37 | * 38 | * 39 | * @return The enum numeric value on the wire for bufferCompression. 40 | */ 41 | int getBufferCompressionValue(); 42 | 43 | /** 44 | * 45 | * 46 | *
47 |    * The compression codec to use for Arrow buffers in serialized record
48 |    * batches.
49 |    * 
50 | * 51 | * 52 | * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; 53 | * 54 | * 55 | * @return The bufferCompression. 56 | */ 57 | com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec 58 | getBufferCompression(); 59 | } 60 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/avro.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface AvroRowsOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AvroRows) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Binary serialized rows in a block.
32 |    * 
33 | * 34 | * bytes serialized_binary_rows = 1; 35 | * 36 | * @return The serializedBinaryRows. 37 | */ 38 | com.google.protobuf.ByteString getSerializedBinaryRows(); 39 | 40 | /** 41 | * 42 | * 43 | *
44 |    * [Deprecated] The count of rows in the returning block.
45 |    * Please use the format-independent ReadRowsResponse.row_count instead.
46 |    * 
47 | * 48 | * int64 row_count = 2 [deprecated = true]; 49 | * 50 | * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. See 51 | * google/cloud/bigquery/storage/v1/avro.proto;l=39 52 | * @return The rowCount. 53 | */ 54 | @java.lang.Deprecated 55 | long getRowCount(); 56 | } 57 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/avro.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface AvroSchemaOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AvroSchema) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Json serialized schema, as described at
32 |    * https://avro.apache.org/docs/1.8.1/spec.html.
33 |    * 
34 | * 35 | * string schema = 1; 36 | * 37 | * @return The schema. 38 | */ 39 | java.lang.String getSchema(); 40 | 41 | /** 42 | * 43 | * 44 | *
45 |    * Json serialized schema, as described at
46 |    * https://avro.apache.org/docs/1.8.1/spec.html.
47 |    * 
48 | * 49 | * string schema = 1; 50 | * 51 | * @return The bytes for schema. 52 | */ 53 | com.google.protobuf.ByteString getSchemaBytes(); 54 | } 55 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/avro.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface AvroSerializationOptionsOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AvroSerializationOptions) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Enable displayName attribute in Avro schema.
32 |    *
33 |    * The Avro specification requires field names to be alphanumeric.  By
34 |    * default, in cases when column names do not conform to these requirements
35 |    * (e.g. non-ascii unicode codepoints) and Avro is requested as an output
36 |    * format, the CreateReadSession call will fail.
37 |    *
38 |    * Setting this field to true, populates avro field names with a placeholder
39 |    * value and populates a "displayName" attribute for every avro field with the
40 |    * original column name.
41 |    * 
42 | * 43 | * bool enable_display_name_attribute = 1; 44 | * 45 | * @return The enableDisplayNameAttribute. 46 | */ 47 | boolean getEnableDisplayNameAttribute(); 48 | } 49 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface FinalizeWriteStreamRequestOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Required. Name of the stream to finalize, in the form of
32 |    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
33 |    * 
34 | * 35 | * 36 | * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 37 | * 38 | * 39 | * @return The name. 40 | */ 41 | java.lang.String getName(); 42 | 43 | /** 44 | * 45 | * 46 | *
47 |    * Required. Name of the stream to finalize, in the form of
48 |    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
49 |    * 
50 | * 51 | * 52 | * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 53 | * 54 | * 55 | * @return The bytes for name. 56 | */ 57 | com.google.protobuf.ByteString getNameBytes(); 58 | } 59 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface FinalizeWriteStreamResponseOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Number of rows in the finalized stream.
32 |    * 
33 | * 34 | * int64 row_count = 1; 35 | * 36 | * @return The rowCount. 37 | */ 38 | long getRowCount(); 39 | } 40 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface FlushRowsResponseOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FlushRowsResponse) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * The rows before this offset (including this offset) are flushed.
32 |    * 
33 | * 34 | * int64 offset = 1; 35 | * 36 | * @return The offset. 37 | */ 38 | long getOffset(); 39 | } 40 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface ReadRowsRequestOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadRowsRequest) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Required. Stream to read rows from.
32 |    * 
33 | * 34 | * 35 | * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 36 | * 37 | * 38 | * @return The readStream. 39 | */ 40 | java.lang.String getReadStream(); 41 | 42 | /** 43 | * 44 | * 45 | *
46 |    * Required. Stream to read rows from.
47 |    * 
48 | * 49 | * 50 | * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 51 | * 52 | * 53 | * @return The bytes for readStream. 54 | */ 55 | com.google.protobuf.ByteString getReadStreamBytes(); 56 | 57 | /** 58 | * 59 | * 60 | *
61 |    * The offset requested must be less than the last row read from Read.
62 |    * Requesting a larger offset is undefined. If not specified, start reading
63 |    * from offset zero.
64 |    * 
65 | * 66 | * int64 offset = 2; 67 | * 68 | * @return The offset. 69 | */ 70 | long getOffset(); 71 | } 72 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/stream.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface ReadStreamOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadStream) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Output only. Name of the stream, in the form
32 |    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
33 |    * 
34 | * 35 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 36 | * 37 | * @return The name. 38 | */ 39 | java.lang.String getName(); 40 | 41 | /** 42 | * 43 | * 44 | *
45 |    * Output only. Name of the stream, in the form
46 |    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
47 |    * 
48 | * 49 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 50 | * 51 | * @return The bytes for name. 52 | */ 53 | com.google.protobuf.ByteString getNameBytes(); 54 | } 55 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface StreamStatsOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.StreamStats) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Represents the progress of the current stream.
32 |    * 
33 | * 34 | * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; 35 | * 36 | * @return Whether the progress field is set. 37 | */ 38 | boolean hasProgress(); 39 | 40 | /** 41 | * 42 | * 43 | *
44 |    * Represents the progress of the current stream.
45 |    * 
46 | * 47 | * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; 48 | * 49 | * @return The progress. 50 | */ 51 | com.google.cloud.bigquery.storage.v1.StreamStats.Progress getProgress(); 52 | 53 | /** 54 | * 55 | * 56 | *
57 |    * Represents the progress of the current stream.
58 |    * 
59 | * 60 | * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; 61 | */ 62 | com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder getProgressOrBuilder(); 63 | } 64 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1; 21 | 22 | public interface ThrottleStateOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ThrottleState) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * How much this connection is being throttled. Zero means no throttling,
32 |    * 100 means fully throttled.
33 |    * 
34 | * 35 | * int32 throttle_percent = 1; 36 | * 37 | * @return The throttlePercent. 38 | */ 39 | int getThrottlePercent(); 40 | } 41 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/annotations.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package google.cloud.bigquery.storage.v1; 4 | 5 | import "google/protobuf/descriptor.proto"; 6 | 7 | option csharp_namespace = "Google.Cloud.BigQuery.Storage.V1"; 8 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1/storagepb;storagepb"; 9 | option java_package = "com.google.cloud.bigquery.storage.v1"; 10 | option java_multiple_files = true; 11 | option java_outer_classname = "AnnotationsProto"; 12 | option php_namespace = "Google\\Cloud\\BigQuery\\Storage\\V1"; 13 | 14 | extend google.protobuf.FieldOptions { 15 | // Setting the column_name extension allows users to reference 16 | // bigquery column independently of the field name in the protocol buffer 17 | // message. 18 | // 19 | // The intended use of this annotation is to reference a destination column 20 | // named using characters unavailable for protobuf field names (e.g. unicode 21 | // characters). 22 | // 23 | // More details about BigQuery naming limitations can be found here: 24 | // https://cloud.google.com/bigquery/docs/schemas#column_names 25 | // 26 | // This extension is currently experimental. 27 | optional string column_name = 454943157; 28 | } 29 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2025 Google LLC 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | syntax = "proto3"; 16 | 17 | package google.cloud.bigquery.storage.v1; 18 | 19 | option csharp_namespace = "Google.Cloud.BigQuery.Storage.V1"; 20 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1/storagepb;storagepb"; 21 | option java_multiple_files = true; 22 | option java_outer_classname = "ArrowProto"; 23 | option java_package = "com.google.cloud.bigquery.storage.v1"; 24 | option php_namespace = "Google\\Cloud\\BigQuery\\Storage\\V1"; 25 | 26 | // Arrow schema as specified in 27 | // https://arrow.apache.org/docs/python/api/datatypes.html 28 | // and serialized to bytes using IPC: 29 | // https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc 30 | // 31 | // See code samples on how this message can be deserialized. 32 | message ArrowSchema { 33 | // IPC serialized Arrow schema. 34 | bytes serialized_schema = 1; 35 | } 36 | 37 | // Arrow RecordBatch. 38 | message ArrowRecordBatch { 39 | // IPC-serialized Arrow RecordBatch. 40 | bytes serialized_record_batch = 1; 41 | 42 | // [Deprecated] The count of rows in `serialized_record_batch`. 43 | // Please use the format-independent ReadRowsResponse.row_count instead. 44 | int64 row_count = 2 [deprecated = true]; 45 | } 46 | 47 | // Contains options specific to Arrow Serialization. 48 | message ArrowSerializationOptions { 49 | // Compression codec's supported by Arrow. 50 | enum CompressionCodec { 51 | // If unspecified no compression will be used. 52 | COMPRESSION_UNSPECIFIED = 0; 53 | 54 | // LZ4 Frame (https://github.com/lz4/lz4/blob/dev/doc/lz4_Frame_format.md) 55 | LZ4_FRAME = 1; 56 | 57 | // Zstandard compression. 58 | ZSTD = 2; 59 | } 60 | 61 | // The compression codec to use for Arrow buffers in serialized record 62 | // batches. 63 | CompressionCodec buffer_compression = 2; 64 | } 65 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2025 Google LLC 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | syntax = "proto3"; 16 | 17 | package google.cloud.bigquery.storage.v1; 18 | 19 | option csharp_namespace = "Google.Cloud.BigQuery.Storage.V1"; 20 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1/storagepb;storagepb"; 21 | option java_multiple_files = true; 22 | option java_outer_classname = "AvroProto"; 23 | option java_package = "com.google.cloud.bigquery.storage.v1"; 24 | option php_namespace = "Google\\Cloud\\BigQuery\\Storage\\V1"; 25 | 26 | // Avro schema. 27 | message AvroSchema { 28 | // Json serialized schema, as described at 29 | // https://avro.apache.org/docs/1.8.1/spec.html. 30 | string schema = 1; 31 | } 32 | 33 | // Avro rows. 34 | message AvroRows { 35 | // Binary serialized rows in a block. 36 | bytes serialized_binary_rows = 1; 37 | 38 | // [Deprecated] The count of rows in the returning block. 39 | // Please use the format-independent ReadRowsResponse.row_count instead. 40 | int64 row_count = 2 [deprecated = true]; 41 | } 42 | 43 | // Contains options specific to Avro Serialization. 44 | message AvroSerializationOptions { 45 | // Enable displayName attribute in Avro schema. 46 | // 47 | // The Avro specification requires field names to be alphanumeric. By 48 | // default, in cases when column names do not conform to these requirements 49 | // (e.g. non-ascii unicode codepoints) and Avro is requested as an output 50 | // format, the CreateReadSession call will fail. 51 | // 52 | // Setting this field to true, populates avro field names with a placeholder 53 | // value and populates a "displayName" attribute for every avro field with the 54 | // original column name. 55 | bool enable_display_name_attribute = 1; 56 | } 57 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2025 Google LLC 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | syntax = "proto3"; 16 | 17 | package google.cloud.bigquery.storage.v1; 18 | 19 | import "google/protobuf/descriptor.proto"; 20 | 21 | option csharp_namespace = "Google.Cloud.BigQuery.Storage.V1"; 22 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1/storagepb;storagepb"; 23 | option java_multiple_files = true; 24 | option java_outer_classname = "ProtoBufProto"; 25 | option java_package = "com.google.cloud.bigquery.storage.v1"; 26 | option php_namespace = "Google\\Cloud\\BigQuery\\Storage\\V1"; 27 | 28 | // ProtoSchema describes the schema of the serialized protocol buffer data rows. 29 | message ProtoSchema { 30 | // Descriptor for input message. The provided descriptor must be self 31 | // contained, such that data rows sent can be fully decoded using only the 32 | // single descriptor. For data rows that are compositions of multiple 33 | // independent messages, this means the descriptor may need to be transformed 34 | // to only use nested types: 35 | // https://developers.google.com/protocol-buffers/docs/proto#nested 36 | // 37 | // For additional information for how proto types and values map onto BigQuery 38 | // see: https://cloud.google.com/bigquery/docs/write-api#data_type_conversions 39 | google.protobuf.DescriptorProto proto_descriptor = 1; 40 | } 41 | 42 | message ProtoRows { 43 | // A sequence of rows serialized as a Protocol Buffer. 44 | // 45 | // See https://developers.google.com/protocol-buffers/docs/overview for more 46 | // information on deserializing this field. 47 | repeated bytes serialized_rows = 1; 48 | } 49 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1alpha/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | com.google.api.grpc 6 | proto-google-cloud-bigquerystorage-v1alpha 7 | 3.15.1-SNAPSHOT 8 | proto-google-cloud-bigquerystorage-v1alpha 9 | Proto library for google-cloud-bigquerystorage 10 | 11 | com.google.cloud 12 | google-cloud-bigquerystorage-parent 13 | 3.15.1-SNAPSHOT 14 | 15 | 16 | 17 | com.google.protobuf 18 | protobuf-java 19 | 20 | 21 | com.google.api.grpc 22 | proto-google-common-protos 23 | 24 | 25 | com.google.api 26 | api-common 27 | 28 | 29 | com.google.guava 30 | guava 31 | 32 | 33 | 34 | 35 | 36 | org.codehaus.mojo 37 | flatten-maven-plugin 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/BatchSizeTooLargeErrorOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1alpha; 21 | 22 | public interface BatchSizeTooLargeErrorOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.BatchSizeTooLargeError) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * The maximum number of items that are supported in a single batch. This is
32 |    * returned as a hint to the client to adjust the batch size.
33 |    * 
34 | * 35 | * int64 max_batch_size = 1; 36 | * 37 | * @return The maxBatchSize. 38 | */ 39 | long getMaxBatchSize(); 40 | 41 | /** 42 | * 43 | * 44 | *
45 |    * Optional. The error message that is returned to the client.
46 |    * 
47 | * 48 | * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; 49 | * 50 | * @return The errorMessage. 51 | */ 52 | java.lang.String getErrorMessage(); 53 | 54 | /** 55 | * 56 | * 57 | *
58 |    * Optional. The error message that is returned to the client.
59 |    * 
60 | * 61 | * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; 62 | * 63 | * @return The bytes for errorMessage. 64 | */ 65 | com.google.protobuf.ByteString getErrorMessageBytes(); 66 | } 67 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/ReadStreamOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1alpha/partition.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1alpha; 21 | 22 | public interface ReadStreamOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.ReadStream) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Output only. Identifier. Name of the stream, in the form
32 |    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
33 |    * 
34 | * 35 | * 36 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; 37 | * 38 | * 39 | * @return The name. 40 | */ 41 | java.lang.String getName(); 42 | 43 | /** 44 | * 45 | * 46 | *
47 |    * Output only. Identifier. Name of the stream, in the form
48 |    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
49 |    * 
50 | * 51 | * 52 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; 53 | * 54 | * 55 | * @return The bytes for name. 56 | */ 57 | com.google.protobuf.ByteString getNameBytes(); 58 | } 59 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/StreamMetastorePartitionsResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1alpha/metastore_partition.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1alpha; 21 | 22 | public interface StreamMetastorePartitionsResponseOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Total count of partitions streamed by the client during the lifetime of the
32 |    * stream. This is only set in the final response message before closing the
33 |    * stream.
34 |    * 
35 | * 36 | * int64 total_partitions_streamed_count = 2; 37 | * 38 | * @return The totalPartitionsStreamedCount. 39 | */ 40 | long getTotalPartitionsStreamedCount(); 41 | 42 | /** 43 | * 44 | * 45 | *
46 |    * Total count of partitions inserted by the server during the lifetime of the
47 |    * stream. This is only set in the final response message before closing the
48 |    * stream.
49 |    * 
50 | * 51 | * int64 total_partitions_inserted_count = 3; 52 | * 53 | * @return The totalPartitionsInsertedCount. 54 | */ 55 | long getTotalPartitionsInsertedCount(); 56 | } 57 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta/clirr-ignored-differences.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | com.google.api.grpc 6 | proto-google-cloud-bigquerystorage-v1beta 7 | 3.15.1-SNAPSHOT 8 | proto-google-cloud-bigquerystorage-v1beta 9 | Proto library for google-cloud-bigquerystorage 10 | 11 | com.google.cloud 12 | google-cloud-bigquerystorage-parent 13 | 3.15.1-SNAPSHOT 14 | 15 | 16 | 17 | com.google.protobuf 18 | protobuf-java 19 | 20 | 21 | com.google.api.grpc 22 | proto-google-common-protos 23 | 24 | 25 | com.google.api 26 | api-common 27 | 28 | 29 | com.google.guava 30 | guava 31 | 32 | 33 | 34 | 35 | 36 | org.codehaus.mojo 37 | flatten-maven-plugin 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta/src/main/java/com/google/cloud/bigquery/storage/v1beta/BatchSizeTooLargeErrorOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta/metastore_partition.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta; 21 | 22 | public interface BatchSizeTooLargeErrorOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta.BatchSizeTooLargeError) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * The maximum number of items that are supported in a single batch. This is
32 |    * returned as a hint to the client to adjust the batch size.
33 |    * 
34 | * 35 | * int64 max_batch_size = 1; 36 | * 37 | * @return The maxBatchSize. 38 | */ 39 | long getMaxBatchSize(); 40 | 41 | /** 42 | * 43 | * 44 | *
45 |    * Optional. The error message that is returned to the client.
46 |    * 
47 | * 48 | * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; 49 | * 50 | * @return The errorMessage. 51 | */ 52 | java.lang.String getErrorMessage(); 53 | 54 | /** 55 | * 56 | * 57 | *
58 |    * Optional. The error message that is returned to the client.
59 |    * 
60 | * 61 | * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; 62 | * 63 | * @return The bytes for errorMessage. 64 | */ 65 | com.google.protobuf.ByteString getErrorMessageBytes(); 66 | } 67 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta/src/main/java/com/google/cloud/bigquery/storage/v1beta/ReadStreamOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta/partition.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta; 21 | 22 | public interface ReadStreamOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta.ReadStream) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Output only. Identifier. Name of the stream, in the form
32 |    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
33 |    * 
34 | * 35 | * 36 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; 37 | * 38 | * 39 | * @return The name. 40 | */ 41 | java.lang.String getName(); 42 | 43 | /** 44 | * 45 | * 46 | *
47 |    * Output only. Identifier. Name of the stream, in the form
48 |    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
49 |    * 
50 | * 51 | * 52 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; 53 | * 54 | * 55 | * @return The bytes for name. 56 | */ 57 | com.google.protobuf.ByteString getNameBytes(); 58 | } 59 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta/src/main/java/com/google/cloud/bigquery/storage/v1beta/StreamMetastorePartitionsResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta/metastore_partition.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta; 21 | 22 | public interface StreamMetastorePartitionsResponseOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta.StreamMetastorePartitionsResponse) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Total count of partitions streamed by the client during the lifetime of the
32 |    * stream. This is only set in the final response message before closing the
33 |    * stream.
34 |    * 
35 | * 36 | * int64 total_partitions_streamed_count = 2; 37 | * 38 | * @return The totalPartitionsStreamedCount. 39 | */ 40 | long getTotalPartitionsStreamedCount(); 41 | 42 | /** 43 | * 44 | * 45 | *
46 |    * Total count of partitions inserted by the server during the lifetime of the
47 |    * stream. This is only set in the final response message before closing the
48 |    * stream.
49 |    * 
50 | * 51 | * int64 total_partitions_inserted_count = 3; 52 | * 53 | * @return The totalPartitionsInsertedCount. 54 | */ 55 | long getTotalPartitionsInsertedCount(); 56 | } 57 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta1/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | com.google.api.grpc 6 | proto-google-cloud-bigquerystorage-v1beta1 7 | 0.187.1-SNAPSHOT 8 | proto-google-cloud-bigquerystorage-v1beta1 9 | PROTO library for proto-google-cloud-bigquerystorage-v1beta1 10 | 11 | com.google.cloud 12 | google-cloud-bigquerystorage-parent 13 | 3.15.1-SNAPSHOT 14 | 15 | 16 | 17 | com.google.protobuf 18 | protobuf-java 19 | 20 | 21 | com.google.api.grpc 22 | proto-google-common-protos 23 | 24 | 25 | com.google.api 26 | api-common 27 | 28 | 29 | com.google.guava 30 | guava 31 | 32 | 33 | 34 | 35 | 36 | 37 | org.codehaus.mojo 38 | flatten-maven-plugin 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/arrow.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2025 Google LLC 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | syntax = "proto3"; 16 | 17 | package google.cloud.bigquery.storage.v1beta1; 18 | 19 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb;storagepb"; 20 | option java_outer_classname = "ArrowProto"; 21 | option java_package = "com.google.cloud.bigquery.storage.v1beta1"; 22 | 23 | // Arrow schema. 24 | message ArrowSchema { 25 | // IPC serialized Arrow schema. 26 | bytes serialized_schema = 1; 27 | } 28 | 29 | // Arrow RecordBatch. 30 | message ArrowRecordBatch { 31 | // IPC serialized Arrow RecordBatch. 32 | bytes serialized_record_batch = 1; 33 | 34 | // The count of rows in the returning block. 35 | int64 row_count = 2; 36 | } 37 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/avro.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2025 Google LLC 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | syntax = "proto3"; 16 | 17 | package google.cloud.bigquery.storage.v1beta1; 18 | 19 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb;storagepb"; 20 | option java_outer_classname = "AvroProto"; 21 | option java_package = "com.google.cloud.bigquery.storage.v1beta1"; 22 | 23 | // Avro schema. 24 | message AvroSchema { 25 | // Json serialized schema, as described at 26 | // https://avro.apache.org/docs/1.8.1/spec.html 27 | string schema = 1; 28 | } 29 | 30 | // Avro rows. 31 | message AvroRows { 32 | // Binary serialized rows in a block. 33 | bytes serialized_binary_rows = 1; 34 | 35 | // The count of rows in the returning block. 36 | int64 row_count = 2; 37 | } 38 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/table_reference.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2025 Google LLC 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | syntax = "proto3"; 16 | 17 | package google.cloud.bigquery.storage.v1beta1; 18 | 19 | import "google/protobuf/timestamp.proto"; 20 | 21 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb;storagepb"; 22 | option java_outer_classname = "TableReferenceProto"; 23 | option java_package = "com.google.cloud.bigquery.storage.v1beta1"; 24 | 25 | // Table reference that includes just the 3 strings needed to identify a table. 26 | message TableReference { 27 | // The assigned project ID of the project. 28 | string project_id = 1; 29 | 30 | // The ID of the dataset in the above project. 31 | string dataset_id = 2; 32 | 33 | // The ID of the table in the above dataset. 34 | string table_id = 3; 35 | } 36 | 37 | // All fields in this message optional. 38 | message TableModifiers { 39 | // The snapshot time of the table. If not set, interpreted as now. 40 | google.protobuf.Timestamp snapshot_time = 1; 41 | } 42 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | com.google.api.grpc 6 | proto-google-cloud-bigquerystorage-v1beta2 7 | 0.187.1-SNAPSHOT 8 | proto-google-cloud-bigquerystorage-v1beta2 9 | PROTO library for proto-google-cloud-bigquerystorage-v1beta2 10 | 11 | com.google.cloud 12 | google-cloud-bigquerystorage-parent 13 | 3.15.1-SNAPSHOT 14 | 15 | 16 | 17 | com.google.protobuf 18 | protobuf-java 19 | 20 | 21 | com.google.api.grpc 22 | proto-google-common-protos 23 | 24 | 25 | com.google.api 26 | api-common 27 | 28 | 29 | com.google.guava 30 | guava 31 | 32 | 33 | 34 | 35 | 36 | 37 | org.codehaus.mojo 38 | flatten-maven-plugin 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/arrow.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface ArrowRecordBatchOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * IPC-serialized Arrow RecordBatch.
32 |    * 
33 | * 34 | * bytes serialized_record_batch = 1; 35 | * 36 | * @return The serializedRecordBatch. 37 | */ 38 | com.google.protobuf.ByteString getSerializedRecordBatch(); 39 | } 40 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/arrow.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface ArrowSchemaOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowSchema) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * IPC serialized Arrow schema.
32 |    * 
33 | * 34 | * bytes serialized_schema = 1; 35 | * 36 | * @return The serializedSchema. 37 | */ 38 | com.google.protobuf.ByteString getSerializedSchema(); 39 | } 40 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/arrow.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface ArrowSerializationOptionsOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * The Arrow IPC format to use.
32 |    * 
33 | * 34 | * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; 35 | * 36 | * 37 | * @return The enum numeric value on the wire for format. 38 | */ 39 | int getFormatValue(); 40 | 41 | /** 42 | * 43 | * 44 | *
45 |    * The Arrow IPC format to use.
46 |    * 
47 | * 48 | * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; 49 | * 50 | * 51 | * @return The format. 52 | */ 53 | com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format getFormat(); 54 | } 55 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/avro.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface AvroRowsOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AvroRows) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Binary serialized rows in a block.
32 |    * 
33 | * 34 | * bytes serialized_binary_rows = 1; 35 | * 36 | * @return The serializedBinaryRows. 37 | */ 38 | com.google.protobuf.ByteString getSerializedBinaryRows(); 39 | } 40 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/avro.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface AvroSchemaOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AvroSchema) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Json serialized schema, as described at
32 |    * https://avro.apache.org/docs/1.8.1/spec.html.
33 |    * 
34 | * 35 | * string schema = 1; 36 | * 37 | * @return The schema. 38 | */ 39 | java.lang.String getSchema(); 40 | 41 | /** 42 | * 43 | * 44 | *
45 |    * Json serialized schema, as described at
46 |    * https://avro.apache.org/docs/1.8.1/spec.html.
47 |    * 
48 | * 49 | * string schema = 1; 50 | * 51 | * @return The bytes for schema. 52 | */ 53 | com.google.protobuf.ByteString getSchemaBytes(); 54 | } 55 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface FinalizeWriteStreamRequestOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Required. Name of the stream to finalize, in the form of
32 |    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
33 |    * 
34 | * 35 | * 36 | * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 37 | * 38 | * 39 | * @return The name. 40 | */ 41 | java.lang.String getName(); 42 | 43 | /** 44 | * 45 | * 46 | *
47 |    * Required. Name of the stream to finalize, in the form of
48 |    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
49 |    * 
50 | * 51 | * 52 | * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 53 | * 54 | * 55 | * @return The bytes for name. 56 | */ 57 | com.google.protobuf.ByteString getNameBytes(); 58 | } 59 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface FinalizeWriteStreamResponseOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Number of rows in the finalized stream.
32 |    * 
33 | * 34 | * int64 row_count = 1; 35 | * 36 | * @return The rowCount. 37 | */ 38 | long getRowCount(); 39 | } 40 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface FlushRowsResponseOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * The rows before this offset (including this offset) are flushed.
32 |    * 
33 | * 34 | * int64 offset = 1; 35 | * 36 | * @return The offset. 37 | */ 38 | long getOffset(); 39 | } 40 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface GetWriteStreamRequestOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Required. Name of the stream to get, in the form of
32 |    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
33 |    * 
34 | * 35 | * 36 | * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 37 | * 38 | * 39 | * @return The name. 40 | */ 41 | java.lang.String getName(); 42 | 43 | /** 44 | * 45 | * 46 | *
47 |    * Required. Name of the stream to get, in the form of
48 |    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
49 |    * 
50 | * 51 | * 52 | * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 53 | * 54 | * 55 | * @return The bytes for name. 56 | */ 57 | com.google.protobuf.ByteString getNameBytes(); 58 | } 59 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface ReadRowsRequestOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Required. Stream to read rows from.
32 |    * 
33 | * 34 | * 35 | * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 36 | * 37 | * 38 | * @return The readStream. 39 | */ 40 | java.lang.String getReadStream(); 41 | 42 | /** 43 | * 44 | * 45 | *
46 |    * Required. Stream to read rows from.
47 |    * 
48 | * 49 | * 50 | * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 51 | * 52 | * 53 | * @return The bytes for readStream. 54 | */ 55 | com.google.protobuf.ByteString getReadStreamBytes(); 56 | 57 | /** 58 | * 59 | * 60 | *
61 |    * The offset requested must be less than the last row read from Read.
62 |    * Requesting a larger offset is undefined. If not specified, start reading
63 |    * from offset zero.
64 |    * 
65 | * 66 | * int64 offset = 2; 67 | * 68 | * @return The offset. 69 | */ 70 | long getOffset(); 71 | } 72 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/stream.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface ReadStreamOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadStream) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Output only. Name of the stream, in the form
32 |    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
33 |    * 
34 | * 35 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 36 | * 37 | * @return The name. 38 | */ 39 | java.lang.String getName(); 40 | 41 | /** 42 | * 43 | * 44 | *
45 |    * Output only. Name of the stream, in the form
46 |    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
47 |    * 
48 | * 49 | * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 50 | * 51 | * @return The bytes for name. 52 | */ 53 | com.google.protobuf.ByteString getNameBytes(); 54 | } 55 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface StreamStatsOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.StreamStats) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * Represents the progress of the current stream.
32 |    * 
33 | * 34 | * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; 35 | * 36 | * @return Whether the progress field is set. 37 | */ 38 | boolean hasProgress(); 39 | 40 | /** 41 | * 42 | * 43 | *
44 |    * Represents the progress of the current stream.
45 |    * 
46 | * 47 | * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; 48 | * 49 | * @return The progress. 50 | */ 51 | com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getProgress(); 52 | 53 | /** 54 | * 55 | * 56 | *
57 |    * Represents the progress of the current stream.
58 |    * 
59 | * 60 | * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; 61 | */ 62 | com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder getProgressOrBuilder(); 63 | } 64 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Generated by the protocol buffer compiler. DO NOT EDIT! 17 | // source: google/cloud/bigquery/storage/v1beta2/storage.proto 18 | 19 | // Protobuf Java Version: 3.25.8 20 | package com.google.cloud.bigquery.storage.v1beta2; 21 | 22 | public interface ThrottleStateOrBuilder 23 | extends 24 | // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ThrottleState) 25 | com.google.protobuf.MessageOrBuilder { 26 | 27 | /** 28 | * 29 | * 30 | *
31 |    * How much this connection is being throttled. Zero means no throttling,
32 |    * 100 means fully throttled.
33 |    * 
34 | * 35 | * int32 throttle_percent = 1; 36 | * 37 | * @return The throttlePercent. 38 | */ 39 | int getThrottlePercent(); 40 | } 41 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/arrow.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2025 Google LLC 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | syntax = "proto3"; 16 | 17 | package google.cloud.bigquery.storage.v1beta2; 18 | 19 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb;storagepb"; 20 | option java_multiple_files = true; 21 | option java_outer_classname = "ArrowProto"; 22 | option java_package = "com.google.cloud.bigquery.storage.v1beta2"; 23 | 24 | // Arrow schema as specified in 25 | // https://arrow.apache.org/docs/python/api/datatypes.html 26 | // and serialized to bytes using IPC: 27 | // https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc 28 | // 29 | // See code samples on how this message can be deserialized. 30 | message ArrowSchema { 31 | // IPC serialized Arrow schema. 32 | bytes serialized_schema = 1; 33 | } 34 | 35 | // Arrow RecordBatch. 36 | message ArrowRecordBatch { 37 | // IPC-serialized Arrow RecordBatch. 38 | bytes serialized_record_batch = 1; 39 | } 40 | 41 | // Contains options specific to Arrow Serialization. 42 | message ArrowSerializationOptions { 43 | // The IPC format to use when serializing Arrow streams. 44 | enum Format { 45 | // If unspecied the IPC format as of 0.15 release will be used. 46 | FORMAT_UNSPECIFIED = 0; 47 | 48 | // Use the legacy IPC message format as of Apache Arrow Release 0.14. 49 | ARROW_0_14 = 1; 50 | 51 | // Use the message format as of Apache Arrow Release 0.15. 52 | ARROW_0_15 = 2; 53 | } 54 | 55 | // The Arrow IPC format to use. 56 | Format format = 1; 57 | } 58 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/avro.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2025 Google LLC 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | syntax = "proto3"; 16 | 17 | package google.cloud.bigquery.storage.v1beta2; 18 | 19 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb;storagepb"; 20 | option java_multiple_files = true; 21 | option java_outer_classname = "AvroProto"; 22 | option java_package = "com.google.cloud.bigquery.storage.v1beta2"; 23 | 24 | // Avro schema. 25 | message AvroSchema { 26 | // Json serialized schema, as described at 27 | // https://avro.apache.org/docs/1.8.1/spec.html. 28 | string schema = 1; 29 | } 30 | 31 | // Avro rows. 32 | message AvroRows { 33 | // Binary serialized rows in a block. 34 | bytes serialized_binary_rows = 1; 35 | } 36 | -------------------------------------------------------------------------------- /proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/protobuf.proto: -------------------------------------------------------------------------------- 1 | // Copyright 2025 Google LLC 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | syntax = "proto3"; 16 | 17 | package google.cloud.bigquery.storage.v1beta2; 18 | 19 | import "google/protobuf/descriptor.proto"; 20 | 21 | option go_package = "cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb;storagepb"; 22 | option java_multiple_files = true; 23 | option java_outer_classname = "ProtoBufProto"; 24 | option java_package = "com.google.cloud.bigquery.storage.v1beta2"; 25 | 26 | // ProtoSchema describes the schema of the serialized protocol buffer data rows. 27 | message ProtoSchema { 28 | // Descriptor for input message. The descriptor has to be self contained, 29 | // including all the nested types, excepted for proto buffer well known types 30 | // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf). 31 | google.protobuf.DescriptorProto proto_descriptor = 1; 32 | } 33 | 34 | message ProtoRows { 35 | // A sequence of rows serialized as a Protocol Buffer. 36 | // 37 | // See https://developers.google.com/protocol-buffers/docs/overview for more 38 | // information on deserializing this field. 39 | repeated bytes serialized_rows = 1; 40 | } 41 | -------------------------------------------------------------------------------- /samples/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | com.google.cloud 5 | google-cloud-bigquerystorage-samples 6 | 0.0.1-SNAPSHOT 7 | pom 8 | Google BigQuery Storage Samples Parent 9 | https://github.com/googleapis/java-bigquerystorage 10 | 11 | Java idiomatic client for Google Cloud Platform services. 12 | 13 | 14 | 18 | 19 | com.google.cloud.samples 20 | shared-configuration 21 | 1.2.2 22 | 23 | 24 | 25 | 1.8 26 | 1.8 27 | UTF-8 28 | 29 | 30 | 31 | install-without-bom 32 | snapshot 33 | snippets 34 | 35 | 36 | 37 | 38 | 39 | org.apache.maven.plugins 40 | maven-deploy-plugin 41 | 3.1.4 42 | 43 | true 44 | 45 | 46 | 47 | org.sonatype.plugins 48 | nexus-staging-maven-plugin 49 | 1.7.0 50 | 51 | true 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /samples/snippets/src/main/proto/nested.proto: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | syntax = "proto3"; 18 | package nestedprotos; 19 | 20 | import "separate.proto"; 21 | 22 | option java_multiple_files = true; 23 | option java_package = "com.example.bigquerystorage"; 24 | option java_outer_classname = "NestedProtos"; 25 | 26 | message HasNestedMessage { 27 | optional string foo = 1; 28 | 29 | message InnerMessage { 30 | optional int64 my_int = 1; 31 | optional string my_string = 2; 32 | } 33 | 34 | optional InnerMessage bar = 2; 35 | } 36 | 37 | message HasSeparateNestedMessage { 38 | optional string foo = 1; 39 | optional SeparateMessage bar = 2; 40 | } 41 | -------------------------------------------------------------------------------- /samples/snippets/src/main/proto/separate.proto: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | syntax = "proto3"; 18 | package nestedprotos; 19 | 20 | option java_multiple_files = true; 21 | option java_package = "com.example.bigquerystorage"; 22 | option java_outer_classname = "SeparateProtos"; 23 | 24 | message SeparateMessage { 25 | optional int64 my_int = 1; 26 | optional string my_string = 2; 27 | } 28 | -------------------------------------------------------------------------------- /samples/snippets/src/test/java/com/example/bigquerystorage/QuickstartArrowSampleIT.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Google Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.example.bigquerystorage; 18 | 19 | import static com.google.common.truth.Truth.assertThat; 20 | 21 | import java.io.ByteArrayOutputStream; 22 | import java.io.PrintStream; 23 | import org.junit.After; 24 | import org.junit.Before; 25 | import org.junit.Test; 26 | import org.junit.runner.RunWith; 27 | import org.junit.runners.JUnit4; 28 | 29 | /** Tests for quickstart sample. */ 30 | @RunWith(JUnit4.class) 31 | @SuppressWarnings("checkstyle:abbreviationaswordinname") 32 | public class QuickstartArrowSampleIT { 33 | private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); 34 | 35 | private ByteArrayOutputStream bout; 36 | private PrintStream out; 37 | 38 | @Before 39 | public void setUp() { 40 | bout = new ByteArrayOutputStream(); 41 | out = new PrintStream(bout); 42 | System.setOut(out); 43 | } 44 | 45 | @After 46 | public void tearDown() { 47 | System.setOut(null); 48 | } 49 | 50 | @Test 51 | public void testQuickstart() throws Exception { 52 | StorageArrowSample.main(PROJECT_ID); 53 | String got = bout.toString(); 54 | // Ensure at least 1k of output generated and a specific token was present in the output. 55 | assertThat(bout.size()).isGreaterThan(1024); 56 | assertThat(got).contains("Zayvion"); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /samples/snippets/src/test/java/com/example/bigquerystorage/QuickstartSampleIT.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Google Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.example.bigquerystorage; 18 | 19 | import static com.google.common.truth.Truth.assertThat; 20 | 21 | import java.io.ByteArrayOutputStream; 22 | import java.io.PrintStream; 23 | import org.junit.After; 24 | import org.junit.Before; 25 | import org.junit.Test; 26 | import org.junit.runner.RunWith; 27 | import org.junit.runners.JUnit4; 28 | 29 | /** Tests for quickstart sample. */ 30 | @RunWith(JUnit4.class) 31 | @SuppressWarnings("checkstyle:abbreviationaswordinname") 32 | public class QuickstartSampleIT { 33 | private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); 34 | 35 | private ByteArrayOutputStream bout; 36 | private PrintStream out; 37 | 38 | @Before 39 | public void setUp() { 40 | bout = new ByteArrayOutputStream(); 41 | out = new PrintStream(bout); 42 | System.setOut(out); 43 | } 44 | 45 | @After 46 | public void tearDown() { 47 | System.setOut(null); 48 | } 49 | 50 | @Test 51 | public void testQuickstart() throws Exception { 52 | StorageSample.main(PROJECT_ID); 53 | String got = bout.toString(); 54 | // Ensure at least 1k of output generated and a specific token was present in the output. 55 | assertThat(bout.size()).isGreaterThan(1024); 56 | assertThat(got).contains("Zayvion"); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /samples/snippets/src/test/resources/ModifiedCustomers.json: -------------------------------------------------------------------------------- 1 | {"Customer_ID":1,"Customer_Enrollment_Date":19301,"Customer_Name":"Nick_2.0","Customer_Address":"1600AmphitheatrePkwy,MountainView,CA","Customer_Tier":"Platinum","Active_Subscriptions":"{\"Internet_Subscription\":\"Paid\",\"Music_Subscription\":\"Paid\"}","_CHANGE_TYPE":"UPSERT"} 2 | {"Customer_ID":2,"Customer_Enrollment_Date":19318,"Customer_Name":"Heather","Customer_Address":"285FultonSt,NewYork,NY","Customer_Tier":"Commercial","Active_Subscriptions":"{\"TV_Subscription\":\"Free\"}","_CHANGE_TYPE":"UPSERT"} 3 | {"Customer_ID":7,"_CHANGE_TYPE":"DELETE"} 4 | {"Customer_ID":8,"_CHANGE_TYPE":"DELETE"} 5 | {"Customer_ID":10,"Customer_Enrollment_Date":19410,"Customer_Name":"Melody","Customer_Address":"345SpearSt,SanFrancisco,CA","Customer_Tier":"Commercial","Active_Subscriptions":"{\"Music_Subscription\":\"Free\"}","_CHANGE_TYPE":"UPSERT"} -------------------------------------------------------------------------------- /samples/snippets/src/test/resources/NewCustomers.json: -------------------------------------------------------------------------------- 1 | {"Customer_ID":1,"Customer_Enrollment_Date":19301,"Customer_Name":"Nick","Customer_Address":"1600AmphitheatrePkwy,MountainView,CA","Customer_Tier":"Commercial","Active_Subscriptions":"{\"Internet_Subscription\":\"Trial\",\"Music_Subscription\":\"Free\"}","_CHANGE_TYPE":"UPSERT"} 2 | {"Customer_ID":2,"Customer_Enrollment_Date":19318,"Customer_Name":"Heather","Customer_Address":"350FifthAvenue,NewYork,NY","Customer_Tier":"Commercial","Active_Subscriptions":"{}","_CHANGE_TYPE":"UPSERT"} 3 | {"Customer_ID":3,"Customer_Enrollment_Date":19250,"Customer_Name":"Lyle","Customer_Address":"10DowningStreet,London,England","Customer_Tier":"Enterprise","Active_Subscriptions":"{\"Internet_Subscription\":\"Paid\",\"Music_Subscription\":\"Paid\"}","_CHANGE_TYPE":"UPSERT"} 4 | {"Customer_ID":4,"Customer_Enrollment_Date":19140,"Customer_Name":"Heidi","Customer_Address":"4059MtLeeDr.,Hollywood,CA","Customer_Tier":"Commercial","Active_Subscriptions":"{\"TV_Subscription\":\"Free\"}","_CHANGE_TYPE":"UPSERT"} 5 | {"Customer_ID":5,"Customer_Enrollment_Date":19299,"Customer_Name":"Paul","Customer_Address":"221BBakerSt,London,England","Customer_Tier":"Commercial","Active_Subscriptions":"{\"Music_Subscription\":\"Free\"}","_CHANGE_TYPE":"UPSERT"} 6 | {"Customer_ID":6,"Customer_Enrollment_Date":19329,"Customer_Name":"Dylan","Customer_Address":"1DrCarltonBGoodlettPl,SanFrancisco,CA","Customer_Tier":"Commercial","Active_Subscriptions":"{\"TV_Subscription\":\"Trial\"}","_CHANGE_TYPE":"UPSERT"} 7 | {"Customer_ID":7,"Customer_Enrollment_Date":19400,"Customer_Name":"Monica","Customer_Address":"PiazzadelColosseo,1,00184RomaRM,Italy","Customer_Tier":"Commercial","Active_Subscriptions":"{\"Internet_Subscription\":\"Paid\"}","_CHANGE_TYPE":"UPSERT"} 8 | {"Customer_ID":8,"Customer_Enrollment_Date":19377,"Customer_Name":"Katie","Customer_Address":"11WallStreet,NewYork,NY","Customer_Tier":"Enterprise","Active_Subscriptions":"{\"Music_Subscription\":\"Paid\"}","_CHANGE_TYPE":"UPSERT"} 9 | {"Customer_ID":9,"Customer_Enrollment_Date":19410,"Customer_Name":"Jeremy","Customer_Address":"1600PennsylvaniaAvenue,WashingtonDC","Customer_Tier":"Enterprise","Active_Subscriptions":"{\"Internet_Subscription\":\"Paid\",\"TV_Subscription\":\"Paid\",\"Music_Subscription\":\"Trial\"}","_CHANGE_TYPE":"UPSERT"} -------------------------------------------------------------------------------- /versions.txt: -------------------------------------------------------------------------------- 1 | # Format: 2 | # module:released-version:current-version 3 | 4 | google-cloud-bigquerystorage:3.15.0:3.15.1-SNAPSHOT 5 | grpc-google-cloud-bigquerystorage-v1beta1:0.187.0:0.187.1-SNAPSHOT 6 | grpc-google-cloud-bigquerystorage-v1beta2:0.187.0:0.187.1-SNAPSHOT 7 | grpc-google-cloud-bigquerystorage-v1:3.15.0:3.15.1-SNAPSHOT 8 | proto-google-cloud-bigquerystorage-v1beta1:0.187.0:0.187.1-SNAPSHOT 9 | proto-google-cloud-bigquerystorage-v1beta2:0.187.0:0.187.1-SNAPSHOT 10 | proto-google-cloud-bigquerystorage-v1:3.15.0:3.15.1-SNAPSHOT 11 | grpc-google-cloud-bigquerystorage-v1alpha:3.15.0:3.15.1-SNAPSHOT 12 | proto-google-cloud-bigquerystorage-v1alpha:3.15.0:3.15.1-SNAPSHOT 13 | proto-google-cloud-bigquerystorage-v1beta:3.15.0:3.15.1-SNAPSHOT 14 | grpc-google-cloud-bigquerystorage-v1beta:3.15.0:3.15.1-SNAPSHOT 15 | --------------------------------------------------------------------------------